Skip to content

Commit 17aad5b

Browse files
authored
Provide agentInfo on initialization response (#123)
- **Provide agentInfo on initialization** - **Prep 0.6.10**
1 parent dadc7f9 commit 17aad5b

File tree

4 files changed

+73
-61
lines changed

4 files changed

+73
-61
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.6.10
4+
5+
- Provide `agentInfo` on initialization response.
6+
- Update to @agentclientprotocol/sdk@0.5.1
7+
- Fix crash when receiving a hook_response event
8+
- Fix for invalid locations when read call has no path
9+
310
## 0.6.9
411

512
- Update to @anthropic-ai/claude-agent-sdk@v0.1.26

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bin": {
77
"claude-code-acp": "./dist/index.js"
88
},
9-
"version": "0.6.9",
9+
"version": "0.6.10",
1010
"description": "An ACP-compatible coding agent powered by the Claude Code SDK (TypeScript)",
1111
"main": "dist/index.js",
1212
"type": "module",
@@ -51,7 +51,7 @@
5151
"author": "Zed Industries",
5252
"license": "Apache-2.0",
5353
"dependencies": {
54-
"@agentclientprotocol/sdk": "0.5.0",
54+
"@agentclientprotocol/sdk": "0.5.1",
5555
"@anthropic-ai/claude-agent-sdk": "0.1.26",
5656
"@anthropic-ai/claude-code": "2.0.26",
5757
"@modelcontextprotocol/sdk": "1.20.2",
@@ -61,20 +61,20 @@
6161
"uuid": "13.0.0"
6262
},
6363
"devDependencies": {
64-
"@anthropic-ai/sdk": "^0.67.0",
64+
"@anthropic-ai/sdk": "0.67.0",
6565
"@types/express": "5.0.4",
6666
"@types/minimist": "1.2.5",
6767
"@types/node": "24.9.1",
6868
"@types/uuid": "10.0.0",
6969
"@typescript-eslint/eslint-plugin": "8.46.2",
7070
"@typescript-eslint/parser": "8.46.2",
71-
"@vitest/ui": "4.0.2",
71+
"@vitest/ui": "4.0.3",
7272
"eslint": "9.38.0",
7373
"eslint-config-prettier": "10.1.8",
7474
"globals": "16.4.0",
7575
"prettier": "3.6.2",
7676
"ts-node": "10.9.2",
7777
"typescript": "5.9.3",
78-
"vitest": "4.0.2"
78+
"vitest": "4.0.3"
7979
}
8080
}

src/acp-agent.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import {
5555
} from "./tools.js";
5656
import { ContentBlockParam } from "@anthropic-ai/sdk/resources";
5757
import { BetaContentBlock, BetaRawContentBlockDelta } from "@anthropic-ai/sdk/resources/beta.mjs";
58+
import packageJson from "../package.json" with { type: "json" };
5859

5960
type Session = {
6061
query: Query;
@@ -110,7 +111,6 @@ export class ClaudeAcpAgent implements Agent {
110111
this.clientCapabilities = request.clientCapabilities;
111112
return {
112113
protocolVersion: 1,
113-
// todo!()
114114
agentCapabilities: {
115115
promptCapabilities: {
116116
image: true,
@@ -121,6 +121,11 @@ export class ClaudeAcpAgent implements Agent {
121121
sse: true,
122122
},
123123
},
124+
agentInfo: {
125+
name: packageJson.name,
126+
title: "Claude Code",
127+
version: packageJson.version,
128+
},
124129
authMethods: [
125130
{
126131
description: "Run `claude /login` in the terminal",

0 commit comments

Comments
 (0)