@staff0rd/assist 0.1169.1 → 0.1170.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.
Files changed (33) hide show
  1. package/dist/.build-files +28 -28
  2. package/dist/built-version +1 -1
  3. package/dist/{chunk-23RN2SMA.js → chunk-2HXFT4UA.js} +1 -1
  4. package/dist/{chunk-Q2FPO2KT.js → chunk-4GQT37PJ.js} +2 -2
  5. package/dist/{chunk-CZ24K775.js → chunk-4YNHDVLM.js} +1 -1
  6. package/dist/{chunk-2U7IRBJ2.js → chunk-5I4N7Y7B.js} +1 -1
  7. package/dist/{chunk-DUS5WQ3M.js → chunk-6DOKYFVL.js} +3 -3
  8. package/dist/{chunk-IUBV4ZNS.js → chunk-GG3PS6PL.js} +1 -1
  9. package/dist/{chunk-BWOCKEUI.js → chunk-IB2PNGPT.js} +1 -1
  10. package/dist/{chunk-TQCCEWWN.js → chunk-KS2LGA6V.js} +3 -2
  11. package/dist/{chunk-WJM6BSEL.js → chunk-MZ4PK3IM.js} +1 -1
  12. package/dist/{chunk-GT5MU5EO.js → chunk-PHSMORWI.js} +1 -1
  13. package/dist/{chunk-YQAATWQ4.js → chunk-S52T4GS4.js} +1 -1
  14. package/dist/{chunk-R5RI77VT.js → chunk-UI7EVOVW.js} +1 -1
  15. package/dist/commands/sessions/web/bundle.js +1 -1
  16. package/dist/{doctorNodes-ESV5DC7T.js → doctorNodes-HHTGXYR3.js} +3 -3
  17. package/dist/index.js +23 -23
  18. package/dist/{launchMode-7QOKFQ6Z.js → launchMode-OBKENNRJ.js} +4 -4
  19. package/dist/{next-BCHDDNK6.js → next-LEA6YPKZ.js} +3 -3
  20. package/dist/{phaseDone-IDSQF65B.js → phaseDone-ZLYD53UQ.js} +26 -6
  21. package/dist/{refine-BHJO6FOW.js → refine-2MQJKFON.js} +5 -5
  22. package/dist/{restartNode-7WNTZEPK.js → restartNode-IMOJIOBP.js} +5 -5
  23. package/dist/{rewindPhase-UHEZJFPC.js → rewindPhase-HAHIU236.js} +2 -2
  24. package/dist/{run-RETGCI6N.js → run-HKC4DM2J.js} +2 -2
  25. package/dist/{run-CRSLYRI4.js → run-SGTIZ7RV.js} +2 -2
  26. package/dist/{runDaemon-RXWJARF3.js → runDaemon-WC5S62NG.js} +13 -2
  27. package/dist/{runRefine-2YX2DZMV.js → runRefine-XKRTEJAL.js} +5 -5
  28. package/dist/{signExtension-TD23RJSI.js → signExtension-O3PFO3SY.js} +1 -1
  29. package/dist/{updateNode-CDHZLXUG.js → updateNode-XKBRAECB.js} +5 -5
  30. package/dist/{web-JIDLLRPG.js → web-AJ5ITLVU.js} +7 -7
  31. package/dist/{web-RGSZMJJD.js → web-AU6IIXGV.js} +7 -7
  32. package/dist/{writeSignal-NGH5I4AX.js → writeSignal-7QEYDUHV.js} +1 -1
  33. package/package.json +1 -1
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-2U7IRBJ2.js";
20
+ } from "./chunk-5I4N7Y7B.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-JIDLLRPG.js")).web({
95
+ async (options) => (await import("./web-AJ5ITLVU.js")).web({
96
96
  port: "3100",
97
97
  open: options.open
98
98
  })
@@ -397,7 +397,7 @@ function registerMoveRepoCommand(cmd) {
397
397
  // src/commands/backlog/registerNextCommand.ts
398
398
  function registerNextCommand(cmd) {
399
399
  cmd.command("next").argument("[id]", "Backlog item ID to run first").description("Pick and run the next backlog item, or open /draft if none").option("-w, --write", "Run Claude with auto permission mode (default)").option("--no-write", "Run Claude without auto permission mode").option("--once", "Exit after the first completed item run").action(
400
- async (id, opts) => (await import("./next-BCHDDNK6.js")).next(
400
+ async (id, opts) => (await import("./next-LEA6YPKZ.js")).next(
401
401
  { allowEdits: opts.write !== false, once: opts.once },
402
402
  id
403
403
  )
@@ -408,7 +408,7 @@ function registerNextCommand(cmd) {
408
408
  function registerPlanCommands(cmd) {
409
409
  cmd.command("plan <id>").description("Display the plan for a backlog item").action(lazyAction(() => import("./plan-IQCMHN77.js"), "plan"));
410
410
  internalCommand(
411
- cmd.command("phase-done <id> <phase> <summary>").description("Signal that a plan phase is complete").action(lazyAction(() => import("./phaseDone-IDSQF65B.js"), "phaseDone")),
411
+ cmd.command("phase-done <id> <phase> <summary>").description("Signal that a plan phase is complete").action(lazyAction(() => import("./phaseDone-ZLYD53UQ.js"), "phaseDone")),
412
412
  "the agent running each phase of a backlog run"
413
413
  );
414
414
  }
@@ -420,7 +420,7 @@ function registerRefineCommand(cmd) {
420
420
  "Coding harness to launch (claude|codex|pi); defaults to the configured harness.engine. Exits with the reasons, without launching, when Refine is unavailable on it"
421
421
  ).action(
422
422
  async (id, opts) => {
423
- const { refine: backlogRefine } = await import("./refine-BHJO6FOW.js");
423
+ const { refine: backlogRefine } = await import("./refine-2MQJKFON.js");
424
424
  const { resolveHarness } = await import("./resolveHarness-Q6HQK2IZ.js");
425
425
  return backlogRefine(id, {
426
426
  once: opts.once,
@@ -439,7 +439,7 @@ function registerRefreshDocsCommand(cmd) {
439
439
 
440
440
  // src/commands/backlog/registerRewindCommand.ts
441
441
  function registerRewindCommand(cmd) {
442
- cmd.command("rewind <id> <phase>").description("Rewind a backlog item to an earlier phase").requiredOption("--reason <reason>", "Reason for rewinding").action(lazyAction(() => import("./rewindPhase-UHEZJFPC.js"), "rewindPhase"));
442
+ cmd.command("rewind <id> <phase>").description("Rewind a backlog item to an earlier phase").requiredOption("--reason <reason>", "Reason for rewinding").action(lazyAction(() => import("./rewindPhase-HAHIU236.js"), "rewindPhase"));
443
443
  }
444
444
 
445
445
  // src/commands/backlog/registerRunCommand.ts
@@ -458,7 +458,7 @@ function registerRunCommand(cmd) {
458
458
  const { pullIfConfigured } = await import("./pullIfConfigured-V2H6IFDQ.js");
459
459
  const { resolveHarness } = await import("./resolveHarness-Q6HQK2IZ.js");
460
460
  const { resolveModel } = await import("./resolveModel-EPG2YC5Q.js");
461
- const { run: backlogRun } = await import("./run-CRSLYRI4.js");
461
+ const { run: backlogRun } = await import("./run-SGTIZ7RV.js");
462
462
  if (!opts.resumeSession) await pullIfConfigured();
463
463
  const harness = resolveHarness(opts.harness, "run");
464
464
  await backlogRun(id, {
@@ -564,7 +564,7 @@ function registerShowCommands(cmd) {
564
564
 
565
565
  // src/commands/registerBacklog.ts
566
566
  function registerWebCommand(cmd) {
567
- 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-RGSZMJJD.js"), "web"));
567
+ 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-AU6IIXGV.js"), "web"));
568
568
  }
569
569
  var registrars = [
570
570
  registerItemCommands,
@@ -594,7 +594,7 @@ function registerBacklog(program) {
594
594
  const { setBacklogDir } = await import("./getBacklogDir-AVGEKM42.js");
595
595
  setBacklogDir(thisCommand.opts().dir);
596
596
  }).action(
597
- async (options) => (await import("./web-RGSZMJJD.js")).web({ port: "3100", open: options.open })
597
+ async (options) => (await import("./web-AU6IIXGV.js")).web({ port: "3100", open: options.open })
598
598
  );
599
599
  for (const register of registrars) {
600
600
  register(cmd);
@@ -907,7 +907,7 @@ function registerExtension(program) {
907
907
  ).action(async (options) => {
908
908
  const { extension } = await import("./extension-YYRD5EM6.js");
909
909
  const { printExtensionUrl } = await import("./printExtensionUrl-IW2WTSNS.js");
910
- const { signExtension } = await import("./signExtension-TD23RJSI.js");
910
+ const { signExtension } = await import("./signExtension-O3PFO3SY.js");
911
911
  if (options.url) return printExtensionUrl();
912
912
  return options.sign ? signExtension() : extension();
913
913
  });
@@ -1315,7 +1315,7 @@ var HARNESS_FLAG = "Coding harness to launch (claude|codex|pi); defaults to the
1315
1315
  function registerRefineLaunch(program, resumeFlag) {
1316
1316
  const command = program.command("refine").argument("[id]", "Backlog item ID").description(
1317
1317
  "Launch a coding harness in /refine mode to refine a backlog item"
1318
- ).option("--once", "Exit when the initial task completes").option("--resume-session <id>", resumeFlag).option("--harness <kind>", HARNESS_FLAG).action(lazyAction(() => import("./runRefine-2YX2DZMV.js"), "runRefine"));
1318
+ ).option("--once", "Exit when the initial task completes").option("--resume-session <id>", resumeFlag).option("--harness <kind>", HARNESS_FLAG).action(lazyAction(() => import("./runRefine-XKRTEJAL.js"), "runRefine"));
1319
1319
  configHelp(command, harnessConfigHelp);
1320
1320
  }
1321
1321
 
@@ -1378,7 +1378,7 @@ function registerDescriptionLaunch(program, name, slashCommand, description, fea
1378
1378
  "--model <model>",
1379
1379
  `Model to launch the harness with; defaults to harness.defaults.${name}.model while the ${name} type's harness is used`
1380
1380
  ).option("--no-model", "Launch with the harness's own default model").action(async (text, opts) => {
1381
- const { launchMode } = await import("./launchMode-7QOKFQ6Z.js");
1381
+ const { launchMode } = await import("./launchMode-OBKENNRJ.js");
1382
1382
  const { resolveHarness } = await import("./resolveHarness-Q6HQK2IZ.js");
1383
1383
  const { resolveModel } = await import("./resolveModel-EPG2YC5Q.js");
1384
1384
  const harness = resolveHarness(opts.harness, name);
@@ -1399,7 +1399,7 @@ function registerDescriptionLaunch(program, name, slashCommand, description, fea
1399
1399
  var RESUME_SESSION_FLAG = "Resume an interrupted harness session by its conversation id (used by the sessions daemon on restart)";
1400
1400
  function registerNext(program) {
1401
1401
  program.command("next").argument("[id]", "Backlog item ID to run first").description("Alias for backlog next").option("--once", "Exit after the first completed item run").action(
1402
- async (id, opts) => (await import("./next-BCHDDNK6.js")).next(
1402
+ async (id, opts) => (await import("./next-LEA6YPKZ.js")).next(
1403
1403
  { allowEdits: true, once: opts.once },
1404
1404
  id
1405
1405
  )
@@ -2096,7 +2096,7 @@ function registerSignal(program) {
2096
2096
  const signalCommand = program.command("signal").description("Write an assist signal file");
2097
2097
  internalCommand(
2098
2098
  signalCommand.command("next").argument("[id]", "Backlog item ID to run directly").description("Write a next signal to chain into assist next").action(async (id) => {
2099
- const { writeSignal } = await import("./writeSignal-NGH5I4AX.js");
2099
+ const { writeSignal } = await import("./writeSignal-7QEYDUHV.js");
2100
2100
  writeSignal("next", id ? { id } : void 0);
2101
2101
  console.log("Signal written.");
2102
2102
  }),
@@ -2106,7 +2106,7 @@ function registerSignal(program) {
2106
2106
  signalCommand.command("done").argument("[ids...]", "Backlog item IDs created by the session").description(
2107
2107
  "Write a done signal to end a --once launch session, once every item it set out to create exists"
2108
2108
  ).action(async (ids) => {
2109
- const { writeSignal } = await import("./writeSignal-NGH5I4AX.js");
2109
+ const { writeSignal } = await import("./writeSignal-7QEYDUHV.js");
2110
2110
  writeSignal("done", ids.length > 0 ? { ids } : void 0);
2111
2111
  console.log("Signal written.");
2112
2112
  }),
@@ -2545,7 +2545,7 @@ function registerRunAdd(runCommand) {
2545
2545
  // src/commands/run/registerRunSubcommands.ts
2546
2546
  function registerRunSubcommands(runCommand) {
2547
2547
  runCommand.command("list").description("List configured run commands").option("-v, --verbose", "Show full command details").action(
2548
- async (opts) => (await import("./run-RETGCI6N.js")).listRunConfigs(!!opts.verbose)
2548
+ async (opts) => (await import("./run-HKC4DM2J.js")).listRunConfigs(!!opts.verbose)
2549
2549
  );
2550
2550
  registerRunAdd(runCommand);
2551
2551
  runCommand.command("link").description("Link run configurations from another project's assist.yml").argument("<path>", "Relative path to the linked project").requiredOption("--prefix <prefix>", "Namespace prefix for linked commands").allowUnknownOption().action(lazyAction(() => import("./link-LYQZULAX.js"), "link"));
@@ -2566,7 +2566,7 @@ function registerRun(program) {
2566
2566
  lazyHelpText(
2567
2567
  runCommand,
2568
2568
  async () => (await import("./formatConfiguredCommands-WI25I2JJ.js")).formatConfiguredCommands
2569
- ).action(lazyAction(() => import("./run-RETGCI6N.js"), "run"));
2569
+ ).action(lazyAction(() => import("./run-HKC4DM2J.js"), "run"));
2570
2570
  configHelp(runCommand, runConfigHelp);
2571
2571
  registerRunSubcommands(runCommand);
2572
2572
  }
@@ -2576,7 +2576,7 @@ function registerDaemon(program) {
2576
2576
  const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
2577
2577
  cmd.command("run").description(
2578
2578
  "Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
2579
- ).action(lazyAction(() => import("./runDaemon-RXWJARF3.js"), "runDaemon"));
2579
+ ).action(lazyAction(() => import("./runDaemon-WC5S62NG.js"), "runDaemon"));
2580
2580
  cmd.command("status").description(
2581
2581
  "Show sessions daemon status, live sessions, and any stray daemon processes"
2582
2582
  ).action(lazyAction(() => import("./daemonStatus-GZKN2CYX.js"), "daemonStatus"));
@@ -2600,7 +2600,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
2600
2600
  nodes.command("doctor [name]").description(
2601
2601
  "Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
2602
2602
  ).option("--json", "Output as JSON").action(
2603
- async (name, _options, command) => (await import("./doctorNodes-ESV5DC7T.js")).doctorNodes(
2603
+ async (name, _options, command) => (await import("./doctorNodes-HHTGXYR3.js")).doctorNodes(
2604
2604
  name,
2605
2605
  command.optsWithGlobals()
2606
2606
  )
@@ -2630,14 +2630,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
2630
2630
  internalCommand(
2631
2631
  nodes.command("restart <name>").description(
2632
2632
  "Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
2633
- ).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-7WNTZEPK.js"), "restartNode")),
2633
+ ).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-IMOJIOBP.js"), "restartNode")),
2634
2634
  calledBy5
2635
2635
  );
2636
2636
  internalCommand(
2637
2637
  nodes.command("update <name>").description(
2638
2638
  "Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
2639
2639
  ).action(
2640
- async (name) => (await import("./updateNode-CDHZLXUG.js")).updateNode(name)
2640
+ async (name) => (await import("./updateNode-XKBRAECB.js")).updateNode(name)
2641
2641
  ),
2642
2642
  calledBy5
2643
2643
  );
@@ -2700,7 +2700,7 @@ function registerSetStatusCommand(cmd) {
2700
2700
  // src/commands/sessions/registerSessionsWeb.ts
2701
2701
  function registerSessionsWeb(cmd) {
2702
2702
  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(
2703
- async (options, command) => (await import("./web-JIDLLRPG.js")).web({
2703
+ async (options, command) => (await import("./web-AJ5ITLVU.js")).web({
2704
2704
  ...options,
2705
2705
  open: command.optsWithGlobals().open
2706
2706
  })
@@ -2715,7 +2715,7 @@ function registerSessionsWeb(cmd) {
2715
2715
  // src/commands/sessions/registerSessions.ts
2716
2716
  function registerSessions(program) {
2717
2717
  const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
2718
- async (_options, command) => (await import("./web-JIDLLRPG.js")).web({
2718
+ async (_options, command) => (await import("./web-AJ5ITLVU.js")).web({
2719
2719
  port: "3100",
2720
2720
  open: command.optsWithGlobals().open
2721
2721
  })
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  launchMode
3
- } from "./chunk-Q2FPO2KT.js";
4
- import "./chunk-WJM6BSEL.js";
3
+ } from "./chunk-4GQT37PJ.js";
4
+ import "./chunk-MZ4PK3IM.js";
5
5
  import "./chunk-SB4BG7PH.js";
6
6
  import "./chunk-B3JSQA5D.js";
7
- import "./chunk-BWOCKEUI.js";
7
+ import "./chunk-IB2PNGPT.js";
8
8
  import "./chunk-FQJJEZ3O.js";
9
9
  import "./chunk-7NZOH4LN.js";
10
10
  import "./chunk-F7QYFJB2.js";
@@ -76,7 +76,7 @@ import "./chunk-YXXKT6LL.js";
76
76
  import "./chunk-USKD27FY.js";
77
77
  import "./chunk-HN7MFXZ7.js";
78
78
  import "./chunk-DZGYHAE7.js";
79
- import "./chunk-TQCCEWWN.js";
79
+ import "./chunk-KS2LGA6V.js";
80
80
  import "./chunk-ZH6HKQOY.js";
81
81
  import "./chunk-ELF4PBZX.js";
82
82
  import "./chunk-6DGPQ67E.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  next
3
- } from "./chunk-WJM6BSEL.js";
3
+ } from "./chunk-MZ4PK3IM.js";
4
4
  import "./chunk-SB4BG7PH.js";
5
5
  import "./chunk-B3JSQA5D.js";
6
- import "./chunk-BWOCKEUI.js";
6
+ import "./chunk-IB2PNGPT.js";
7
7
  import "./chunk-FQJJEZ3O.js";
8
8
  import "./chunk-7NZOH4LN.js";
9
9
  import "./chunk-F7QYFJB2.js";
@@ -74,7 +74,7 @@ import "./chunk-YXXKT6LL.js";
74
74
  import "./chunk-USKD27FY.js";
75
75
  import "./chunk-HN7MFXZ7.js";
76
76
  import "./chunk-DZGYHAE7.js";
77
- import "./chunk-TQCCEWWN.js";
77
+ import "./chunk-KS2LGA6V.js";
78
78
  import "./chunk-ZH6HKQOY.js";
79
79
  import "./chunk-ELF4PBZX.js";
80
80
  import "./chunk-6DGPQ67E.js";
@@ -1,3 +1,6 @@
1
+ import {
2
+ sendToDaemonAwaitAck
3
+ } from "./chunk-UVTZ4VFK.js";
1
4
  import {
2
5
  appendComment
3
6
  } from "./chunk-BJDGVLYX.js";
@@ -9,11 +12,14 @@ import {
9
12
  loadItem
10
13
  } from "./chunk-U732RAGX.js";
11
14
  import "./chunk-TCTX3UXU.js";
12
- import "./chunk-6YRKJTHT.js";
15
+ import {
16
+ appendDaemonLog
17
+ } from "./chunk-6YRKJTHT.js";
13
18
  import {
14
19
  formatItemId,
15
20
  parseItemId
16
21
  } from "./chunk-N65VOEFI.js";
22
+ import "./chunk-2EW62DM5.js";
17
23
  import "./chunk-PD2BTMEY.js";
18
24
  import "./chunk-3QKE2ONF.js";
19
25
  import "./chunk-O5JIFWMQ.js";
@@ -35,12 +41,25 @@ import "./chunk-HN7MFXZ7.js";
35
41
  import "./chunk-DZGYHAE7.js";
36
42
  import {
37
43
  writeSignal
38
- } from "./chunk-TQCCEWWN.js";
44
+ } from "./chunk-KS2LGA6V.js";
45
+ import "./chunk-ZH6HKQOY.js";
39
46
  import "./chunk-ELF4PBZX.js";
40
47
 
41
48
  // src/commands/backlog/phaseDone.ts
42
49
  import chalk2 from "chalk";
43
50
 
51
+ // src/commands/sessions/closeSessionPreviewsRemote.ts
52
+ async function closeSessionPreviewsRemote(sessionId, reason) {
53
+ if (!sessionId) return;
54
+ try {
55
+ await sendToDaemonAwaitAck({ type: "close-previews", sessionId, reason });
56
+ } catch (error) {
57
+ appendDaemonLog(
58
+ `close-previews send failed: id=${sessionId} (${reason}): ${error instanceof Error ? error.message : String(error)}`
59
+ );
60
+ }
61
+ }
62
+
44
63
  // src/commands/backlog/parsePhaseNumber.ts
45
64
  import chalk from "chalk";
46
65
  function parsePhaseNumber(phase) {
@@ -70,15 +89,16 @@ async function phaseDone(id, phase, summary) {
70
89
  console.log(chalk2.red(`Item ${label} not found.`));
71
90
  return;
72
91
  }
73
- function signal() {
74
- writeSignal("phase-done", {
92
+ async function signal() {
93
+ const target = writeSignal("phase-done", {
75
94
  itemId,
76
95
  phaseIndex,
77
96
  completedAt: (/* @__PURE__ */ new Date()).toISOString()
78
97
  });
98
+ await closeSessionPreviewsRemote(target, "phase done");
79
99
  }
80
100
  if (item.status === "done") {
81
- signal();
101
+ await signal();
82
102
  console.log(
83
103
  chalk2.dim(`Item ${label} already done, skipping phase advance.`)
84
104
  );
@@ -89,7 +109,7 @@ async function phaseDone(id, phase, summary) {
89
109
  type: "summary"
90
110
  });
91
111
  await setCurrentPhase(id, phaseNumber + 1);
92
- signal();
112
+ await signal();
93
113
  console.log(
94
114
  chalk2.green(`Phase ${phaseNumber} of item ${label} marked as complete.`)
95
115
  );
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  refine
3
- } from "./chunk-IUBV4ZNS.js";
4
- import "./chunk-Q2FPO2KT.js";
5
- import "./chunk-WJM6BSEL.js";
3
+ } from "./chunk-GG3PS6PL.js";
4
+ import "./chunk-4GQT37PJ.js";
5
+ import "./chunk-MZ4PK3IM.js";
6
6
  import "./chunk-SB4BG7PH.js";
7
7
  import "./chunk-B3JSQA5D.js";
8
- import "./chunk-BWOCKEUI.js";
8
+ import "./chunk-IB2PNGPT.js";
9
9
  import "./chunk-FQJJEZ3O.js";
10
10
  import "./chunk-7NZOH4LN.js";
11
11
  import "./chunk-F7QYFJB2.js";
@@ -78,7 +78,7 @@ import "./chunk-YXXKT6LL.js";
78
78
  import "./chunk-USKD27FY.js";
79
79
  import "./chunk-HN7MFXZ7.js";
80
80
  import "./chunk-DZGYHAE7.js";
81
- import "./chunk-TQCCEWWN.js";
81
+ import "./chunk-KS2LGA6V.js";
82
82
  import "./chunk-ZH6HKQOY.js";
83
83
  import "./chunk-ELF4PBZX.js";
84
84
  import "./chunk-6DGPQ67E.js";
@@ -2,11 +2,11 @@ import {
2
2
  linkStatus,
3
3
  postToPeer,
4
4
  startPeerAction
5
- } from "./chunk-GT5MU5EO.js";
6
- import "./chunk-R5RI77VT.js";
5
+ } from "./chunk-PHSMORWI.js";
6
+ import "./chunk-UI7EVOVW.js";
7
7
  import "./chunk-4HKB2TAG.js";
8
- import "./chunk-CZ24K775.js";
9
- import "./chunk-23RN2SMA.js";
8
+ import "./chunk-4YNHDVLM.js";
9
+ import "./chunk-2HXFT4UA.js";
10
10
  import "./chunk-OD7CMDGZ.js";
11
11
  import "./chunk-VABNWHSE.js";
12
12
  import "./chunk-HHKS3UZB.js";
@@ -15,7 +15,7 @@ import "./chunk-MODUPHYS.js";
15
15
  import "./chunk-E36L7ASL.js";
16
16
  import "./chunk-6YRKJTHT.js";
17
17
  import "./chunk-OFLEIPAR.js";
18
- import "./chunk-2U7IRBJ2.js";
18
+ import "./chunk-5I4N7Y7B.js";
19
19
  import "./chunk-KGFZYUE2.js";
20
20
  import "./chunk-LBAPKP6M.js";
21
21
  import "./chunk-GRXFWFGP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rewindItemToPhase
3
- } from "./chunk-YQAATWQ4.js";
3
+ } from "./chunk-S52T4GS4.js";
4
4
  import "./chunk-BJDGVLYX.js";
5
5
  import "./chunk-OTIEVXH3.js";
6
6
  import "./chunk-NLTT3LC6.js";
@@ -54,7 +54,7 @@ import "./chunk-YXXKT6LL.js";
54
54
  import "./chunk-USKD27FY.js";
55
55
  import "./chunk-HN7MFXZ7.js";
56
56
  import "./chunk-DZGYHAE7.js";
57
- import "./chunk-TQCCEWWN.js";
57
+ import "./chunk-KS2LGA6V.js";
58
58
  import "./chunk-ZH6HKQOY.js";
59
59
  import "./chunk-ELF4PBZX.js";
60
60
  import "./chunk-6DGPQ67E.js";
@@ -20,7 +20,7 @@ import {
20
20
  import "./chunk-B3JSQA5D.js";
21
21
  import {
22
22
  run
23
- } from "./chunk-BWOCKEUI.js";
23
+ } from "./chunk-IB2PNGPT.js";
24
24
  import "./chunk-FQJJEZ3O.js";
25
25
  import "./chunk-7NZOH4LN.js";
26
26
  import "./chunk-F7QYFJB2.js";
@@ -96,7 +96,7 @@ import "./chunk-YXXKT6LL.js";
96
96
  import "./chunk-USKD27FY.js";
97
97
  import "./chunk-HN7MFXZ7.js";
98
98
  import "./chunk-DZGYHAE7.js";
99
- import "./chunk-TQCCEWWN.js";
99
+ import "./chunk-KS2LGA6V.js";
100
100
  import "./chunk-ZH6HKQOY.js";
101
101
  import "./chunk-ELF4PBZX.js";
102
102
  import "./chunk-6DGPQ67E.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  run
3
- } from "./chunk-BWOCKEUI.js";
3
+ } from "./chunk-IB2PNGPT.js";
4
4
  import "./chunk-FQJJEZ3O.js";
5
5
  import "./chunk-7NZOH4LN.js";
6
6
  import "./chunk-F7QYFJB2.js";
@@ -69,7 +69,7 @@ import "./chunk-YXXKT6LL.js";
69
69
  import "./chunk-USKD27FY.js";
70
70
  import "./chunk-HN7MFXZ7.js";
71
71
  import "./chunk-DZGYHAE7.js";
72
- import "./chunk-TQCCEWWN.js";
72
+ import "./chunk-KS2LGA6V.js";
73
73
  import "./chunk-ZH6HKQOY.js";
74
74
  import "./chunk-ELF4PBZX.js";
75
75
  import "./chunk-6DGPQ67E.js";
@@ -119,7 +119,7 @@ import {
119
119
  isHello,
120
120
  linkVersionCheck,
121
121
  negotiateProtocol
122
- } from "./chunk-23RN2SMA.js";
122
+ } from "./chunk-2HXFT4UA.js";
123
123
  import {
124
124
  loadLinkSpecs
125
125
  } from "./chunk-HHKS3UZB.js";
@@ -258,7 +258,7 @@ import {
258
258
  import "./chunk-APZ6ZTDA.js";
259
259
  import "./chunk-BFQSGIN6.js";
260
260
  import "./chunk-D7UZLH36.js";
261
- import "./chunk-2U7IRBJ2.js";
261
+ import "./chunk-5I4N7Y7B.js";
262
262
  import "./chunk-EW2ZM2PC.js";
263
263
  import "./chunk-QKHOYKUQ.js";
264
264
  import {
@@ -9024,6 +9024,16 @@ function creator(isNew, spawn5) {
9024
9024
  };
9025
9025
  }
9026
9026
 
9027
+ // src/commands/sessions/daemon/handleClosePreviews.ts
9028
+ function handleClosePreviews(client, m, d) {
9029
+ const sessionId = d.sessionId;
9030
+ const reason6 = d.reason ?? "previews closed";
9031
+ daemonLog(`close-previews received: id=${sessionId} (${reason6})`);
9032
+ sendTo(client, { type: "ack", sessionId });
9033
+ if (m.links.route(client, d)) return;
9034
+ m.prPreview.closeAll(sessionId, reason6);
9035
+ }
9036
+
9027
9037
  // src/commands/sessions/shared/codex/codexRolloutUsage.ts
9028
9038
  import * as fs3 from "fs";
9029
9039
 
@@ -10083,6 +10093,7 @@ var messageHandlers = {
10083
10093
  },
10084
10094
  "pr-preview": (client, m, d) => m.prPreview.set(client, d),
10085
10095
  "defer-command": handleDeferCommand,
10096
+ "close-previews": handleClosePreviews,
10086
10097
  "pr-decision": routed((_client, m, d) => m.prPreview.decide(d)),
10087
10098
  "user-activity": handleUserActivity,
10088
10099
  "ui-status": (_client, _m, d) => daemonLog(`ui rendered: id=${d.sessionId} status=${d.status}`)
@@ -3,12 +3,12 @@ import {
3
3
  } from "./chunk-FDWIKBS3.js";
4
4
  import {
5
5
  refine
6
- } from "./chunk-IUBV4ZNS.js";
7
- import "./chunk-Q2FPO2KT.js";
8
- import "./chunk-WJM6BSEL.js";
6
+ } from "./chunk-GG3PS6PL.js";
7
+ import "./chunk-4GQT37PJ.js";
8
+ import "./chunk-MZ4PK3IM.js";
9
9
  import "./chunk-SB4BG7PH.js";
10
10
  import "./chunk-B3JSQA5D.js";
11
- import "./chunk-BWOCKEUI.js";
11
+ import "./chunk-IB2PNGPT.js";
12
12
  import "./chunk-FQJJEZ3O.js";
13
13
  import "./chunk-7NZOH4LN.js";
14
14
  import "./chunk-F7QYFJB2.js";
@@ -81,7 +81,7 @@ import "./chunk-YXXKT6LL.js";
81
81
  import "./chunk-USKD27FY.js";
82
82
  import "./chunk-HN7MFXZ7.js";
83
83
  import "./chunk-DZGYHAE7.js";
84
- import "./chunk-TQCCEWWN.js";
84
+ import "./chunk-KS2LGA6V.js";
85
85
  import "./chunk-ZH6HKQOY.js";
86
86
  import "./chunk-ELF4PBZX.js";
87
87
  import "./chunk-6DGPQ67E.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-W7TRZLEM.js";
10
10
  import {
11
11
  package_default
12
- } from "./chunk-2U7IRBJ2.js";
12
+ } from "./chunk-5I4N7Y7B.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-GT5MU5EO.js";
6
- import "./chunk-R5RI77VT.js";
5
+ } from "./chunk-PHSMORWI.js";
6
+ import "./chunk-UI7EVOVW.js";
7
7
  import "./chunk-4HKB2TAG.js";
8
- import "./chunk-CZ24K775.js";
9
- import "./chunk-23RN2SMA.js";
8
+ import "./chunk-4YNHDVLM.js";
9
+ import "./chunk-2HXFT4UA.js";
10
10
  import "./chunk-OD7CMDGZ.js";
11
11
  import "./chunk-VABNWHSE.js";
12
12
  import "./chunk-HHKS3UZB.js";
@@ -19,7 +19,7 @@ import {
19
19
  import "./chunk-6YRKJTHT.js";
20
20
  import "./chunk-OFLEIPAR.js";
21
21
  import "./chunk-2EW62DM5.js";
22
- import "./chunk-2U7IRBJ2.js";
22
+ import "./chunk-5I4N7Y7B.js";
23
23
  import "./chunk-KGFZYUE2.js";
24
24
  import "./chunk-LBAPKP6M.js";
25
25
  import "./chunk-GRXFWFGP.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  web
3
- } from "./chunk-DUS5WQ3M.js";
3
+ } from "./chunk-6DOKYFVL.js";
4
4
  import "./chunk-FYSUHMKS.js";
5
5
  import "./chunk-JNCFHWBK.js";
6
6
  import "./chunk-JM57BCD6.js";
7
7
  import "./chunk-3NPVVAAT.js";
8
- import "./chunk-R5RI77VT.js";
8
+ import "./chunk-UI7EVOVW.js";
9
9
  import "./chunk-4HKB2TAG.js";
10
- import "./chunk-CZ24K775.js";
11
- import "./chunk-23RN2SMA.js";
10
+ import "./chunk-4YNHDVLM.js";
11
+ import "./chunk-2HXFT4UA.js";
12
12
  import "./chunk-OD7CMDGZ.js";
13
13
  import "./chunk-VABNWHSE.js";
14
14
  import "./chunk-HHKS3UZB.js";
@@ -85,7 +85,7 @@ import "./chunk-ODLSWRTS.js";
85
85
  import "./chunk-Y3JV5CEL.js";
86
86
  import "./chunk-6H4DP3ZG.js";
87
87
  import "./chunk-AOTNNZPH.js";
88
- import "./chunk-YQAATWQ4.js";
88
+ import "./chunk-S52T4GS4.js";
89
89
  import "./chunk-N2U7GIMU.js";
90
90
  import "./chunk-BV2V6RTH.js";
91
91
  import "./chunk-QAJUCN3A.js";
@@ -136,7 +136,7 @@ import "./chunk-G44QYJ57.js";
136
136
  import "./chunk-APZ6ZTDA.js";
137
137
  import "./chunk-BFQSGIN6.js";
138
138
  import "./chunk-D7UZLH36.js";
139
- import "./chunk-2U7IRBJ2.js";
139
+ import "./chunk-5I4N7Y7B.js";
140
140
  import "./chunk-J3C454L5.js";
141
141
  import "./chunk-YVL3NXEB.js";
142
142
  import "./chunk-UEWARAPX.js";
@@ -159,7 +159,7 @@ import "./chunk-YXXKT6LL.js";
159
159
  import "./chunk-USKD27FY.js";
160
160
  import "./chunk-HN7MFXZ7.js";
161
161
  import "./chunk-DZGYHAE7.js";
162
- import "./chunk-TQCCEWWN.js";
162
+ import "./chunk-KS2LGA6V.js";
163
163
  import "./chunk-4HZ4Z27M.js";
164
164
  import "./chunk-4CP23TT2.js";
165
165
  import "./chunk-SW7FSLHP.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  web
3
- } from "./chunk-DUS5WQ3M.js";
3
+ } from "./chunk-6DOKYFVL.js";
4
4
  import "./chunk-FYSUHMKS.js";
5
5
  import "./chunk-JNCFHWBK.js";
6
6
  import "./chunk-JM57BCD6.js";
7
7
  import "./chunk-3NPVVAAT.js";
8
- import "./chunk-R5RI77VT.js";
8
+ import "./chunk-UI7EVOVW.js";
9
9
  import "./chunk-4HKB2TAG.js";
10
- import "./chunk-CZ24K775.js";
11
- import "./chunk-23RN2SMA.js";
10
+ import "./chunk-4YNHDVLM.js";
11
+ import "./chunk-2HXFT4UA.js";
12
12
  import "./chunk-OD7CMDGZ.js";
13
13
  import "./chunk-VABNWHSE.js";
14
14
  import "./chunk-HHKS3UZB.js";
@@ -85,7 +85,7 @@ import "./chunk-ODLSWRTS.js";
85
85
  import "./chunk-Y3JV5CEL.js";
86
86
  import "./chunk-6H4DP3ZG.js";
87
87
  import "./chunk-AOTNNZPH.js";
88
- import "./chunk-YQAATWQ4.js";
88
+ import "./chunk-S52T4GS4.js";
89
89
  import "./chunk-N2U7GIMU.js";
90
90
  import "./chunk-BV2V6RTH.js";
91
91
  import "./chunk-QAJUCN3A.js";
@@ -136,7 +136,7 @@ import "./chunk-G44QYJ57.js";
136
136
  import "./chunk-APZ6ZTDA.js";
137
137
  import "./chunk-BFQSGIN6.js";
138
138
  import "./chunk-D7UZLH36.js";
139
- import "./chunk-2U7IRBJ2.js";
139
+ import "./chunk-5I4N7Y7B.js";
140
140
  import "./chunk-J3C454L5.js";
141
141
  import "./chunk-YVL3NXEB.js";
142
142
  import "./chunk-UEWARAPX.js";
@@ -159,7 +159,7 @@ import "./chunk-YXXKT6LL.js";
159
159
  import "./chunk-USKD27FY.js";
160
160
  import "./chunk-HN7MFXZ7.js";
161
161
  import "./chunk-DZGYHAE7.js";
162
- import "./chunk-TQCCEWWN.js";
162
+ import "./chunk-KS2LGA6V.js";
163
163
  import "./chunk-4HZ4Z27M.js";
164
164
  import "./chunk-4CP23TT2.js";
165
165
  import "./chunk-SW7FSLHP.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getSignalPath,
3
3
  writeSignal
4
- } from "./chunk-TQCCEWWN.js";
4
+ } from "./chunk-KS2LGA6V.js";
5
5
  export {
6
6
  getSignalPath,
7
7
  writeSignal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1169.1",
3
+ "version": "0.1170.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {