Provide agentInfo on initialization response (#123)

- **Provide agentInfo on initialization**
- **Prep 0.6.10**
This commit is contained in:
Ben Brandt
2025-10-24 19:02:07 +02:00
committed by GitHub
parent dadc7f9f40
commit 17aad5b7a1
4 changed files with 73 additions and 61 deletions

View File

@@ -55,6 +55,7 @@ import {
} from "./tools.js";
import { ContentBlockParam } from "@anthropic-ai/sdk/resources";
import { BetaContentBlock, BetaRawContentBlockDelta } from "@anthropic-ai/sdk/resources/beta.mjs";
import packageJson from "../package.json" with { type: "json" };
type Session = {
query: Query;
@@ -110,7 +111,6 @@ export class ClaudeAcpAgent implements Agent {
this.clientCapabilities = request.clientCapabilities;
return {
protocolVersion: 1,
// todo!()
agentCapabilities: {
promptCapabilities: {
image: true,
@@ -121,6 +121,11 @@ export class ClaudeAcpAgent implements Agent {
sse: true,
},
},
agentInfo: {
name: packageJson.name,
title: "Claude Code",
version: packageJson.version,
},
authMethods: [
{
description: "Run `claude /login` in the terminal",