claude-code-acp-ts 0.16.1 → 0.24.3

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/LICENSE CHANGED
@@ -1,42 +1,18 @@
1
- Copyright 2022 - 2025 Zed Industries, Inc.
2
1
 
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
-
18
-
19
-
20
-
21
- Apache License
2
+ Apache License
22
3
  Version 2.0, January 2004
23
4
  http://www.apache.org/licenses/
24
5
 
25
-
26
6
  TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
27
7
 
28
-
29
8
  1. Definitions.
30
9
 
31
-
32
10
  "License" shall mean the terms and conditions for use, reproduction,
33
11
  and distribution as defined by Sections 1 through 9 of this document.
34
12
 
35
-
36
13
  "Licensor" shall mean the copyright owner or entity authorized by
37
14
  the copyright owner that is granting the License.
38
15
 
39
-
40
16
  "Legal Entity" shall mean the union of the acting entity and all
41
17
  other entities that control, are controlled by, or are under common
42
18
  control with that entity. For the purposes of this definition,
@@ -45,28 +21,23 @@ Apache License
45
21
  otherwise, or (ii) ownership of fifty percent (50%) or more of the
46
22
  outstanding shares, or (iii) beneficial ownership of such entity.
47
23
 
48
-
49
24
  "You" (or "Your") shall mean an individual or Legal Entity
50
25
  exercising permissions granted by this License.
51
26
 
52
-
53
27
  "Source" form shall mean the preferred form for making modifications,
54
28
  including but not limited to software source code, documentation
55
29
  source, and configuration files.
56
30
 
57
-
58
31
  "Object" form shall mean any form resulting from mechanical
59
32
  transformation or translation of a Source form, including but
60
33
  not limited to compiled object code, generated documentation,
61
34
  and conversions to other media types.
62
35
 
63
-
64
36
  "Work" shall mean the work of authorship, whether in Source or
65
37
  Object form, made available under the License, as indicated by a
66
38
  copyright notice that is included in or attached to the work
67
39
  (an example is provided in the Appendix below).
68
40
 
69
-
70
41
  "Derivative Works" shall mean any work, whether in Source or Object
71
42
  form, that is based on (or derived from) the Work and for which the
72
43
  editorial revisions, annotations, elaborations, or other modifications
@@ -75,7 +46,6 @@ Apache License
75
46
  separable from, or merely link (or bind by name) to the interfaces of,
76
47
  the Work and Derivative Works thereof.
77
48
 
78
-
79
49
  "Contribution" shall mean any work of authorship, including
80
50
  the original version of the Work and any modifications or additions
81
51
  to that Work or Derivative Works thereof, that is intentionally
@@ -90,12 +60,10 @@ Apache License
90
60
  excluding communication that is conspicuously marked or otherwise
91
61
  designated in writing by the copyright owner as "Not a Contribution."
92
62
 
93
-
94
63
  "Contributor" shall mean Licensor and any individual or Legal Entity
95
64
  on behalf of whom a Contribution has been received by Licensor and
96
65
  subsequently incorporated within the Work.
97
66
 
98
-
99
67
  2. Grant of Copyright License. Subject to the terms and conditions of
100
68
  this License, each Contributor hereby grants to You a perpetual,
101
69
  worldwide, non-exclusive, no-charge, royalty-free, irrevocable
@@ -103,7 +71,6 @@ Apache License
103
71
  publicly display, publicly perform, sublicense, and distribute the
104
72
  Work and such Derivative Works in Source or Object form.
105
73
 
106
-
107
74
  3. Grant of Patent License. Subject to the terms and conditions of
108
75
  this License, each Contributor hereby grants to You a perpetual,
109
76
  worldwide, non-exclusive, no-charge, royalty-free, irrevocable
@@ -120,28 +87,23 @@ Apache License
120
87
  granted to You under this License for that Work shall terminate
121
88
  as of the date such litigation is filed.
122
89
 
123
-
124
90
  4. Redistribution. You may reproduce and distribute copies of the
125
91
  Work or Derivative Works thereof in any medium, with or without
126
92
  modifications, and in Source or Object form, provided that You
127
93
  meet the following conditions:
128
94
 
129
-
130
95
  (a) You must give any other recipients of the Work or
131
96
  Derivative Works a copy of this License; and
132
97
 
133
-
134
98
  (b) You must cause any modified files to carry prominent notices
135
99
  stating that You changed the files; and
136
100
 
137
-
138
101
  (c) You must retain, in the Source form of any Derivative Works
139
102
  that You distribute, all copyright, patent, trademark, and
140
103
  attribution notices from the Source form of the Work,
141
104
  excluding those notices that do not pertain to any part of
142
105
  the Derivative Works; and
