Skip to content

Commit 72a9cde

Browse files
authored
Update to claude-agent-sdk 0.2.7 (#242)
1 parent c9d5d3b commit 72a9cde

File tree

4 files changed

+27
-29
lines changed

4 files changed

+27
-29
lines changed

package-lock.json

Lines changed: 15 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@
5252
"license": "Apache-2.0",
5353
"dependencies": {
5454
"@agentclientprotocol/sdk": "0.13.0",
55-
"@anthropic-ai/claude-agent-sdk": "0.2.6",
55+
"@anthropic-ai/claude-agent-sdk": "0.2.7",
5656
"@modelcontextprotocol/sdk": "1.25.2",
5757
"diff": "8.0.3",
5858
"minimatch": "10.1.1"
5959
},
6060
"devDependencies": {
6161
"@anthropic-ai/sdk": "0.71.2",
62-
"@types/node": "25.0.7",
62+
"@types/node": "25.0.8",
6363
"@typescript-eslint/eslint-plugin": "8.53.0",
6464
"@typescript-eslint/parser": "8.53.0",
6565
"eslint": "9.39.2",
6666
"eslint-config-prettier": "10.1.8",
6767
"globals": "17.0.0",
68-
"prettier": "3.7.4",
68+
"prettier": "3.8.0",
6969
"ts-node": "10.9.2",
7070
"typescript": "5.9.3",
7171
"vitest": "4.0.17"

src/acp-agent.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ export class ClaudeAcpAgent implements Agent {
691691
...(process.env.CLAUDE_CODE_EXECUTABLE && {
692692
pathToClaudeCodeExecutable: process.env.CLAUDE_CODE_EXECUTABLE,
693693
}),
694+
tools: { type: "preset", preset: "claude_code" },
694695
hooks: {
695696
...userProvidedOptions?.hooks,
696697
PreToolUse: [
@@ -871,7 +872,13 @@ async function getAvailableSlashCommands(query: Query): Promise<AvailableCommand
871872

872873
return commands
873874
.map((command) => {
874-
const input = command.argumentHint ? { hint: command.argumentHint } : null;
875+
const input = command.argumentHint
876+
? {
877+
hint: Array.isArray(command.argumentHint)
878+
? command.argumentHint.join(" ")
879+
: command.argumentHint,
880+
}
881+
: null;
875882
let name = command.name;
876883
if (command.name.endsWith(" (MCP)")) {
877884
name = `mcp:${name.replace(" (MCP)", "")}`;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Say hello
3-
argument-hint: name
3+
argument-hint: [name]
44
---
55

66
Respond with "Hello $1" and nothing else.

0 commit comments

Comments
 (0)