Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ jobs:
test "${#package_files[@]}" -eq 1
npm install --global --prefix "$install_root" "${package_files[0]}"
"$install_root/bin/gbot" --help
"$install_root/bin/grok-bot" --help
"$install_root/bin/gbot-install" --help
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
test "${#package_files[@]}" -eq 1
npm install --global --prefix "$install_root" "${package_files[0]}"
"$install_root/bin/gbot" --help
"$install_root/bin/grok-bot" --help
"$install_root/bin/gbot-install" --help

- name: Create release pull request or publish
Expand Down
13 changes: 1 addition & 12 deletions test/codex-contract.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ describe("codex contract — outcomeFromError", () => {
assert.equal(out.delivery, "rejected");
assert.equal(out.exitCode, 1);
});

it("keeps the bridge reason strings verbatim", () => {
const reasons = ["busy", "hop-limit", "route-not-allowed", "thread-error", "unknown-status", "unknown-thread", "external-owner", "experimental-disabled", "unsupported", "rejected", "transport", "bad-response", "approval-refused", "usage"];
for (const reason of reasons) {
const out = outcomeFromError(
Object.assign(new Error(reason), { delivery: "rejected", reason }),
);
assert.equal(out.reason, reason);
assert.equal(out.exitCode, 1);
}
});
});

describe("codex contract — outcomeFromReceipt", () => {
Expand All @@ -110,6 +99,6 @@ describe("codex contract — outcomeFromReceipt", () => {
refused: ["approvals/request"],
});
assert.equal(out.exitCode, 1);
assert.ok(typeof out.error === "string" && out.error.length > 0);
assert.equal(out.error, "Codex refused one or more approvals.");
});
});
10 changes: 0 additions & 10 deletions test/release-config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,3 @@ test("npm package metadata identifies the public source repository", () => {
url: "https://github.com/ScriptedAlchemy/grok-bot-cli/issues",
});
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep coverage for the grok-bot executable alias

Deleting this test leaves the published grok-bot command unverified: the packed-package smoke test in .github/workflows/ci.yml invokes only gbot and gbot-install, while package.json still exposes the long-standing grok-bot alias. If that alias is removed or misspelled, CI will remain green but existing users invoking grok-bot will lose their executable; retain a focused alias assertion or execute it in the packed-package smoke test.

Useful? React with 👍 / 👎.


test("npm executable paths point at the Agent Bundle dist bins", () => {
assert.deepEqual(packageJson.bin, {
gbot: "./dist/bin/gbot.mjs",
"gbot-install": "./dist/bin/gbot-install.js",
"grok-bot": "./dist/bin/gbot.mjs",
});
assert.deepEqual(packageJson.files, ["dist", "README.md", "CHANGELOG.md", "LICENSE"]);
assert.equal(packageJson.scripts.prepack, "agent-bundle prepack");
});