@ai-sdk/harness-deepagents 0.0.0-cca10482-20260708215408

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,159 @@
1
+ # @ai-sdk/harness-deepagents
2
+
3
+ ## 0.0.0-cca10482-20260708215408
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [90cd96d]
8
+ - @ai-sdk/provider-utils@0.0.0-cca10482-20260708215408
9
+ - @ai-sdk/harness@0.0.0-cca10482-20260708215408
10
+
11
+ ## 1.0.20
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [ac306ed]
16
+ - @ai-sdk/provider-utils@5.0.6
17
+ - @ai-sdk/harness@1.0.21
18
+
19
+ ## 1.0.19
20
+
21
+ ### Patch Changes
22
+
23
+ - b2d0306: feat(harness): send `User-Agent` and `x-client-app` headers in harness adapters
24
+ - Updated dependencies [b7aa06a]
25
+ - @ai-sdk/harness@1.0.20
26
+
27
+ ## 1.0.18
28
+
29
+ ### Patch Changes
30
+
31
+ - @ai-sdk/harness@1.0.19
32
+
33
+ ## 1.0.17
34
+
35
+ ### Patch Changes
36
+
37
+ - @ai-sdk/harness@1.0.18
38
+
39
+ ## 1.0.16
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [5c5c0f5]
44
+ - @ai-sdk/provider-utils@5.0.5
45
+ - @ai-sdk/harness@1.0.17
46
+
47
+ ## 1.0.15
48
+
49
+ ### Patch Changes
50
+
51
+ - @ai-sdk/harness@1.0.16
52
+
53
+ ## 1.0.14
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [c6f5e62]
58
+ - @ai-sdk/provider-utils@5.0.4
59
+ - @ai-sdk/harness@1.0.15
60
+
61
+ ## 1.0.13
62
+
63
+ ### Patch Changes
64
+
65
+ - @ai-sdk/harness@1.0.14
66
+
67
+ ## 1.0.12
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [8c616f0]
72
+ - @ai-sdk/provider-utils@5.0.3
73
+ - @ai-sdk/harness@1.0.13
74
+
75
+ ## 1.0.11
76
+
77
+ ### Patch Changes
78
+
79
+ - 7859cea: feat(harness): add tool filtering via `activeTools` and `inactiveTools`
80
+ - c857346: feat(harness): add utility functions for certain duplicated layers in harnesses
81
+ - Updated dependencies [7859cea]
82
+ - Updated dependencies [c857346]
83
+ - @ai-sdk/harness@1.0.12
84
+
85
+ ## 1.0.10
86
+
87
+ ### Patch Changes
88
+
89
+ - @ai-sdk/harness@1.0.11
90
+
91
+ ## 1.0.9
92
+
93
+ ### Patch Changes
94
+
95
+ - @ai-sdk/harness@1.0.10
96
+ - @ai-sdk/provider-utils@5.0.2
97
+
98
+ ## 1.0.8
99
+
100
+ ### Patch Changes
101
+
102
+ - @ai-sdk/harness@1.0.9
103
+
104
+ ## 1.0.7
105
+
106
+ ### Patch Changes
107
+
108
+ - @ai-sdk/harness@1.0.8
109
+
110
+ ## 1.0.6
111
+
112
+ ### Patch Changes
113
+
114
+ - @ai-sdk/harness@1.0.7
115
+
116
+ ## 1.0.5
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [6a436e3]
121
+ - @ai-sdk/provider-utils@5.0.1
122
+ - @ai-sdk/harness@1.0.6
123
+
124
+ ## 1.0.4
125
+
126
+ ### Patch Changes
127
+
128
+ - @ai-sdk/harness@1.0.5
129
+
130
+ ## 1.0.3
131
+
132
+ ### Patch Changes
133
+
134
+ - c493634: fix(harness): fix harness Zod usage to be v3/v4 compatible
135
+ - Updated dependencies [c493634]
136
+ - @ai-sdk/harness@1.0.4
137
+
138
+ ## 1.0.2
139
+
140
+ ### Patch Changes
141
+
142
+ - Updated dependencies [51d10a0]
143
+ - @ai-sdk/harness@1.0.3
144
+
145
+ ## 1.0.1
146
+
147
+ ### Patch Changes
148
+
149
+ - @ai-sdk/harness@1.0.2
150
+
151
+ ## 1.0.0
152
+
153
+ ### Major Changes
154
+
155
+ - 9a37622: feat(harness-deepagents): add Deep Agents harness adapter
156
+
157
+ ### Patch Changes
158
+
159
+ - @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.