@staff0rd/assist 0.991.1 → 0.993.0
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
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.993.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -48874,9 +48874,17 @@ function isCloneBoundDraft(session) {
|
|
|
48874
48874
|
return isDraftCommand(session.assistArgs?.[0]);
|
|
48875
48875
|
}
|
|
48876
48876
|
|
|
48877
|
+
// src/commands/sessions/daemon/worktree/otherAgentTreeHolders.ts
|
|
48878
|
+
function otherAgentTreeHolders(sessions, session) {
|
|
48879
|
+
return otherTreeHolders(sessions, session).filter(
|
|
48880
|
+
(s) => s.commandType !== "run"
|
|
48881
|
+
);
|
|
48882
|
+
}
|
|
48883
|
+
|
|
48877
48884
|
// src/commands/sessions/daemon/worktree/closeGateApplies.ts
|
|
48878
48885
|
function closeGateApplies(sessions, session) {
|
|
48879
|
-
if (
|
|
48886
|
+
if (session.commandType === "run") return false;
|
|
48887
|
+
if (otherAgentTreeHolders(sessions, session).length > 0) return false;
|
|
48880
48888
|
if (session.worktree) return true;
|
|
48881
48889
|
if (isCloneBoundDraft(session)) return false;
|
|
48882
48890
|
if (!session.cwd) return false;
|
|
@@ -50778,7 +50786,7 @@ function makeStatusChangeHandler(sessions, deps2) {
|
|
|
50778
50786
|
status2,
|
|
50779
50787
|
exitCode,
|
|
50780
50788
|
deps2,
|
|
50781
|
-
(session) =>
|
|
50789
|
+
(session) => otherAgentTreeHolders(sessions, session).length > 0
|
|
50782
50790
|
);
|
|
50783
50791
|
}
|
|
50784
50792
|
|