@staff0rd/assist 0.1241.0 → 0.1241.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/.build-files +13 -13
- package/dist/built-version +1 -1
- package/dist/{chunk-LZE53JV7.js → chunk-DP6AGBSB.js} +1 -1
- package/dist/{chunk-MTWHILYS.js → chunk-E2G3JR43.js} +1 -1
- package/dist/{chunk-3FBMYVPW.js → chunk-EAI7EAGC.js} +2 -2
- package/dist/{chunk-IVXP2AMA.js → chunk-FPSNZAAR.js} +1 -1
- package/dist/{chunk-SIY2WD6I.js → chunk-HJTLBBAP.js} +1 -1
- package/dist/{chunk-MMS6NMKX.js → chunk-N42SJQOG.js} +1 -1
- package/dist/commands/sessions/web/bundle.js +429 -429
- package/dist/{doctorNodes-ESA4UNRS.js → doctorNodes-PLXJIJY4.js} +3 -3
- package/dist/index.js +11 -11
- package/dist/{restartNode-WX7OYKOY.js → restartNode-WEAVO2FU.js} +5 -5
- package/dist/{runDaemon-5BPXFJIP.js → runDaemon-GEPGDXTP.js} +20 -3
- package/dist/{signExtension-5VBUUNDF.js → signExtension-ZP5LPODK.js} +1 -1
- package/dist/{updateNode-THRRCE7X.js → updateNode-C56F56XU.js} +5 -5
- package/dist/{web-SKIRY2EQ.js → web-CS2ER6J7.js} +5 -5
- package/dist/{web-DPFXDWYT.js → web-PZVU5GBX.js} +5 -5
- package/package.json +1 -1
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
buildDoctorProbes,
|
|
11
11
|
diagnoseLink
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HJTLBBAP.js";
|
|
13
13
|
import "./chunk-VABNWHSE.js";
|
|
14
14
|
import "./chunk-DS2YJZZY.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-N42SJQOG.js";
|
|
16
16
|
import {
|
|
17
17
|
loadLinkSpecs
|
|
18
18
|
} from "./chunk-YY2B3ZT3.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
detectPlatform
|
|
31
31
|
} from "./chunk-E36L7ASL.js";
|
|
32
32
|
import "./chunk-GIHVMELY.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-FPSNZAAR.js";
|
|
34
34
|
import "./chunk-GBMYT6JV.js";
|
|
35
35
|
import "./chunk-TUEQ33EQ.js";
|
|
36
36
|
import "./chunk-J4HXR25Q.js";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-TJGF3Z72.js";
|
|
18
18
|
import {
|
|
19
19
|
package_default
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FPSNZAAR.js";
|
|
21
21
|
import {
|
|
22
22
|
adviceConfigHelp,
|
|
23
23
|
askQuestionConfigHelp,
|
|
@@ -93,7 +93,7 @@ import { Command } from "commander";
|
|
|
93
93
|
// src/commands/registerRootAction.ts
|
|
94
94
|
function registerRootAction(program) {
|
|
95
95
|
program.option("--no-open", "Do not open a browser on startup").action(
|
|
96
|
-
async (options) => (await import("./web-
|
|
96
|
+
async (options) => (await import("./web-CS2ER6J7.js")).web({
|
|
97
97
|
port: "3100",
|
|
98
98
|
open: options.open
|
|
99
99
|
})
|
|
@@ -646,7 +646,7 @@ function registerShowCommands(cmd) {
|
|
|
646
646
|
|
|
647
647
|
// src/commands/registerBacklog.ts
|
|
648
648
|
function registerWebCommand(cmd) {
|
|
649
|
-
cmd.command("web").description("Open the backlog tab in the web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(lazyAction(() => import("./web-
|
|
649
|
+
cmd.command("web").description("Open the backlog tab in the web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(lazyAction(() => import("./web-PZVU5GBX.js"), "web"));
|
|
650
650
|
}
|
|
651
651
|
var registrars = [
|
|
652
652
|
registerItemCommands,
|
|
@@ -676,7 +676,7 @@ function registerBacklog(program) {
|
|
|
676
676
|
const { setBacklogDir } = await import("./getBacklogDir-CHFGM2CA.js");
|
|
677
677
|
setBacklogDir(thisCommand.opts().dir);
|
|
678
678
|
}).action(
|
|
679
|
-
async (options) => (await import("./web-
|
|
679
|
+
async (options) => (await import("./web-PZVU5GBX.js")).web({ port: "3100", open: options.open })
|
|
680
680
|
);
|
|
681
681
|
for (const register of registrars) {
|
|
682
682
|
register(cmd);
|
|
@@ -989,7 +989,7 @@ function registerExtension(program) {
|
|
|
989
989
|
).action(async (options) => {
|
|
990
990
|
const { extension } = await import("./extension-YYRD5EM6.js");
|
|
991
991
|
const { printExtensionUrl } = await import("./printExtensionUrl-IW2WTSNS.js");
|
|
992
|
-
const { signExtension } = await import("./signExtension-
|
|
992
|
+
const { signExtension } = await import("./signExtension-ZP5LPODK.js");
|
|
993
993
|
if (options.url) return printExtensionUrl();
|
|
994
994
|
return options.sign ? signExtension() : extension();
|
|
995
995
|
});
|
|
@@ -2709,7 +2709,7 @@ function registerDaemon(program) {
|
|
|
2709
2709
|
const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
|
|
2710
2710
|
cmd.command("run").description(
|
|
2711
2711
|
"Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
|
|
2712
|
-
).action(lazyAction(() => import("./runDaemon-
|
|
2712
|
+
).action(lazyAction(() => import("./runDaemon-GEPGDXTP.js"), "runDaemon"));
|
|
2713
2713
|
cmd.command("status").description(
|
|
2714
2714
|
"Show sessions daemon status, live sessions, and any stray daemon processes"
|
|
2715
2715
|
).action(lazyAction(() => import("./daemonStatus-AUHBSCVE.js"), "daemonStatus"));
|
|
@@ -2733,7 +2733,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
|
|
|
2733
2733
|
nodes.command("doctor [name]").description(
|
|
2734
2734
|
"Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
|
|
2735
2735
|
).option("--json", "Output as JSON").action(
|
|
2736
|
-
async (name, _options, command) => (await import("./doctorNodes-
|
|
2736
|
+
async (name, _options, command) => (await import("./doctorNodes-PLXJIJY4.js")).doctorNodes(
|
|
2737
2737
|
name,
|
|
2738
2738
|
command.optsWithGlobals()
|
|
2739
2739
|
)
|
|
@@ -2763,14 +2763,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
|
|
|
2763
2763
|
internalCommand(
|
|
2764
2764
|
nodes.command("restart <name>").description(
|
|
2765
2765
|
"Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
|
|
2766
|
-
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-
|
|
2766
|
+
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-WEAVO2FU.js"), "restartNode")),
|
|
2767
2767
|
calledBy5
|
|
2768
2768
|
);
|
|
2769
2769
|
internalCommand(
|
|
2770
2770
|
nodes.command("update <name>").description(
|
|
2771
2771
|
"Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
|
|
2772
2772
|
).action(
|
|
2773
|
-
async (name) => (await import("./updateNode-
|
|
2773
|
+
async (name) => (await import("./updateNode-C56F56XU.js")).updateNode(name)
|
|
2774
2774
|
),
|
|
2775
2775
|
calledBy5
|
|
2776
2776
|
);
|
|
@@ -2894,7 +2894,7 @@ function registerSetStatusCommand(cmd) {
|
|
|
2894
2894
|
// src/commands/sessions/registerSessionsWeb.ts
|
|
2895
2895
|
function registerSessionsWeb(cmd) {
|
|
2896
2896
|
const webCmd = cmd.command("web").description("Start the sessions web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(
|
|
2897
|
-
async (options, command) => (await import("./web-
|
|
2897
|
+
async (options, command) => (await import("./web-CS2ER6J7.js")).web({
|
|
2898
2898
|
...options,
|
|
2899
2899
|
open: command.optsWithGlobals().open
|
|
2900
2900
|
})
|
|
@@ -2909,7 +2909,7 @@ function registerSessionsWeb(cmd) {
|
|
|
2909
2909
|
// src/commands/sessions/registerSessions.ts
|
|
2910
2910
|
function registerSessions(program) {
|
|
2911
2911
|
const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
|
|
2912
|
-
async (_options, command) => (await import("./web-
|
|
2912
|
+
async (_options, command) => (await import("./web-CS2ER6J7.js")).web({
|
|
2913
2913
|
port: "3100",
|
|
2914
2914
|
open: command.optsWithGlobals().open
|
|
2915
2915
|
})
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
linkStatus,
|
|
3
3
|
postToPeer,
|
|
4
4
|
startPeerAction
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DP6AGBSB.js";
|
|
6
|
+
import "./chunk-E2G3JR43.js";
|
|
7
|
+
import "./chunk-HJTLBBAP.js";
|
|
8
8
|
import "./chunk-VABNWHSE.js";
|
|
9
9
|
import "./chunk-DS2YJZZY.js";
|
|
10
10
|
import "./chunk-4HKB2TAG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-N42SJQOG.js";
|
|
12
12
|
import "./chunk-YY2B3ZT3.js";
|
|
13
13
|
import "./chunk-4SGQAXBM.js";
|
|
14
14
|
import "./chunk-B7VOTF5Q.js";
|
|
15
15
|
import "./chunk-E36L7ASL.js";
|
|
16
16
|
import "./chunk-5H7EHZ3J.js";
|
|
17
17
|
import "./chunk-GIHVMELY.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-FPSNZAAR.js";
|
|
19
19
|
import "./chunk-TUEQ33EQ.js";
|
|
20
20
|
import "./chunk-J4HXR25Q.js";
|
|
21
21
|
import "./chunk-GRXFWFGP.js";
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
isHello,
|
|
136
136
|
linkVersionCheck,
|
|
137
137
|
negotiateProtocol
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-N42SJQOG.js";
|
|
139
139
|
import {
|
|
140
140
|
loadLinkSpecs
|
|
141
141
|
} from "./chunk-YY2B3ZT3.js";
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
import "./chunk-APZ6ZTDA.js";
|
|
280
280
|
import "./chunk-K4DJEFDZ.js";
|
|
281
281
|
import "./chunk-D7UZLH36.js";
|
|
282
|
-
import "./chunk-
|
|
282
|
+
import "./chunk-FPSNZAAR.js";
|
|
283
283
|
import "./chunk-EW2ZM2PC.js";
|
|
284
284
|
import "./chunk-OTSOBFW2.js";
|
|
285
285
|
import {
|
|
@@ -3828,6 +3828,21 @@ function* tipOnRemote() {
|
|
|
3828
3828
|
return tipFromRemote(reflog.out, remotes.ok ? remotes.out.split("\n") : []);
|
|
3829
3829
|
}
|
|
3830
3830
|
|
|
3831
|
+
// src/commands/sessions/daemon/worktree/patchEquivalentOnRemoteDefault.ts
|
|
3832
|
+
function* patchEquivalentOnRemoteDefault() {
|
|
3833
|
+
const head = yield ["symbolic-ref", "--short", "refs/remotes/origin/HEAD"];
|
|
3834
|
+
const remoteDefault = head.ok && head.out ? head.out : "origin/main";
|
|
3835
|
+
const unmatched = yield [
|
|
3836
|
+
"log",
|
|
3837
|
+
"--cherry-pick",
|
|
3838
|
+
"--right-only",
|
|
3839
|
+
"--no-merges",
|
|
3840
|
+
"--format=%H",
|
|
3841
|
+
`${remoteDefault}...HEAD`
|
|
3842
|
+
];
|
|
3843
|
+
return unmatched.ok && unmatched.out === "";
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3831
3846
|
// src/commands/sessions/daemon/worktree/treeDurability.ts
|
|
3832
3847
|
var treeIsGone = { durable: true, gone: true };
|
|
3833
3848
|
function treeDurability(state) {
|
|
@@ -3853,9 +3868,11 @@ function* durabilityProbes(cwd) {
|
|
|
3853
3868
|
if (ahead.ok && Number(ahead.out) === 0)
|
|
3854
3869
|
return treeDurability({ dirty, localOnlyCommits: false });
|
|
3855
3870
|
}
|
|
3871
|
+
if (yield* tipOnRemote())
|
|
3872
|
+
return treeDurability({ dirty, localOnlyCommits: false });
|
|
3856
3873
|
return treeDurability({
|
|
3857
3874
|
dirty,
|
|
3858
|
-
localOnlyCommits: !(yield*
|
|
3875
|
+
localOnlyCommits: !(yield* patchEquivalentOnRemoteDefault())
|
|
3859
3876
|
});
|
|
3860
3877
|
}
|
|
3861
3878
|
function notACheckout(cwd, error) {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
linkStatus,
|
|
3
3
|
postToPeer,
|
|
4
4
|
startPeerAction
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DP6AGBSB.js";
|
|
6
|
+
import "./chunk-E2G3JR43.js";
|
|
7
|
+
import "./chunk-HJTLBBAP.js";
|
|
8
8
|
import "./chunk-VABNWHSE.js";
|
|
9
9
|
import "./chunk-DS2YJZZY.js";
|
|
10
10
|
import "./chunk-4HKB2TAG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-N42SJQOG.js";
|
|
12
12
|
import "./chunk-YY2B3ZT3.js";
|
|
13
13
|
import "./chunk-4SGQAXBM.js";
|
|
14
14
|
import "./chunk-B7VOTF5Q.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-A7ONLVZD.js";
|
|
20
20
|
import "./chunk-GIHVMELY.js";
|
|
21
21
|
import "./chunk-2EW62DM5.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-FPSNZAAR.js";
|
|
23
23
|
import "./chunk-TUEQ33EQ.js";
|
|
24
24
|
import "./chunk-J4HXR25Q.js";
|
|
25
25
|
import "./chunk-GRXFWFGP.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
web
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EAI7EAGC.js";
|
|
4
4
|
import "./chunk-SURCYYQ6.js";
|
|
5
5
|
import "./chunk-JNCFHWBK.js";
|
|
6
6
|
import "./chunk-JM57BCD6.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-E2G3JR43.js";
|
|
8
|
+
import "./chunk-HJTLBBAP.js";
|
|
9
9
|
import "./chunk-VABNWHSE.js";
|
|
10
10
|
import "./chunk-DS2YJZZY.js";
|
|
11
11
|
import "./chunk-XHF5PGIN.js";
|
|
12
12
|
import "./chunk-4KWXZ6JC.js";
|
|
13
13
|
import "./chunk-4HKB2TAG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-N42SJQOG.js";
|
|
15
15
|
import "./chunk-YY2B3ZT3.js";
|
|
16
16
|
import "./chunk-4SGQAXBM.js";
|
|
17
17
|
import "./chunk-B7VOTF5Q.js";
|
|
@@ -140,7 +140,7 @@ import "./chunk-WVFVKCSE.js";
|
|
|
140
140
|
import "./chunk-APZ6ZTDA.js";
|
|
141
141
|
import "./chunk-K4DJEFDZ.js";
|
|
142
142
|
import "./chunk-D7UZLH36.js";
|
|
143
|
-
import "./chunk-
|
|
143
|
+
import "./chunk-FPSNZAAR.js";
|
|
144
144
|
import "./chunk-7YNKDSEP.js";
|
|
145
145
|
import "./chunk-YVL3NXEB.js";
|
|
146
146
|
import "./chunk-UEWARAPX.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
web
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EAI7EAGC.js";
|
|
4
4
|
import "./chunk-SURCYYQ6.js";
|
|
5
5
|
import "./chunk-JNCFHWBK.js";
|
|
6
6
|
import "./chunk-JM57BCD6.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-E2G3JR43.js";
|
|
8
|
+
import "./chunk-HJTLBBAP.js";
|
|
9
9
|
import "./chunk-VABNWHSE.js";
|
|
10
10
|
import "./chunk-DS2YJZZY.js";
|
|
11
11
|
import "./chunk-XHF5PGIN.js";
|
|
12
12
|
import "./chunk-4KWXZ6JC.js";
|
|
13
13
|
import "./chunk-4HKB2TAG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-N42SJQOG.js";
|
|
15
15
|
import "./chunk-YY2B3ZT3.js";
|
|
16
16
|
import "./chunk-4SGQAXBM.js";
|
|
17
17
|
import "./chunk-B7VOTF5Q.js";
|
|
@@ -140,7 +140,7 @@ import "./chunk-WVFVKCSE.js";
|
|
|
140
140
|
import "./chunk-APZ6ZTDA.js";
|
|
141
141
|
import "./chunk-K4DJEFDZ.js";
|
|
142
142
|
import "./chunk-D7UZLH36.js";
|
|
143
|
-
import "./chunk-
|
|
143
|
+
import "./chunk-FPSNZAAR.js";
|
|
144
144
|
import "./chunk-7YNKDSEP.js";
|
|
145
145
|
import "./chunk-YVL3NXEB.js";
|
|
146
146
|
import "./chunk-UEWARAPX.js";
|