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.
- package/dist/index.js +16 -14
- 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"
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
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}]`);
|