@clwnd/opencode 0.15.4 → 0.15.6
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/dist/index.js +8 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -254,8 +254,10 @@ var Drone = class _Drone {
|
|
|
254
254
|
const s = tone.sigil;
|
|
255
255
|
if (s) {
|
|
256
256
|
const state = this.getOrCreate(s);
|
|
257
|
-
if (chi === "pulse" && tone.kind === "roost-died") {
|
|
257
|
+
if (chi === "pulse" && (tone.kind === "roost-died" || tone.kind === "roost-evicted" || tone.kind === "roost-idle")) {
|
|
258
258
|
state.inflightTools = 0;
|
|
259
|
+
state.responseText = "";
|
|
260
|
+
state.suspicious = false;
|
|
259
261
|
}
|
|
260
262
|
this.resetSilence(s);
|
|
261
263
|
}
|
|
@@ -1208,7 +1210,9 @@ var ClwndModel = class {
|
|
|
1208
1210
|
reasoningStarted = false;
|
|
1209
1211
|
}
|
|
1210
1212
|
sap.set(raw.toolCallId, "");
|
|
1211
|
-
|
|
1213
|
+
const ocToolName = mapToolName(raw.toolName);
|
|
1214
|
+
const isBrokered = streamBrokered.has(ocToolName);
|
|
1215
|
+
buds.push({ type: "tool-input-start", id: raw.toolCallId, toolName: ocToolName, providerExecuted: !isBrokered });
|
|
1212
1216
|
}
|
|
1213
1217
|
if (ct === "tool_input_delta" && raw.toolCallId && raw.partialJson) {
|
|
1214
1218
|
const prev = sap.get(raw.toolCallId) ?? "";
|
|
@@ -1218,7 +1222,8 @@ var ClwndModel = class {
|
|
|
1218
1222
|
if (ct === "tool_call" && raw.toolCallId && raw.toolName) {
|
|
1219
1223
|
const ocToolName = mapToolName(raw.toolName);
|
|
1220
1224
|
if (!sap.has(raw.toolCallId)) {
|
|
1221
|
-
|
|
1225
|
+
const isBrokeredLate = streamBrokered.has(ocToolName);
|
|
1226
|
+
buds.push({ type: "tool-input-start", id: raw.toolCallId, toolName: ocToolName, providerExecuted: !isBrokeredLate });
|
|
1222
1227
|
}
|
|
1223
1228
|
const accumulated = sap.get(raw.toolCallId);
|
|
1224
1229
|
let rawInput;
|