@agentclientprotocol/claude-agent-acp 0.109.1-preview.7 → 0.109.1-preview.9

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/README.md CHANGED
@@ -75,6 +75,10 @@ with replay, which `replay_complete` ends, `session/close`, `session/prompt`, `s
75
75
  compaction, display terminals for commands, permission requests, elicitation, providers, auth, and
76
76
  [subagents](docs/subagent-sessions.md). Steering is v1 only for now.
77
77
 
78
+ On v2, the `command` of a stdio MCP server must be an absolute path, such as `/usr/local/bin/npx`.
79
+ `session/new`, `session/resume` and `session/fork` fail with `-32602` for a relative one, such as
80
+ `npx`. A v1 client can still send one.
81
+
78
82
  `session/prompt` takes an `idempotencyKey`: a prompt that a client sends again with the same key
79
83
  is inserted once, and the retry gets the first `messageId`. The key is known for as long as Claude
80
84
  Code stores the message, also after a restart. A prompt that Claude Code does not store, such as a
@@ -1523,7 +1523,7 @@ export declare class ClaudeAcpAgent {
1523
1523
  *
1524
1524
  * Call it in the same synchronous step as the handler's `return`: an
1525
1525
  * `await` between them would let the timer run before the response. The ACP
1526
- * SDK (2.9.0) gives a request handler no responder and no after-response
1526
+ * SDK (2.9.1) gives a request handler no responder and no after-response
1527
1527
  * hook, so the order rests on two things that its source shows and its API
1528
1528
  * does not promise. `registerAppRequest` queues the response in the
1529
1529
  * microtask that follows the handler's return, with no macrotask in
@@ -7053,7 +7053,7 @@ export class ClaudeAcpAgent {
7053
7053
  *
7054
7054
  * Call it in the same synchronous step as the handler's `return`: an
7055
7055
  * `await` between them would let the timer run before the response. The ACP
7056
- * SDK (2.9.0) gives a request handler no responder and no after-response
7056
+ * SDK (2.9.1) gives a request handler no responder and no after-response
7057
7057
  * hook, so the order rests on two things that its source shows and its API
7058
7058
  * does not promise. `registerAppRequest` queues the response in the
7059
7059
  * microtask that follows the handler's return, with no macrotask in
@@ -106,7 +106,9 @@ export function v2AvailableCommands(commands) {
106
106
  * list. A request with two servers of the same `name`, or with a transport
107
107
  * that the agent does not advertise in `session.mcp` (such as a custom `_`
108
108
  * type), fails with invalid params (-32602): `sdkMcpServers` would otherwise
109
- * drop the server without telling the client.
109
+ * drop the server without telling the client. So does a stdio server whose
110
+ * `command` is not an absolute path, such as `npx`, which v2 requires. The
111
+ * SDK's `assertSupportedMcpServers` checks all three.
110
112
  */
111
113
  function v1McpServers(servers) {
112
114
  if (servers == null)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.109.1-preview.7",
6
+ "version": "0.109.1-preview.9",
7
7
  "description": "An ACP-compatible coding agent powered by the Claude Agent SDK (TypeScript)",
8
8
  "main": "dist/lib.js",
9
9
  "types": "dist/lib.d.ts",
@@ -68,13 +68,13 @@
68
68
  "node": ">=22"
69
69
  },
70
70
  "dependencies": {
71
- "@agentclientprotocol/sdk": "2.9.0",
72
- "@anthropic-ai/claude-agent-sdk": "0.3.328",
71
+ "@agentclientprotocol/sdk": "2.9.1",
72
+ "@anthropic-ai/claude-agent-sdk": "0.3.330",
73
73
  "diff": "9.0.0",
74
74
  "zod": "4.6.7"
75
75
  },
76
76
  "devDependencies": {
77
- "@anthropic-ai/sdk": "1.10.0",
77
+ "@anthropic-ai/sdk": "1.12.0",
78
78
  "@eslint/js": "10.0.1",
79
79
  "@tsconfig/node22": "22.0.7",
80
80
  "@types/node": "26.6.6",