@lucascouts/claude-agent-acp-plus 0.39.2 → 0.40.1
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.d.ts +46 -3
- package/dist/acp-agent.d.ts.map +1 -1
- package/dist/acp-agent.js +187 -40
- package/dist/cli-delivery.d.ts +30 -0
- package/dist/cli-delivery.d.ts.map +1 -0
- package/dist/cli-delivery.js +27 -0
- package/dist/client-mcp-servers.d.ts +42 -0
- package/dist/client-mcp-servers.d.ts.map +1 -0
- package/dist/client-mcp-servers.js +71 -0
- package/dist/elicitation.d.ts +7 -0
- package/dist/elicitation.d.ts.map +1 -1
- package/dist/elicitation.js +9 -0
- package/dist/mcp-over-acp.d.ts +83 -0
- package/dist/mcp-over-acp.d.ts.map +1 -0
- package/dist/mcp-over-acp.js +208 -0
- package/dist/refused-mcp-servers.d.ts +9 -0
- package/dist/refused-mcp-servers.d.ts.map +1 -0
- package/dist/refused-mcp-servers.js +46 -0
- package/dist/startup-failure.d.ts +2 -0
- package/dist/startup-failure.d.ts.map +1 -1
- package/dist/startup-failure.js +8 -0
- package/dist/tools.d.ts +9 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +24 -2
- package/package.json +3 -3
package/dist/tools.js
CHANGED
|
@@ -435,14 +435,36 @@ export function toolInfoFromToolUse(toolUse, supportsTerminalOutput = false, cwd
|
|
|
435
435
|
],
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
default:
|
|
438
|
+
default: {
|
|
439
|
+
// Upstream #1674: clients show `title`, so an MCP call reads `github: create_issue`
|
|
440
|
+
// rather than `mcp__github__create_issue`; the raw name stays in `_meta.claudeCode.toolName`.
|
|
441
|
+
const mcp = mcpToolName(name);
|
|
439
442
|
return {
|
|
440
|
-
title: name || "Unknown Tool",
|
|
443
|
+
title: mcp ? `${mcp.server}: ${mcp.tool}` : name || "Unknown Tool",
|
|
441
444
|
kind: "other",
|
|
442
445
|
content: [],
|
|
443
446
|
};
|
|
447
|
+
}
|
|
444
448
|
}
|
|
445
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* Splits `mcp__<server>__<tool>` the way Claude Code does (upstream #1674): the server is the
|
|
452
|
+
* segment up to the next `__`, the tool is the whole rest, so a `__` inside the tool survives.
|
|
453
|
+
* An incomplete name is not an MCP name.
|
|
454
|
+
*/
|
|
455
|
+
export function mcpToolName(name) {
|
|
456
|
+
const prefix = "mcp__";
|
|
457
|
+
if (!name.startsWith(prefix))
|
|
458
|
+
return undefined;
|
|
459
|
+
const rest = name.slice(prefix.length);
|
|
460
|
+
const separator = rest.indexOf("__");
|
|
461
|
+
if (separator <= 0)
|
|
462
|
+
return undefined;
|
|
463
|
+
const tool = rest.slice(separator + 2);
|
|
464
|
+
if (!tool)
|
|
465
|
+
return undefined;
|
|
466
|
+
return { server: rest.slice(0, separator), tool };
|
|
467
|
+
}
|
|
446
468
|
/**
|
|
447
469
|
* Narrow the untyped message-level `tool_use_result` toward a per-tool Output
|
|
448
470
|
* shape: rejects everything but a plain non-null object (arrays pass a bare
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.40.1",
|
|
7
7
|
"description": "Claude Code in Zed and other ACP clients with the VS Code extension's UX — multi-select questions, refusal consent, live quota windows, background tasks, Ultracode effort and session notices. Fork of claude-agent-acp.",
|
|
8
8
|
"main": "dist/lib.js",
|
|
9
9
|
"types": "dist/lib.d.ts",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"node": ">=24"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@agentclientprotocol/sdk": "2.
|
|
73
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
72
|
+
"@agentclientprotocol/sdk": "2.12.0",
|
|
73
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.331",
|
|
74
74
|
"zod": "^4.0.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|