@staff0rd/assist 0.1185.4 → 0.1186.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-CYOY666F.js → chunk-2TFVO6FJ.js} +1 -1
- package/dist/{chunk-YPHZSKNP.js → chunk-7XBRJ63U.js} +2 -2
- package/dist/{chunk-TUTLULTR.js → chunk-HJA2C6EP.js} +1 -1
- package/dist/{chunk-HW4J7F4X.js → chunk-WH3YSTWQ.js} +1 -1
- package/dist/{chunk-VWKPR7P4.js → chunk-ZDCNWRGU.js} +1 -1
- package/dist/{chunk-ICCOBGY5.js → chunk-ZYOSEPXM.js} +1 -1
- package/dist/commands/sessions/web/bundle.js +162 -162
- package/dist/{doctorNodes-YPC6M4SI.js → doctorNodes-ZDTNLDHK.js} +3 -3
- package/dist/index.js +11 -11
- package/dist/{restartNode-P4JBLX5L.js → restartNode-ZM73BIZ4.js} +5 -5
- package/dist/{runDaemon-Z57GTMCH.js → runDaemon-QU6S6FVH.js} +21 -7
- package/dist/{signExtension-7JTRFHE2.js → signExtension-VSB6MSLB.js} +1 -1
- package/dist/{updateNode-4PQFFCTZ.js → updateNode-SRU5E3O3.js} +5 -5
- package/dist/{web-WDK7TZDD.js → web-GRLY54Q4.js} +5 -5
- package/dist/{web-CFWILIBT.js → web-RXI5PSBM.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-HJA2C6EP.js";
|
|
13
13
|
import "./chunk-VABNWHSE.js";
|
|
14
14
|
import "./chunk-DS2YJZZY.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ZYOSEPXM.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-WH3YSTWQ.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-WH3YSTWQ.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-RXI5PSBM.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-GRLY54Q4.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-GRLY54Q4.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-VSB6MSLB.js");
|
|
992
992
|
if (options.url) return printExtensionUrl();
|
|
993
993
|
return options.sign ? signExtension() : extension();
|
|
994
994
|
});
|
|
@@ -2660,7 +2660,7 @@ function registerDaemon(program) {
|
|
|
2660
2660
|
const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
|
|
2661
2661
|
cmd.command("run").description(
|
|
2662
2662
|
"Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
|
|
2663
|
-
).action(lazyAction(() => import("./runDaemon-
|
|
2663
|
+
).action(lazyAction(() => import("./runDaemon-QU6S6FVH.js"), "runDaemon"));
|
|
2664
2664
|
cmd.command("status").description(
|
|
2665
2665
|
"Show sessions daemon status, live sessions, and any stray daemon processes"
|
|
2666
2666
|
).action(lazyAction(() => import("./daemonStatus-EAZHBC6O.js"), "daemonStatus"));
|
|
@@ -2684,7 +2684,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
|
|
|
2684
2684
|
nodes.command("doctor [name]").description(
|
|
2685
2685
|
"Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
|
|
2686
2686
|
).option("--json", "Output as JSON").action(
|
|
2687
|
-
async (name, _options, command) => (await import("./doctorNodes-
|
|
2687
|
+
async (name, _options, command) => (await import("./doctorNodes-ZDTNLDHK.js")).doctorNodes(
|
|
2688
2688
|
name,
|
|
2689
2689
|
command.optsWithGlobals()
|
|
2690
2690
|
)
|
|
@@ -2714,14 +2714,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
|
|
|
2714
2714
|
internalCommand(
|
|
2715
2715
|
nodes.command("restart <name>").description(
|
|
2716
2716
|
"Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
|
|
2717
|
-
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-
|
|
2717
|
+
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-ZM73BIZ4.js"), "restartNode")),
|
|
2718
2718
|
calledBy5
|
|
2719
2719
|
);
|
|
2720
2720
|
internalCommand(
|
|
2721
2721
|
nodes.command("update <name>").description(
|
|
2722
2722
|
"Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
|
|
2723
2723
|
).action(
|
|
2724
|
-
async (name) => (await import("./updateNode-
|
|
2724
|
+
async (name) => (await import("./updateNode-SRU5E3O3.js")).updateNode(name)
|
|
2725
2725
|
),
|
|
2726
2726
|
calledBy5
|
|
2727
2727
|
);
|
|
@@ -2784,7 +2784,7 @@ function registerSetStatusCommand(cmd) {
|
|
|
2784
2784
|
// src/commands/sessions/registerSessionsWeb.ts
|
|
2785
2785
|
function registerSessionsWeb(cmd) {
|
|
2786
2786
|
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(
|
|
2787
|
-
async (options, command) => (await import("./web-
|
|
2787
|
+
async (options, command) => (await import("./web-RXI5PSBM.js")).web({
|
|
2788
2788
|
...options,
|
|
2789
2789
|
open: command.optsWithGlobals().open
|
|
2790
2790
|
})
|
|
@@ -2799,7 +2799,7 @@ function registerSessionsWeb(cmd) {
|
|
|
2799
2799
|
// src/commands/sessions/registerSessions.ts
|
|
2800
2800
|
function registerSessions(program) {
|
|
2801
2801
|
const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
|
|
2802
|
-
async (_options, command) => (await import("./web-
|
|
2802
|
+
async (_options, command) => (await import("./web-RXI5PSBM.js")).web({
|
|
2803
2803
|
port: "3100",
|
|
2804
2804
|
open: command.optsWithGlobals().open
|
|
2805
2805
|
})
|
|
@@ -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-2TFVO6FJ.js";
|
|
6
|
+
import "./chunk-ZDCNWRGU.js";
|
|
7
|
+
import "./chunk-HJA2C6EP.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-ZYOSEPXM.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-WH3YSTWQ.js";
|
|
19
19
|
import "./chunk-UFSOFNXQ.js";
|
|
20
20
|
import "./chunk-FLDRXYEM.js";
|
|
21
21
|
import "./chunk-GRXFWFGP.js";
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
isHello,
|
|
129
129
|
linkVersionCheck,
|
|
130
130
|
negotiateProtocol
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-ZYOSEPXM.js";
|
|
132
132
|
import {
|
|
133
133
|
loadLinkSpecs
|
|
134
134
|
} from "./chunk-J2PPCMCR.js";
|
|
@@ -267,7 +267,7 @@ import {
|
|
|
267
267
|
import "./chunk-APZ6ZTDA.js";
|
|
268
268
|
import "./chunk-BFQSGIN6.js";
|
|
269
269
|
import "./chunk-D7UZLH36.js";
|
|
270
|
-
import "./chunk-
|
|
270
|
+
import "./chunk-WH3YSTWQ.js";
|
|
271
271
|
import "./chunk-EW2ZM2PC.js";
|
|
272
272
|
import "./chunk-MYH4MQX2.js";
|
|
273
273
|
import {
|
|
@@ -862,6 +862,7 @@ function toSessionViewInfo({
|
|
|
862
862
|
lastUserMessage,
|
|
863
863
|
lastAssistantMessage,
|
|
864
864
|
lastEchoAt,
|
|
865
|
+
transcriptRevision,
|
|
865
866
|
cols,
|
|
866
867
|
rows,
|
|
867
868
|
activeViewer,
|
|
@@ -895,6 +896,7 @@ function toSessionViewInfo({
|
|
|
895
896
|
lastUserMessage,
|
|
896
897
|
lastAssistantMessage,
|
|
897
898
|
lastEchoAt,
|
|
899
|
+
transcriptRevision,
|
|
898
900
|
cols,
|
|
899
901
|
rows,
|
|
900
902
|
activeViewer,
|
|
@@ -4819,6 +4821,22 @@ function updateLastMessages(session, events, notify) {
|
|
|
4819
4821
|
if (user || assistant) notify?.();
|
|
4820
4822
|
}
|
|
4821
4823
|
|
|
4824
|
+
// src/commands/sessions/daemon/applyTranscriptChange.ts
|
|
4825
|
+
function applyTranscriptChange(session, reader, entries, fingerprint, notify) {
|
|
4826
|
+
session.transcriptFingerprint = fingerprint ?? void 0;
|
|
4827
|
+
let changed = fingerprint !== null;
|
|
4828
|
+
if (changed)
|
|
4829
|
+
session.transcriptRevision = (session.transcriptRevision ?? 0) + 1;
|
|
4830
|
+
const markChanged = () => {
|
|
4831
|
+
changed = true;
|
|
4832
|
+
};
|
|
4833
|
+
reportUnrecognisedShapes(session, reader, entries);
|
|
4834
|
+
const events = reader.events(entries);
|
|
4835
|
+
updateLastMessages(session, events, markChanged);
|
|
4836
|
+
clearSeenSdkPending(session, events, markChanged);
|
|
4837
|
+
if (changed) notify?.();
|
|
4838
|
+
}
|
|
4839
|
+
|
|
4822
4840
|
// src/commands/sessions/daemon/reconcileTranscriptStatus.ts
|
|
4823
4841
|
function isFinished(session) {
|
|
4824
4842
|
return session.status === "done" || session.status === "error" || session.status === "stopped" || session.status === "parked";
|
|
@@ -4833,11 +4851,7 @@ async function reconcileTranscriptStatus(session, onStatusChange, notify) {
|
|
|
4833
4851
|
const fingerprint = reader.fingerprint(entries);
|
|
4834
4852
|
if (fingerprint !== null && fingerprint === session.transcriptFingerprint)
|
|
4835
4853
|
return;
|
|
4836
|
-
session
|
|
4837
|
-
reportUnrecognisedShapes(session, reader, entries);
|
|
4838
|
-
const events = reader.events(entries);
|
|
4839
|
-
updateLastMessages(session, events, notify);
|
|
4840
|
-
clearSeenSdkPending(session, events, notify);
|
|
4854
|
+
applyTranscriptChange(session, reader, entries, fingerprint, notify);
|
|
4841
4855
|
if (isFinished(session)) return;
|
|
4842
4856
|
const derived = reader.lifecycle(entries, {
|
|
4843
4857
|
permissionActive: session.permissionActive
|
|
@@ -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-2TFVO6FJ.js";
|
|
6
|
+
import "./chunk-ZDCNWRGU.js";
|
|
7
|
+
import "./chunk-HJA2C6EP.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-ZYOSEPXM.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-WH3YSTWQ.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-7XBRJ63U.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-ZDCNWRGU.js";
|
|
8
|
+
import "./chunk-HJA2C6EP.js";
|
|
9
9
|
import "./chunk-VABNWHSE.js";
|
|
10
10
|
import "./chunk-DS2YJZZY.js";
|
|
11
11
|
import "./chunk-2RUGZQUD.js";
|
|
12
12
|
import "./chunk-PDXOHW2M.js";
|
|
13
13
|
import "./chunk-4HKB2TAG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ZYOSEPXM.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-BFQSGIN6.js";
|
|
141
141
|
import "./chunk-D7UZLH36.js";
|
|
142
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-WH3YSTWQ.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-7XBRJ63U.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-ZDCNWRGU.js";
|
|
8
|
+
import "./chunk-HJA2C6EP.js";
|
|
9
9
|
import "./chunk-VABNWHSE.js";
|
|
10
10
|
import "./chunk-DS2YJZZY.js";
|
|
11
11
|
import "./chunk-2RUGZQUD.js";
|
|
12
12
|
import "./chunk-PDXOHW2M.js";
|
|
13
13
|
import "./chunk-4HKB2TAG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ZYOSEPXM.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-BFQSGIN6.js";
|
|
141
141
|
import "./chunk-D7UZLH36.js";
|
|
142
|
-
import "./chunk-
|
|
142
|
+
import "./chunk-WH3YSTWQ.js";
|
|
143
143
|
import "./chunk-YUV5QBHU.js";
|
|
144
144
|
import "./chunk-YVL3NXEB.js";
|
|
145
145
|
import "./chunk-UEWARAPX.js";
|