ai-project-manage-cli 3.0.19 → 3.0.20
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 +22 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -324,10 +324,27 @@ var EventSession = class {
|
|
|
324
324
|
ensureDirExists(sessionsDir);
|
|
325
325
|
const sessionFile = resolve2(sessionsDir, `${agentId}.md`);
|
|
326
326
|
this.events.forEach((event) => {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
327
|
+
const type = event.type;
|
|
328
|
+
const content = (function(type2) {
|
|
329
|
+
if (type2 === "assistant" || type2 === "thinking") {
|
|
330
|
+
return `## ${type2}
|
|
331
|
+
|
|
332
|
+
${event.content}
|
|
333
|
+
`;
|
|
334
|
+
}
|
|
335
|
+
if (type2 === "tool_call") {
|
|
336
|
+
return `## \u5DE5\u5177\u8C03\u7528\uFF1A${event.name}(${event.call_id})
|
|
337
|
+
### \u53C2\u6570
|
|
338
|
+
\`\`\`json
|
|
339
|
+
` + JSON.stringify(event.args, null, 2) + "\n```\n### \u7ED3\u679C\n```json\n" + JSON.stringify(event.result, null, 2) + "\n```\n";
|
|
340
|
+
}
|
|
341
|
+
return `## \u672A\u77E5\u4E8B\u4EF6\uFF1A${type2}
|
|
342
|
+
|
|
343
|
+
\`\`\`json
|
|
344
|
+
${JSON.stringify(event, null, 2)}
|
|
345
|
+
\`\`\``;
|
|
346
|
+
})(type);
|
|
347
|
+
appendFileSync(sessionFile, content + "\n");
|
|
331
348
|
});
|
|
332
349
|
}
|
|
333
350
|
};
|
|
@@ -370,7 +387,7 @@ function* walkMarkdownFiles(dir) {
|
|
|
370
387
|
}
|
|
371
388
|
}
|
|
372
389
|
async function deleteAllArtifactsForRequirement(api, requirementId) {
|
|
373
|
-
const pageSize =
|
|
390
|
+
const pageSize = 500;
|
|
374
391
|
let page = 1;
|
|
375
392
|
const rows = [];
|
|
376
393
|
while (true) {
|