@staff0rd/assist 0.1178.0 → 0.1179.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.
@@ -9,8 +9,8 @@ import {
9
9
  import {
10
10
  buildDoctorProbes,
11
11
  diagnoseLink
12
- } from "./chunk-MPN7AQZO.js";
13
- import "./chunk-R4G74YF4.js";
12
+ } from "./chunk-KYJB7J4C.js";
13
+ import "./chunk-K2CDJHNS.js";
14
14
  import {
15
15
  queryNodes
16
16
  } from "./chunk-B7VOTF5Q.js";
@@ -30,7 +30,7 @@ import {
30
30
  detectPlatform
31
31
  } from "./chunk-E36L7ASL.js";
32
32
  import "./chunk-GIHVMELY.js";
33
- import "./chunk-O4NZNNM6.js";
33
+ import "./chunk-IOT6SW6S.js";
34
34
  import "./chunk-NNJ7BC54.js";
35
35
  import "./chunk-YC6XUY34.js";
36
36
  import "./chunk-I4J2HRNZ.js";
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-B7B26YPF.js";
18
18
  import {
19
19
  package_default
20
- } from "./chunk-O4NZNNM6.js";
20
+ } from "./chunk-IOT6SW6S.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-KGQROIGX.js")).web({
95
+ async (options) => (await import("./web-J62W745E.js")).web({
96
96
  port: "3100",
97
97
  open: options.open
98
98
  })
@@ -594,7 +594,7 @@ function registerShowCommands(cmd) {
594
594
 
595
595
  // src/commands/registerBacklog.ts
596
596
  function registerWebCommand(cmd) {
597
- 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-LF6STSEO.js"), "web"));
597
+ 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-UVIAXHSS.js"), "web"));
598
598
  }
599
599
  var registrars = [
600
600
  registerItemCommands,
@@ -624,7 +624,7 @@ function registerBacklog(program) {
624
624
  const { setBacklogDir } = await import("./getBacklogDir-XYQGRILZ.js");
625
625
  setBacklogDir(thisCommand.opts().dir);
626
626
  }).action(
627
- async (options) => (await import("./web-LF6STSEO.js")).web({ port: "3100", open: options.open })
627
+ async (options) => (await import("./web-UVIAXHSS.js")).web({ port: "3100", open: options.open })
628
628
  );
629
629
  for (const register of registrars) {
630
630
  register(cmd);
@@ -937,7 +937,7 @@ function registerExtension(program) {
937
937
  ).action(async (options) => {
938
938
  const { extension } = await import("./extension-YYRD5EM6.js");
939
939
  const { printExtensionUrl } = await import("./printExtensionUrl-IW2WTSNS.js");
940
- const { signExtension } = await import("./signExtension-LGZST4CY.js");
940
+ const { signExtension } = await import("./signExtension-NBDMTIKS.js");
941
941
  if (options.url) return printExtensionUrl();
942
942
  return options.sign ? signExtension() : extension();
943
943
  });
@@ -2606,7 +2606,7 @@ function registerDaemon(program) {
2606
2606
  const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
2607
2607
  cmd.command("run").description(
2608
2608
  "Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
2609
- ).action(lazyAction(() => import("./runDaemon-SX4R3YEQ.js"), "runDaemon"));
2609
+ ).action(lazyAction(() => import("./runDaemon-BZ6DD6TI.js"), "runDaemon"));
2610
2610
  cmd.command("status").description(
2611
2611
  "Show sessions daemon status, live sessions, and any stray daemon processes"
2612
2612
  ).action(lazyAction(() => import("./daemonStatus-EAZHBC6O.js"), "daemonStatus"));
@@ -2630,7 +2630,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
2630
2630
  nodes.command("doctor [name]").description(
2631
2631
  "Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
2632
2632
  ).option("--json", "Output as JSON").action(
2633
- async (name, _options, command) => (await import("./doctorNodes-U4BZ2NQI.js")).doctorNodes(
2633
+ async (name, _options, command) => (await import("./doctorNodes-754HIFWO.js")).doctorNodes(
2634
2634
  name,
2635
2635
  command.optsWithGlobals()
2636
2636
  )
@@ -2660,14 +2660,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
2660
2660
  internalCommand(
2661
2661
  nodes.command("restart <name>").description(
2662
2662
  "Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
2663
- ).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-YZDNDY6D.js"), "restartNode")),
2663
+ ).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-XDS54IHK.js"), "restartNode")),
2664
2664
  calledBy5
2665
2665
  );
2666
2666
  internalCommand(
2667
2667
  nodes.command("update <name>").description(
2668
2668
  "Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
2669
2669
  ).action(
2670
- async (name) => (await import("./updateNode-2FAOTXLN.js")).updateNode(name)
2670
+ async (name) => (await import("./updateNode-WV7A3LP3.js")).updateNode(name)
2671
2671
  ),
2672
2672
  calledBy5
2673
2673
  );
@@ -2730,7 +2730,7 @@ function registerSetStatusCommand(cmd) {
2730
2730
  // src/commands/sessions/registerSessionsWeb.ts
2731
2731
  function registerSessionsWeb(cmd) {
2732
2732
  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(
2733
- async (options, command) => (await import("./web-KGQROIGX.js")).web({
2733
+ async (options, command) => (await import("./web-J62W745E.js")).web({
2734
2734
  ...options,
2735
2735
  open: command.optsWithGlobals().open
2736
2736
  })
@@ -2745,7 +2745,7 @@ function registerSessionsWeb(cmd) {
2745
2745
  // src/commands/sessions/registerSessions.ts
2746
2746
  function registerSessions(program) {
2747
2747
  const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
2748
- async (_options, command) => (await import("./web-KGQROIGX.js")).web({
2748
+ async (_options, command) => (await import("./web-J62W745E.js")).web({
2749
2749
  port: "3100",
2750
2750
  open: command.optsWithGlobals().open
2751
2751
  })
@@ -2,11 +2,11 @@ import {
2
2
  linkStatus,
3
3
  postToPeer,
4
4
  startPeerAction
5
- } from "./chunk-GLWIKWJD.js";
6
- import "./chunk-XY4XHIGT.js";
5
+ } from "./chunk-HZ3M46QF.js";
6
+ import "./chunk-HIR565Z6.js";
7
7
  import "./chunk-4HKB2TAG.js";
8
- import "./chunk-MPN7AQZO.js";
9
- import "./chunk-R4G74YF4.js";
8
+ import "./chunk-KYJB7J4C.js";
9
+ import "./chunk-K2CDJHNS.js";
10
10
  import "./chunk-B7VOTF5Q.js";
11
11
  import "./chunk-VABNWHSE.js";
12
12
  import "./chunk-BU2ISPLO.js";
@@ -15,7 +15,7 @@ import "./chunk-6LGGM4A6.js";
15
15
  import "./chunk-E36L7ASL.js";
16
16
  import "./chunk-5H7EHZ3J.js";
17
17
  import "./chunk-GIHVMELY.js";
18
- import "./chunk-O4NZNNM6.js";
18
+ import "./chunk-IOT6SW6S.js";
19
19
  import "./chunk-YC6XUY34.js";
20
20
  import "./chunk-I4J2HRNZ.js";
21
21
  import "./chunk-GRXFWFGP.js";
@@ -122,7 +122,7 @@ import {
122
122
  isHello,
123
123
  linkVersionCheck,
124
124
  negotiateProtocol
125
- } from "./chunk-R4G74YF4.js";
125
+ } from "./chunk-K2CDJHNS.js";
126
126
  import {
127
127
  loadLinkSpecs
128
128
  } from "./chunk-BU2ISPLO.js";
@@ -260,7 +260,7 @@ import {
260
260
  import "./chunk-APZ6ZTDA.js";
261
261
  import "./chunk-BFQSGIN6.js";
262
262
  import "./chunk-D7UZLH36.js";
263
- import "./chunk-O4NZNNM6.js";
263
+ import "./chunk-IOT6SW6S.js";
264
264
  import "./chunk-EW2ZM2PC.js";
265
265
  import "./chunk-T2BK6RAR.js";
266
266
  import {
@@ -9085,6 +9085,30 @@ var handleSdkShellStop = routed((_client, m, d) => {
9085
9085
  m.update(() => true);
9086
9086
  });
9087
9087
 
9088
+ // src/commands/sessions/daemon/shell/discardShellResult.ts
9089
+ function discardShellResult(session, shellId) {
9090
+ const row = session.sdkShell?.find((r) => r.id === shellId);
9091
+ if (row?.state !== "held") return false;
9092
+ const rest = session.sdkShell?.filter((r) => r.id !== shellId);
9093
+ session.sdkShell = rest?.length ? rest : void 0;
9094
+ daemonLog(`session ${session.id} shell ${shellId} discarded held result`);
9095
+ return true;
9096
+ }
9097
+
9098
+ // src/commands/sessions/daemon/shell/handleSdkShellDiscard.ts
9099
+ var handleSdkShellDiscard = routed((_client, m, d) => {
9100
+ const id = String(d.sessionId);
9101
+ const shellId = String(d.shellId);
9102
+ const session = m.session(id);
9103
+ if (!session || !discardShellResult(session, shellId)) {
9104
+ daemonLog(
9105
+ `sdk-shell-discard ignored: session ${id} shell ${shellId} ${session ? "is not held" : "session was not found"}`
9106
+ );
9107
+ return;
9108
+ }
9109
+ m.update(() => true);
9110
+ });
9111
+
9088
9112
  // src/commands/sessions/daemon/handleWebLog.ts
9089
9113
  var handleWebLog = (client, _m, d) => {
9090
9114
  daemonLog(`web: ${String(d.message)}`);
@@ -10304,6 +10328,7 @@ var messageHandlers = {
10304
10328
  "sdk-launch": handleSdkLaunch,
10305
10329
  "sdk-shell": handleSdkShell,
10306
10330
  "sdk-shell-stop": handleSdkShellStop,
10331
+ "sdk-shell-discard": handleSdkShellDiscard,
10307
10332
  "type-prompt-to-writer": handleTypePromptToWriter,
10308
10333
  ...retryHandlers,
10309
10334
  dismiss: handleDismiss,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-W7TRZLEM.js";
10
10
  import {
11
11
  package_default
12
- } from "./chunk-O4NZNNM6.js";
12
+ } from "./chunk-IOT6SW6S.js";
13
13
 
14
14
  // src/commands/extension/signExtension.ts
15
15
  import { rm as rm2 } from "fs/promises";
@@ -2,11 +2,11 @@ import {
2
2
  linkStatus,
3
3
  postToPeer,
4
4
  startPeerAction
5
- } from "./chunk-GLWIKWJD.js";
6
- import "./chunk-XY4XHIGT.js";
5
+ } from "./chunk-HZ3M46QF.js";
6
+ import "./chunk-HIR565Z6.js";
7
7
  import "./chunk-4HKB2TAG.js";
8
- import "./chunk-MPN7AQZO.js";
9
- import "./chunk-R4G74YF4.js";
8
+ import "./chunk-KYJB7J4C.js";
9
+ import "./chunk-K2CDJHNS.js";
10
10
  import "./chunk-B7VOTF5Q.js";
11
11
  import "./chunk-VABNWHSE.js";
12
12
  import "./chunk-BU2ISPLO.js";
@@ -19,7 +19,7 @@ import {
19
19
  import "./chunk-5H7EHZ3J.js";
20
20
  import "./chunk-GIHVMELY.js";
21
21
  import "./chunk-2EW62DM5.js";
22
- import "./chunk-O4NZNNM6.js";
22
+ import "./chunk-IOT6SW6S.js";
23
23
  import "./chunk-YC6XUY34.js";
24
24
  import "./chunk-I4J2HRNZ.js";
25
25
  import "./chunk-GRXFWFGP.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  web
3
- } from "./chunk-XDBJOQY4.js";
3
+ } from "./chunk-7KIMLQEA.js";
4
4
  import "./chunk-WACC5D2Z.js";
5
5
  import "./chunk-SURCYYQ6.js";
6
6
  import "./chunk-JNCFHWBK.js";
7
7
  import "./chunk-JM57BCD6.js";
8
8
  import "./chunk-GZ7EEHJH.js";
9
- import "./chunk-XY4XHIGT.js";
9
+ import "./chunk-HIR565Z6.js";
10
10
  import "./chunk-4HKB2TAG.js";
11
- import "./chunk-MPN7AQZO.js";
12
- import "./chunk-R4G74YF4.js";
11
+ import "./chunk-KYJB7J4C.js";
12
+ import "./chunk-K2CDJHNS.js";
13
13
  import "./chunk-B7VOTF5Q.js";
14
14
  import "./chunk-VABNWHSE.js";
15
15
  import "./chunk-BU2ISPLO.js";
@@ -136,7 +136,7 @@ import "./chunk-V5NFBUVS.js";
136
136
  import "./chunk-APZ6ZTDA.js";
137
137
  import "./chunk-BFQSGIN6.js";
138
138
  import "./chunk-D7UZLH36.js";
139
- import "./chunk-O4NZNNM6.js";
139
+ import "./chunk-IOT6SW6S.js";
140
140
  import "./chunk-TYX4TQNO.js";
141
141
  import "./chunk-YVL3NXEB.js";
142
142
  import "./chunk-UEWARAPX.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  web
3
- } from "./chunk-XDBJOQY4.js";
3
+ } from "./chunk-7KIMLQEA.js";
4
4
  import "./chunk-WACC5D2Z.js";
5
5
  import "./chunk-SURCYYQ6.js";
6
6
  import "./chunk-JNCFHWBK.js";
7
7
  import "./chunk-JM57BCD6.js";
8
8
  import "./chunk-GZ7EEHJH.js";
9
- import "./chunk-XY4XHIGT.js";
9
+ import "./chunk-HIR565Z6.js";
10
10
  import "./chunk-4HKB2TAG.js";
11
- import "./chunk-MPN7AQZO.js";
12
- import "./chunk-R4G74YF4.js";
11
+ import "./chunk-KYJB7J4C.js";
12
+ import "./chunk-K2CDJHNS.js";
13
13
  import "./chunk-B7VOTF5Q.js";
14
14
  import "./chunk-VABNWHSE.js";
15
15
  import "./chunk-BU2ISPLO.js";
@@ -136,7 +136,7 @@ import "./chunk-V5NFBUVS.js";
136
136
  import "./chunk-APZ6ZTDA.js";
137
137
  import "./chunk-BFQSGIN6.js";
138
138
  import "./chunk-D7UZLH36.js";
139
- import "./chunk-O4NZNNM6.js";
139
+ import "./chunk-IOT6SW6S.js";
140
140
  import "./chunk-TYX4TQNO.js";
141
141
  import "./chunk-YVL3NXEB.js";
142
142
  import "./chunk-UEWARAPX.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1178.0",
3
+ "version": "0.1179.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {