@antmanler/claude-code-acp 0.12.6 → 0.13.0

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
@@ -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,
@@ -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}-${result.linesRead}. `;
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.12.6",
6
+ "version": "0.13.0",
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.1.73",
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"