@buildautomaton/cli 0.1.22 → 0.1.23
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/cli.js +19 -2
- package/dist/cli.js.map +2 -2
- package/dist/index.js +19 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23088,7 +23088,7 @@ function installBridgeProcessResilience() {
|
|
|
23088
23088
|
}
|
|
23089
23089
|
|
|
23090
23090
|
// src/cli-version.ts
|
|
23091
|
-
var CLI_VERSION = "0.1.
|
|
23091
|
+
var CLI_VERSION = "0.1.23".length > 0 ? "0.1.23" : "0.0.0-dev";
|
|
23092
23092
|
|
|
23093
23093
|
// ../../node_modules/.pnpm/open@10.2.0/node_modules/open/index.js
|
|
23094
23094
|
import process7 from "node:process";
|
|
@@ -34037,7 +34037,24 @@ async function applyPromptQueueStateFromServer(msg, deps) {
|
|
|
34037
34037
|
if (!file2) continue;
|
|
34038
34038
|
const cancelRow = file2.turns.find((t) => t.serverState === "cancel_requested" && t.lastClientState === "running");
|
|
34039
34039
|
if (cancelRow) {
|
|
34040
|
-
await deps.acpManager.cancelRun(cancelRow.turnId);
|
|
34040
|
+
const localCancelHandled = await deps.acpManager.cancelRun(cancelRow.turnId);
|
|
34041
|
+
if (!localCancelHandled) {
|
|
34042
|
+
deps.log(
|
|
34043
|
+
`[Queue] server cancel_requested for ${cancelRow.turnId.slice(0, 8)}\u2026 but no local agent run is active (e.g. after CLI restart); marking cancelled and notifying bridge.`
|
|
34044
|
+
);
|
|
34045
|
+
finalizePromptTurnOnBridge(deps.getWs, cancelRow.turnId, false, { terminalClientState: "cancelled" });
|
|
34046
|
+
const ws = deps.getWs();
|
|
34047
|
+
if (ws && cancelRow.sessionId) {
|
|
34048
|
+
sendWsMessage(ws, {
|
|
34049
|
+
type: "prompt_result",
|
|
34050
|
+
sessionId: cancelRow.sessionId,
|
|
34051
|
+
runId: cancelRow.turnId,
|
|
34052
|
+
success: false,
|
|
34053
|
+
error: "Stopped by user",
|
|
34054
|
+
stopReason: "cancelled"
|
|
34055
|
+
});
|
|
34056
|
+
}
|
|
34057
|
+
}
|
|
34041
34058
|
}
|
|
34042
34059
|
}
|
|
34043
34060
|
const report = {};
|