ai-project-manage-cli 3.0.12 → 3.0.13

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 +11 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -306,7 +306,6 @@ function runConnect(opts) {
306
306
  });
307
307
  IN_PROGRESS = true;
308
308
  }
309
- data2 = {};
310
309
  if (event.type === "assistant") {
311
310
  const output = event.message.content[0].text;
312
311
  console.log(`[Output]`, output);
@@ -319,6 +318,7 @@ function runConnect(opts) {
319
318
  data2.content = "";
320
319
  }
321
320
  data2.content += output;
321
+ continue;
322
322
  }
323
323
  if (event.type === "thinking") {
324
324
  const thinking = event.text;
@@ -332,6 +332,7 @@ function runConnect(opts) {
332
332
  data2.content = "";
333
333
  }
334
334
  data2.content += thinking;
335
+ continue;
335
336
  }
336
337
  if (event.type === "tool_call" && (event.status === "completed" || event.status === "error")) {
337
338
  console.log(`[ToolCall(${event.call_id}) Result]`);
@@ -347,6 +348,9 @@ function runConnect(opts) {
347
348
  data2.args = event.args;
348
349
  data2.result = event.result;
349
350
  data2.status = event.status;
351
+ events.push(data2);
352
+ data2 = {};
353
+ continue;
350
354
  }
351
355
  if (event.type === "task") {
352
356
  console.log(`[Task:${event.status}]`);
@@ -360,6 +364,9 @@ function runConnect(opts) {
360
364
  data2.type = "task";
361
365
  data2.status = event.status;
362
366
  data2.text = event.text;
367
+ events.push(data2);
368
+ data2 = {};
369
+ continue;
363
370
  }
364
371
  if (event.type === "request") {
365
372
  console.log(JSON.stringify(event, null, 2));
@@ -368,7 +375,10 @@ function runConnect(opts) {
368
375
  data2 = {};
369
376
  }
370
377
  data2 = event;
378
+ continue;
371
379
  }
380
+ console.log("\u672A\u77E5\u4E8B\u4EF6:", JSON.stringify(event, null, 2));
381
+ continue;
372
382
  }
373
383
  if (data2.type) {
374
384
  events.push(data2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-project-manage-cli",
3
- "version": "3.0.12",
3
+ "version": "3.0.13",
4
4
  "description": "命令行工具:后续用于调用平台后端 API 完成运维与自动化操作",
5
5
  "type": "module",
6
6
  "private": false,