@staff0rd/assist 0.433.3 → 0.433.5
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 +19 -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.5",
|
|
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,20 @@ function dismissSessionGated(sessions, id, notify2, discard = false) {
|
|
|
25985
25989
|
}
|
|
25986
25990
|
removeCard();
|
|
25987
25991
|
};
|
|
25992
|
+
s.closing = true;
|
|
25993
|
+
daemonLog(
|
|
25994
|
+
`session ${id} closing: ${discard ? "discarding" : "checking durability of"} ${s.worktree.path}`
|
|
25995
|
+
);
|
|
25988
25996
|
if (s.pty) {
|
|
25989
25997
|
s.pendingDismiss = discard ? () => void discardTree() : () => void resolveDoneDurability(s, removeCard, notify2);
|
|
25990
25998
|
daemonLog(
|
|
25991
25999
|
`session ${id} ${discard ? "discard" : "dismiss"} requested: killing process tree first`
|
|
25992
26000
|
);
|
|
25993
26001
|
killPtyTree(s.pty);
|
|
26002
|
+
notify2();
|
|
25994
26003
|
return;
|
|
25995
26004
|
}
|
|
26005
|
+
notify2();
|
|
25996
26006
|
if (discard) void discardTree();
|
|
25997
26007
|
else void resolveDoneDurability(s, removeCard, notify2);
|
|
25998
26008
|
}
|
|
@@ -26404,6 +26414,11 @@ function applyStatusChange(session, status3, exitCode, dismiss, notify2, reuseFo
|
|
|
26404
26414
|
const deps2 = { dismiss, notify: notify2, reuseForRun };
|
|
26405
26415
|
const chainsToNextRun = shouldAutoRun(session, status3).run;
|
|
26406
26416
|
if (status3 === "done" && session.worktree && !chainsToNextRun) {
|
|
26417
|
+
session.closing = true;
|
|
26418
|
+
daemonLog(
|
|
26419
|
+
`session ${session.id} closing: checking durability of ${session.worktree.path} before reap`
|
|
26420
|
+
);
|
|
26421
|
+
notify2();
|
|
26407
26422
|
void resolveDoneDurability(
|
|
26408
26423
|
session,
|
|
26409
26424
|
() => finishStatusChange(session, "done", exitCode, deps2),
|
|
@@ -26641,6 +26656,7 @@ function respawnSession(session, respawn, status3, clients, onStatusChange) {
|
|
|
26641
26656
|
session.gitWatcher = void 0;
|
|
26642
26657
|
session.undurable = void 0;
|
|
26643
26658
|
session.pendingDismiss = void 0;
|
|
26659
|
+
session.closing = void 0;
|
|
26644
26660
|
session.scrollback = "";
|
|
26645
26661
|
session.startedAt = Date.now();
|
|
26646
26662
|
session.runningMs = 0;
|