@agentclientprotocol/claude-agent-acp 0.85.2-preview.23 → 0.85.2-preview.24

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.
@@ -6,6 +6,8 @@ import { ClaudeAcpAgent, type Logger } from "../acp-agent.js";
6
6
  * As in `v1AgentApp`, the agent of the connection is created when the
7
7
  * connection opens, before the connection processes any inbound message.
8
8
  * `onAgent` receives it for the owner of the process (shutdown).
9
+ *
10
+ * The provider methods pass through: their types are the same in v1 and v2.
9
11
  */
10
12
  export declare function v2AgentApp(logger: Logger | undefined, onAgent: (agent: ClaudeAcpAgent) => void): v2.AgentApp;
11
13
  //# sourceMappingURL=agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/v2/agent.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAkB,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAiB9E;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,GACvC,EAAE,CAAC,QAAQ,CA6Cb"}
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/v2/agent.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAkB,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAiB9E;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,GACvC,EAAE,CAAC,QAAQ,CAoDb"}
package/dist/v2/agent.js CHANGED
@@ -12,6 +12,8 @@ import { V2Terminals } from "./terminal.js";
12
12
  * As in `v1AgentApp`, the agent of the connection is created when the
13
13
  * connection opens, before the connection processes any inbound message.
14
14
  * `onAgent` receives it for the owner of the process (shutdown).
15
+ *
16
+ * The provider methods pass through: their types are the same in v1 and v2.
15
17
  */
16
18
  export function v2AgentApp(logger, onAgent) {
17
19
  let agent;
@@ -26,6 +28,9 @@ export function v2AgentApp(logger, onAgent) {
26
28
  .onRequest(v2.methods.agent.initialize, async ({ params }) => v2InitializeResponse(await agent.initialize(v1InitializeRequest(params))))
27
29
  .onRequest(v2.methods.agent.auth.login, ({ params }) => agent.authenticate(params))
28
30
  .onRequest(v2.methods.agent.auth.logout, ({ params }) => agent.logout(params))
31
+ .onRequest(v2.methods.agent.providers.list, ({ params }) => agent.unstable_listProviders(params))
32
+ .onRequest(v2.methods.agent.providers.set, ({ params }) => agent.unstable_setProvider(params))
33
+ .onRequest(v2.methods.agent.providers.disable, ({ params }) => agent.unstable_disableProvider(params))
29
34
  .onRequest(v2.methods.agent.session.new, async ({ params }) => v2NewSessionResponse(await agent.newSession(v1NewSessionRequest(params))))
30
35
  .onRequest(v2.methods.agent.session.list, ({ params }) => agent.listSessions(params))
31
36
  .onRequest(v2.methods.agent.session.resume, async ({ params }) => {
@@ -14,8 +14,8 @@ export declare function v1InitializeRequest(request: v2.InitializeRequest): Init
14
14
  /**
15
15
  * The v2 `initialize` response for the v1 response of the agent.
16
16
  *
17
- * It does not advertise what the v2 surface does not serve yet: the unstable
18
- * `providers` methods, and the extensions of {@link UNSERVED_EXTENSION_KEYS}.
17
+ * It does not advertise what the v2 surface does not serve yet: the
18
+ * extensions of {@link UNSERVED_EXTENSION_KEYS}.
19
19
  */
20
20
  export declare function v2InitializeResponse(response: InitializeResponse): v2.InitializeResponse;
21
21
  //# sourceMappingURL=initialize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../src/v2/initialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAE/D,0DAA0D;AAC1D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,GAAG,iBAAiB,CA0BpF;AASD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,EAAE,CAAC,kBAAkB,CAoBxF"}
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../src/v2/initialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAE/D,0DAA0D;AAC1D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,GAAG,iBAAiB,CA0BpF;AASD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,EAAE,CAAC,kBAAkB,CAuBxF"}
@@ -46,8 +46,8 @@ const UNSERVED_EXTENSION_KEYS = ["steering"];
46
46
  /**
47
47
  * The v2 `initialize` response for the v1 response of the agent.
48
48
  *
49
- * It does not advertise what the v2 surface does not serve yet: the unstable
50
- * `providers` methods, and the extensions of {@link UNSERVED_EXTENSION_KEYS}.
49
+ * It does not advertise what the v2 surface does not serve yet: the
50
+ * extensions of {@link UNSERVED_EXTENSION_KEYS}.
51
51
  */
52
52
  export function v2InitializeResponse(response) {
53
53
  if (!response.agentInfo) {
@@ -62,6 +62,9 @@ export function v2InitializeResponse(response) {
62
62
  // methods must serve `auth/logout`.
63
63
  capabilities: {
64
64
  session: V2_SESSION_CAPABILITIES,
65
+ // `providers/list`, `set`, and `disable`, which the agent serves for
66
+ // every client.
67
+ providers: {},
65
68
  ...(meta != null ? { _meta: meta } : {}),
66
69
  },
67
70
  authMethods: (response.authMethods ?? []).map(v2AuthMethod),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.85.2-preview.23",
6
+ "version": "0.85.2-preview.24",
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",