mirror of
https://github.com/agentclientprotocol/claude-agent-acp.git
synced 2026-11-11 20:01:11 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user