@clwnd/opencode 0.15.5 → 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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1210,7 +1210,9 @@ var ClwndModel = class {
1210
1210
  reasoningStarted = false;
1211
1211
  }
1212
1212
  sap.set(raw.toolCallId, "");
1213
- buds.push({ type: "tool-input-start", id: raw.toolCallId, toolName: mapToolName(raw.toolName) });
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 });
1214
1216
  }
1215
1217
  if (ct === "tool_input_delta" && raw.toolCallId && raw.partialJson) {
1216
1218
  const prev = sap.get(raw.toolCallId) ?? "";
@@ -1220,7 +1222,8 @@ var ClwndModel = class {
1220
1222
  if (ct === "tool_call" && raw.toolCallId && raw.toolName) {
1221
1223
  const ocToolName = mapToolName(raw.toolName);
1222
1224
  if (!sap.has(raw.toolCallId)) {
1223
- buds.push({ type: "tool-input-start", id: raw.toolCallId, toolName: ocToolName });
1225
+ const isBrokeredLate = streamBrokered.has(ocToolName);
1226
+ buds.push({ type: "tool-input-start", id: raw.toolCallId, toolName: ocToolName, providerExecuted: !isBrokeredLate });
1224
1227
  }
1225
1228
  const accumulated = sap.get(raw.toolCallId);
1226
1229
  let rawInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clwnd/opencode",
3
- "version": "0.15.5",
3
+ "version": "0.15.6",
4
4
  "description": "clwnd for opencode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",