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 +3 -7
- package/package.json +1 -1
- package/template/rules/reply.md +1 -0
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
|
-
|
|
487
|
-
|
|
488
|
-
|
|
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
package/template/rules/reply.md
CHANGED