@ai-sdk/harness-claude-code 1.0.127 → 1.0.130
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 +10 -7
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @ai-sdk/harness-claude-code
|
|
2
2
|
|
|
3
|
+
## 1.0.130
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- af9597b: Compile packages for ES2022 runtime target
|
|
8
|
+
- Updated dependencies [af9597b]
|
|
9
|
+
- Updated dependencies [31742b9]
|
|
10
|
+
- Updated dependencies [bc49f78]
|
|
11
|
+
- @ai-sdk/harness@1.0.126
|
|
12
|
+
- @ai-sdk/provider-utils@5.0.49
|
|
13
|
+
|
|
14
|
+
## 1.0.129
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [be877ff]
|
|
19
|
+
- @ai-sdk/provider-utils@5.0.48
|
|
20
|
+
- @ai-sdk/harness@1.0.125
|
|
21
|
+
|
|
22
|
+
## 1.0.128
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [40231b6]
|
|
27
|
+
- @ai-sdk/harness@1.0.124
|
|
28
|
+
|
|
3
29
|
## 1.0.127
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ The bridge installs `@anthropic-ai/claude-agent-sdk` and `@anthropic-ai/claude-c
|
|
|
15
15
|
```ts
|
|
16
16
|
import { HarnessAgent } from '@ai-sdk/harness/agent';
|
|
17
17
|
import { createClaudeCode } from '@ai-sdk/harness-claude-code';
|
|
18
|
-
import {
|
|
18
|
+
import { createVercelNetworkSandboxSession } from '@ai-sdk/sandbox-vercel';
|
|
19
19
|
import { tool } from 'ai';
|
|
20
20
|
import { z } from 'zod/v4';
|
|
21
21
|
|
|
@@ -30,10 +30,6 @@ const agent = new HarnessAgent({
|
|
|
30
30
|
],
|
|
31
31
|
}),
|
|
32
32
|
id: 'demo',
|
|
33
|
-
sandbox: createVercelSandbox({
|
|
34
|
-
runtime: 'node24',
|
|
35
|
-
ports: [4000],
|
|
36
|
-
}),
|
|
37
33
|
tools: {
|
|
38
34
|
deploy: tool({
|
|
39
35
|
description: 'Deploy a service.',
|
|
@@ -48,7 +44,12 @@ const agent = new HarnessAgent({
|
|
|
48
44
|
},
|
|
49
45
|
});
|
|
50
46
|
|
|
51
|
-
const
|
|
47
|
+
const sandboxSession = await createVercelNetworkSandboxSession({
|
|
48
|
+
runtime: 'node24',
|
|
49
|
+
ports: [4000],
|
|
50
|
+
template: await agent.getSandboxTemplate(),
|
|
51
|
+
});
|
|
52
|
+
const session = await agent.createSession({ sandboxSession });
|
|
52
53
|
|
|
53
54
|
try {
|
|
54
55
|
const result = await agent.generate({
|
|
@@ -58,10 +59,12 @@ try {
|
|
|
58
59
|
console.log(result.text);
|
|
59
60
|
} finally {
|
|
60
61
|
await session.destroy();
|
|
62
|
+
await sandboxSession.destroy();
|
|
61
63
|
}
|
|
62
64
|
```
|
|
63
65
|
|
|
64
|
-
The adapter
|
|
66
|
+
The adapter needs a sandbox session with an exposed port. The caller owns the
|
|
67
|
+
sandbox lifecycle: ending the harness session does not stop the sandbox.
|
|
65
68
|
|
|
66
69
|
## Runtime configuration
|
|
67
70
|
|
package/dist/index.js
CHANGED
|
@@ -450,7 +450,7 @@ var inboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
450
450
|
]);
|
|
451
451
|
|
|
452
452
|
// src/version.ts
|
|
453
|
-
var VERSION = true ? "1.0.
|
|
453
|
+
var VERSION = true ? "1.0.130" : "0.0.0-test";
|
|
454
454
|
|
|
455
455
|
// src/claude-code-harness.ts
|
|
456
456
|
var CLAUDE_CODE_CLIENT_APP = `ai-sdk/harness-claude-code/${VERSION}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/harness-claude-code",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.130",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ai-sdk/harness": "1.0.
|
|
30
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
29
|
+
"@ai-sdk/harness": "1.0.126",
|
|
30
|
+
"@ai-sdk/provider-utils": "5.0.49",
|
|
31
31
|
"ws": "^8.21.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|