From c66464eacec6f30ffedca76aea4cd00a08872531 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Mon, 9 Nov 2026 22:33:29 +0100 Subject: [PATCH] test: pin the acp-agent.js exports of the v2 agent branch Keeps isLoginRequiredText re-exported from acp-agent.js after its move to result-end.ts, and adds the names the v2 agent imports from acp-agent.js (AUTONOMOUS_RESULT_ORIGINS, getAvailableSlashCommands, isAbortedResult) to the pinned list. Co-Authored-By: Claude --- src/acp-agent.ts | 2 ++ src/tests/module-exports.test.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/acp-agent.ts b/src/acp-agent.ts index 5b69103b..072281a9 100644 --- a/src/acp-agent.ts +++ b/src/acp-agent.ts @@ -464,6 +464,8 @@ export { MODEL_CONFIG_ID, resolveModelPreference, } from "./session-model.js"; +// Moved to result-end.ts; kept as an export for consumers that deep-import dist/acp-agent.js. +export { isLoginRequiredText } from "./result-end.js"; /** Claude CLI emits this synthetic result when an interrupted cycle ends on * queued user input before producing any assistant content. It is a hand-off diff --git a/src/tests/module-exports.test.ts b/src/tests/module-exports.test.ts index ca5f9232..4f7f5171 100644 --- a/src/tests/module-exports.test.ts +++ b/src/tests/module-exports.test.ts @@ -32,6 +32,7 @@ describe("module runtime exports", () => { it("acp-agent.ts exports the expected names", async () => { expect(Object.keys(await import("../acp-agent.js")).sort()).toEqual([ "AGENT_CONFIG_ID", + "AUTONOMOUS_RESULT_ORIGINS", "BUILTIN_AGENT_NAMES", "ClaudeAcpAgent", "DEFAULT_AGENT_ID", @@ -49,6 +50,8 @@ describe("module runtime exports", () => { "createFastModeConfigOption", "discoverCustomAgents", "fastModeStateEnabled", + "getAvailableSlashCommands", + "isAbortedResult", "isLocalCommandMetadata", "isLoginRequiredText", "isReplayHiddenMetaMessage",