From 2b07e5801d8a463db912aaebc42c31521e9cd0b9 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 24 Nov 2026 17:33:30 -0600 Subject: [PATCH] test(runner): narrow the swarm refusal frame's error before reading providerFailure Fixes TS18046 in the CI test-program typecheck. Co-Authored-By: Claude Opus 5.5 --- packages/paperclip-runner/src/cli/acpx-runtime-sidecar.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/paperclip-runner/src/cli/acpx-runtime-sidecar.test.ts b/packages/paperclip-runner/src/cli/acpx-runtime-sidecar.test.ts index 051898e6bcd..4b59557162c 100644 --- a/packages/paperclip-runner/src/cli/acpx-runtime-sidecar.test.ts +++ b/packages/paperclip-runner/src/cli/acpx-runtime-sidecar.test.ts @@ -2167,7 +2167,7 @@ describe("qualified ACPX runtime sidecar", () => { const refused = await sidecar.next(frame => frame.id === 2); expect(refused).toMatchObject({ ok: false, error: { code: "ANTIGRAVITY_SWARM_UNAVAILABLE", retryable: false, providerFailure: { provider: "antigravity", message: expect.stringMatching(/Gemini API key/) } } }); - expect(refused.error.providerFailure).not.toHaveProperty("providerCode"); + expect((refused.error as { providerFailure: unknown }).providerFailure).not.toHaveProperty("providerCode"); expect(JSON.stringify(refused)).not.toContain("only for Cursor"); // Only the registered provider modes pass the parser; the refusal names its contract.