@ai-sdk/harness-deepagents 1.0.92 → 1.0.94
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 +26 -0
- package/README.md +4 -4
- package/dist/bridge/index.mjs +359 -160
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/bridge/package.json +6 -6
- package/dist/bridge/pnpm-lock.yaml +68 -68
- package/dist/index.d.ts +6 -1
- package/dist/index.js +26 -28
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/bridge/index.ts +84 -42
- package/src/bridge/package.json +6 -6
- package/src/bridge/persistent-memory-saver.ts +137 -0
- package/src/bridge/pnpm-lock.yaml +68 -68
- package/src/deepagents-bridge-protocol.ts +1 -0
- package/src/deepagents-harness.ts +43 -40
package/dist/bridge/package.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@langchain/anthropic": "^1.
|
|
8
|
-
"@langchain/core": "^1.2.
|
|
9
|
-
"@langchain/langgraph": "^1.4.
|
|
7
|
+
"@langchain/anthropic": "^1.5.8",
|
|
8
|
+
"@langchain/core": "^1.2.9",
|
|
9
|
+
"@langchain/langgraph": "^1.4.12",
|
|
10
10
|
"@langchain/mcp-adapters": "1.1.3",
|
|
11
|
-
"deepagents": "1.
|
|
12
|
-
"langchain": "^1.5.
|
|
13
|
-
"langsmith": "^0.
|
|
11
|
+
"deepagents": "1.13.1",
|
|
12
|
+
"langchain": "^1.5.10",
|
|
13
|
+
"langsmith": "^0.9.0",
|
|
14
14
|
"ws": "8.21.0",
|
|
15
15
|
"zod": "^4.3.6"
|
|
16
16
|
}
|
|
@@ -9,26 +9,26 @@ importers:
|
|
|
9
9
|
.:
|
|
10
10
|
dependencies:
|
|
11
11
|
'@langchain/anthropic':
|
|
12
|
-
specifier: ^1.
|
|
13
|
-
version: 1.5.
|
|
12
|
+
specifier: ^1.5.8
|
|
13
|
+
version: 1.5.8(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))
|
|
14
14
|
'@langchain/core':
|
|
15
|
-
specifier: ^1.2.
|
|
16
|
-
version: 1.2.
|
|
15
|
+
specifier: ^1.2.9
|
|
16
|
+
version: 1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
17
17
|
'@langchain/langgraph':
|
|
18
|
-
specifier: ^1.4.
|
|
19
|
-
version: 1.4.
|
|
18
|
+
specifier: ^1.4.12
|
|
19
|
+
version: 1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3)
|
|
20
20
|
'@langchain/mcp-adapters':
|
|
21
21
|
specifier: 1.1.3
|
|
22
|
-
version: 1.1.3(@cfworker/json-schema@4.1.1)(@langchain/core@1.2.
|
|
22
|
+
version: 1.1.3(@cfworker/json-schema@4.1.1)(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(@langchain/langgraph@1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3))
|
|
23
23
|
deepagents:
|
|
24
|
-
specifier: 1.
|
|
25
|
-
version: 1.
|
|
24
|
+
specifier: 1.13.1
|
|
25
|
+
version: 1.13.1(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(@langchain/langgraph-checkpoint@1.1.5(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)))(@langchain/langgraph-sdk@1.9.31(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)))(@langchain/langgraph@1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3))(langchain@1.5.10(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(langsmith@0.9.0(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))
|
|
26
26
|
langchain:
|
|
27
|
-
specifier: ^1.5.
|
|
28
|
-
version: 1.5.
|
|
27
|
+
specifier: ^1.5.10
|
|
28
|
+
version: 1.5.10(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
29
29
|
langsmith:
|
|
30
|
-
specifier: ^0.
|
|
31
|
-
version: 0.
|
|
30
|
+
specifier: ^0.9.0
|
|
31
|
+
version: 0.9.0(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
32
32
|
ws:
|
|
33
33
|
specifier: 8.21.0
|
|
34
34
|
version: 8.21.0
|
|
@@ -38,8 +38,8 @@ importers:
|
|
|
38
38
|
|
|
39
39
|
packages:
|
|
40
40
|
|
|
41
|
-
'@anthropic-ai/sdk@0.
|
|
42
|
-
resolution: {integrity: sha512-
|
|
41
|
+
'@anthropic-ai/sdk@0.115.0':
|
|
42
|
+
resolution: {integrity: sha512-BJrFIVyjNuU8lfDyIJTvlRYzgQg+zEl78BxE7fq8esULsGz9IRQvGtW5spq3tydmtjQb/GFdooKGdGsetpx+lQ==}
|
|
43
43
|
hasBin: true
|
|
44
44
|
peerDependencies:
|
|
45
45
|
zod: ^3.25.0 || ^4.0.0
|
|
@@ -60,24 +60,24 @@ packages:
|
|
|
60
60
|
peerDependencies:
|
|
61
61
|
hono: ^4
|
|
62
62
|
|
|
63
|
-
'@langchain/anthropic@1.5.
|
|
64
|
-
resolution: {integrity: sha512-
|
|
63
|
+
'@langchain/anthropic@1.5.8':
|
|
64
|
+
resolution: {integrity: sha512-KZWgIf+04M9XZHhgH1rVJkqw/C26DM4a4jKk4Qc4HaSbRawN2Dw5nDffna+IoaU/50ohTdyB3HOz9g8XFQYF2A==}
|
|
65
65
|
engines: {node: '>=20'}
|
|
66
66
|
peerDependencies:
|
|
67
|
-
'@langchain/core': ^1.2.
|
|
67
|
+
'@langchain/core': ^1.2.9
|
|
68
68
|
|
|
69
|
-
'@langchain/core@1.2.
|
|
70
|
-
resolution: {integrity: sha512-
|
|
69
|
+
'@langchain/core@1.2.9':
|
|
70
|
+
resolution: {integrity: sha512-conzSEj9Zu1AyXJLXsSbgrtxtxinmI1yGqQ5CIJZSoV5rvv+yvQE/vgBnoySpBQ/bl3YPgj2FL/gbDjWykLSfg==}
|
|
71
71
|
engines: {node: '>=20'}
|
|
72
72
|
|
|
73
|
-
'@langchain/langgraph-checkpoint@1.1.
|
|
74
|
-
resolution: {integrity: sha512-
|
|
73
|
+
'@langchain/langgraph-checkpoint@1.1.5':
|
|
74
|
+
resolution: {integrity: sha512-BwDwl5VeTOh6CVuiIPgsUgfK51vTJDMSbFcSCUfjJWsl8/DPdK/mbv+ejxJstkSk/BlSPMP4JfXWcN6jD2ea2Q==}
|
|
75
75
|
engines: {node: '>=18'}
|
|
76
76
|
peerDependencies:
|
|
77
77
|
'@langchain/core': ^1.1.48
|
|
78
78
|
|
|
79
|
-
'@langchain/langgraph-sdk@1.9.
|
|
80
|
-
resolution: {integrity: sha512-
|
|
79
|
+
'@langchain/langgraph-sdk@1.9.31':
|
|
80
|
+
resolution: {integrity: sha512-y1sSdq39IPb6mOX43+JiSezVbUdA8EBEJ1gvn91GP0jrLG0EcSApeRDCjRouyDpPXZ51bQXEQhA8CiHM0mzcAw==}
|
|
81
81
|
peerDependencies:
|
|
82
82
|
'@langchain/core': ^1.1.48
|
|
83
83
|
react: ^18 || ^19
|
|
@@ -94,8 +94,8 @@ packages:
|
|
|
94
94
|
vue:
|
|
95
95
|
optional: true
|
|
96
96
|
|
|
97
|
-
'@langchain/langgraph@1.4.
|
|
98
|
-
resolution: {integrity: sha512-
|
|
97
|
+
'@langchain/langgraph@1.4.12':
|
|
98
|
+
resolution: {integrity: sha512-63iH/igH5Fh5fHqmWp09YYWaDKKB9v4RCmYNJBrnQ224rFRbjebgyYW6o5RCczN5FZxIhQj+xT51rrNmG0zi5A==}
|
|
99
99
|
engines: {node: '>=18'}
|
|
100
100
|
peerDependencies:
|
|
101
101
|
'@langchain/core': ^1.1.48
|
|
@@ -217,15 +217,15 @@ packages:
|
|
|
217
217
|
supports-color:
|
|
218
218
|
optional: true
|
|
219
219
|
|
|
220
|
-
deepagents@1.
|
|
221
|
-
resolution: {integrity: sha512-
|
|
220
|
+
deepagents@1.13.1:
|
|
221
|
+
resolution: {integrity: sha512-DB8dkbrd4cqejroU90qAGTtY7ZvIchsMSaOMjE7TWnsi/6IrpBPxg3xN0Vxjuq/x8jkufkIqk3I57RbZmdSJFw==}
|
|
222
222
|
peerDependencies:
|
|
223
|
-
'@langchain/core': ^1.2.
|
|
224
|
-
'@langchain/langgraph': ^1.4.
|
|
225
|
-
'@langchain/langgraph-checkpoint': ^1.1.
|
|
223
|
+
'@langchain/core': ^1.2.9
|
|
224
|
+
'@langchain/langgraph': ^1.4.10
|
|
225
|
+
'@langchain/langgraph-checkpoint': ^1.1.5
|
|
226
226
|
'@langchain/langgraph-sdk': ^1.9.23
|
|
227
|
-
langchain: ^1.5.
|
|
228
|
-
langsmith:
|
|
227
|
+
langchain: ^1.5.10
|
|
228
|
+
langsmith: '>=0.7.1 <0.10.0'
|
|
229
229
|
|
|
230
230
|
depd@2.0.0:
|
|
231
231
|
resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
|
|
@@ -408,14 +408,14 @@ packages:
|
|
|
408
408
|
json-schema-typed@8.0.2:
|
|
409
409
|
resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==}
|
|
410
410
|
|
|
411
|
-
langchain@1.5.
|
|
412
|
-
resolution: {integrity: sha512-
|
|
411
|
+
langchain@1.5.10:
|
|
412
|
+
resolution: {integrity: sha512-JaC12C1qyGn985vvjttr4hr8lfFzWhrXp2M1byZJGmNJ2RiIgqnhiYDuLlG/xHDxhKD3onJ5pCuUif/cbdqPhA==}
|
|
413
413
|
engines: {node: '>=20'}
|
|
414
414
|
peerDependencies:
|
|
415
|
-
'@langchain/core': ^1.2.
|
|
415
|
+
'@langchain/core': ^1.2.9
|
|
416
416
|
|
|
417
|
-
langsmith@0.
|
|
418
|
-
resolution: {integrity: sha512-
|
|
417
|
+
langsmith@0.9.0:
|
|
418
|
+
resolution: {integrity: sha512-tlg/aG7qezAKY6G3fgADSX7PkRj+JKoF3z7QNkCMsAOvwvuzhiwP9Amn1Z+zAIxuKoWuXQdIjtFN0LVmUC1oUQ==}
|
|
419
419
|
peerDependencies:
|
|
420
420
|
'@opentelemetry/api': '*'
|
|
421
421
|
'@opentelemetry/exporter-trace-otlp-proto': '*'
|
|
@@ -679,7 +679,7 @@ packages:
|
|
|
679
679
|
|
|
680
680
|
snapshots:
|
|
681
681
|
|
|
682
|
-
'@anthropic-ai/sdk@0.
|
|
682
|
+
'@anthropic-ai/sdk@0.115.0(zod@4.4.3)':
|
|
683
683
|
dependencies:
|
|
684
684
|
json-schema-to-ts: 3.1.1
|
|
685
685
|
standardwebhooks: 1.0.0
|
|
@@ -694,18 +694,18 @@ snapshots:
|
|
|
694
694
|
dependencies:
|
|
695
695
|
hono: 4.13.1
|
|
696
696
|
|
|
697
|
-
'@langchain/anthropic@1.5.
|
|
697
|
+
'@langchain/anthropic@1.5.8(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))':
|
|
698
698
|
dependencies:
|
|
699
|
-
'@anthropic-ai/sdk': 0.
|
|
700
|
-
'@langchain/core': 1.2.
|
|
699
|
+
'@anthropic-ai/sdk': 0.115.0(zod@4.4.3)
|
|
700
|
+
'@langchain/core': 1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
701
701
|
zod: 4.4.3
|
|
702
702
|
|
|
703
|
-
'@langchain/core@1.2.
|
|
703
|
+
'@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)':
|
|
704
704
|
dependencies:
|
|
705
705
|
'@cfworker/json-schema': 4.1.1
|
|
706
706
|
'@standard-schema/spec': 1.1.0
|
|
707
707
|
js-tiktoken: 1.0.21
|
|
708
|
-
langsmith: 0.
|
|
708
|
+
langsmith: 0.9.0(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
709
709
|
mustache: 4.2.0
|
|
710
710
|
p-queue: 6.6.2
|
|
711
711
|
zod: 4.4.3
|
|
@@ -716,23 +716,23 @@ snapshots:
|
|
|
716
716
|
- openai
|
|
717
717
|
- ws
|
|
718
718
|
|
|
719
|
-
'@langchain/langgraph-checkpoint@1.1.
|
|
719
|
+
'@langchain/langgraph-checkpoint@1.1.5(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))':
|
|
720
720
|
dependencies:
|
|
721
|
-
'@langchain/core': 1.2.
|
|
721
|
+
'@langchain/core': 1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
722
722
|
|
|
723
|
-
'@langchain/langgraph-sdk@1.9.
|
|
723
|
+
'@langchain/langgraph-sdk@1.9.31(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))':
|
|
724
724
|
dependencies:
|
|
725
|
-
'@langchain/core': 1.2.
|
|
725
|
+
'@langchain/core': 1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
726
726
|
'@langchain/protocol': 0.0.18
|
|
727
727
|
'@types/json-schema': 7.0.15
|
|
728
728
|
p-queue: 9.3.1
|
|
729
729
|
p-retry: 7.1.1
|
|
730
730
|
|
|
731
|
-
'@langchain/langgraph@1.4.
|
|
731
|
+
'@langchain/langgraph@1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3)':
|
|
732
732
|
dependencies:
|
|
733
|
-
'@langchain/core': 1.2.
|
|
734
|
-
'@langchain/langgraph-checkpoint': 1.1.
|
|
735
|
-
'@langchain/langgraph-sdk': 1.9.
|
|
733
|
+
'@langchain/core': 1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
734
|
+
'@langchain/langgraph-checkpoint': 1.1.5(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))
|
|
735
|
+
'@langchain/langgraph-sdk': 1.9.31(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))
|
|
736
736
|
'@langchain/protocol': 0.0.18
|
|
737
737
|
'@standard-schema/spec': 1.1.0
|
|
738
738
|
zod: 4.4.3
|
|
@@ -742,10 +742,10 @@ snapshots:
|
|
|
742
742
|
- svelte
|
|
743
743
|
- vue
|
|
744
744
|
|
|
745
|
-
'@langchain/mcp-adapters@1.1.3(@cfworker/json-schema@4.1.1)(@langchain/core@1.2.
|
|
745
|
+
'@langchain/mcp-adapters@1.1.3(@cfworker/json-schema@4.1.1)(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(@langchain/langgraph@1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3))':
|
|
746
746
|
dependencies:
|
|
747
|
-
'@langchain/core': 1.2.
|
|
748
|
-
'@langchain/langgraph': 1.4.
|
|
747
|
+
'@langchain/core': 1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
748
|
+
'@langchain/langgraph': 1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3)
|
|
749
749
|
'@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
|
|
750
750
|
debug: 4.4.3
|
|
751
751
|
zod: 4.4.3
|
|
@@ -872,15 +872,15 @@ snapshots:
|
|
|
872
872
|
dependencies:
|
|
873
873
|
ms: 2.1.3
|
|
874
874
|
|
|
875
|
-
deepagents@1.
|
|
875
|
+
deepagents@1.13.1(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(@langchain/langgraph-checkpoint@1.1.5(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)))(@langchain/langgraph-sdk@1.9.31(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)))(@langchain/langgraph@1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3))(langchain@1.5.10(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(langsmith@0.9.0(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)):
|
|
876
876
|
dependencies:
|
|
877
|
-
'@langchain/core': 1.2.
|
|
878
|
-
'@langchain/langgraph': 1.4.
|
|
879
|
-
'@langchain/langgraph-checkpoint': 1.1.
|
|
880
|
-
'@langchain/langgraph-sdk': 1.9.
|
|
877
|
+
'@langchain/core': 1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
878
|
+
'@langchain/langgraph': 1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3)
|
|
879
|
+
'@langchain/langgraph-checkpoint': 1.1.5(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))
|
|
880
|
+
'@langchain/langgraph-sdk': 1.9.31(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))
|
|
881
881
|
fast-glob: 3.3.3
|
|
882
|
-
langchain: 1.5.
|
|
883
|
-
langsmith: 0.
|
|
882
|
+
langchain: 1.5.10(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
883
|
+
langsmith: 0.9.0(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
884
884
|
micromatch: 4.0.8
|
|
885
885
|
yaml: 2.9.0
|
|
886
886
|
zod: 4.4.3
|
|
@@ -1081,12 +1081,12 @@ snapshots:
|
|
|
1081
1081
|
|
|
1082
1082
|
json-schema-typed@8.0.2: {}
|
|
1083
1083
|
|
|
1084
|
-
langchain@1.5.
|
|
1084
|
+
langchain@1.5.10(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0):
|
|
1085
1085
|
dependencies:
|
|
1086
|
-
'@langchain/core': 1.2.
|
|
1087
|
-
'@langchain/langgraph': 1.4.
|
|
1088
|
-
'@langchain/langgraph-checkpoint': 1.1.
|
|
1089
|
-
langsmith: 0.
|
|
1086
|
+
'@langchain/core': 1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
1087
|
+
'@langchain/langgraph': 1.4.12(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))(zod@4.4.3)
|
|
1088
|
+
'@langchain/langgraph-checkpoint': 1.1.5(@langchain/core@1.2.9(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0))
|
|
1089
|
+
langsmith: 0.9.0(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0)
|
|
1090
1090
|
zod: 4.4.3
|
|
1091
1091
|
transitivePeerDependencies:
|
|
1092
1092
|
- '@opentelemetry/api'
|
|
@@ -1099,7 +1099,7 @@ snapshots:
|
|
|
1099
1099
|
- vue
|
|
1100
1100
|
- ws
|
|
1101
1101
|
|
|
1102
|
-
langsmith@0.
|
|
1102
|
+
langsmith@0.9.0(openai@6.43.0(ws@8.21.0)(zod@4.4.3))(ws@8.21.0):
|
|
1103
1103
|
dependencies:
|
|
1104
1104
|
p-queue: 6.6.2
|
|
1105
1105
|
optionalDependencies:
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,12 @@ type DeepAgentsHarnessSettings = {
|
|
|
22
22
|
* discover, read, or otherwise access in the host process.
|
|
23
23
|
*/
|
|
24
24
|
readonly credentialForwarding?: HarnessV1CredentialForwarding;
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Model id for the DeepAgents runtime, e.g. `claude-sonnet-4` (converted to
|
|
27
|
+
* `provider:model`).
|
|
28
|
+
*
|
|
29
|
+
* @deprecated Use `model` on `HarnessAgent` instead.
|
|
30
|
+
*/
|
|
26
31
|
readonly model?: string;
|
|
27
32
|
/**
|
|
28
33
|
* Controls Anthropic extended thinking for the Deep Agents model. Unset
|
package/dist/index.js
CHANGED
|
@@ -231,6 +231,7 @@ var startMessageSchema = harnessV1BridgeStartBaseSchema.extend({
|
|
|
231
231
|
effort: z.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
|
|
232
232
|
// In-backend skills source dirs ($HOME and <workDir>), passed to createDeepAgent({ skills }).
|
|
233
233
|
skillsPaths: z.array(z.string()).optional(),
|
|
234
|
+
skillsChanged: z.boolean().optional(),
|
|
234
235
|
// Max LangGraph super-steps per turn (streamEvents recursionLimit).
|
|
235
236
|
recursionLimit: z.number().optional()
|
|
236
237
|
});
|
|
@@ -240,7 +241,7 @@ var inboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
240
241
|
]);
|
|
241
242
|
|
|
242
243
|
// src/version.ts
|
|
243
|
-
var VERSION = true ? "1.0.
|
|
244
|
+
var VERSION = true ? "1.0.94" : "0.0.0-test";
|
|
244
245
|
|
|
245
246
|
// src/deepagents-harness.ts
|
|
246
247
|
var DEEPAGENTS_CLIENT_APP = `ai-sdk/harness-deepagents/${VERSION}`;
|
|
@@ -385,6 +386,12 @@ function createDeepAgents(settings = {}) {
|
|
|
385
386
|
DEEPAGENTS_BOOTSTRAP_DIR
|
|
386
387
|
);
|
|
387
388
|
const workDir = startOpts.sessionWorkDir;
|
|
389
|
+
const homeDir = await resolveSandboxHomeDir({
|
|
390
|
+
sandbox: toolSafeSandboxSession,
|
|
391
|
+
abortSignal: startOpts.abortSignal
|
|
392
|
+
});
|
|
393
|
+
const homeSkillsRoot = `${homeDir}${SKILLS_SOURCE_PATH}`;
|
|
394
|
+
const skillsPaths = [`${workDir}${SKILLS_SOURCE_PATH}`, homeSkillsRoot];
|
|
388
395
|
const sessionDataDir = `${defaultWorkingDirectory}/.agent-runs/${startOpts.sessionId}`;
|
|
389
396
|
const bridgeStateDir = `${sessionDataDir}/bridge`;
|
|
390
397
|
const timeoutMs = settings.startupTimeoutMs ?? 12e4;
|
|
@@ -430,7 +437,9 @@ function createDeepAgents(settings = {}) {
|
|
|
430
437
|
sandboxId,
|
|
431
438
|
sandboxCredentialEnvironment,
|
|
432
439
|
isResume: true,
|
|
433
|
-
|
|
440
|
+
sandbox: toolSafeSandboxSession,
|
|
441
|
+
homeSkillsRoot,
|
|
442
|
+
skillsPaths,
|
|
434
443
|
permissionMode,
|
|
435
444
|
builtinToolFiltering: startOpts.builtinToolFiltering,
|
|
436
445
|
recursionLimit: settings.recursionLimit,
|
|
@@ -444,21 +453,6 @@ function createDeepAgents(settings = {}) {
|
|
|
444
453
|
override: settings.port
|
|
445
454
|
});
|
|
446
455
|
const token = settings.mintBridgeToken == null ? randomBytes(32).toString("hex") : settings.mintBridgeToken(sandboxId);
|
|
447
|
-
const skillsPaths = [`${workDir}${SKILLS_SOURCE_PATH}`];
|
|
448
|
-
if ((startOpts.skills?.length ?? 0) > 0) {
|
|
449
|
-
const homeDir = await resolveSandboxHomeDir({
|
|
450
|
-
sandbox: toolSafeSandboxSession,
|
|
451
|
-
abortSignal: startOpts.abortSignal
|
|
452
|
-
});
|
|
453
|
-
const homeSkillsRoot = `${homeDir}${SKILLS_SOURCE_PATH}`;
|
|
454
|
-
await writeSkills({
|
|
455
|
-
sandbox: toolSafeSandboxSession,
|
|
456
|
-
root: homeSkillsRoot,
|
|
457
|
-
skills: startOpts.skills ?? [],
|
|
458
|
-
abortSignal: startOpts.abortSignal
|
|
459
|
-
});
|
|
460
|
-
skillsPaths.push(homeSkillsRoot);
|
|
461
|
-
}
|
|
462
456
|
const forwardedAuthEnvironment = credentialsBrokered ? sandboxAuthEnvironment : await applyCredentialForwarding({
|
|
463
457
|
environment: sandboxAuthEnvironment,
|
|
464
458
|
credentialEnvironmentVariables: DEEPAGENTS_CREDENTIAL_ENVIRONMENT_VARIABLES,
|
|
@@ -481,7 +475,7 @@ function createDeepAgents(settings = {}) {
|
|
|
481
475
|
abortSignal: startOpts.abortSignal
|
|
482
476
|
});
|
|
483
477
|
const proc = await toolSafeSandboxSession.spawn({
|
|
484
|
-
command: `node ${shellQuote(`${bootstrapDir}/bridge.mjs`)} --workdir ${shellQuote(workDir)} --bridge-state-dir ${shellQuote(bridgeStateDir)} --bootstrap-dir ${shellQuote(bootstrapDir)}`,
|
|
478
|
+
command: `node ${shellQuote(`${bootstrapDir}/bridge.mjs`)} --workdir ${shellQuote(workDir)} --bridge-state-dir ${shellQuote(bridgeStateDir)} --bootstrap-dir ${shellQuote(bootstrapDir)}${isResume ? " --resume true" : ""}`,
|
|
485
479
|
env,
|
|
486
480
|
abortSignal: startOpts.abortSignal
|
|
487
481
|
});
|
|
@@ -540,8 +534,8 @@ function createDeepAgents(settings = {}) {
|
|
|
540
534
|
sandboxId,
|
|
541
535
|
sandboxCredentialEnvironment,
|
|
542
536
|
isResume,
|
|
543
|
-
|
|
544
|
-
|
|
537
|
+
sandbox: toolSafeSandboxSession,
|
|
538
|
+
homeSkillsRoot,
|
|
545
539
|
skillsPaths,
|
|
546
540
|
permissionMode,
|
|
547
541
|
builtinToolFiltering: startOpts.builtinToolFiltering,
|
|
@@ -603,7 +597,7 @@ async function writeSkills({
|
|
|
603
597
|
skills,
|
|
604
598
|
abortSignal
|
|
605
599
|
}) {
|
|
606
|
-
|
|
600
|
+
return writeHarnessSkills({
|
|
607
601
|
sandbox,
|
|
608
602
|
rootDir: root,
|
|
609
603
|
skills,
|
|
@@ -654,7 +648,8 @@ function createSession({
|
|
|
654
648
|
sandboxId,
|
|
655
649
|
sandboxCredentialEnvironment,
|
|
656
650
|
isResume,
|
|
657
|
-
|
|
651
|
+
sandbox,
|
|
652
|
+
homeSkillsRoot,
|
|
658
653
|
skillsPaths,
|
|
659
654
|
permissionMode,
|
|
660
655
|
builtinToolFiltering,
|
|
@@ -662,7 +657,6 @@ function createSession({
|
|
|
662
657
|
mcpServers
|
|
663
658
|
}) {
|
|
664
659
|
let stopped = false;
|
|
665
|
-
let instructionsApplied = attached;
|
|
666
660
|
const wireTurn = (turnOpts) => {
|
|
667
661
|
let pendingResolve;
|
|
668
662
|
let pendingReject;
|
|
@@ -777,7 +771,6 @@ function createSession({
|
|
|
777
771
|
return {
|
|
778
772
|
sessionId,
|
|
779
773
|
isResume,
|
|
780
|
-
modelId: model,
|
|
781
774
|
doPromptTurn: async (promptOpts) => {
|
|
782
775
|
if (promptOpts.responseFormat?.type === "json" && promptOpts.responseFormat.schema == null) {
|
|
783
776
|
throw new HarnessCapabilityUnsupportedError({
|
|
@@ -785,26 +778,31 @@ function createSession({
|
|
|
785
778
|
harnessId: "deepagents"
|
|
786
779
|
});
|
|
787
780
|
}
|
|
781
|
+
const skillWriteResult = await writeSkills({
|
|
782
|
+
sandbox,
|
|
783
|
+
root: homeSkillsRoot,
|
|
784
|
+
skills: promptOpts.skills,
|
|
785
|
+
abortSignal: promptOpts.abortSignal
|
|
786
|
+
});
|
|
788
787
|
const control = wireTurn({
|
|
789
788
|
emit: promptOpts.emit,
|
|
790
789
|
abortSignal: promptOpts.abortSignal
|
|
791
790
|
});
|
|
792
|
-
const applyInstructions = !instructionsApplied && !!promptOpts.instructions;
|
|
793
|
-
instructionsApplied = true;
|
|
794
791
|
channel.send({
|
|
795
792
|
type: "start",
|
|
796
793
|
prompt: extractUserText(promptOpts.prompt),
|
|
797
|
-
...
|
|
794
|
+
...promptOpts.instructions ? { instructions: promptOpts.instructions } : {},
|
|
798
795
|
tools: (promptOpts.tools ?? []).map((t) => ({
|
|
799
796
|
name: t.name,
|
|
800
797
|
description: t.description,
|
|
801
798
|
inputSchema: t.inputSchema
|
|
802
799
|
})),
|
|
803
800
|
...promptOpts.responseFormat == null ? {} : { responseFormat: promptOpts.responseFormat },
|
|
804
|
-
...model ? { model } : {},
|
|
801
|
+
...promptOpts.model ?? model ? { model: promptOpts.model ?? model } : {},
|
|
805
802
|
...thinking ? { thinking } : {},
|
|
806
803
|
...effort ? { effort } : {},
|
|
807
804
|
...skillsPaths?.length ? { skillsPaths } : {},
|
|
805
|
+
skillsChanged: skillWriteResult.changed,
|
|
808
806
|
...permissionMode ? { permissionMode } : {},
|
|
809
807
|
...builtinToolFiltering ? { builtinToolFiltering } : {},
|
|
810
808
|
...recursionLimit != null ? { recursionLimit } : {},
|