@staff0rd/assist 0.1217.0 → 0.1217.2

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,10 +9,10 @@ import {
9
9
  import {
10
10
  buildDoctorProbes,
11
11
  diagnoseLink
12
- } from "./chunk-U6HYS2L4.js";
12
+ } from "./chunk-SE7AGKET.js";
13
13
  import "./chunk-VABNWHSE.js";
14
14
  import "./chunk-DS2YJZZY.js";
15
- import "./chunk-T7MMHJLV.js";
15
+ import "./chunk-BN7NHR6E.js";
16
16
  import {
17
17
  loadLinkSpecs
18
18
  } from "./chunk-JWMBBFAS.js";
@@ -30,7 +30,7 @@ import {
30
30
  detectPlatform
31
31
  } from "./chunk-E36L7ASL.js";
32
32
  import "./chunk-GIHVMELY.js";
33
- import "./chunk-56RCMDQV.js";
33
+ import "./chunk-UKER3EBG.js";
34
34
  import "./chunk-XYZPWUS6.js";
35
35
  import "./chunk-TH42OUCW.js";
36
36
  import "./chunk-J2OF6KJ4.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-56RCMDQV.js";
20
+ } from "./chunk-UKER3EBG.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-DHSE2HGG.js")).web({
96
+ async (options) => (await import("./web-FI5YBEGD.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-SYXBBBVO.js"), "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-PNOCYLSQ.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-WNFRVQVE.js");
677
677
  setBacklogDir(thisCommand.opts().dir);
678
678
  }).action(
679
- async (options) => (await import("./web-SYXBBBVO.js")).web({ port: "3100", open: options.open })
679
+ async (options) => (await import("./web-PNOCYLSQ.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-GZR6TD4D.js");
992
+ const { signExtension } = await import("./signExtension-AM57SFSM.js");
993
993
  if (options.url) return printExtensionUrl();
994
994
  return options.sign ? signExtension() : extension();
995
995
  });
@@ -2696,7 +2696,7 @@ function registerDaemon(program) {
2696
2696
  const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
2697
2697
  cmd.command("run").description(
2698
2698
  "Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
2699
- ).action(lazyAction(() => import("./runDaemon-7HULM7J6.js"), "runDaemon"));
2699
+ ).action(lazyAction(() => import("./runDaemon-BKWYOHBL.js"), "runDaemon"));
2700
2700
  cmd.command("status").description(
2701
2701
  "Show sessions daemon status, live sessions, and any stray daemon processes"
2702
2702
  ).action(lazyAction(() => import("./daemonStatus-EAZHBC6O.js"), "daemonStatus"));
