ai-project-manage-cli 3.0.13 → 3.0.14

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 +16 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -334,23 +334,25 @@ function runConnect(opts) {
334
334
  data2.content += thinking;
335
335
  continue;
336
336
  }
337
- if (event.type === "tool_call" && (event.status === "completed" || event.status === "error")) {
338
- console.log(`[ToolCall(${event.call_id}) Result]`);
339
- console.log(JSON.stringify(event.args));
340
- console.log(JSON.stringify(event.result, null, 2));
341
- console.log("---------------\u8C03\u7528\u5B8C\u6210-----------------");
342
- if (data2.type && data2.type !== "tool_call") {
337
+ if (event.type === "tool_call") {
338
+ if (event.status === "completed" || event.status === "error") {
339
+ console.log(`[ToolCall(${event.call_id}) Result]`);
340
+ console.log(JSON.stringify(event.args));
341
+ console.log(JSON.stringify(event.result, null, 2));
342
+ console.log("---------------\u8C03\u7528\u5B8C\u6210-----------------");
343
+ if (data2.type && data2.type !== "tool_call") {
344
+ events.push(data2);
345
+ data2 = {};
346
+ }
347
+ data2.type = "tool_call";
348
+ data2.call_id = event.call_id;
349
+ data2.args = event.args;
350
+ data2.result = event.result;
351
+ data2.status = event.status;
343
352
  events.push(data2);
344
353
  data2 = {};
354
+ continue;
345
355
  }
346
- data2.type = "tool_call";
347
- data2.call_id = event.call_id;
348
- data2.args = event.args;
349
- data2.result = event.result;
350
- data2.status = event.status;
351
- events.push(data2);
352
- data2 = {};
353
- continue;
354
356
  }
355
357
  if (event.type === "task") {
356
358
  console.log(`[Task:${event.status}]`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-project-manage-cli",
3
- "version": "3.0.13",
3
+ "version": "3.0.14",
4
4
  "description": "命令行工具:后续用于调用平台后端 API 完成运维与自动化操作",
5
5
  "type": "module",
6
6
  "private": false,