@ai-sdk/harness-claude-code 1.0.195 → 1.0.197
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 +17 -0
- package/dist/bridge/index.mjs +4 -0
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/bridge/create-emit-stream-event.ts +15 -0
- package/src/claude-code-harness.ts +19 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ai-sdk/harness-claude-code
|
|
2
2
|
|
|
3
|
+
## 1.0.197
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d84bf24: fix(harness-claude-code): stop the recorded bridge before respawning on a failed attach
|
|
8
|
+
- d507814: fix(harness-claude-code): drop a subagent's host tool call record once its result passes
|
|
9
|
+
- Updated dependencies [7fffff9]
|
|
10
|
+
- Updated dependencies [3334b4d]
|
|
11
|
+
- Updated dependencies [d84bf24]
|
|
12
|
+
- @ai-sdk/harness@1.0.193
|
|
13
|
+
|
|
14
|
+
## 1.0.196
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- @ai-sdk/harness@1.0.192
|
|
19
|
+
|
|
3
20
|
## 1.0.195
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/bridge/index.mjs
CHANGED
|
@@ -1007,6 +1007,10 @@ function createEmitStreamEvent({ state, emit, emitWarning, emitTerminalError, on
|
|
|
1007
1007
|
type: "raw",
|
|
1008
1008
|
rawValue: msg
|
|
1009
1009
|
});
|
|
1010
|
+
const content = msg.message?.content;
|
|
1011
|
+
if (type === "user" && Array.isArray(content)) {
|
|
1012
|
+
for (const block of content) if (block.type === "tool_result" && typeof block.tool_use_id === "string") state.mcpHandlerCalls.delete(block.tool_use_id);
|
|
1013
|
+
}
|
|
1010
1014
|
return;
|
|
1011
1015
|
}
|
|
1012
1016
|
if (type === "stream_event") {
|