@staff0rd/assist 0.699.3 → 0.700.1
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 +260 -260
- package/dist/index.js +6 -2
- 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.
|
|
9
|
+
version: "0.700.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -39913,6 +39913,7 @@ async function discardTree(session, discarded, notify2) {
|
|
|
39913
39913
|
holdFailedDiscard(session, removal.reason, notify2);
|
|
39914
39914
|
return;
|
|
39915
39915
|
}
|
|
39916
|
+
session.releasedFromClone = session.worktree.clone;
|
|
39916
39917
|
session.worktree = void 0;
|
|
39917
39918
|
}
|
|
39918
39919
|
discarded();
|
|
@@ -39967,7 +39968,8 @@ function resolveClone(cwd) {
|
|
|
39967
39968
|
function orphanedWatcherFor(sessions, dismissed) {
|
|
39968
39969
|
if (dismissed.watcher === true || !dismissed.cwd) return void 0;
|
|
39969
39970
|
if (!liveWatcherFor(sessions)) return void 0;
|
|
39970
|
-
const
|
|
39971
|
+
const known = dismissed.worktree?.clone ?? dismissed.releasedFromClone;
|
|
39972
|
+
const clone = known ? canonicalTreePath(known) : resolveClone(dismissed.cwd);
|
|
39971
39973
|
const watcher = liveWatcherFor(sessions, clone);
|
|
39972
39974
|
if (!watcher) return void 0;
|
|
39973
39975
|
const kept = [...sessions.values()].some(
|
|
@@ -40104,6 +40106,7 @@ async function resolveCloseDurability(session, finalize, notify2) {
|
|
|
40104
40106
|
`session ${session.id} closing: worktree ${tree.path} is gone from disk \u2014 released with nothing to land, not landed work`
|
|
40105
40107
|
);
|
|
40106
40108
|
if (tree.removable) await reapWorktree(tree.path);
|
|
40109
|
+
if (session.worktree) session.releasedFromClone = session.worktree.clone;
|
|
40107
40110
|
session.worktree = void 0;
|
|
40108
40111
|
session.undurable = void 0;
|
|
40109
40112
|
session.closing = void 0;
|
|
@@ -44691,6 +44694,7 @@ function setSessionCwd(sessions, id, cwd) {
|
|
|
44691
44694
|
const from = s.cwd;
|
|
44692
44695
|
s.cwd = cwd;
|
|
44693
44696
|
s.worktree = detectExistingWorktree(cwd);
|
|
44697
|
+
s.releasedFromClone = void 0;
|
|
44694
44698
|
daemonLog(
|
|
44695
44699
|
`session ${id} cwd moved: ${from ?? "(none)"} -> ${cwd}${s.worktree ? ` (bound worktree of ${s.worktree.clone})` : ""}`
|
|
44696
44700
|
);
|