diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eed142a..ad0e81c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a68a581..795eb28 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/test/codex-contract.test.js b/test/codex-contract.test.js index ba38568..253b073 100644 --- a/test/codex-contract.test.js +++ b/test/codex-contract.test.js @@ -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", () => { @@ -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."); }); }); diff --git a/test/release-config.test.js b/test/release-config.test.js index f07a574..baf2b77 100644 --- a/test/release-config.test.js +++ b/test/release-config.test.js @@ -19,13 +19,3 @@ test("npm package metadata identifies the public source repository", () => { url: "https://github.com/ScriptedAlchemy/grok-bot-cli/issues", }); }); - -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"); -});