@ai-sdk/harness-claude-code 1.0.168 → 1.0.169
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 +10 -0
- package/dist/bridge/index.mjs +1 -1
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/bridge/create-emit-stream-event.ts +8 -1
- package/src/claude-code-harness.ts +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @ai-sdk/harness-claude-code
|
|
2
2
|
|
|
3
|
+
## 1.0.169
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 39aae54: fix(harness): ensure harness adapters always resolve the model used
|
|
8
|
+
- a15b2a9: add onDebug setting to observe bridge connection events
|
|
9
|
+
- Updated dependencies [e64ed82]
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.69
|
|
11
|
+
- @ai-sdk/harness@1.0.165
|
|
12
|
+
|
|
3
13
|
## 1.0.168
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/bridge/index.mjs
CHANGED
|
@@ -730,7 +730,7 @@ function createEmitStreamEvent({ state, emit, emitWarning, emitTerminalError, on
|
|
|
730
730
|
let streamStarted = false;
|
|
731
731
|
return (msg) => {
|
|
732
732
|
const type = msg.type;
|
|
733
|
-
if (!streamStarted) {
|
|
733
|
+
if (!streamStarted && type !== "command_lifecycle") {
|
|
734
734
|
const initModel = type === "system" && msg.subtype === "init" && typeof msg.model === "string" ? msg.model : void 0;
|
|
735
735
|
emit({
|
|
736
736
|
type: "stream-start",
|