@ai-sdk/harness-deepagents 0.0.0-07500555-20260730161446

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 ADDED
@@ -0,0 +1,291 @@
1
+ # @ai-sdk/harness-deepagents
2
+
3
+ ## 0.0.0-07500555-20260730161446
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [5f65e61]
8
+ - @ai-sdk/harness@0.0.0-07500555-20260730161446
9
+ - @ai-sdk/provider-utils@0.0.0-07500555-20260730161446
10
+
11
+ ## 1.0.38
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [86a84c9]
16
+ - @ai-sdk/harness@1.0.39
17
+
18
+ ## 1.0.37
19
+
20
+ ### Patch Changes
21
+
22
+ - f5cdb2d: chore(harness): update primary SDK dependencies
23
+ - Updated dependencies [02ffdcb]
24
+ - Updated dependencies [76cb673]
25
+ - @ai-sdk/provider-utils@5.0.12
26
+ - @ai-sdk/harness@1.0.38
27
+
28
+ ## 1.0.36
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [b460541]
33
+ - Updated dependencies [079591e]
34
+ - @ai-sdk/harness@1.0.37
35
+
36
+ ## 1.0.35
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [cd06458]
41
+ - @ai-sdk/provider-utils@5.0.11
42
+ - @ai-sdk/harness@1.0.36
43
+
44
+ ## 1.0.34
45
+
46
+ ### Patch Changes
47
+
48
+ - @ai-sdk/harness@1.0.35
49
+
50
+ ## 1.0.33
51
+
52
+ ### Patch Changes
53
+
54
+ - @ai-sdk/harness@1.0.34
55
+
56
+ ## 1.0.32
57
+
58
+ ### Patch Changes
59
+
60
+ - @ai-sdk/harness@1.0.33
61
+
62
+ ## 1.0.31
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [31c7be8]
67
+ - @ai-sdk/provider-utils@5.0.10
68
+ - @ai-sdk/harness@1.0.32
69
+
70
+ ## 1.0.30
71
+
72
+ ### Patch Changes
73
+
74
+ - @ai-sdk/harness@1.0.31
75
+
76
+ ## 1.0.29
77
+
78
+ ### Patch Changes
79
+
80
+ - Updated dependencies [4be62c1]
81
+ - Updated dependencies [7805e4a]
82
+ - Updated dependencies [cd12954]
83
+ - @ai-sdk/provider-utils@5.0.9
84
+ - @ai-sdk/harness@1.0.30
85
+
86
+ ## 1.0.28
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [e193290]
91
+ - @ai-sdk/provider-utils@5.0.8
92
+ - @ai-sdk/harness@1.0.29
93
+
94
+ ## 1.0.27
95
+
96
+ ### Patch Changes
97
+
98
+ - @ai-sdk/harness@1.0.28
99
+
100
+ ## 1.0.26
101
+
102
+ ### Patch Changes
103
+
104
+ - @ai-sdk/harness@1.0.27
105
+
106
+ ## 1.0.25
107
+
108
+ ### Patch Changes
109
+
110
+ - @ai-sdk/harness@1.0.26
111
+
112
+ ## 1.0.24
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [44e988a]
117
+ - @ai-sdk/harness@1.0.25
118
+
119
+ ## 1.0.23
120
+
121
+ ### Patch Changes
122
+
123
+ - @ai-sdk/harness@1.0.24
124
+
125
+ ## 1.0.22
126
+
127
+ ### Patch Changes
128
+
129
+ - 39c8276: fix(harness): improve opaque sandbox bridge error handling
130
+ - 91fe6d8: fix(harness): emit `finish-step` stream parts correctly per the underlying model steps
131
+ - Updated dependencies [39c8276]
132
+ - Updated dependencies [91fe6d8]
133
+ - Updated dependencies [0be5014]
134
+ - @ai-sdk/harness@1.0.23
135
+
136
+ ## 1.0.21
137
+
138
+ ### Patch Changes
139
+
140
+ - @ai-sdk/harness@1.0.22
141
+ - @ai-sdk/provider-utils@5.0.7
142
+
143
+ ## 1.0.20
144
+
145
+ ### Patch Changes
146
+
147
+ - Updated dependencies [ac306ed]
148
+ - @ai-sdk/provider-utils@5.0.6
149
+ - @ai-sdk/harness@1.0.21
150
+
151
+ ## 1.0.19
152
+
153
+ ### Patch Changes
154
+
155
+ - b2d0306: feat(harness): send `User-Agent` and `x-client-app` headers in harness adapters
156
+ - Updated dependencies [b7aa06a]
157
+ - @ai-sdk/harness@1.0.20
158
+
159
+ ## 1.0.18
160
+
161
+ ### Patch Changes
162
+
163
+ - @ai-sdk/harness@1.0.19
164
+
165
+ ## 1.0.17
166
+
167
+ ### Patch Changes
168
+
169
+ - @ai-sdk/harness@1.0.18
170
+
171
+ ## 1.0.16
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [5c5c0f5]
176
+ - @ai-sdk/provider-utils@5.0.5
177
+ - @ai-sdk/harness@1.0.17
178
+
179
+ ## 1.0.15
180
+
181
+ ### Patch Changes
182
+
183
+ - @ai-sdk/harness@1.0.16
184
+
185
+ ## 1.0.14
186
+
187
+ ### Patch Changes
188
+
189
+ - Updated dependencies [c6f5e62]
190
+ - @ai-sdk/provider-utils@5.0.4
191
+ - @ai-sdk/harness@1.0.15
192
+
193
+ ## 1.0.13
194
+
195
+ ### Patch Changes
196
+
197
+ - @ai-sdk/harness@1.0.14
198
+
199
+ ## 1.0.12
200
+
201
+ ### Patch Changes
202
+
203
+ - Updated dependencies [8c616f0]
204
+ - @ai-sdk/provider-utils@5.0.3
205
+ - @ai-sdk/harness@1.0.13
206
+
207
+ ## 1.0.11
208
+
209
+ ### Patch Changes
210
+
211
+ - 7859cea: feat(harness): add tool filtering via `activeTools` and `inactiveTools`
212
+ - c857346: feat(harness): add utility functions for certain duplicated layers in harnesses
213
+ - Updated dependencies [7859cea]
214
+ - Updated dependencies [c857346]
215
+ - @ai-sdk/harness@1.0.12
216
+
217
+ ## 1.0.10
218
+
219
+ ### Patch Changes
220
+
221
+ - @ai-sdk/harness@1.0.11
222
+
223
+ ## 1.0.9
224
+
225
+ ### Patch Changes
226
+
227
+ - @ai-sdk/harness@1.0.10
228
+ - @ai-sdk/provider-utils@5.0.2
229
+
230
+ ## 1.0.8
231
+
232
+ ### Patch Changes
233
+
234
+ - @ai-sdk/harness@1.0.9
235
+
236
+ ## 1.0.7
237
+
238
+ ### Patch Changes
239
+
240
+ - @ai-sdk/harness@1.0.8
241
+
242
+ ## 1.0.6
243
+
244
+ ### Patch Changes
245
+
246
+ - @ai-sdk/harness@1.0.7
247
+
248
+ ## 1.0.5
249
+
250
+ ### Patch Changes
251
+
252
+ - Updated dependencies [6a436e3]
253
+ - @ai-sdk/provider-utils@5.0.1
254
+ - @ai-sdk/harness@1.0.6
255
+
256
+ ## 1.0.4
257
+
258
+ ### Patch Changes
259
+
260
+ - @ai-sdk/harness@1.0.5
261
+
262
+ ## 1.0.3
263
+
264
+ ### Patch Changes
265
+
266
+ - c493634: fix(harness): fix harness Zod usage to be v3/v4 compatible
267
+ - Updated dependencies [c493634]
268
+ - @ai-sdk/harness@1.0.4
269
+
270
+ ## 1.0.2
271
+
272
+ ### Patch Changes
273
+
274
+ - Updated dependencies [51d10a0]
275
+ - @ai-sdk/harness@1.0.3
276
+
277
+ ## 1.0.1
278
+
279
+ ### Patch Changes
280
+
281
+ - @ai-sdk/harness@1.0.2
282
+
283
+ ## 1.0.0
284
+
285
+ ### Major Changes
286
+
287
+ - 9a37622: feat(harness-deepagents): add Deep Agents harness adapter
288
+
289
+ ### Patch Changes
290
+
291
+ - @ai-sdk/harness@1.0.1
package/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2023 Vercel, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # @ai-sdk/harness-deepagents
2
+
3
+ A [HarnessV1](../harness) adapter that runs [Deep Agents](https://github.com/langchain-ai/deepagentsjs)
4
+ (LangChain's LangGraph-based agent harness) as a coding-agent runtime inside an
5
+ AI SDK sandbox.
6
+
7
+ This is a **bridge-backed** harness: the Deep Agents runtime runs inside the
8
+ sandbox via a Node bridge (`node bridge.mjs`) built on the shared
9
+ `@ai-sdk/harness/bridge` runtime, while the host adapter drives turns over a
10
+ WebSocket.
11
+
12
+ > **Status: happy-path validated.** The host adapter (`doStart` + session:
13
+ > `doPromptTurn`/`doStop`/`doDestroy`) and the Node bridge (driving the
14
+ > `deepagents` npm package via `createDeepAgent` + `streamEvents`) are validated
15
+ > end-to-end against a live Vercel Sandbox: text generation, streaming,
16
+ > multi-turn memory, and host-executed tools all work. Turn continuation,
17
+ > suspend/detach, cross-process resume, and built-in tool approvals throw
18
+ > `HarnessCapabilityUnsupportedError` and are follow-ups.
19
+
20
+ ## Setup
21
+
22
+ ```bash
23
+ pnpm add @ai-sdk/harness-deepagents @ai-sdk/harness
24
+ ```
25
+
26
+ The harness installs the
27
+ bridge's Node dependencies (the `deepagents` package and LangChain) into its
28
+ bootstrap directory via `pnpm` at startup.
29
+
30
+ ## Usage
31
+
32
+ ```ts
33
+ import { HarnessAgent } from '@ai-sdk/harness/agent';
34
+ import { deepAgents } from '@ai-sdk/harness-deepagents';
35
+
36
+ const agent = new HarnessAgent({
37
+ harness: deepAgents,
38
+ // ...sandbox provider configuration
39
+ });
40
+ ```
41
+
42
+ Configure the model and auth via `createDeepAgents({ model, auth })`.
43
+
44
+ ## Auth
45
+
46
+ Auth is optional and provider-aware: the provider is resolved from the model id
47
+ (`anthropic/…` or `openai/…`, defaulting to Anthropic). With none configured the
48
+ adapter falls back to ambient AI Gateway credentials (`AI_GATEWAY_API_KEY`, then
49
+ `VERCEL_OIDC_TOKEN`), then ambient provider creds (`ANTHROPIC_*` / `OPENAI_*`).
50
+ Pin explicitly with `auth.anthropic`, `auth.openai`, or `auth.gateway`:
51
+
52
+ ```ts
53
+ createDeepAgents({
54
+ model: 'openai/gpt-5',
55
+ auth: { openai: { apiKey: process.env.OPENAI_API_KEY } },
56
+ });
57
+ ```
58
+
59
+ ## Built-in tools
60
+
61
+ | Common name | Native (LangGraph) tool |
62
+ | ----------- | ----------------------- |
63
+ | `read` | `read_file` |
64
+ | `write` | `write_file` |
65
+ | `bash` | `shell` |
66
+ | `grep` | `search` |
67
+
68
+ See the [harness docs](https://ai-sdk.dev/docs) for broader concepts.