diff --git a/package.json b/package.json index 88c6d205..1b392370 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "agent-company", - "version": "0.4.167", + "version": "0.4.168", "private": true, "type": "module", "description": "Cross-platform Electron desktop control plane for local-first AI agent companies.", diff --git a/tests/integration/autonomous-chain/ceo-phased-prompts.spec.ts b/tests/integration/autonomous-chain/ceo-phased-prompts.spec.ts index ece1957d..2ecc0be6 100644 --- a/tests/integration/autonomous-chain/ceo-phased-prompts.spec.ts +++ b/tests/integration/autonomous-chain/ceo-phased-prompts.spec.ts @@ -28,10 +28,10 @@ describe("Step 2: CEO phased prompts", () => { // shows the hire POST curl up front, and reaches for the // server-enforced STRATEGY_BEFORE_HIRES / STRATEGY_ALREADY_FILED // codes instead of prose ordering directives. - expect(prompt).toContain("file 3–5 `hire_agent` requests"); + expect(prompt).toContain("file 3–5 `hire_agent` tool calls"); expect(prompt).toContain("Do this first — file the hires"); - expect(prompt).toContain("STRATEGY_BEFORE_HIRES"); - expect(prompt).toContain("STRATEGY_ALREADY_FILED"); + expect(prompt).toContain("file_approval.strategy.before_hires"); + expect(prompt).toContain("file_approval.strategy.already_filed"); expect(prompt).not.toContain("Awaiting Org Strategy Approval"); expect(prompt).not.toContain("Goal Decomposition"); }); diff --git a/tests/integration/work-products-lifecycle.spec.ts b/tests/integration/work-products-lifecycle.spec.ts index 58456f1b..b8c32847 100644 --- a/tests/integration/work-products-lifecycle.spec.ts +++ b/tests/integration/work-products-lifecycle.spec.ts @@ -174,7 +174,7 @@ describe("work_products archived visibility", () => { expect( harness.db.documentsMod.resolveWorkProductTarget(id, harness.companyId), - ).toBeNull(); + ).toMatchObject({ kind: "error", reason: "archived" }); } finally { harness.db.close(); } @@ -236,7 +236,7 @@ describe("work_products bulk retirement", () => { expect(second).toHaveLength(0); expect( harness.db.documentsMod.resolveWorkProductTarget(id, harness.companyId), - ).toBeNull(); + ).toMatchObject({ kind: "error", reason: "archived" }); } finally { harness.db.close(); } @@ -278,7 +278,7 @@ describe("work_products bulk retirement", () => { expect( harness.db.documentsMod.resolveWorkProductTarget(workProductId, harness.companyId), - ).toBeNull(); + ).toMatchObject({ kind: "error", reason: "archived" }); } finally { harness.db.close(); }