ai-project-manage-cli 5.0.19 → 5.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 CHANGED
@@ -483,10 +483,9 @@ async function runBranch(sessionId, options = {}) {
483
483
  workdirPath
484
484
  });
485
485
  if (!baseline.repositoryId) {
486
- throw new Error(
487
- `[apm] \u672A\u5728\u5E73\u53F0\u627E\u5230\u4E0E\u5F53\u524D\u76EE\u5F55\u5339\u914D\u7684\u5DE5\u4F5C\u76EE\u5F55\u767B\u8BB0\uFF1A${workdirPath}
488
- \u8BF7\u5148\u5728\u5E73\u53F0\u767B\u8BB0\u8BE5\u8DEF\u5F84\u5BF9\u5E94\u7684\u5DE5\u4F5C\u76EE\u5F55\u4E0E\u4ED3\u5E93\u3002`
489
- );
486
+ const detail = baseline.diagnostic?.message ?? `\u672A\u5728\u5E73\u53F0\u627E\u5230\u4E0E\u5F53\u524D\u76EE\u5F55\u5339\u914D\u7684\u5DE5\u4F5C\u76EE\u5F55\u767B\u8BB0\uFF1A${workdirPath}\uFF08\u89C4\u8303\u5316\uFF1A${baseline.workdirPath}\uFF09
487
+ \u8BF7\u5148\u5728\u5E73\u53F0\u767B\u8BB0\u8BE5\u8DEF\u5F84\u5BF9\u5E94\u7684\u5DE5\u4F5C\u76EE\u5F55\u4E0E\u4ED3\u5E93\u3002`;
488
+ throw new Error(`[apm] ${detail}`);
490
489
  }
491
490
  const baselineBranch = (baseline.defaultBranch ?? "").trim();
492
491
  if (!baselineBranch) {
@@ -1302,9 +1301,6 @@ async function runCursorAgent(cfg, ctx) {
1302
1301
  for await (const event of run.stream()) {
1303
1302
  eventSession.addEvent(event);
1304
1303
  const chunk = assistantStreamChunk(event);
1305
- if (chunk) {
1306
- process.stdout.write(chunk);
1307
- }
1308
1304
  syncRemoteLog.schedule(eventSession);
1309
1305
  }
1310
1306
  await syncRemoteLog.flush(eventSession);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-project-manage-cli",
3
- "version": "5.0.19",
3
+ "version": "5.0.20",
4
4
  "description": "命令行工具:后续用于调用平台后端 API 完成运维与自动化操作",
5
5
  "type": "module",
6
6
  "private": false,
@@ -3,6 +3,7 @@
3
3
  1. 如果回复的内容包含文档地址,不要把前缀也写出来,直接用文档名称即可。例如: 我已经把待处理的内容更新到了 `PRD.md` 中,请查阅。
4
4
  2. 回复的内容并非对你工作的总结,要尽可能简洁,不要长篇大论,如果同步的内容确实较多,你可以先写文档,然后指引用户去阅读你写的文档。
5
5
  3. 只要你有任何进展都想都可以调用下面的命令进行回复,你可以一直补充内容。
6
+ 4. 如果有需要指定相关人,必须在消息内容中@指定出来
6
7
 
7
8
  ## 执行回复的方法
8
9