@coder/ai-sdk-sandbox 0.2.0 → 0.3.0
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/README.md +5 -6
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -10,14 +10,13 @@ It implements the `HarnessV1SandboxProvider` contract from `@ai-sdk/harness`, so
|
|
|
10
10
|
you pass it as the `sandbox` to a `HarnessAgent` exactly like
|
|
11
11
|
`@ai-sdk/sandbox-vercel`.
|
|
12
12
|
|
|
13
|
-
> **Status:** experimental.
|
|
14
|
-
> `@
|
|
15
|
-
> `@ai-sdk/harness@1.0.0-canary.11`.
|
|
13
|
+
> **Status:** experimental. This provider tracks the stable AI SDK v7 harness
|
|
14
|
+
> packages (`@ai-sdk/harness@^1.0.23`).
|
|
16
15
|
|
|
17
16
|
## Install
|
|
18
17
|
|
|
19
18
|
```bash
|
|
20
|
-
npm add @coder/ai-sdk-sandbox @ai-sdk/harness
|
|
19
|
+
npm add @coder/ai-sdk-sandbox @ai-sdk/harness @ai-sdk/harness-claude-code @ai-sdk/provider-utils
|
|
21
20
|
```
|
|
22
21
|
|
|
23
22
|
On the host you also need:
|
|
@@ -172,7 +171,7 @@ For an interactive chat in your terminal instead of one-shot `generate()` calls,
|
|
|
172
171
|
wrap the same agent with the AI SDK terminal UI ([`@ai-sdk/tui`](https://ai-sdk.dev/v7/docs/ai-sdk-harnesses/terminal-ui)):
|
|
173
172
|
|
|
174
173
|
```bash
|
|
175
|
-
npm add @ai-sdk/tui
|
|
174
|
+
npm add @ai-sdk/tui
|
|
176
175
|
```
|
|
177
176
|
|
|
178
177
|
The TUI drives a session-less agent, so adapt the `HarnessAgent` (whose
|
|
@@ -337,7 +336,7 @@ and a full Claude Code turn with tool use (`scripts/e2e-claude.ts`).
|
|
|
337
336
|
|
|
338
337
|
```bash
|
|
339
338
|
npm install
|
|
340
|
-
npm run typecheck # tsc against the real
|
|
339
|
+
npm run typecheck # tsc against the real harness types
|
|
341
340
|
npm test # vitest: unit + local integration (fake `coder` + `ssh`)
|
|
342
341
|
npm run build # tsup → dist/ (ESM + d.ts)
|
|
343
342
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coder/ai-sdk-sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Coder workspace sandbox provider for the Vercel AI SDK v7 HarnessAgent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-sdk",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"provenance": true
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@ai-sdk/harness": "1.0.
|
|
45
|
-
"@ai-sdk/harness-claude-code": "1.0.
|
|
46
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
47
|
-
"@ai-sdk/tui": "1.0.
|
|
44
|
+
"@ai-sdk/harness": "^1.0.23",
|
|
45
|
+
"@ai-sdk/harness-claude-code": "^1.0.23",
|
|
46
|
+
"@ai-sdk/provider-utils": "^5.0.7",
|
|
47
|
+
"@ai-sdk/tui": "^1.0.19",
|
|
48
48
|
"@arethetypeswrong/cli": "^0.18.0",
|
|
49
49
|
"@types/node": "^22",
|
|
50
50
|
"@vitest/coverage-v8": "^4.1.9",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"zod": "4.4.3"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@ai-sdk/harness": "^1.0.0
|
|
60
|
-
"@ai-sdk/provider-utils": "^5.0.0
|
|
59
|
+
"@ai-sdk/harness": "^1.0.0",
|
|
60
|
+
"@ai-sdk/provider-utils": "^5.0.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=22"
|