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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeper-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "DeeperCode - 一句话生成完整项目的 AI Agentic CLI 工具",
5
5
  "type": "module",
6
6
  "bin": {
@@ -87,7 +87,7 @@ export async function startRepl(opts: ReplOptions): Promise<void> {
87
87
 
88
88
  if (tcs.length > 0) {
89
89
  stag = 0;
90
- lh.push({ role: 'assistant', content: fc || null, reasoning_content: undefined as string | undefined, tool_calls: tcs.map(t => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
90
+ lh.push({ role: 'assistant', content: fc || null, reasoning_content: th || undefined, tool_calls: tcs.map(t => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
91
91
  for (const tc of tcs) {
92
92
  const tool = tools.find(t => t.name === tc.name);
93
93
  if (!tool) { lh.push({ role: 'tool', content: `Error: unknown ${tc.name}`, tool_call_id: tc.id }); continue; }
@@ -435,7 +435,7 @@ async function runLoop(
435
435
  stagnation = 0;
436
436
  Oflush();
437
437
  const compactFc = fc && fc.length > 500 ? fc.replace(/\n/g, ' ').slice(0, 300) + '…' : fc;
438
- history.push({ role: 'assistant', content: compactFc || null, reasoning_content: undefined, tool_calls: tcs.map(t => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
438
+ history.push({ role: 'assistant', content: compactFc || null, reasoning_content: th || undefined, tool_calls: tcs.map(t => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
439
439
  fc = ''; th = '';
440
440
  let doneTools = 0;
441
441