@antmanler/claude-code-acp 0.12.6 → 0.13.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.js +6 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +2 -2
package/dist/acp-agent.js
CHANGED
|
@@ -452,10 +452,15 @@ export class ClaudeAcpAgent {
|
|
|
452
452
|
// Set our own session id if not resuming an existing session.
|
|
453
453
|
extraArgs["session-id"] = sessionId;
|
|
454
454
|
}
|
|
455
|
+
// Configure thinking tokens from environment variable
|
|
456
|
+
const maxThinkingTokens = process.env.MAX_THINKING_TOKENS
|
|
457
|
+
? parseInt(process.env.MAX_THINKING_TOKENS, 10)
|
|
458
|
+
: undefined;
|
|
455
459
|
const options = {
|
|
456
460
|
systemPrompt,
|
|
457
461
|
settingSources: ["user", "project", "local"],
|
|
458
462
|
stderr: (err) => this.logger.error(err),
|
|
463
|
+
...(maxThinkingTokens !== undefined && { maxThinkingTokens }),
|
|
459
464
|
...userProvidedOptions,
|
|
460
465
|
// Override certain fields that must be controlled by ACP
|
|
461
466
|
cwd: params.cwd,
|
|
@@ -465,7 +470,7 @@ export class ClaudeAcpAgent {
|
|
|
465
470
|
// If we want bypassPermissions to be an option, we have to allow it here.
|
|
466
471
|
// But it doesn't work in root mode, so we only activate it if it will work.
|
|
467
472
|
allowDangerouslySkipPermissions: !IS_ROOT,
|
|
468
|
-
permissionMode,
|
|
473
|
+
// permissionMode,
|
|
469
474
|
canUseTool: this.canUseTool(sessionId),
|
|
470
475
|
// note: although not documented by the types, passing an absolute path
|
|
471
476
|
// here works to find zed's managed node version.
|
package/dist/mcp-server.js
CHANGED
|
@@ -187,7 +187,7 @@ Usage:
|
|
|
187
187
|
readInfo += `Read ${result.linesRead} lines (hit 50KB limit). `;
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
190
|
-
readInfo += `Read lines ${input.offset}
|
|
190
|
+
readInfo += `Read ${result.linesRead} lines starting at line ${input.offset}. `;
|
|
191
191
|
}
|
|
192
192
|
if (result.wasLimited) {
|
|
193
193
|
readInfo += `Continue with offset=${result.linesRead}.`;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.13.1",
|
|
7
7
|
"description": "An ACP-compatible coding agent powered by the Claude Code SDK (TypeScript)",
|
|
8
8
|
"main": "dist/lib.js",
|
|
9
9
|
"bin": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"license": "Apache-2.0",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@agentclientprotocol/sdk": "0.12.0",
|
|
55
|
-
"@anthropic-ai/claude-agent-sdk": "0.
|
|
55
|
+
"@anthropic-ai/claude-agent-sdk": "^0.2.2",
|
|
56
56
|
"@modelcontextprotocol/sdk": "1.25.1",
|
|
57
57
|
"diff": "8.0.2",
|
|
58
58
|
"minimatch": "10.1.1"
|