deeper-cli 1.2.2 → 1.2.4

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/cli/index.js CHANGED
@@ -3835,7 +3835,9 @@ var init_DeepSeekClient = __esm({
3835
3835
  if (m.tool_call_id) {
3836
3836
  msg.tool_call_id = m.tool_call_id;
3837
3837
  }
3838
- if (m.name) {
3838
+ if (m.role === "tool") {
3839
+ msg.name = m.name || "tool";
3840
+ } else if (m.name) {
3839
3841
  msg.name = m.name;
3840
3842
  }
3841
3843
  const rc = m.reasoning_content || m.thinking;
@@ -12204,7 +12206,7 @@ async function runLoop(opts, history, tools, toolDefs, confirm) {
12204
12206
  ttc++;
12205
12207
  GS.tc++;
12206
12208
  } else {
12207
- history.push({ role: "tool", content: `Error: ${String(r2.reason)}`, tool_call_id: "parallel" });
12209
+ history.push({ role: "tool", content: `Error: ${String(r2.reason)}`, tool_call_id: "parallel", name: "parallel" });
12208
12210
  }
12209
12211
  }
12210
12212
  } else if (safe.length === 1) {
@@ -12441,7 +12443,11 @@ ${globalRules}` });
12441
12443
  function: { name: t.name, arguments: JSON.stringify(t.arguments) }
12442
12444
  }));
12443
12445
  if (m.tool_call_id) e.tool_call_id = m.tool_call_id;
12444
- if (m.name) e.name = m.name;
12446
+ if (m.role === "tool") {
12447
+ e.name = m.name || "tool";
12448
+ } else if (m.name) {
12449
+ e.name = m.name;
12450
+ }
12445
12451
  r2.push(e);
12446
12452
  }
12447
12453
  return r2;