@staff0rd/assist 0.433.3 → 0.433.4
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/commands/sessions/web/bundle.js +263 -263
- package/dist/index.js +13 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.433.
|
|
9
|
+
version: "0.433.4",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -25400,7 +25400,8 @@ function toSessionInfo({
|
|
|
25400
25400
|
usedPct,
|
|
25401
25401
|
design,
|
|
25402
25402
|
pendingPrPreview,
|
|
25403
|
-
undurable
|
|
25403
|
+
undurable,
|
|
25404
|
+
closing
|
|
25404
25405
|
}) {
|
|
25405
25406
|
return {
|
|
25406
25407
|
id,
|
|
@@ -25429,7 +25430,8 @@ function toSessionInfo({
|
|
|
25429
25430
|
usedPct,
|
|
25430
25431
|
design,
|
|
25431
25432
|
pendingPrPreview,
|
|
25432
|
-
undurable
|
|
25433
|
+
undurable,
|
|
25434
|
+
closing
|
|
25433
25435
|
};
|
|
25434
25436
|
}
|
|
25435
25437
|
|
|
@@ -25951,6 +25953,7 @@ async function resolveDoneDurability(session, finalize, notify2) {
|
|
|
25951
25953
|
await reapWorktree(worktree.path);
|
|
25952
25954
|
session.worktree = void 0;
|
|
25953
25955
|
session.undurable = void 0;
|
|
25956
|
+
session.closing = void 0;
|
|
25954
25957
|
session.gitWatcher?.close();
|
|
25955
25958
|
session.gitWatcher = void 0;
|
|
25956
25959
|
finalize();
|
|
@@ -25959,6 +25962,7 @@ function holdStopped(session, reason, finalize, notify2) {
|
|
|
25959
25962
|
if (session.undurable?.reason !== reason)
|
|
25960
25963
|
daemonLog(`session ${session.id} stopped; reap blocked: ${reason}`);
|
|
25961
25964
|
session.undurable = { reason };
|
|
25965
|
+
session.closing = void 0;
|
|
25962
25966
|
setStatus2(session, "stopped");
|
|
25963
25967
|
if (!session.gitWatcher && session.worktree)
|
|
25964
25968
|
session.gitWatcher = watchGitState(session.worktree.path, () => {
|
|
@@ -25985,14 +25989,17 @@ function dismissSessionGated(sessions, id, notify2, discard = false) {
|
|
|
25985
25989
|
}
|
|
25986
25990
|
removeCard();
|
|
25987
25991
|
};
|
|
25992
|
+
s.closing = true;
|
|
25988
25993
|
if (s.pty) {
|
|
25989
25994
|
s.pendingDismiss = discard ? () => void discardTree() : () => void resolveDoneDurability(s, removeCard, notify2);
|
|
25990
25995
|
daemonLog(
|
|
25991
25996
|
`session ${id} ${discard ? "discard" : "dismiss"} requested: killing process tree first`
|
|
25992
25997
|
);
|
|
25993
25998
|
killPtyTree(s.pty);
|
|
25999
|
+
notify2();
|
|
25994
26000
|
return;
|
|
25995
26001
|
}
|
|
26002
|
+
notify2();
|
|
25996
26003
|
if (discard) void discardTree();
|
|
25997
26004
|
else void resolveDoneDurability(s, removeCard, notify2);
|
|
25998
26005
|
}
|
|
@@ -26404,6 +26411,8 @@ function applyStatusChange(session, status3, exitCode, dismiss, notify2, reuseFo
|
|
|
26404
26411
|
const deps2 = { dismiss, notify: notify2, reuseForRun };
|
|
26405
26412
|
const chainsToNextRun = shouldAutoRun(session, status3).run;
|
|
26406
26413
|
if (status3 === "done" && session.worktree && !chainsToNextRun) {
|
|
26414
|
+
session.closing = true;
|
|
26415
|
+
notify2();
|
|
26407
26416
|
void resolveDoneDurability(
|
|
26408
26417
|
session,
|
|
26409
26418
|
() => finishStatusChange(session, "done", exitCode, deps2),
|
|
@@ -26641,6 +26650,7 @@ function respawnSession(session, respawn, status3, clients, onStatusChange) {
|
|
|
26641
26650
|
session.gitWatcher = void 0;
|
|
26642
26651
|
session.undurable = void 0;
|
|
26643
26652
|
session.pendingDismiss = void 0;
|
|
26653
|
+
session.closing = void 0;
|
|
26644
26654
|
session.scrollback = "";
|
|
26645
26655
|
session.startedAt = Date.now();
|
|
26646
26656
|
session.runningMs = 0;
|