@ai-sdk/harness-acp 1.0.61 → 1.0.64

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.
@@ -4,7 +4,7 @@
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@agentclientprotocol/sdk": "1.4.0",
7
+ "@agentclientprotocol/sdk": "1.5.0",
8
8
  "@modelcontextprotocol/sdk": "1.30.0",
9
9
  "ws": "8.21.0",
10
10
  "zod": "4.4.3"
@@ -9,8 +9,8 @@ importers:
9
9
  .:
10
10
  dependencies:
11
11
  '@agentclientprotocol/sdk':
12
- specifier: 1.4.0
13
- version: 1.4.0(zod@4.4.3)
12
+ specifier: 1.5.0
13
+ version: 1.5.0(zod@4.4.3)
14
14
  '@modelcontextprotocol/sdk':
15
15
  specifier: 1.30.0
16
16
  version: 1.30.0(zod@4.4.3)
@@ -23,8 +23,8 @@ importers:
23
23
 
24
24
  packages:
25
25
 
26
- '@agentclientprotocol/sdk@1.4.0':
27
- resolution: {integrity: sha512-/eufudw+aFY1LKLolT6yFE6UMmYRl7fMJ/DEONSIyR6wI3slHWITBsANRGqXEY8FRzqUxwh7QEaGiZHcJPVThg==}
26
+ '@agentclientprotocol/sdk@1.5.0':
27
+ resolution: {integrity: sha512-524jwbB2iYWA+kWWyv9fhKbhU89dH/lu9u5EXwVNmfYzopV8BujCDxByBDZhxRUkB7RWIJzISCnwivdDk+bdVg==}
28
28
  peerDependencies:
29
29
  zod: ^3.25.0 || ^4.0.0
30
30
 
@@ -412,7 +412,7 @@ packages:
412
412
 
413
413
  snapshots:
414
414
 
415
- '@agentclientprotocol/sdk@1.4.0(zod@4.4.3)':
415
+ '@agentclientprotocol/sdk@1.5.0(zod@4.4.3)':
416
416
  dependencies:
417
417
  zod: 4.4.3
418
418
 
package/dist/index.d.ts CHANGED
@@ -90,6 +90,7 @@ type ACPToolCallLocation = {
90
90
  };