143
106
 
144
-
145
107
  (d) If the Work includes a "NOTICE" text file as part of its
146
108
  distribution, then any Derivative Works that You distribute must
147
109
  include a readable copy of the attribution notices contained
@@ -159,7 +121,6 @@ Apache License
159
121
  that such additional attribution notices cannot be construed
160
122
  as modifying the License.
161
123
 
162
-
163
124
  You may add Your own copyright statement to Your modifications and
164
125
  may provide additional or different license terms and conditions
165
126
  for use, reproduction, or distribution of Your modifications, or
@@ -167,7 +128,6 @@ Apache License
167
128
  reproduction, and distribution of the Work otherwise complies with
168
129
  the conditions stated in this License.
169
130
 
170
-
171
131
  5. Submission of Contributions. Unless You explicitly state otherwise,
172
132
  any Contribution intentionally submitted for inclusion in the Work
173
133
  by You to the Licensor shall be under the terms and conditions of
@@ -176,13 +136,11 @@ Apache License
176
136
  the terms of any separate license agreement you may have executed
177
137
  with Licensor regarding such Contributions.
178
138
 
179
-
180
139
  6. Trademarks. This License does not grant permission to use the trade
181
140
  names, trademarks, service marks, or product names of the Licensor,
182
141
  except as required for reasonable and customary use in describing the
183
142
  origin of the Work and reproducing the content of the NOTICE file.
184
143
 
185
-
186
144
  7. Disclaimer of Warranty. Unless required by applicable law or
187
145
  agreed to in writing, Licensor provides the Work (and each
188
146
  Contributor provides its Contributions) on an "AS IS" BASIS,
@@ -193,7 +151,6 @@ Apache License
193
151
  appropriateness of using or redistributing the Work and assume any
194
152
  risks associated with Your exercise of permissions under this License.
195
153
 
196
-
197
154
  8. Limitation of Liability. In no event and under no legal theory,
198
155
  whether in tort (including negligence), contract, or otherwise,
199
156
  unless required by applicable law (such as deliberate and grossly
@@ -206,7 +163,6 @@ Apache License
206
163
  other commercial damages or losses), even if such Contributor
207
164
  has been advised of the possibility of such damages.
208
165
 
209
-
210
166
  9. Accepting Warranty or Additional Liability. While redistributing
211
167
  the Work or Derivative Works thereof, You may choose to offer,
212
168
  and charge a fee for, acceptance of support, warranty, indemnity,
@@ -218,5 +174,18 @@ Apache License
218
174
  incurred by, or claims asserted against, such Contributor by reason
219
175
  of your accepting any such warranty or additional liability.
220
176
 
