@staff0rd/assist 0.1199.1 → 0.1200.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/.build-files +13 -13
- package/dist/built-version +1 -1
- package/dist/{chunk-Q3PFDP4X.js → chunk-3SXTAYP6.js} +2 -2
- package/dist/{chunk-JTLAYB6I.js → chunk-7RKBRJ2N.js} +1 -1
- package/dist/{chunk-DLJFLRVL.js → chunk-7TOQJOMN.js} +1 -1
- package/dist/{chunk-F23UBQPL.js → chunk-BLFNT23D.js} +1 -1
- package/dist/{chunk-VQSR5BWX.js → chunk-L4MFIOZ7.js} +1 -1
- package/dist/{chunk-VRQM7LHW.js → chunk-TLWDKKRG.js} +1 -1
- package/dist/commands/sessions/web/bundle.js +486 -486
- package/dist/{doctorNodes-KRVZ6UME.js → doctorNodes-6DM6TSTY.js} +3 -3
- package/dist/index.js +11 -11
- package/dist/{restartNode-EVOGKQN6.js → restartNode-6MUR7LFA.js} +5 -5
- package/dist/{runDaemon-G2KB3G62.js → runDaemon-IXCP5IWF.js} +31 -4
- package/dist/{signExtension-5RXUHRYO.js → signExtension-NWQUUCGP.js} +1 -1
- package/dist/{updateNode-UL3AIVNI.js → updateNode-LE2SL72V.js} +5 -5
- package/dist/{web-E5OVZLYC.js → web-ATOALRME.js} +5 -5
- package/dist/{web-24H5TJEY.js → web-FTMINBKK.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-BLFNT23D.js";
|
|
13
13
|
import "./chunk-VABNWHSE.js";
|
|
14
14
|
import "./chunk-DS2YJZZY.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-L4MFIOZ7.js";
|
|
16
16
|
import {
|
|
17
17
|
loadLinkSpecs
|
|
18
18
|
} from "./chunk-J2PPCMCR.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-TLWDKKRG.js";
|
|
34
34
|
import "./chunk-5QM5VR3J.js";
|
|
35
35
|
import "./chunk-UFSOFNXQ.js";
|
|
36
36
|
import "./chunk-FLDRXYEM.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-TLWDKKRG.js";
|
|
21
21
|
import {
|
|
22
22
|
adviceConfigHelp,
|
|
23
23
|
askQuestionConfigHelp,
|
|
@@ -92,7 +92,7 @@ import { Command } from "commander";
|
|
|
92
92
|
// src/commands/registerRootAction.ts
|
|
93
93
|
function registerRootAction(program) {
|
|
94
94
|
program.option("--no-open", "Do not open a browser on startup").action(
|
|
95
|
-
async (options) => (await import("./web-
|
|
95
|
+
async (options) => (await import("./web-FTMINBKK.js")).web({
|
|
96
96
|
port: "3100",
|
|
97
97
|
open: options.open
|
|
98
98
|
})
|
|
@@ -645,7 +645,7 @@ function registerShowCommands(cmd) {
|
|
|
645
645
|
|
|
646
646
|
// src/commands/registerBacklog.ts
|
|
647
647
|
function registerWebCommand(cmd) {
|
|
648
|
-
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-
|
|
648
|
+
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-ATOALRME.js"), "web"));
|
|
649
649
|
}
|
|
650
650
|
var registrars = [
|
|
651
651
|
registerItemCommands,
|
|
@@ -675,7 +675,7 @@ function registerBacklog(program) {
|
|
|
675
675
|
const { setBacklogDir } = await import("./getBacklogDir-FJLWXTYN.js");
|
|
676
676
|
setBacklogDir(thisCommand.opts().dir);
|
|
677
677
|
}).action(
|
|
678
|
-
async (options) => (await import("./web-
|
|
678
|
+
async (options) => (await import("./web-ATOALRME.js")).web({ port: "3100", open: options.open })
|
|
679
679
|
);
|
|
680
680
|
for (const register of registrars) {
|
|
681
681
|
register(cmd);
|
|
@@ -988,7 +988,7 @@ function registerExtension(program) {
|
|
|
988
988
|
).action(async (options) => {
|
|
989
989
|
const { extension } = await import("./extension-YYRD5EM6.js");
|
|
990
990
|
const { printExtensionUrl } = await import("./printExtensionUrl-IW2WTSNS.js");
|
|
991
|
-
const { signExtension } = await import("./signExtension-
|
|
991
|
+
const { signExtension } = await import("./signExtension-NWQUUCGP.js");
|
|
992
992
|
if (options.url) return printExtensionUrl();
|
|
993
993
|
return options.sign ? signExtension() : extension();
|
|
994
994
|
});
|
|
@@ -2686,7 +2686,7 @@ function registerDaemon(program) {
|
|
|
2686
2686
|
const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
|
|
2687
2687
|
cmd.command("run").description(
|
|
2688
2688
|
"Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
|
|
2689
|
-
).action(lazyAction(() => import("./runDaemon-
|
|
2689
|
+
).action(lazyAction(() => import("./runDaemon-IXCP5IWF.js"), "runDaemon"));
|
|
2690
2690
|
cmd.command("status").description(
|
|
2691
2691
|
"Show sessions daemon status, live sessions, and any stray daemon processes"
|
|
2692
2692
|
).action(lazyAction(() => import("./daemonStatus-EAZHBC6O.js"), "daemonStatus"));
|
|
@@ -2710,7 +2710,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
|
|
|
2710
2710
|
nodes.command("doctor [name]").description(
|
|
2711
2711
|
"Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
|
|
2712
2712
|
).option("--json", "Output as JSON").action(
|
|
2713
|
-
async (name, _options, command) => (await import("./doctorNodes-
|
|
2713
|
+
async (name, _options, command) => (await import("./doctorNodes-6DM6TSTY.js")).doctorNodes(
|
|
2714
2714
|
name,
|
|
2715
2715
|
command.optsWithGlobals()
|
|
2716
2716
|
)
|
|
@@ -2740,14 +2740,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
|
|
|
2740
2740
|
internalCommand(
|
|
2741
2741
|
nodes.command("restart <name>").description(
|
|
2742
2742
|
"Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
|
|
2743
|
-
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-
|
|
2743
|
+
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-6MUR7LFA.js"), "restartNode")),
|
|
2744
2744
|
calledBy5
|
|
2745
2745
|
);
|
|
2746
2746
|
internalCommand(
|
|
2747
2747
|
nodes.command("update <name>").description(
|
|
2748
2748
|
"Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
|
|
2749
2749
|
).action(
|
|
2750
|
-
async (name) => (await import("./updateNode-
|
|
2750
|
+
async (name) => (await import("./updateNode-LE2SL72V.js")).updateNode(name)
|
|
2751
2751
|
),
|
|
2752
2752
|
calledBy5
|
|
2753
2753
|
);
|
|
@@ -2810,7 +2810,7 @@ function registerSetStatusCommand(cmd) {
|
|
|
2810
2810
|
// src/commands/sessions/registerSessionsWeb.ts
|
|
2811
2811
|
function registerSessionsWeb(cmd) {
|
|
2812
2812
|
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(
|
|
2813
|
-
async (options, command) => (await import("./web-
|
|
2813
|
+
async (options, command) => (await import("./web-FTMINBKK.js")).web({
|
|
2814
2814
|
...options,
|
|
2815
2815
|
open: command.optsWithGlobals().open
|
|
2816
2816
|
})
|
|
@@ -2825,7 +2825,7 @@ function registerSessionsWeb(cmd) {
|
|
|
2825
2825
|
// src/commands/sessions/registerSessions.ts
|
|
2826
2826
|
function registerSessions(program) {
|
|
2827
2827
|
const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
|
|
2828
|
-
async (_options, command) => (await import("./web-
|
|
2828
|
+
async (_options, command) => (await import("./web-FTMINBKK.js")).web({
|
|
2829
2829
|
port: "3100",
|
|
2830
2830
|
open: command.optsWithGlobals().open
|
|
2831
2831
|
})
|
|
@@ -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-7TOQJOMN.js";
|
|
6
|
+
import "./chunk-7RKBRJ2N.js";
|
|
7
|
+
import "./chunk-BLFNT23D.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-L4MFIOZ7.js";
|
|
12
12
|
import "./chunk-J2PPCMCR.js";
|
|
13
13
|
import "./chunk-5CNDLMYO.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-TLWDKKRG.js";
|
|
19
19
|
import "./chunk-UFSOFNXQ.js";
|
|
20
20
|
import "./chunk-FLDRXYEM.js";
|
|
21
21
|
import "./chunk-GRXFWFGP.js";
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
isHello,
|
|
130
130
|
linkVersionCheck,
|
|
131
131
|
negotiateProtocol
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-L4MFIOZ7.js";
|
|
133
133
|
import {
|
|
134
134
|
loadLinkSpecs
|
|
135
135
|
} from "./chunk-J2PPCMCR.js";
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
268
268
|
import "./chunk-APZ6ZTDA.js";
|
|
269
269
|
import "./chunk-ZRIBI33P.js";
|
|
270
270
|
import "./chunk-D7UZLH36.js";
|
|
271
|
-
import "./chunk-
|
|
271
|
+
import "./chunk-TLWDKKRG.js";
|
|
272
272
|
import "./chunk-EW2ZM2PC.js";
|
|
273
273
|
import "./chunk-MYH4MQX2.js";
|
|
274
274
|
import {
|
|
@@ -5326,6 +5326,7 @@ function shouldAutoDismiss(session, exitCode) {
|
|
|
5326
5326
|
return false;
|
|
5327
5327
|
}
|
|
5328
5328
|
if (session.reviewStarted) return true;
|
|
5329
|
+
if (isRunPhaseSession(session)) return true;
|
|
5329
5330
|
if (session.activity?.kind === "backlog" && session.autoAdvance === false)
|
|
5330
5331
|
return true;
|
|
5331
5332
|
const args = session.assistArgs;
|
|
@@ -10500,6 +10501,21 @@ function cancelQueuedTransfer(s, id) {
|
|
|
10500
10501
|
return true;
|
|
10501
10502
|
}
|
|
10502
10503
|
|
|
10504
|
+
// src/commands/sessions/daemon/transfer/dismissTransferError.ts
|
|
10505
|
+
function dismissTransferError(s, id) {
|
|
10506
|
+
if (!s?.transfer?.error) {
|
|
10507
|
+
daemonLog(
|
|
10508
|
+
`session ${id} dismiss-transfer-error ignored: no failed transfer`
|
|
10509
|
+
);
|
|
10510
|
+
return false;
|
|
10511
|
+
}
|
|
10512
|
+
daemonLog(
|
|
10513
|
+
`session ${id} failed transfer to ${s.transfer.target} dismissed: ${s.transfer.error}`
|
|
10514
|
+
);
|
|
10515
|
+
s.transfer = void 0;
|
|
10516
|
+
return true;
|
|
10517
|
+
}
|
|
10518
|
+
|
|
10503
10519
|
// src/commands/sessions/daemon/transfer/handleTransfer.ts
|
|
10504
10520
|
var handleTransfer = routed((client, m, d) => {
|
|
10505
10521
|
daemonLog(`transfer received: id=${d.sessionId} target=${d.target}`);
|
|
@@ -10514,6 +10530,18 @@ var handleCancelTransfer = routed((_client, m, d) => {
|
|
|
10514
10530
|
daemonLog(`cancel-transfer received: id=${id}`);
|
|
10515
10531
|
m.update(() => cancelQueuedTransfer(m.session(id), id));
|
|
10516
10532
|
});
|
|
10533
|
+
var handleDismissTransferError = routed((_client, m, d) => {
|
|
10534
|
+
const id = d.sessionId;
|
|
10535
|
+
daemonLog(`dismiss-transfer-error received: id=${id}`);
|
|
10536
|
+
m.update(() => dismissTransferError(m.session(id), id));
|
|
10537
|
+
});
|
|
10538
|
+
|
|
10539
|
+
// src/commands/sessions/daemon/transfer/transferHandlers.ts
|
|
10540
|
+
var transferHandlers = {
|
|
10541
|
+
transfer: handleTransfer,
|
|
10542
|
+
"cancel-transfer": handleCancelTransfer,
|
|
10543
|
+
"dismiss-transfer-error": handleDismissTransferError
|
|
10544
|
+
};
|
|
10517
10545
|
|
|
10518
10546
|
// src/commands/sessions/daemon/messageHandlers.ts
|
|
10519
10547
|
var messageHandlers = {
|
|
@@ -10564,8 +10592,7 @@ var messageHandlers = {
|
|
|
10564
10592
|
stop: routed((_client, m, d) => m.stopSession(d.sessionId)),
|
|
10565
10593
|
interrupt: handleInterrupt,
|
|
10566
10594
|
dequeue: handleDequeue,
|
|
10567
|
-
|
|
10568
|
-
"cancel-transfer": handleCancelTransfer,
|
|
10595
|
+
...transferHandlers,
|
|
10569
10596
|
...sessionSettingHandlers,
|
|
10570
10597
|
"set-active": (_client, m, d) => m.active.set(d.cwd, d.sessionId),
|
|
10571
10598
|
"set-status": handleSetStatus,
|
|
@@ -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-7TOQJOMN.js";
|
|
6
|
+
import "./chunk-7RKBRJ2N.js";
|
|
7
|
+
import "./chunk-BLFNT23D.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-L4MFIOZ7.js";
|
|
12
12
|
import "./chunk-J2PPCMCR.js";
|
|
13
13
|
import "./chunk-5CNDLMYO.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-TLWDKKRG.js";
|
|
23
23
|
import "./chunk-UFSOFNXQ.js";
|
|
24
24
|
import "./chunk-FLDRXYEM.js";
|
|
25
25
|
import "./chunk-GRXFWFGP.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
web
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3SXTAYP6.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-7RKBRJ2N.js";
|
|
8
|
+
import "./chunk-BLFNT23D.js";
|
|
9
9
|
import "./chunk-VABNWHSE.js";
|
|
10
10
|
import "./chunk-DS2YJZZY.js";
|
|
11
11
|
import "./chunk-2RUGZQUD.js";
|
|
12
12
|
import "./chunk-5QXAQCAJ.js";
|
|
13
13
|
import "./chunk-4HKB2TAG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-L4MFIOZ7.js";
|
|
15
15
|
import "./chunk-J2PPCMCR.js";
|
|
16
16
|
import "./chunk-5CNDLMYO.js";
|
|
17
17
|
import "./chunk-B7VOTF5Q.js";
|
|
@@ -139,7 +139,7 @@ import "./chunk-RW6YKTIM.js";
|
|
|
139
139
|
import "./chunk-APZ6ZTDA.js";
|
|
140
140
|
import "./chunk-ZRIBI33P.js";
|
|
141
141
|
import "./chunk-D7UZLH36.js";
|
|
142
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-TLWDKKRG.js";
|
|
143
143
|
import "./chunk-YUV5QBHU.js";
|
|
144
144
|
import "./chunk-YVL3NXEB.js";
|
|
145
145
|
import "./chunk-UEWARAPX.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
web
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3SXTAYP6.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-7RKBRJ2N.js";
|
|
8
|
+
import "./chunk-BLFNT23D.js";
|
|
9
9
|
import "./chunk-VABNWHSE.js";
|
|
10
10
|
import "./chunk-DS2YJZZY.js";
|
|
11
11
|
import "./chunk-2RUGZQUD.js";
|
|
12
12
|
import "./chunk-5QXAQCAJ.js";
|
|
13
13
|
import "./chunk-4HKB2TAG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-L4MFIOZ7.js";
|
|
15
15
|
import "./chunk-J2PPCMCR.js";
|
|
16
16
|
import "./chunk-5CNDLMYO.js";
|
|
17
17
|
import "./chunk-B7VOTF5Q.js";
|
|
@@ -139,7 +139,7 @@ import "./chunk-RW6YKTIM.js";
|
|
|
139
139
|
import "./chunk-APZ6ZTDA.js";
|
|
140
140
|
import "./chunk-ZRIBI33P.js";
|
|
141
141
|
import "./chunk-D7UZLH36.js";
|
|
142
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-TLWDKKRG.js";
|
|
143
143
|
import "./chunk-YUV5QBHU.js";
|
|
144
144
|
import "./chunk-YVL3NXEB.js";
|
|
145
145
|
import "./chunk-UEWARAPX.js";
|