@agentclientprotocol/claude-agent-acp 0.105.1-preview.3 → 0.105.1-preview.4
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/auth-status.d.ts
CHANGED
|
@@ -93,10 +93,10 @@ export type AcpAuthStatus = Pick<AuthStatusResponse, "state" | "accounts">;
|
|
|
93
93
|
* - No identity read yet (`undefined`): `unknown`, no accounts.
|
|
94
94
|
* - `kind: "none"`: `unauthenticated`, no accounts.
|
|
95
95
|
* - Any other kind: `authenticated`, with the identity as the one account,
|
|
96
|
-
* marked `active`.
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
96
|
+
* marked `active`. `detail` is the account's `description`, e.g. label
|
|
97
|
+
* "Anthropic API key" with description "ANTHROPIC_API_KEY".
|
|
98
|
+
* `_meta.claudeCode` carries the `kind` and `plan`, and the `detail` again
|
|
99
|
+
* for clients that read it there.
|
|
100
100
|
*
|
|
101
101
|
* `--hide-claude-auth` does not change the payload: it reports the login the
|
|
102
102
|
* CLI holds, also when the subscription guard refuses to use it.
|
package/dist/auth-status.js
CHANGED
|
@@ -63,10 +63,10 @@ export function authStatusCapability() {
|
|
|
63
63
|
* - No identity read yet (`undefined`): `unknown`, no accounts.
|
|
64
64
|
* - `kind: "none"`: `unauthenticated`, no accounts.
|
|
65
65
|
* - Any other kind: `authenticated`, with the identity as the one account,
|
|
66
|
-
* marked `active`.
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
66
|
+
* marked `active`. `detail` is the account's `description`, e.g. label
|
|
67
|
+
* "Anthropic API key" with description "ANTHROPIC_API_KEY".
|
|
68
|
+
* `_meta.claudeCode` carries the `kind` and `plan`, and the `detail` again
|
|
69
|
+
* for clients that read it there.
|
|
70
70
|
*
|
|
71
71
|
* `--hide-claude-auth` does not change the payload: it reports the login the
|
|
72
72
|
* CLI holds, also when the subscription guard refuses to use it.
|
|
@@ -78,8 +78,9 @@ export function toAcpAuthStatus(status) {
|
|
|
78
78
|
if (status.kind === "none") {
|
|
79
79
|
return { state: "unauthenticated" };
|
|
80
80
|
}
|
|
81
|
-
const
|
|
82
|
-
|
|
81
|
+
const account = { label: status.label, active: true };
|
|
82
|
+
if (status.detail)
|
|
83
|
+
account.description = status.detail;
|
|
83
84
|
if (status.account?.email)
|
|
84
85
|
account.email = status.account.email;
|
|
85
86
|
if (status.account?.organization)
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { type AvailableCommand, type ForkSessionRequest, type NewSessionRequest, type SessionConfigOption, type SetSessionConfigOptionRequest } from "@agentclientprotocol/sdk/unstable";
|
|
7
7
|
import * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
|
|
8
|
+
/**
|
|
9
|
+
* Without `configOptions`: a client sends them only to an agent that
|
|
10
|
+
* advertises `session.options`, which this one does not.
|
|
11
|
+
*/
|
|
8
12
|
export declare function v1NewSessionRequest(params: v2.NewSessionRequest): NewSessionRequest;
|
|
9
13
|
/** The v1 request of a v2 `session/fork`. */
|
|
10
14
|
export declare function v1ForkSessionRequest(params: v2.ForkSessionRequest): ForkSessionRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-requests.d.ts","sourceRoot":"","sources":["../../src/v2/session-requests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAEvB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAGxB,KAAK,6BAA6B,EAEnC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAIxE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,EAAE,CAAC,iBAAiB,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"session-requests.d.ts","sourceRoot":"","sources":["../../src/v2/session-requests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAEvB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAGxB,KAAK,6BAA6B,EAEnC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAIxE;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,EAAE,CAAC,iBAAiB,GAAG,iBAAiB,CASnF;AAED,6CAA6C;AAC7C,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,EAAE,CAAC,kBAAkB,GAAG,kBAAkB,CAOtF;AAaD,uEAAuE;AACvE,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,EAAE,CAAC,6BAA6B,GACvC,6BAA6B,CAgB/B;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAQxF;AAWD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAMvF"}
|
|
@@ -7,8 +7,13 @@ import { RequestError, } from "@agentclientprotocol/sdk/unstable";
|
|
|
7
7
|
import * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
|
|
8
8
|
import { V2_SESSION_CAPABILITIES } from "./initialize.js";
|
|
9
9
|
import { v1ContentBlock } from "./prompt.js";
|
|
10
|
+
/**
|
|
11
|
+
* Without `configOptions`: a client sends them only to an agent that
|
|
12
|
+
* advertises `session.options`, which this one does not.
|
|
13
|
+
*/
|
|
10
14
|
export function v1NewSessionRequest(params) {
|
|
11
|
-
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16
|
+
const { mcpServers, systemPrompt, configOptions, ...request } = params;
|
|
12
17
|
// v1 requires the list; v2 treats an omitted list as an empty one.
|
|
13
18
|
return {
|
|
14
19
|
...request,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.105.1-preview.
|
|
6
|
+
"version": "0.105.1-preview.4",
|
|
7
7
|
"description": "An ACP-compatible coding agent powered by the Claude Agent SDK (TypeScript)",
|
|
8
8
|
"main": "dist/lib.js",
|
|
9
9
|
"types": "dist/lib.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"node": ">=22"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@agentclientprotocol/sdk": "2.
|
|
71
|
+
"@agentclientprotocol/sdk": "2.6.0",
|
|
72
72
|
"@anthropic-ai/claude-agent-sdk": "0.3.322",
|
|
73
73
|
"diff": "9.0.0",
|
|
74
74
|
"zod": "4.6.7"
|