@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.
- package/CHANGELOG.md +27 -0
- package/README.md +8 -6
- package/dist/bridge/host-tool-mcp.mjs +1 -1
- package/dist/bridge/index.mjs +8 -5
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/bridge/package.json +1 -1
- package/dist/bridge/pnpm-lock.yaml +5 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/acp-tool-call.ts +1 -0
- package/src/v1/bridge/host-tool-correlation.ts +6 -0
- package/src/v1/bridge/package.json +1 -1
- package/src/v1/bridge/pnpm-lock.yaml +5 -5
- package/src/v1/bridge/stream-translator.ts +5 -4
package/dist/bridge/package.json
CHANGED
|
@@ -9,8 +9,8 @@ importers:
|
|
|
9
9
|
.:
|
|
10
10
|
dependencies:
|
|
11
11
|
'@agentclientprotocol/sdk':
|
|
12
|
-
specifier: 1.
|
|
13
|
-
version: 1.
|
|
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.
|
|
27
|
-
resolution: {integrity: sha512
|
|
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.
|
|
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
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/harness-acp",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
30
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
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.
|
|
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",
|
package/src/acp-tool-call.ts
CHANGED
|
@@ -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',
|
|
@@ -9,8 +9,8 @@ importers:
|
|
|
9
9
|
.:
|
|
10
10
|
dependencies:
|
|
11
11
|
'@agentclientprotocol/sdk':
|
|
12
|
-
specifier: 1.
|
|
13
|
-
version: 1.
|
|
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.
|
|
27
|
-
resolution: {integrity: sha512
|
|
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.
|
|
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 =
|
|
791
|
-
value:
|
|
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 } : {}),
|