deeper-cli 1.0.1 → 1.0.2

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
@@ -10794,7 +10794,7 @@ async function startRepl(opts) {
10794
10794
  }
10795
10795
  if (tcs.length > 0) {
10796
10796
  stag = 0;
10797
- lh.push({ role: "assistant", content: fc || null, reasoning_content: void 0, tool_calls: tcs.map((t) => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
10797
+ lh.push({ role: "assistant", content: fc || null, reasoning_content: th || void 0, tool_calls: tcs.map((t) => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
10798
10798
  for (const tc of tcs) {
10799
10799
  const tool = tools.find((t) => t.name === tc.name);
10800
10800
  if (!tool) {
@@ -11261,7 +11261,7 @@ async function runLoop(opts, history, tools, toolDefs, confirm) {
11261
11261
  stagnation = 0;
11262
11262
  Oflush();
11263
11263
  const compactFc = fc && fc.length > 500 ? fc.replace(/\n/g, " ").slice(0, 300) + "\u2026" : fc;
11264
- history.push({ role: "assistant", content: compactFc || null, reasoning_content: void 0, tool_calls: tcs.map((t) => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
11264
+ history.push({ role: "assistant", content: compactFc || null, reasoning_content: th || void 0, tool_calls: tcs.map((t) => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
11265
11265
  fc = "";
11266
11266
  th = "";
11267
11267
  let doneTools = 0;