@lucascouts/claude-agent-tui 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/acp-agent.js
CHANGED
|
@@ -2568,7 +2568,7 @@ export class ClaudeAcpAgent {
|
|
|
2568
2568
|
// Story 065 (R1/R3): negotiated in initialize() from clientCapabilities.elicitation.form. When
|
|
2569
2569
|
// true the gate drives AskUserQuestion through a real ACP form elicitation; when false it keeps
|
|
2570
2570
|
// the story-064 fail-closed deny-guard. this.client (AgentSideConnection) already satisfies the
|
|
2571
|
-
// broadened client type (it has
|
|
2571
|
+
// broadened client type (it has createElicitation).
|
|
2572
2572
|
clientSupportsElicitationForm: this.clientSupportsElicitationForm,
|
|
2573
2573
|
onWarn: (m) => this.logger.error(m),
|
|
2574
2574
|
});
|
|
@@ -24,11 +24,11 @@ export interface AskUserQuestionInput {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* The minimal ACP client surface the bridge needs — structurally satisfied by the kept
|
|
27
|
-
* `AgentSideConnection` (`client.
|
|
27
|
+
* `AgentSideConnection` (`client.createElicitation(params)`). Injected so a unit test drives
|
|
28
28
|
* the bridge with a fake client OFFLINE (no AgentSideConnection, no Zed).
|
|
29
29
|
*/
|
|
30
30
|
export interface ElicitationClient {
|
|
31
|
-
|
|
31
|
+
createElicitation(params: CreateElicitationRequest): Promise<CreateElicitationResponse>;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Project an `AskUserQuestion` tool_input into an ACP form `CreateElicitationRequest`, scoped to the
|
|
@@ -114,7 +114,7 @@ export async function requestElicitation(client, req, opts) {
|
|
|
114
114
|
// evaluation time (this `try` has only a `finally`, so an eager throw would re-throw out of
|
|
115
115
|
// requestElicitation, violating "never throws"). Async rejections still take the same path.
|
|
116
116
|
Promise.resolve()
|
|
117
|
-
.then(() => client.
|
|
117
|
+
.then(() => client.createElicitation(req))
|
|
118
118
|
.then((resp) => ({ ok: true, resp }), (err) => ({ ok: false, err })),
|
|
119
119
|
timeout,
|
|
120
120
|
]);
|
|
@@ -74,7 +74,7 @@ export declare const DEFAULT_ELICITATION_TIMEOUT_MS = 300000;
|
|
|
74
74
|
/** Options for {@link setupSessionGate}. Timing knobs are injectable for offline tests. */
|
|
75
75
|
export interface SessionGateOptions {
|
|
76
76
|
/** The ACP client surface. `AgentSideConnection` satisfies BOTH `requestPermission(params)`
|
|
77
|
-
* (the story-033 relay) AND `
|
|
77
|
+
* (the story-033 relay) AND `createElicitation(params)` (the story-065 elicitation
|
|
78
78
|
* bridge), so the field carries both capabilities. */
|
|
79
79
|
client: PermissionClient & ElicitationClient;
|
|
80
80
|
/** Diagnostics sink for every fail-closed / stuck-prompt warning (production: logger.error). */
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.12.
|
|
6
|
+
"version": "0.12.2",
|
|
7
7
|
"description": "Run the official Claude Code TUI in Zed's agent panel on your Claude Pro/Max subscription — an ACP-over-PTY bridge created for Anthropic's billing split (paused June 15; see README).",
|
|
8
8
|
"main": "dist/lib.js",
|
|
9
9
|
"types": "dist/lib.d.ts",
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
"node": ">=24"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@agentclientprotocol/sdk": "1.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
66
|
+
"@agentclientprotocol/sdk": "1.4.0",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.261",
|
|
68
68
|
"node-pty": "1.1.0",
|
|
69
|
-
"zod": "^
|
|
69
|
+
"zod": "^4.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@anthropic-ai/sdk": "0.
|
|
72
|
+
"@anthropic-ai/sdk": "0.124.0",
|
|
73
73
|
"@eslint/js": "10.0.1",
|
|
74
|
-
"@types/node": "26.4.
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
76
|
-
"@typescript-eslint/parser": "8.
|
|
77
|
-
"eslint": "10.
|
|
74
|
+
"@types/node": "26.4.1",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "8.69.0",
|
|
76
|
+
"@typescript-eslint/parser": "8.69.0",
|
|
77
|
+
"eslint": "10.10.0",
|
|
78
78
|
"eslint-config-prettier": "10.1.8",
|
|
79
|
-
"globals": "17.
|
|
79
|
+
"globals": "17.12.0",
|
|
80
80
|
"prettier": "3.9.6",
|
|
81
81
|
"ts-node": "10.9.2",
|
|
82
82
|
"typescript": "6.0.3"
|