ai-project-manage-cli 6.0.76 → 6.0.77
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 +24 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3274,10 +3274,6 @@ async function handleInboundMessage(cfg, msg, signal, ctx) {
|
|
|
3274
3274
|
if (!didInit) {
|
|
3275
3275
|
assertApmGitignoredInRepo(workdir);
|
|
3276
3276
|
}
|
|
3277
|
-
await runStep(
|
|
3278
|
-
"status-typing",
|
|
3279
|
-
() => updateMessageStatus(cfg, messageId, "TYPING")
|
|
3280
|
-
);
|
|
3281
3277
|
if (shouldRunBranch(msg.sessionId, workdir)) {
|
|
3282
3278
|
if (signal.aborted) return;
|
|
3283
3279
|
await runStep("branch", () => runBranch(msg.sessionId, { cwd: workdir }));
|
|
@@ -3535,6 +3531,30 @@ async function runConnect(options) {
|
|
|
3535
3531
|
const task = (async () => {
|
|
3536
3532
|
await runSlots.acquire();
|
|
3537
3533
|
try {
|
|
3534
|
+
if (signal.aborted || isUserCancelled(ctx)) return;
|
|
3535
|
+
try {
|
|
3536
|
+
await updateMessageStatus(cfg, msg.messageId, "TYPING");
|
|
3537
|
+
} catch (typingErr) {
|
|
3538
|
+
if (isUserCancelled(ctx)) return;
|
|
3539
|
+
console.error(
|
|
3540
|
+
"[apm] \u66F4\u65B0 TYPING \u72B6\u6001\u5931\u8D25:",
|
|
3541
|
+
typingErr instanceof Error ? typingErr.message : typingErr
|
|
3542
|
+
);
|
|
3543
|
+
try {
|
|
3544
|
+
await setMessageError(
|
|
3545
|
+
cfg,
|
|
3546
|
+
msg.messageId,
|
|
3547
|
+
typingErr instanceof Error ? typingErr.message : String(typingErr)
|
|
3548
|
+
);
|
|
3549
|
+
await updateMessageStatus(cfg, msg.messageId, "FAILED");
|
|
3550
|
+
} catch (statusErr) {
|
|
3551
|
+
console.error(
|
|
3552
|
+
"[apm] \u66F4\u65B0 FAILED \u72B6\u6001\u5931\u8D25:",
|
|
3553
|
+
statusErr instanceof Error ? statusErr.message : statusErr
|
|
3554
|
+
);
|
|
3555
|
+
}
|
|
3556
|
+
return;
|
|
3557
|
+
}
|
|
3538
3558
|
await handleInboundMessage(cfg, msg, signal, ctx);
|
|
3539
3559
|
} finally {
|
|
3540
3560
|
runSlots.release();
|