91
91
  type ACPToolCall = {
92
92
  toolCallId: string;
93
+ name?: string | null;
93
94
  title: string;
94
95
  kind?: ACPToolKind;
95
96
  status?: ACPToolCallStatus;
package/dist/index.js CHANGED
@@ -2907,7 +2907,7 @@ function deserializeBridgeError({
2907
2907
  }
2908
2908
 
2909
2909
  // src/version.ts
2910
- var VERSION = true ? "1.0.61" : "0.0.0-test";
2910
+ var VERSION = true ? "1.0.64" : "0.0.0-test";
2911
2911
 
2912
2912
  // src/acp-harness.ts
2913
2913
  var ACP_CLIENT_APP = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/harness-acp",
3
- "version": "1.0.61",
3
+ "version": "1.0.64",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -26,15 +26,15 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@ai-sdk/harness": "1.0.123",
30
- "@ai-sdk/provider-utils": "5.0.47",
29
+ "@ai-sdk/harness": "1.0.126",
30
+ "@ai-sdk/provider-utils": "5.0.49",
31
31
  "ws": "^8.21.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "zod": "^3.25.76 || ^4.1.8"
35
35
  },
36
36
  "devDependencies": {
37
- "@agentclientprotocol/sdk": "1.4.0",
37
+ "@agentclientprotocol/sdk": "1.5.0",
38
38
  "@modelcontextprotocol/sdk": "1.30.0",
39
39
  "@types/node": "22.19.19",
40
40
  "@types/ws": "^8.5.13",
@@ -113,6 +113,7 @@ export type ACPToolCallLocation = {
113
113
 
114
114
  export type ACPToolCall = {
115
115
  toolCallId: string;
116
+ name?: string | null;
116
117
  title: string;
117
118
  kind?: ACPToolKind;
118
119
  status?: ACPToolCallStatus;
@@ -284,6 +284,9 @@ function mergeObservedToolCall({
284
284
  }): ACPToolCall {
285
285
  return {
286
286
  toolCallId: update.toolCallId,
287
+ ...((update.name ?? previous?.name) == null
288
+ ? {}
289
+ : { name: update.name ?? previous?.name }),
287
290
  title: update.title ?? previous?.title ?? `Tool ${update.toolCallId}`,
288
291
  ...(update.kind == null ? {} : { kind: update.kind }),
289
292
  ...(update.status == null ? {} : { status: update.status }),
@@ -312,6 +315,9 @@ function hasPortableEvidence({
312
315
  value: evidence,
313
316
  property: 'name',
314
317
  });
318
+ if (programmaticName === invocation.toolName) {
319
+ hasToolName = true;
320
+ }
315
321
  const deferredToolName = getProperty({
316
322
  value: rawInput,
317
323
  property: 'tool_name',
@@ -4,7 +4,7 @@
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@agentclientprotocol/sdk": "1.4.0",
7
+ "@agentclientprotocol/sdk": "1.5.0",
8
8
  "@modelcontextprotocol/sdk": "1.30.0",
9
9
  "ws": "8.21.0",
10
10
  "zod": "4.4.3"
@@ -9,8 +9,8 @@ importers:
9
9
  .:
10
10
  dependencies:
11
11
  '@agentclientprotocol/sdk':
12
- specifier: 1.4.0
13
- version: 1.4.0(zod@4.4.3)
12
+ specifier: 1.5.0
13
+ version: 1.5.0(zod@4.4.3)
14
14
  '@modelcontextprotocol/sdk':
15
15
  specifier: 1.30.0
16
16
  version: 1.30.0(zod@4.4.3)
@@ -23,8 +23,8 @@ importers:
23
23
 
24
24
  packages:
25
25
 
26
- '@agentclientprotocol/sdk@1.4.0':
27
- resolution: {integrity: sha512-/eufudw+aFY1LKLolT6yFE6UMmYRl7fMJ/DEONSIyR6wI3slHWITBsANRGqXEY8FRzqUxwh7QEaGiZHcJPVThg==}
26
+ '@agentclientprotocol/sdk@1.5.0':
27
+ resolution: {integrity: sha512-524jwbB2iYWA+kWWyv9fhKbhU89dH/lu9u5EXwVNmfYzopV8BujCDxByBDZhxRUkB7RWIJzISCnwivdDk+bdVg==}
28
28
  peerDependencies:
29
29
  zod: ^3.25.0 || ^4.0.0
30
30
 
@@ -412,7 +412,7 @@ packages:
412
412
 
413
413
  snapshots:
414
414
 
415
- '@agentclientprotocol/sdk@1.4.0(zod@4.4.3)':
415
+ '@agentclientprotocol/sdk@1.5.0(zod@4.4.3)':
416
416
  dependencies:
417
417
  zod: 4.4.3
418
418
 
@@ -787,14 +787,14 @@ function mergeToolUpdate({
787
787
  state.values[property] = parsed[property];
788
788
  }
789
789
  }
790
- const programmaticName = getStringProperty({
791
- value: rawUpdate,
792
- property: 'name',
793
- });
790
+ const programmaticName =
791
+ getStringProperty({ value: update, property: 'name' }) ??
792
+ getStringProperty({ value: rawUpdate, property: 'name' });
794
793
  if (programmaticName != null) state.values.name = programmaticName;
795
794
  }
796
795
 
797
796
  function createACPToolCall({ state }: { state: ToolState }): ACPToolCall {
797
+ const name = getStringProperty({ value: state.values, property: 'name' });
798
798
  const title = getStringProperty({
799
799
  value: state.values,
800
800
  property: 'title',
@@ -803,6 +803,7 @@ function createACPToolCall({ state }: { state: ToolState }): ACPToolCall {
803
803
  const status = state.values.status;
804
804
  return {
805
805
  toolCallId: state.toolCallId,
806
+ ...(name == null ? {} : { name }),
806
807
  title: title ?? state.toolName ?? `Tool ${state.toolCallId}`,
807
808
  ...(isACPToolKind(kind) ? { kind } : {}),
808
809
  ...(isACPToolCallStatus(status) ? { status } : {}),