@ai-sdk/harness-claude-code 1.0.126 → 1.0.127
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 +15 -0
- package/dist/bridge/index.mjs +2 -3
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.js +34 -18
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/bridge/index.ts +1 -1
- package/src/bridge/json-schema-to-zod.ts +1 -1
- package/src/claude-code-bootstrap.ts +7 -9
- package/src/claude-code-harness.ts +42 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ai-sdk/harness-claude-code
|
|
2
2
|
|
|
3
|
+
## 1.0.127
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9c8c0c1: feat (harness): keep harness-generated state out of the sandbox workspace. The framework and every bridge adapter now resolve their generated state — bootstrap recipes and their dependencies (`.harness-bootstrap/…`) and per-session run state (`.agent-runs/…`) — through the new `harnessV1StateDirectory()` helper, which always resolves to a fixed directory (`~/.ai-sdk-harness`) under the sandbox's own HOME, never the sandbox's working directory. This is not configurable: every sandbox provider gets the same layout, so harness infrastructure never lands in a user-owned workspace. This changes the on-disk layout for every provider (a breaking change, acceptable given the experimental nature of this API) — sandboxes bootstrapped under the previous layout re-bootstrap once under the new path.
|
|
8
|
+
- 771e74b: chore: enable dead code lint rules
|
|
9
|
+
- 7115a3f: fix(harness): preserve buffered SandboxChannel event order without blocking selective listeners and forward Claude Code compaction events
|
|
10
|
+
- Updated dependencies [fe07867]
|
|
11
|
+
- Updated dependencies [a4b0940]
|
|
12
|
+
- Updated dependencies [9c8c0c1]
|
|
13
|
+
- Updated dependencies [771e74b]
|
|
14
|
+
- Updated dependencies [7115a3f]
|
|
15
|
+
- @ai-sdk/provider-utils@5.0.47
|
|
16
|
+
- @ai-sdk/harness@1.0.123
|
|
17
|
+
|
|
3
18
|
## 1.0.126
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/bridge/index.mjs
CHANGED
|
@@ -529,7 +529,6 @@ async function runBridge(options) {
|
|
|
529
529
|
const data = await onStop?.() ?? {};
|
|
530
530
|
sendControl(ws, { type: "bridge-stop", data });
|
|
531
531
|
drainThenExit(ws, 1e3, "stop");
|
|
532
|
-
return;
|
|
533
532
|
}
|
|
534
533
|
}
|
|
535
534
|
};
|
|
@@ -1101,7 +1100,7 @@ function toZodObject(schema) {
|
|
|
1101
1100
|
}
|
|
1102
1101
|
function toZodShape(schema) {
|
|
1103
1102
|
if (!schema?.properties) return {};
|
|
1104
|
-
const required = new Set(schema.required
|
|
1103
|
+
const required = new Set(schema.required);
|
|
1105
1104
|
const shape = {};
|
|
1106
1105
|
for (const [key, propSchema] of Object.entries(schema.properties)) {
|
|
1107
1106
|
const propType = toZodType(propSchema);
|
|
@@ -1505,7 +1504,7 @@ async function runTurn(start, turn) {
|
|
|
1505
1504
|
turn.abortSignal.addEventListener("abort", onHostAbort, { once: true });
|
|
1506
1505
|
}
|
|
1507
1506
|
const streamEventState = createClaudeStreamEventState();
|
|
1508
|
-
const mcpServers = { ...start.mcpServers
|
|
1507
|
+
const mcpServers = { ...start.mcpServers };
|
|
1509
1508
|
if (start.tools && start.tools.length > 0) {
|
|
1510
1509
|
const server = new mcpModule.McpServer({
|
|
1511
1510
|
name: "harness-tools",
|