@@ -2720,7 +2720,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
2720
2720
  nodes.command("doctor [name]").description(
2721
2721
  "Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
2722
2722
  ).option("--json", "Output as JSON").action(
2723
- async (name, _options, command) => (await import("./doctorNodes-2SD2WVJ5.js")).doctorNodes(
2723
+ async (name, _options, command) => (await import("./doctorNodes-I7NHNC66.js")).doctorNodes(
2724
2724
  name,
2725
2725
  command.optsWithGlobals()
2726
2726
  )
@@ -2750,14 +2750,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
2750
2750
  internalCommand(
2751
2751
  nodes.command("restart <name>").description(
2752
2752
  "Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
2753
- ).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-D45PZ5MM.js"), "restartNode")),
2753
+ ).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-2NKDSMU7.js"), "restartNode")),
2754
2754
  calledBy5
2755
2755
  );
2756
2756
  internalCommand(
2757
2757
  nodes.command("update <name>").description(
2758
2758
  "Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
2759
2759
  ).action(
2760
- async (name) => (await import("./updateNode-GAJXBTZL.js")).updateNode(name)
2760
+ async (name) => (await import("./updateNode-LC55GQPX.js")).updateNode(name)
2761
2761
  ),
2762
2762
  calledBy5
2763
2763
  );
@@ -2820,7 +2820,7 @@ function registerSetStatusCommand(cmd) {
2820
2820
  // src/commands/sessions/registerSessionsWeb.ts
2821
2821
  function registerSessionsWeb(cmd) {
2822
2822
  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(
2823
- async (options, command) => (await import("./web-DHSE2HGG.js")).web({
2823
+ async (options, command) => (await import("./web-FI5YBEGD.js")).web({
2824
2824
  ...options,
2825
2825
  open: command.optsWithGlobals().open
2826
2826
  })
@@ -2835,7 +2835,7 @@ function registerSessionsWeb(cmd) {
2835
2835
  // src/commands/sessions/registerSessions.ts
2836
2836
  function registerSessions(program) {
2837
2837
  const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
2838
- async (_options, command) => (await import("./web-DHSE2HGG.js")).web({
2838
+ async (_options, command) => (await import("./web-FI5YBEGD.js")).web({
2839
2839
  port: "3100",
2840
2840
  open: command.optsWithGlobals().open
2841
2841
  })
@@ -2,20 +2,20 @@ import {
2
2
  linkStatus,
3
3
  postToPeer,
4
4
  startPeerAction
5
- } from "./chunk-PA5KFV6K.js";
6
- import "./chunk-IW3UEHLO.js";
7
- import "./chunk-U6HYS2L4.js";
5
+ } from "./chunk-Y7BMVFWM.js";
6
+ import "./chunk-VP5IDAYV.js";
7
+ import "./chunk-SE7AGKET.js";
8
8
  import "./chunk-VABNWHSE.js";
9
9
  import "./chunk-DS2YJZZY.js";
10
10
  import "./chunk-4HKB2TAG.js";
11
- import "./chunk-T7MMHJLV.js";
11
+ import "./chunk-BN7NHR6E.js";
12
12
  import "./chunk-JWMBBFAS.js";
13
13
  import "./chunk-X4QB3FR2.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-56RCMDQV.js";
18
+ import "./chunk-UKER3EBG.js";
19
19
  import "./chunk-TH42OUCW.js";
20
20
  import "./chunk-J2OF6KJ4.js";
21
21
  import "./chunk-GRXFWFGP.js";
@@ -131,7 +131,7 @@ import {
131
131
  isHello,
132
132
  linkVersionCheck,
133
133
  negotiateProtocol
134
- } from "./chunk-T7MMHJLV.js";
134
+ } from "./chunk-BN7NHR6E.js";
135
135
  import {
136
136
  loadLinkSpecs
137
137
  } from "./chunk-JWMBBFAS.js";
@@ -272,7 +272,7 @@ import {
272
272
  import "./chunk-APZ6ZTDA.js";
273
273
  import "./chunk-K4DJEFDZ.js";
274
274
  import "./chunk-D7UZLH36.js";
275
- import "./chunk-56RCMDQV.js";
275
+ import "./chunk-UKER3EBG.js";
276
276
  import "./chunk-EW2ZM2PC.js";
277
277
  import "./chunk-MYH4MQX2.js";
278
278
  import {
@@ -3040,7 +3040,10 @@ function writeToSdkSession(session, data) {
3040
3040
  function writeToSession(sessions, id, data, onStatusChange, viewer = {}) {
3041
3041
  const s = sessions.get(id);
3042
3042
  if (!s || s.status === "done") return;
3043
- if (isSdkSession(s)) return writeToSdkSession(s, data);
3043
+ if (isSdkSession(s)) {
3044
+ claimViewer(s, viewer, "input");
3045
+ return writeToSdkSession(s, data);
3046
+ }
3044
3047
  const response = isTerminalResponse(data);
3045
3048
  if (dropsInactiveViewerResponse(s, response, viewer)) return;
3046
3049
  s.pty?.write(data);
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-W7TRZLEM.js";
10
10
  import {
11
11
  package_default
12
- } from "./chunk-56RCMDQV.js";
12
+ } from "./chunk-UKER3EBG.js";
13
13
 
14
14
  // src/commands/extension/signExtension.ts
15
15
  import { rm as rm2 } from "fs/promises";
@@ -2,13 +2,13 @@ import {
2
2
  linkStatus,
3
3
  postToPeer,
4
4
  startPeerAction
5
- } from "./chunk-PA5KFV6K.js";
6
- import "./chunk-IW3UEHLO.js";
7
- import "./chunk-U6HYS2L4.js";
5
+ } from "./chunk-Y7BMVFWM.js";
6
+ import "./chunk-VP5IDAYV.js";
7
+ import "./chunk-SE7AGKET.js";
8
8
  import "./chunk-VABNWHSE.js";
9
9
  import "./chunk-DS2YJZZY.js";
10
10
  import "./chunk-4HKB2TAG.js";
11
- import "./chunk-T7MMHJLV.js";
11
+ import "./chunk-BN7NHR6E.js";
12
12
  import "./chunk-JWMBBFAS.js";
13
13
  import "./chunk-X4QB3FR2.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-56RCMDQV.js";
22
+ import "./chunk-UKER3EBG.js";
23
23
  import "./chunk-TH42OUCW.js";
24
24
  import "./chunk-J2OF6KJ4.js";
25
25
  import "./chunk-GRXFWFGP.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  web
3
- } from "./chunk-FE7X7Z5P.js";
3
+ } from "./chunk-Q53H77EM.js";
4
4
  import "./chunk-SURCYYQ6.js";
5
5
  import "./chunk-JNCFHWBK.js";
6
6
  import "./chunk-JM57BCD6.js";
7
- import "./chunk-IW3UEHLO.js";
8
- import "./chunk-U6HYS2L4.js";
7
+ import "./chunk-VP5IDAYV.js";
8
+ import "./chunk-SE7AGKET.js";
9
9
  import "./chunk-VABNWHSE.js";
10
10
  import "./chunk-DS2YJZZY.js";
11
11
  import "./chunk-A73N4XCX.js";
12
12
  import "./chunk-TYDUIDUU.js";
13
13
  import "./chunk-4HKB2TAG.js";
14
- import "./chunk-T7MMHJLV.js";
14
+ import "./chunk-BN7NHR6E.js";
15
15
  import "./chunk-JWMBBFAS.js";
16
16
  import "./chunk-X4QB3FR2.js";
17
17
  import "./chunk-B7VOTF5Q.js";
@@ -140,7 +140,7 @@ import "./chunk-FXIJIVYO.js";
140
140
  import "./chunk-APZ6ZTDA.js";
141
141
  import "./chunk-K4DJEFDZ.js";
142
142
  import "./chunk-D7UZLH36.js";
143
- import "./chunk-56RCMDQV.js";
143
+ import "./chunk-UKER3EBG.js";
144
144
  import "./chunk-QK3AYGT3.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-FE7X7Z5P.js";
3
+ } from "./chunk-Q53H77EM.js";
4
4
  import "./chunk-SURCYYQ6.js";
5
5
  import "./chunk-JNCFHWBK.js";
6
6
  import "./chunk-JM57BCD6.js";
7
- import "./chunk-IW3UEHLO.js";
8
- import "./chunk-U6HYS2L4.js";
7
+ import "./chunk-VP5IDAYV.js";
8
+ import "./chunk-SE7AGKET.js";
9
9
  import "./chunk-VABNWHSE.js";
10
10
  import "./chunk-DS2YJZZY.js";
11
11
  import "./chunk-A73N4XCX.js";
12
12
  import "./chunk-TYDUIDUU.js";
13
13
  import "./chunk-4HKB2TAG.js";
14
- import "./chunk-T7MMHJLV.js";
14
+ import "./chunk-BN7NHR6E.js";
15
15
  import "./chunk-JWMBBFAS.js";
16
16
  import "./chunk-X4QB3FR2.js";
17
17
  import "./chunk-B7VOTF5Q.js";
@@ -140,7 +140,7 @@ import "./chunk-FXIJIVYO.js";
140
140
  import "./chunk-APZ6ZTDA.js";
141
141
  import "./chunk-K4DJEFDZ.js";
142
142
  import "./chunk-D7UZLH36.js";
143
- import "./chunk-56RCMDQV.js";
143
+ import "./chunk-UKER3EBG.js";
144
144
  import "./chunk-QK3AYGT3.js";
145
145
  import "./chunk-YVL3NXEB.js";
146
146
  import "./chunk-UEWARAPX.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1217.0",
3
+ "version": "0.1217.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {