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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeper-cli",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "DeeperCode - 一句话生成完整项目的 AI Agentic CLI 工具",
5
5
  "type": "module",
6
6
  "bin": {
@@ -719,7 +719,7 @@ async function runLoop(
719
719
  const results = await Promise.allSettled(safe.map(async tc => { const r = await execTool(tc, tools, opts); doneTools++; return r; }));
720
720
  for (const r of results) {
721
721
  if (r.status === 'fulfilled') { history.push(r.value); ttc++; GS.tc++; }
722
- else { history.push({ role: 'tool', content: `Error: ${String(r.reason)}`, tool_call_id: 'parallel' }); }
722
+ else { history.push({ role: 'tool', content: `Error: ${String(r.reason)}`, tool_call_id: 'parallel', name: 'parallel' }); }
723
723
  }
724
724
  } else if (safe.length === 1) {
725
725
  const r = await execTool(safe[0], tools, opts);
@@ -945,7 +945,11 @@ After writing or editing code files, ALWAYS verify the changes:
945
945
  id: t.id, type: 'function', function: { name: t.name, arguments: JSON.stringify(t.arguments) },
946
946
  }));
947
947
  if (m.tool_call_id) e.tool_call_id = m.tool_call_id;
948
- if (m.name) e.name = m.name;
948
+ if (m.role === 'tool') {
949
+ e.name = m.name || 'tool';
950
+ } else if (m.name) {
951
+ e.name = m.name;
952
+ }
949
953
  r.push(e);
950
954
  }
951
955
  return r;
@@ -202,7 +202,9 @@ export class DeepSeekClient {
202
202
  if (m.tool_call_id) {
203
203
  msg.tool_call_id = m.tool_call_id;
204
204
  }
205
- if (m.name) {
205
+ if (m.role === 'tool') {
206
+ msg.name = m.name || 'tool';
207
+ } else if (m.name) {
206
208
  msg.name = m.name;
207
209
  }
208
210
  const rc = m.reasoning_content || m.thinking;