@ai-sdk/harness-deepagents 1.0.91 → 1.0.93
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 +23 -0
- package/README.md +9 -10
- package/dist/bridge/index.mjs +199 -138
- 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 +10 -21
- package/dist/index.js +49 -72
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/bridge/index.ts +35 -14
- package/src/bridge/package.json +6 -6
- package/src/bridge/pnpm-lock.yaml +68 -68
- package/src/deepagents-auth.ts +27 -74
- package/src/deepagents-bridge-protocol.ts +1 -0
- package/src/deepagents-harness.ts +44 -40
- package/src/index.ts +1 -4
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
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
2
2
|
import * as _ai_sdk_harness from '@ai-sdk/harness';
|
|
3
|
-
import { HarnessV1CredentialForwarding, HarnessV1PortEndpoint, HarnessV1, HarnessV1BuiltinTool } from '@ai-sdk/harness';
|
|
3
|
+
import { HarnessV1Authentication, HarnessV1CredentialForwarding, HarnessV1PortEndpoint, HarnessV1, HarnessV1BuiltinTool } from '@ai-sdk/harness';
|
|
4
4
|
|
|
5
|
-
type
|
|
6
|
-
type DeepAgentsAuthenticationMode = DeepAgentsResolvedAuthenticationMode | 'auto';
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Passing an object to auth options is deprecated. Use a `DeepAgentsAuthenticationMode` string value ("auto" | "anthropic" | "ai-gateway") instead, and pass credentials via environment variables.
|
|
9
|
-
*/
|
|
10
|
-
type LegacyDeepAgentsAuthOptions = {
|
|
11
|
-
readonly anthropic?: {
|
|
12
|
-
readonly apiKey?: string;
|
|
13
|
-
readonly authToken?: string;
|
|
14
|
-
readonly baseUrl?: string;
|
|
15
|
-
};
|
|
16
|
-
readonly gateway?: {
|
|
17
|
-
readonly apiKey?: string;
|
|
18
|
-
readonly baseUrl?: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
type DeepAgentsAuthOptions = DeepAgentsAuthenticationMode | LegacyDeepAgentsAuthOptions;
|
|
5
|
+
type DeepAgentsAuthenticationMode = HarnessV1Authentication<'anthropic'>;
|
|
22
6
|
|
|
23
7
|
type DeepAgentsThinkingConfig = {
|
|
24
8
|
readonly type: 'adaptive';
|
|
@@ -31,14 +15,19 @@ type DeepAgentsThinkingConfig = {
|
|
|
31
15
|
readonly type: 'disabled';
|
|
32
16
|
};
|
|
33
17
|
type DeepAgentsHarnessSettings = {
|
|
34
|
-
readonly auth?:
|
|
18
|
+
readonly auth?: DeepAgentsAuthenticationMode;
|
|
35
19
|
/**
|
|
36
20
|
* Customizes each credential value before it is forwarded into a sandbox
|
|
37
21
|
* process. This does not restrict which credentials the harness adapter can
|
|
38
22
|
* discover, read, or otherwise access in the host process.
|
|
39
23
|
*/
|
|
40
24
|
readonly credentialForwarding?: HarnessV1CredentialForwarding;
|
|
41
|
-
/**
|
|
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
|
+
*/
|
|
42
31
|
readonly model?: string;
|
|
43
32
|
/**
|
|
44
33
|
* Controls Anthropic extended thinking for the Deep Agents model. Unset
|
|
@@ -147,4 +136,4 @@ declare const deepAgents: _ai_sdk_harness.HarnessV1<{
|
|
|
147
136
|
}, any, any>;
|
|
148
137
|
}>;
|
|
149
138
|
|
|
150
|
-
export { type
|
|
139
|
+
export { type DeepAgentsAuthenticationMode, type DeepAgentsHarnessSettings, type DeepAgentsThinkingConfig, VERSION, createDeepAgents, deepAgents };
|
package/dist/index.js
CHANGED
|
@@ -98,7 +98,8 @@ async function readBridgeAsset(name) {
|
|
|
98
98
|
// src/deepagents-auth.ts
|
|
99
99
|
import {
|
|
100
100
|
createCredentialRequestTransformation,
|
|
101
|
-
getAiGatewayAuthFromEnv
|
|
101
|
+
getAiGatewayAuthFromEnv,
|
|
102
|
+
isHarnessAuthenticationEnvironment
|
|
102
103
|
} from "@ai-sdk/harness/utils";
|
|
103
104
|
var DEEPAGENTS_CREDENTIAL_ENVIRONMENT_VARIABLES = [
|
|
104
105
|
"AI_GATEWAY_API_KEY",
|
|
@@ -144,75 +145,51 @@ function resolveDeepAgentsEnv({
|
|
|
144
145
|
auth,
|
|
145
146
|
processEnv = process.env
|
|
146
147
|
}) {
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
const suppliedEnvironment = isHarnessAuthenticationEnvironment(auth);
|
|
149
|
+
const authenticationEnvironment = suppliedEnvironment ? auth : processEnv;
|
|
150
|
+
if (auth === "anthropic") {
|
|
151
|
+
return pickAnthropic({ processEnv: authenticationEnvironment });
|
|
150
152
|
}
|
|
151
|
-
const gatewayAuthFromEnv = getAiGatewayAuthFromEnv({
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
if (gatewayAuthFromEnv.apiKey) {
|
|
159
|
-
return pickGateway({ explicit: {}, gatewayAuthFromEnv });
|
|
153
|
+
const gatewayAuthFromEnv = getAiGatewayAuthFromEnv({
|
|
154
|
+
env: authenticationEnvironment
|
|
155
|
+
});
|
|
156
|
+
if (auth === "ai-gateway" || gatewayAuthFromEnv.apiKey) {
|
|
157
|
+
return pickGateway({ gatewayAuthFromEnv });
|
|
160
158
|
}
|
|
161
|
-
return pickAnthropic({ processEnv });
|
|
159
|
+
return pickAnthropic({ processEnv: authenticationEnvironment });
|
|
162
160
|
}
|
|
163
161
|
function resolveDeepAgentsAuthenticationMode({
|
|
164
162
|
auth,
|
|
165
163
|
processEnv = process.env
|
|
166
164
|
}) {
|
|
167
|
-
if (auth
|
|
165
|
+
if (isHarnessAuthenticationEnvironment(auth)) {
|
|
166
|
+
return getAiGatewayAuthFromEnv({ env: auth }).apiKey ? "ai-gateway" : "anthropic";
|
|
167
|
+
}
|
|
168
|
+
if (auth === "anthropic") {
|
|
168
169
|
return "anthropic";
|
|
169
170
|
}
|
|
170
|
-
if (auth === "ai-gateway"
|
|
171
|
+
if (auth === "ai-gateway") {
|
|
171
172
|
return "ai-gateway";
|
|
172
173
|
}
|
|
173
174
|
return getAiGatewayAuthFromEnv({ env: processEnv }).apiKey ? "ai-gateway" : "anthropic";
|
|
174
175
|
}
|
|
175
|
-
function normalizeDeepAgentsAuthToLegacyAuth(auth) {
|
|
176
|
-
if (auth == null || auth === "auto") {
|
|
177
|
-
return void 0;
|
|
178
|
-
}
|
|
179
|
-
if (typeof auth === "string") {
|
|
180
|
-
switch (auth) {
|
|
181
|
-
case "anthropic":
|
|
182
|
-
return { anthropic: {} };
|
|
183
|
-
case "ai-gateway":
|
|
184
|
-
return { gateway: {} };
|
|
185
|
-
default:
|
|
186
|
-
return void 0;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
console.warn(
|
|
190
|
-
'[deepagents] Passing an object to auth options is deprecated. Use a string mode ("auto" | "anthropic" | "ai-gateway") instead, and pass credentials via environment variables.'
|
|
191
|
-
);
|
|
192
|
-
return auth;
|
|
193
|
-
}
|
|
194
176
|
function pickAnthropic({
|
|
195
|
-
explicit,
|
|
196
177
|
processEnv
|
|
197
178
|
}) {
|
|
198
179
|
const env = {};
|
|
199
|
-
const apiKey =
|
|
180
|
+
const apiKey = processEnv.ANTHROPIC_API_KEY;
|
|
200
181
|
if (apiKey) env.ANTHROPIC_API_KEY = apiKey;
|
|
201
|
-
const authToken =
|
|
182
|
+
const authToken = processEnv.ANTHROPIC_AUTH_TOKEN;
|
|
202
183
|
if (authToken) env.ANTHROPIC_AUTH_TOKEN = authToken;
|
|
203
|
-
const baseUrl =
|
|
184
|
+
const baseUrl = processEnv.ANTHROPIC_BASE_URL;
|
|
204
185
|
if (baseUrl) env.ANTHROPIC_BASE_URL = baseUrl;
|
|
205
186
|
return env;
|
|
206
187
|
}
|
|
207
188
|
function pickGateway({
|
|
208
|
-
explicit,
|
|
209
189
|
gatewayAuthFromEnv
|
|
210
190
|
}) {
|
|
211
|
-
const apiKey =
|
|
212
|
-
const baseUrl =
|
|
213
|
-
/\/+$/,
|
|
214
|
-
""
|
|
215
|
-
);
|
|
191
|
+
const apiKey = gatewayAuthFromEnv.apiKey;
|
|
192
|
+
const baseUrl = gatewayAuthFromEnv.baseUrl.replace(/\/+$/, "");
|
|
216
193
|
const env = {};
|
|
217
194
|
if (apiKey) {
|
|
218
195
|
env.AI_GATEWAY_API_KEY = apiKey;
|
|
@@ -254,6 +231,7 @@ var startMessageSchema = harnessV1BridgeStartBaseSchema.extend({
|
|
|
254
231
|
effort: z.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
|
|
255
232
|
// In-backend skills source dirs ($HOME and <workDir>), passed to createDeepAgent({ skills }).
|
|
256
233
|
skillsPaths: z.array(z.string()).optional(),
|
|
234
|
+
skillsChanged: z.boolean().optional(),
|
|
257
235
|
// Max LangGraph super-steps per turn (streamEvents recursionLimit).
|
|
258
236
|
recursionLimit: z.number().optional()
|
|
259
237
|
});
|
|
@@ -263,7 +241,7 @@ var inboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
263
241
|
]);
|
|
264
242
|
|
|
265
243
|
// src/version.ts
|
|
266
|
-
var VERSION = true ? "1.0.
|
|
244
|
+
var VERSION = true ? "1.0.93" : "0.0.0-test";
|
|
267
245
|
|
|
268
246
|
// src/deepagents-harness.ts
|
|
269
247
|
var DEEPAGENTS_CLIENT_APP = `ai-sdk/harness-deepagents/${VERSION}`;
|
|
@@ -346,6 +324,7 @@ function createDeepAgents(settings = {}) {
|
|
|
346
324
|
lifecycleStateSchema: deepAgentsResumeStateSchema,
|
|
347
325
|
getBootstrap: getDeepAgentsBootstrap,
|
|
348
326
|
doStart: async (startOpts) => {
|
|
327
|
+
const model = startOpts.model ?? settings.model;
|
|
349
328
|
const permissionMode = startOpts.permissionMode;
|
|
350
329
|
const sandboxSession = startOpts.sandboxSession;
|
|
351
330
|
const toolSafeSandboxSession = getRestrictedSandboxSession(sandboxSession);
|
|
@@ -408,6 +387,12 @@ function createDeepAgents(settings = {}) {
|
|
|
408
387
|
DEEPAGENTS_BOOTSTRAP_DIR
|
|
409
388
|
);
|
|
410
389
|
const workDir = startOpts.sessionWorkDir;
|
|
390
|
+
const homeDir = await resolveSandboxHomeDir({
|
|
391
|
+
sandbox: toolSafeSandboxSession,
|
|
392
|
+
abortSignal: startOpts.abortSignal
|
|
393
|
+
});
|
|
394
|
+
const homeSkillsRoot = `${homeDir}${SKILLS_SOURCE_PATH}`;
|
|
395
|
+
const skillsPaths = [`${workDir}${SKILLS_SOURCE_PATH}`, homeSkillsRoot];
|
|
411
396
|
const sessionDataDir = `${defaultWorkingDirectory}/.agent-runs/${startOpts.sessionId}`;
|
|
412
397
|
const bridgeStateDir = `${sessionDataDir}/bridge`;
|
|
413
398
|
const timeoutMs = settings.startupTimeoutMs ?? 12e4;
|
|
@@ -445,7 +430,7 @@ function createDeepAgents(settings = {}) {
|
|
|
445
430
|
sessionId: startOpts.sessionId,
|
|
446
431
|
channel: attachChannel,
|
|
447
432
|
proc: void 0,
|
|
448
|
-
model
|
|
433
|
+
model,
|
|
449
434
|
thinking: settings.thinking,
|
|
450
435
|
effort: settings.effort,
|
|
451
436
|
bridgePort: coords.port,
|
|
@@ -453,7 +438,9 @@ function createDeepAgents(settings = {}) {
|
|
|
453
438
|
sandboxId,
|
|
454
439
|
sandboxCredentialEnvironment,
|
|
455
440
|
isResume: true,
|
|
456
|
-
|
|
441
|
+
sandbox: toolSafeSandboxSession,
|
|
442
|
+
homeSkillsRoot,
|
|
443
|
+
skillsPaths,
|
|
457
444
|
permissionMode,
|
|
458
445
|
builtinToolFiltering: startOpts.builtinToolFiltering,
|
|
459
446
|
recursionLimit: settings.recursionLimit,
|
|
@@ -467,21 +454,6 @@ function createDeepAgents(settings = {}) {
|
|
|
467
454
|
override: settings.port
|
|
468
455
|
});
|
|
469
456
|
const token = settings.mintBridgeToken == null ? randomBytes(32).toString("hex") : settings.mintBridgeToken(sandboxId);
|
|
470
|
-
const skillsPaths = [`${workDir}${SKILLS_SOURCE_PATH}`];
|
|
471
|
-
if ((startOpts.skills?.length ?? 0) > 0) {
|
|
472
|
-
const homeDir = await resolveSandboxHomeDir({
|
|
473
|
-
sandbox: toolSafeSandboxSession,
|
|
474
|
-
abortSignal: startOpts.abortSignal
|
|
475
|
-
});
|
|
476
|
-
const homeSkillsRoot = `${homeDir}${SKILLS_SOURCE_PATH}`;
|
|
477
|
-
await writeSkills({
|
|
478
|
-
sandbox: toolSafeSandboxSession,
|
|
479
|
-
root: homeSkillsRoot,
|
|
480
|
-
skills: startOpts.skills ?? [],
|
|
481
|
-
abortSignal: startOpts.abortSignal
|
|
482
|
-
});
|
|
483
|
-
skillsPaths.push(homeSkillsRoot);
|
|
484
|
-
}
|
|
485
457
|
const forwardedAuthEnvironment = credentialsBrokered ? sandboxAuthEnvironment : await applyCredentialForwarding({
|
|
486
458
|
environment: sandboxAuthEnvironment,
|
|
487
459
|
credentialEnvironmentVariables: DEEPAGENTS_CREDENTIAL_ENVIRONMENT_VARIABLES,
|
|
@@ -555,7 +527,7 @@ function createDeepAgents(settings = {}) {
|
|
|
555
527
|
sessionId: startOpts.sessionId,
|
|
556
528
|
channel,
|
|
557
529
|
proc,
|
|
558
|
-
model
|
|
530
|
+
model,
|
|
559
531
|
thinking: settings.thinking,
|
|
560
532
|
effort: settings.effort,
|
|
561
533
|
bridgePort: boundPort,
|
|
@@ -563,8 +535,8 @@ function createDeepAgents(settings = {}) {
|
|
|
563
535
|
sandboxId,
|
|
564
536
|
sandboxCredentialEnvironment,
|
|
565
537
|
isResume,
|
|
566
|
-
|
|
567
|
-
|
|
538
|
+
sandbox: toolSafeSandboxSession,
|
|
539
|
+
homeSkillsRoot,
|
|
568
540
|
skillsPaths,
|
|
569
541
|
permissionMode,
|
|
570
542
|
builtinToolFiltering: startOpts.builtinToolFiltering,
|
|
@@ -626,7 +598,7 @@ async function writeSkills({
|
|
|
626
598
|
skills,
|
|
627
599
|
abortSignal
|
|
628
600
|
}) {
|
|
629
|
-
|
|
601
|
+
return writeHarnessSkills({
|
|
630
602
|
sandbox,
|
|
631
603
|
rootDir: root,
|
|
632
604
|
skills,
|
|
@@ -677,7 +649,8 @@ function createSession({
|
|
|
677
649
|
sandboxId,
|
|
678
650
|
sandboxCredentialEnvironment,
|
|
679
651
|
isResume,
|
|
680
|
-
|
|
652
|
+
sandbox,
|
|
653
|
+
homeSkillsRoot,
|
|
681
654
|
skillsPaths,
|
|
682
655
|
permissionMode,
|
|
683
656
|
builtinToolFiltering,
|
|
@@ -685,7 +658,6 @@ function createSession({
|
|
|
685
658
|
mcpServers
|
|
686
659
|
}) {
|
|
687
660
|
let stopped = false;
|
|
688
|
-
let instructionsApplied = attached;
|
|
689
661
|
const wireTurn = (turnOpts) => {
|
|
690
662
|
let pendingResolve;
|
|
691
663
|
let pendingReject;
|
|
@@ -808,16 +780,20 @@ function createSession({
|
|
|
808
780
|
harnessId: "deepagents"
|
|
809
781
|
});
|
|
810
782
|
}
|
|
783
|
+
const skillWriteResult = await writeSkills({
|
|
784
|
+
sandbox,
|
|
785
|
+
root: homeSkillsRoot,
|
|
786
|
+
skills: promptOpts.skills,
|
|
787
|
+
abortSignal: promptOpts.abortSignal
|
|
788
|
+
});
|
|
811
789
|
const control = wireTurn({
|
|
812
790
|
emit: promptOpts.emit,
|
|
813
791
|
abortSignal: promptOpts.abortSignal
|
|
814
792
|
});
|
|
815
|
-
const applyInstructions = !instructionsApplied && !!promptOpts.instructions;
|
|
816
|
-
instructionsApplied = true;
|
|
817
793
|
channel.send({
|
|
818
794
|
type: "start",
|
|
819
795
|
prompt: extractUserText(promptOpts.prompt),
|
|
820
|
-
...
|
|
796
|
+
...promptOpts.instructions ? { instructions: promptOpts.instructions } : {},
|
|
821
797
|
tools: (promptOpts.tools ?? []).map((t) => ({
|
|
822
798
|
name: t.name,
|
|
823
799
|
description: t.description,
|
|
@@ -828,6 +804,7 @@ function createSession({
|
|
|
828
804
|
...thinking ? { thinking } : {},
|
|
829
805
|
...effort ? { effort } : {},
|
|
830
806
|
...skillsPaths?.length ? { skillsPaths } : {},
|
|
807
|
+
skillsChanged: skillWriteResult.changed,
|
|
831
808
|
...permissionMode ? { permissionMode } : {},
|
|
832
809
|
...builtinToolFiltering ? { builtinToolFiltering } : {},
|
|
833
810
|
...recursionLimit != null ? { recursionLimit } : {},
|