221
-
222
177
  END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2025 Zed Industries, Inc. and contributors
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **Note**: This is a fork of [@zed-industries/claude-code-acp](https://github.com/zed-industries/claude-code-acp), maintained by [nuwax-ai](https://github.com/nuwax-ai).
6
6
 
7
- Use [Claude Code](https://www.anthropic.com/claude-code) from [ACP-compatible](https://agentclientprotocol.com) clients such as [Zed](https://zed.dev)!
7
+ Use [Claude Agent SDK](https://platform.claude.com/docs/en/agent-sdk/overview#branding-guidelines) from [ACP-compatible](https://agentclientprotocol.com) clients!
8
8
 
9
9
  This tool implements an ACP agent by using the official [Claude Agent SDK](https://platform.claude.com/docs/en/agent-sdk/overview), supporting:
10
10
 
@@ -20,9 +20,9 @@ This tool implements an ACP agent by using the official [Claude Agent SDK](https
20
20
 
21
21
  Learn more about the [Agent Client Protocol](https://agentclientprotocol.com/).
22
22
 
23
- ## How to use
23
+ ## Contribution Policy
24
24
 
25
- ### Zed
25
+ This project does not require a Contributor License Agreement (CLA). Instead, contributions are accepted under the following terms:
26
26
 
27
27
  The latest version of Zed can already use this adapter out of the box.
28
28
 
@@ -1,9 +1,9 @@
1
- import { Agent, AgentSideConnection, AuthenticateRequest, CancelNotification, ClientCapabilities, ForkSessionRequest, ForkSessionResponse, InitializeRequest, InitializeResponse, LoadSessionRequest, LoadSessionResponse, ListSessionsRequest, ListSessionsResponse, NewSessionRequest, NewSessionResponse, PromptRequest, PromptResponse, ReadTextFileRequest, ReadTextFileResponse, ResumeSessionRequest, ResumeSessionResponse, SessionNotification, SetSessionModelRequest, SetSessionModelResponse, SetSessionModeRequest, SetSessionModeResponse, TerminalHandle, TerminalOutputResponse, WriteTextFileRequest, WriteTextFileResponse } from "@agentclientprotocol/sdk";
2
- import { SettingsManager } from "./settings.js";
1
+ import { Agent, AgentSideConnection, AuthenticateRequest, CancelNotification, ClientCapabilities, ForkSessionRequest, ForkSessionResponse, InitializeRequest, InitializeResponse, ListSessionsRequest, ListSessionsResponse, LoadSessionRequest, LoadSessionResponse, NewSessionRequest, NewSessionResponse, PromptRequest, PromptResponse, ReadTextFileRequest, ReadTextFileResponse, ResumeSessionRequest, ResumeSessionResponse, SessionConfigOption, SessionModelState, SessionModeState, SessionNotification, SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, SetSessionModelRequest, SetSessionModelResponse, SetSessionModeRequest, SetSessionModeResponse, CloseSessionRequest, CloseSessionResponse, TerminalHandle, TerminalOutputResponse, WriteTextFileRequest, WriteTextFileResponse } from "@agentclientprotocol/sdk";
3
2
  import { CanUseTool, Options, PermissionMode, Query, SDKPartialAssistantMessage, SDKUserMessage } from "@anthropic-ai/claude-agent-sdk";
4
- import { Pushable } from "./utils.js";
5
3
  import { ContentBlockParam } from "@anthropic-ai/sdk/resources";
6
4
  import { BetaContentBlock, BetaRawContentBlockDelta } from "@anthropic-ai/sdk/resources/beta.mjs";
5
+ import { SettingsManager } from "./settings.js";
6
+ import { Pushable } from "./utils.js";
7
7
  export declare const CLAUDE_CONFIG_DIR: string;
8
8
  /**
9
9
  * Logger interface for customizing logging output
@@ -12,12 +12,29 @@ export interface Logger {
12
12
  log: (...args: any[]) => void;
13
13
  error: (...args: any[]) => void;
14
14
  }
15
+ type AccumulatedUsage = {
16
+ inputTokens: number;
17
+ outputTokens: number;
18
+ cachedReadTokens: number;
19
+ cachedWriteTokens: number;
20
+ };
15
21
  type Session = {
16
22
  query: Query;
17
23
  input: Pushable<SDKUserMessage>;
18
24
  cancelled: boolean;
19
- permissionMode: PermissionMode;
25
+ cwd: string;
20
26
  settingsManager: SettingsManager;
27
+ accumulatedUsage: AccumulatedUsage;
28
+ modes: SessionModeState;
29
+ models: SessionModelState;
30
+ configOptions: SessionConfigOption[];
31
+ promptRunning: boolean;
32
+ pendingMessages: Map<string, {
33
+ resolve: (cancelled: boolean) => void;
34
+ order: number;
35
+ }>;
36
+ nextPendingOrder: number;
37
+ abortController: AbortController;
21
38
  };
22
39
  type BackgroundTerminal = {
23
40
  handle: TerminalHandle;
@@ -28,7 +45,7 @@ type BackgroundTerminal = {
28
45
  pendingOutput: TerminalOutputResponse;
29
46
  };
30
47
  /**
31
- * Extra metadata that can be given to Claude Code when creating a new session.
48
+ * Extra metadata that can be given when creating a new session.
32
49
  */
33
50
  export type NewSessionMeta = {
34
51
  claudeCode?: {
@@ -45,9 +62,26 @@ export type NewSessionMeta = {
45
62
  * - hooks (merged with ACP's hooks)
46
63
  * - mcpServers (merged with ACP's mcpServers)
47
64
  * - disallowedTools (merged with ACP's disallowedTools)
65
+ * - tools (passed through; defaults to claude_code preset if not provided)
48
66
  */
49
67
  options?: Options;
50
68
  };
69
+ additionalRoots?: string[];
70
+ };
71
+ /**
72
+ * Extra metadata for 'gateway' authentication requests.
73
+ */
74
+ type GatewayAuthMeta = {
75
+ /**
76
+ * These parameters are mapped to environment variables to:
77
+ * - Redirect API calls via baseUrl
78
+ * - Inject custom headers
79
+ * - Bypass the default Claude login requirement
80
+ */
81
+ gateway: {
82
+ baseUrl: string;
83
+ headers: Record<string, string>;
84
+ };
51
85
  };
52
86
  /**
53
87
  * Extra metadata that the agent provides for each tool_call / tool_update update.
@@ -57,6 +91,18 @@ export type ToolUpdateMeta = {
57
91
  toolName: string;
58
92
  toolResponse?: unknown;
59
93
  };
94
+ terminal_info?: {
95
+ terminal_id: string;
96
+ };
97
+ terminal_output?: {
98
+ terminal_id: string;
99
+ data: string;
100
+ };
101
+ terminal_exit?: {
102
+ terminal_id: string;
103
+ exit_code: number;
104
+ signal: string | null;
105
+ };
60
106
  };
61
107
  export type ToolUseCache = {
62
108
  [key: string]: {
@@ -66,6 +112,8 @@ export type ToolUseCache = {
66
112
  input: unknown;
67
113
  };
68
114
  };
115
+ export declare function claudeCliPath(): Promise<string>;
116
+ export declare function resolvePermissionMode(defaultMode?: unknown): PermissionMode;
69
117
  export declare class ClaudeAcpAgent implements Agent {
70
118
  sessions: {
71
119
  [key: string]: Session;
@@ -77,27 +125,30 @@ export declare class ClaudeAcpAgent implements Agent {
77
125
  };
78
126
  clientCapabilities?: ClientCapabilities;
79
127
  logger: Logger;
128
+ gatewayAuthMeta?: GatewayAuthMeta;
80
129
  constructor(client: AgentSideConnection, logger?: Logger);
81
130
  initialize(request: InitializeRequest): Promise<InitializeResponse>;
82
131
  newSession(params: NewSessionRequest): Promise<NewSessionResponse>;
83
132
  unstable_forkSession(params: ForkSessionRequest): Promise<ForkSessionResponse>;
84
133
  unstable_resumeSession(params: ResumeSessionRequest): Promise<ResumeSessionResponse>;
85
134
  loadSession(params: LoadSessionRequest): Promise<LoadSessionResponse>;
86
- /**
87
- * List Claude Code sessions by parsing JSONL files
88
- * Sessions are stored in ~/.claude/projects/<path-encoded>/
89
- * Implements the draft session/list RFD spec
90
- */
91
- unstable_listSessions(params: ListSessionsRequest): Promise<ListSessionsResponse>;
135
+ listSessions(params: ListSessionsRequest): Promise<ListSessionsResponse>;
92
136
  authenticate(_params: AuthenticateRequest): Promise<void>;
93
137
  prompt(params: PromptRequest): Promise<PromptResponse>;
94
138
  cancel(params: CancelNotification): Promise<void>;
139
+ unstable_closeSession(params: CloseSessionRequest): Promise<CloseSessionResponse>;
95
140
  unstable_setSessionModel(params: SetSessionModelRequest): Promise<SetSessionModelResponse | void>;
96
141
  setSessionMode(params: SetSessionModeRequest): Promise<SetSessionModeResponse>;
142
+ setSessionConfigOption(params: SetSessionConfigOptionRequest): Promise<SetSessionConfigOptionResponse>;
143
+ private applySessionMode;
97
144
  private replaySessionHistory;
98
145
  readTextFile(params: ReadTextFileRequest): Promise<ReadTextFileResponse>;
99
146
  writeTextFile(params: WriteTextFileRequest): Promise<WriteTextFileResponse>;
100
147
  canUseTool(sessionId: string): CanUseTool;
148
+ private sendAvailableCommandsUpdate;
149
+ private updateConfigOption;
150
+ private syncSessionConfigState;
151
+ private getOrCreateSession;
101
152
  private createSession;
102
153
  }
103
154
  export declare function promptToClaude(prompt: PromptRequest): SDKUserMessage;
@@ -107,8 +158,14 @@ export declare function promptToClaude(prompt: PromptRequest): SDKUserMessage;
107
158
  */
108
159
  export declare function toAcpNotifications(content: string | ContentBlockParam[] | BetaContentBlock[] | BetaRawContentBlockDelta[], role: "assistant" | "user", sessionId: string, toolUseCache: ToolUseCache, client: AgentSideConnection, logger: Logger, options?: {
109
160
  registerHooks?: boolean;
161
+ clientCapabilities?: ClientCapabilities;
162
+ parentToolUseId?: string | null;
163
+ cwd?: string;
164
+ }): SessionNotification[];
165
+ export declare function streamEventToAcpNotifications(message: SDKPartialAssistantMessage, sessionId: string, toolUseCache: ToolUseCache, client: AgentSideConnection, logger: Logger, options?: {
166
+ clientCapabilities?: ClientCapabilities;
167
+ cwd?: string;
110
168
  }): SessionNotification[];
111
- export declare function streamEventToAcpNotifications(message: SDKPartialAssistantMessage, sessionId: string, toolUseCache: ToolUseCache, client: AgentSideConnection, logger: Logger): SessionNotification[];
112
169
  export declare function runAcp(): void;
113
170
  export {};
114
171
  //# sourceMappingURL=acp-agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"acp-agent.d.ts","sourceRoot":"","sources":["../src/acp-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,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