@wrongstack/cli 0.313.1 → 0.316.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.
Files changed (233) hide show
  1. package/dist/{acp-LQMSMV32.js → acp-CEQINXWB.js} +2 -2
  2. package/dist/acp-registry-cache.d.ts +0 -2
  3. package/dist/acp-server-agent.d.ts +2 -1
  4. package/dist/arg-parser.d.ts +2 -1
  5. package/dist/{auth-VQMSZGKE.js → auth-GZ5A5OF5.js} +3 -3
  6. package/dist/auth-menu/local.d.ts +3 -2
  7. package/dist/boot/boot-auto-thin.d.ts +44 -0
  8. package/dist/boot/brain-decision-log.d.ts +2 -1
  9. package/dist/boot/config-backup-recovery.d.ts +2 -6
  10. package/dist/boot/dispatch-singleshot.d.ts +2 -1
  11. package/dist/boot/dispatch-webui.d.ts +5 -1
  12. package/dist/boot/event-wiring.d.ts +1 -1
  13. package/dist/boot/execution-mode.d.ts +2 -1
  14. package/dist/boot/governance-shadow-bridge.d.ts +4 -3
  15. package/dist/boot/governance-trace-context.d.ts +4 -4
  16. package/dist/boot/launch-menu.d.ts +2 -2
  17. package/dist/boot/system-prompt-builder.d.ts +1 -1
  18. package/dist/boot/system-prompt-menu.d.ts +10 -58
  19. package/dist/boot/system-prompt.d.ts +3 -3
  20. package/dist/boot/tool-registry.d.ts +3 -1
  21. package/dist/boot/tui-coordinator-callbacks.d.ts +2 -1
  22. package/dist/boot/tui-coordinator-setup.d.ts +3 -2
  23. package/dist/boot/tui-goal-wiring.d.ts +2 -1
  24. package/dist/boot/tui-live-sessions.d.ts +3 -1
  25. package/dist/boot/tui-session-resume.d.ts +82 -10
  26. package/dist/boot/tui-session-stub-enrich.d.ts +7 -1
  27. package/dist/boot/tui-settings-adapter.d.ts +3 -2
  28. package/dist/boot/tui-theme-adapter.d.ts +3 -2
  29. package/dist/boot/webui-session-child.d.ts +2 -12
  30. package/dist/boot-auto-thin-BZ675EVT.js +102 -0
  31. package/dist/boot-config.d.ts +1 -1
  32. package/dist/brain-menu/panel-service.d.ts +2 -1
  33. package/dist/chimera-cascade-evidence.d.ts +4 -21
  34. package/dist/chimera-review-task.d.ts +0 -7
  35. package/dist/chimera-subagent-ladder.d.ts +2 -2
  36. package/dist/{chunk-USYOJIV2.js → chunk-32MTOI2I.js} +2 -2
  37. package/dist/{chunk-CNQZ4HG4.js → chunk-37SPPLUD.js} +57 -8
  38. package/dist/chunk-ALE5KHCA.js +1 -0
  39. package/dist/{chunk-GWVLRUVH.js → chunk-G3IMKQRH.js} +25 -6
  40. package/dist/{chunk-BZJ4MP32.js → chunk-GKHUHAIK.js} +8 -3
  41. package/dist/{chunk-3JPTNADJ.js → chunk-GPPRNAKW.js} +1 -1
  42. package/dist/{chunk-KE7E7DPX.js → chunk-HXJYHAR4.js} +1 -1
  43. package/dist/{chunk-X3N5TS2S.js → chunk-JACOMTIH.js} +2 -76
  44. package/dist/{chunk-DGXNL7OT.js → chunk-JHUJUIOH.js} +1 -18
  45. package/dist/{chunk-WOTGMHAH.js → chunk-KG4X5F7Z.js} +1 -1
  46. package/dist/{chunk-NUIHRGPY.js → chunk-NV3JDK4F.js} +1 -1
  47. package/dist/{chunk-E3X4KM7T.js → chunk-NZZOYLQ7.js} +5 -10
  48. package/dist/{chunk-H6C7SO5H.js → chunk-QC5I4VWZ.js} +1 -1
  49. package/dist/chunk-SXJTVNWF.js +78 -0
  50. package/dist/{chunk-AOAIPYFB.js → chunk-SYIBTG3X.js} +2 -2
  51. package/dist/{chunk-PKHGLWUJ.js → chunk-T642Q732.js} +5 -4
  52. package/dist/{chunk-BGFM3PD7.js → chunk-UZ2TMHNH.js} +1 -1
  53. package/dist/{chunk-4S52MIIM.js → chunk-VXCCBI2W.js} +2 -2
  54. package/dist/{chunk-FKWHSFX4.js → chunk-XYKYXFEE.js} +1 -1
  55. package/dist/cli-entry-point.d.ts +9 -0
  56. package/dist/cli-eternal-flag.d.ts +1 -1
  57. package/dist/{cli-main-UOQ2ICUO.js → cli-main-IEAM6SK7.js} +3578 -1626
  58. package/dist/cli-main-helpers.d.ts +3 -3
  59. package/dist/config-doctor.d.ts +34 -3
  60. package/dist/context-limit.d.ts +4 -3
  61. package/dist/{diag-doctor-OPTB2NWY.js → diag-doctor-LFCCBPMD.js} +3 -3
  62. package/dist/execute-deps.d.ts +36 -7
  63. package/dist/{execution-L4CXQEND.js → execution-TZUGCKFU.js} +459 -77
  64. package/dist/execution-chimera-cascade.d.ts +1 -1
  65. package/dist/execution-chimera-review.d.ts +1 -1
  66. package/dist/execution-cleanup.d.ts +2 -1
  67. package/dist/execution-kanban-dispatch.d.ts +2 -1
  68. package/dist/execution-repl-fleet-callbacks.d.ts +3 -2
  69. package/dist/fleet/budget-source.d.ts +2 -1
  70. package/dist/fleet/host-context.d.ts +8 -1
  71. package/dist/fleet/host-director-event-bridges.d.ts +28 -3
  72. package/dist/fleet/host-event-bridge.d.ts +6 -1
  73. package/dist/fleet/host-explore-companion-registry.d.ts +60 -0
  74. package/dist/fleet/host-explore-companion.d.ts +7 -3
  75. package/dist/fleet/host-provider.d.ts +2 -1
  76. package/dist/fleet/host-session-writer.d.ts +9 -1
  77. package/dist/fleet/host-shadow-manager.d.ts +82 -20
  78. package/dist/fleet/host-shadow-pass.d.ts +9 -1
  79. package/dist/fleet/host-spawn-types.d.ts +9 -0
  80. package/dist/fleet/host-status.d.ts +2 -1
  81. package/dist/fleet/host-subagent-factory.d.ts +2 -1
  82. package/dist/fleet/host-subagent-session-audit.d.ts +56 -0
  83. package/dist/fleet/host-supervisor.d.ts +11 -1
  84. package/dist/fleet/host-task-result-report.d.ts +2 -1
  85. package/dist/fleet/host.d.ts +38 -6
  86. package/dist/fleet/status-broadcast.d.ts +2 -1
  87. package/dist/fleet-statusline.d.ts +2 -1
  88. package/dist/goal-host.d.ts +3 -2
  89. package/dist/{governance-V2Z42RBE.js → governance-JSGHHA2R.js} +1 -1
  90. package/dist/governance-hq-telemetry.d.ts +2 -2
  91. package/dist/{hq-2XIXGAER.js → hq-NDTJRRX3.js} +3 -3
  92. package/dist/hq-publisher.d.ts +1 -1
  93. package/dist/hq-recovery-html.d.ts +1 -6
  94. package/dist/hq-server/auth-state.d.ts +2 -1
  95. package/dist/hq-server/auth.d.ts +3 -2
  96. package/dist/hq-server/login-attempt-store.d.ts +2 -1
  97. package/dist/hq-server/mailbox-gateway-manager.d.ts +2 -1
  98. package/dist/hq-server/preflight.d.ts +3 -2
  99. package/dist/hq-server/server-lifecycle.d.ts +2 -1
  100. package/dist/hq-server/snapshot.d.ts +0 -9
  101. package/dist/hq-server/startup.d.ts +2 -3
  102. package/dist/hq-server/types.d.ts +2 -2
  103. package/dist/hq-server/upgrade-handler.d.ts +2 -1
  104. package/dist/hq-server/ws-leader.d.ts +0 -6
  105. package/dist/{hq-server-DBT3OOYD.js → hq-server-OH3SPSE2.js} +3 -13
  106. package/dist/hq-server.d.ts +1 -6
  107. package/dist/hq-static-serve.d.ts +2 -1
  108. package/dist/{hq-ttl-U2FAYFAT.js → hq-ttl-KUO3AU7X.js} +2 -2
  109. package/dist/{hq-tunnel-RFKGC4HI.js → hq-tunnel-LO55RCZE.js} +1 -1
  110. package/dist/hq-tunnel.d.ts +2 -1
  111. package/dist/index.js +113 -109
  112. package/dist/input-reader.d.ts +2 -1
  113. package/dist/kanban-dispatch-route.d.ts +27 -2
  114. package/dist/kanban-hq-sync.d.ts +2 -1
  115. package/dist/launch-hints.d.ts +2 -1
  116. package/dist/mailbox-bridge-bootstrap.d.ts +2 -3
  117. package/dist/{mailbox-serve-5S3PHG5D.js → mailbox-serve-VKQIRCCB.js} +47 -28
  118. package/dist/{mcp-RRPKNRSN.js → mcp-AQKSASHD.js} +1 -1
  119. package/dist/mcp-serve.d.ts +2 -1
  120. package/dist/{modeldiag-H6DKWJ2N.js → modeldiag-4NYBRSFP.js} +1 -1
  121. package/dist/next-task-predictor.d.ts +3 -2
  122. package/dist/permission-prompt.d.ts +2 -1
  123. package/dist/picker.d.ts +0 -18
  124. package/dist/plugin-management.d.ts +3 -14
  125. package/dist/{plugin-usage-GCTYOZPH.js → plugin-usage-AP7SJCDA.js} +2 -2
  126. package/dist/{plugins-EEKHCMBE.js → plugins-HQ5FU2AM.js} +3 -5
  127. package/dist/preflight.d.ts +2 -1
  128. package/dist/{proxy-wiring-G26YGP7S.js → proxy-wiring-EQB5X5YH.js} +3 -3
  129. package/dist/renderer.d.ts +18 -1
  130. package/dist/repl-client-registration.d.ts +2 -1
  131. package/dist/repl.d.ts +1 -1
  132. package/dist/{replay-XU6ZD7GM.js → replay-FJ2JBXUA.js} +1 -1
  133. package/dist/{sdd-runtime-GFZ3NJKS.js → sdd-runtime-FLKCSTYV.js} +3 -5
  134. package/dist/services/commit-message.d.ts +2 -1
  135. package/dist/services/sdd/state.d.ts +0 -2
  136. package/dist/services/sdd-runtime.d.ts +1 -1
  137. package/dist/services/statusline-config.d.ts +27 -4
  138. package/dist/session-event-wiring.d.ts +3 -5
  139. package/dist/{sessions-config-7Q7QJBKJ.js → sessions-config-P2LK2L32.js} +5 -1
  140. package/dist/sessions-doctor-EXHAZSSE.js +146 -0
  141. package/dist/settings-menu.d.ts +2 -1
  142. package/dist/shutdown-cleanup.d.ts +3 -2
  143. package/dist/{simpleui-dist-33VO3QHF.js → simpleui-dist-JKNRCRRK.js} +1 -1
  144. package/dist/simpleui-dist.d.ts +3 -2
  145. package/dist/slash-commands/brain-council.d.ts +0 -4
  146. package/dist/slash-commands/brain-status.d.ts +0 -1
  147. package/dist/slash-commands/command-context.d.ts +16 -2
  148. package/dist/slash-commands/fix-classifier.d.ts +2 -1
  149. package/dist/slash-commands/kanban-agent-helpers.d.ts +2 -1
  150. package/dist/slash-commands/kanban-board-handlers.d.ts +2 -1
  151. package/dist/slash-commands/kanban-lifecycle-diagnostics.d.ts +2 -1
  152. package/dist/slash-commands/kanban-task-subcommands.d.ts +0 -1
  153. package/dist/slash-commands/memory-audience.d.ts +1 -10
  154. package/dist/slash-commands/memory-flags.d.ts +2 -1
  155. package/dist/slash-commands/sdd-command-helpers.d.ts +3 -2
  156. package/dist/slash-commands/sdd.d.ts +2 -2
  157. package/dist/slash-commands/settings-mutations.d.ts +0 -1
  158. package/dist/slash-commands/statusline.d.ts +4 -4
  159. package/dist/slash-commands/telegram-pairing.d.ts +2 -2
  160. package/dist/slash-commands/telegram-setup.d.ts +2 -1
  161. package/dist/slash-commands/tier.d.ts +13 -0
  162. package/dist/subcommands/handlers/acp-connection-gate.d.ts +4 -3
  163. package/dist/subcommands/handlers/bench-run-help.d.ts +3 -8
  164. package/dist/subcommands/handlers/daemon-inventory.d.ts +3 -2
  165. package/dist/subcommands/handlers/governance.d.ts +2 -1
  166. package/dist/subcommands/handlers/model-smoke-test.d.ts +3 -2
  167. package/dist/subcommands/handlers/modeldiag-eval.d.ts +0 -4
  168. package/dist/subcommands/handlers/modeldiag-profiles.d.ts +1 -1
  169. package/dist/subcommands/handlers/models-add-help.d.ts +3 -8
  170. package/dist/subcommands/handlers/sessions-doctor.d.ts +3 -0
  171. package/dist/subcommands/handlers/update.d.ts +1 -1
  172. package/dist/terminal-format.d.ts +3 -2
  173. package/dist/tui-resource-menus.d.ts +2 -1
  174. package/dist/tuneup.d.ts +5 -5
  175. package/dist/{update-ZXNC6I6G.js → update-XKARO3CY.js} +3 -3
  176. package/dist/{update-check-WARHSVZA.js → update-check-LICQNYFK.js} +2 -2
  177. package/dist/update-check.d.ts +1 -1
  178. package/dist/utils/hq-ttl.d.ts +2 -1
  179. package/dist/webui-server/connection-handler.d.ts +34 -2
  180. package/dist/webui-server/prefs-seeding.d.ts +11 -1
  181. package/dist/webui-server/route-contexts.d.ts +45 -5
  182. package/dist/webui-server/session-start-payload.d.ts +13 -0
  183. package/dist/webui-server/setup-events.d.ts +14 -1
  184. package/dist/{webui-server-I53IYBW4.js → webui-server-LZOEH7O6.js} +374 -169
  185. package/dist/webui-server-options.d.ts +30 -4
  186. package/dist/wiring/brain-and-orchestration.d.ts +3 -3
  187. package/dist/wiring/cli-execute-builder.d.ts +3 -0
  188. package/dist/wiring/cli-heap-watchdog.d.ts +2 -1
  189. package/dist/wiring/cli-prompt-and-tools-setup.d.ts +10 -8
  190. package/dist/wiring/codebase-index.d.ts +2 -1
  191. package/dist/wiring/command-host-state.d.ts +61 -5
  192. package/dist/wiring/controllers.d.ts +3 -4
  193. package/dist/wiring/dep-watcher-bridge.d.ts +3 -2
  194. package/dist/wiring/dep-watcher.d.ts +2 -1
  195. package/dist/wiring/design-studio.d.ts +2 -1
  196. package/dist/wiring/director-setup.d.ts +3 -2
  197. package/dist/wiring/domain-terms-mirror.d.ts +2 -1
  198. package/dist/wiring/external-plugins.d.ts +3 -2
  199. package/dist/wiring/fleet-command-handlers.d.ts +2 -2
  200. package/dist/wiring/heap-watchdog-setup.d.ts +2 -1
  201. package/dist/wiring/hq-telemetry.d.ts +3 -2
  202. package/dist/wiring/lifecycle-plugins.d.ts +2 -2
  203. package/dist/wiring/management-tools.d.ts +30 -2
  204. package/dist/wiring/metrics.d.ts +2 -2
  205. package/dist/wiring/plugins.d.ts +0 -1
  206. package/dist/wiring/prompt-journal-recorder.d.ts +1 -1
  207. package/dist/wiring/provider-runtime-setup.d.ts +9 -2
  208. package/dist/wiring/provider-runtime.d.ts +23 -3
  209. package/dist/wiring/provider-status.d.ts +2 -1
  210. package/dist/wiring/provider-utility-tools.d.ts +2 -1
  211. package/dist/wiring/provider.d.ts +2 -1
  212. package/dist/wiring/replay-governance-setup.d.ts +2 -1
  213. package/dist/wiring/replay.d.ts +2 -1
  214. package/dist/wiring/resume-candidate.d.ts +27 -0
  215. package/dist/wiring/runtime-controller-deps.d.ts +8 -1
  216. package/dist/wiring/runtime-dispatch-state.d.ts +2 -1
  217. package/dist/wiring/runtime-lifecycle-deps.d.ts +2 -1
  218. package/dist/wiring/runtime-picker-deps.d.ts +2 -1
  219. package/dist/wiring/session-command-handlers.d.ts +2 -2
  220. package/dist/wiring/session-establishment.d.ts +2 -1
  221. package/dist/wiring/session-registry.d.ts +3 -2
  222. package/dist/wiring/session-runtime.d.ts +1 -1
  223. package/dist/wiring/slash-commands.d.ts +5 -4
  224. package/dist/wiring/teardown-registrar.d.ts +3 -2
  225. package/dist/wiring/vector-memory-setup.d.ts +3 -2
  226. package/dist/wiring/wrongtrace-hooks.d.ts +1 -1
  227. package/dist/wiring/wrongtrace-telemetry.d.ts +2 -1
  228. package/dist/{wrongtrace-telemetry-6M2CCBX5.js → wrongtrace-telemetry-FNLANZ5I.js} +1 -1
  229. package/package.json +31 -31
  230. package/dist/auth-menu.d.ts +0 -7
  231. package/dist/chunk-WHOIR577.js +0 -1
  232. package/dist/webui-server/terminal-log-view.d.ts +0 -47
  233. package/dist/wiring/tools.d.ts +0 -29
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  terminalLink,
3
3
  terminalText
4
- } from "./chunk-KE7E7DPX.js";
4
+ } from "./chunk-HXJYHAR4.js";
5
5
  import {
6
6
  resolveAuditActor
7
7
  } from "./chunk-Q5GTM25S.js";
@@ -46,7 +46,7 @@ var HQ_RECOVERY_HTML = `<!doctype html>
46
46
  <main data-hq-recovery-shell>
47
47
  <h1>HQ frontend assets are unavailable</h1>
48
48
  <p>The HQ backend is running, but the packaged React application could not be resolved.</p>
49
- <p>Rebuild or reinstall <code>@wrongstack/webui-hq</code>, then restart HQ. API routes remain available for diagnostics.</p>
49
+ <p>Rebuild or reinstall <code>@wrongstack/webui-hq</code>, then restart HQ. From a workspace checkout, run <code>pnpm --filter @wrongstack/webui-hq build</code>. API routes remain available for diagnostics.</p>
50
50
  </main>
51
51
  </body>
52
52
  </html>`;
@@ -2843,8 +2843,8 @@ async function handleApiAgentMessages(req, res, match, agentMessages) {
2843
2843
  // src/hq-server/routes/system-handlers.ts
2844
2844
  async function handleApiSystemUpdate(res) {
2845
2845
  const [{ checkForUpdate }, { detectUpdatePackageName }] = await Promise.all([
2846
- import("./update-check-WARHSVZA.js"),
2847
- import("./update-ZXNC6I6G.js")
2846
+ import("./update-check-LICQNYFK.js"),
2847
+ import("./update-XKARO3CY.js")
2848
2848
  ]);
2849
2849
  const packageName = detectUpdatePackageName();
2850
2850
  const info = await checkForUpdate({ packageName });
@@ -4911,12 +4911,7 @@ export {
4911
4911
  DEFAULT_HOST,
4912
4912
  DEFAULT_PORT,
4913
4913
  MAX_EVENT_LOG3 as MAX_EVENT_LOG,
4914
- MAX_NON_STRICT_PORT_SCAN,
4915
- CLIENT_TTL_MS,
4916
- CLIENT_CLEANUP_INTERVAL_MS,
4917
- BROWSER_HEARTBEAT_INTERVAL_MS,
4918
- SESSION_SNAPSHOT_TTL_MS,
4919
4914
  startHqServer,
4920
4915
  HqInsecureExposureError2 as HqInsecureExposureError
4921
4916
  };
4922
- //# sourceMappingURL=chunk-E3X4KM7T.js.map
4917
+ //# sourceMappingURL=chunk-NZZOYLQ7.js.map
@@ -992,4 +992,4 @@ export {
992
992
  PLUGIN_AUDIT_ENTRIES,
993
993
  runPluginManagementCommand
994
994
  };
995
- //# sourceMappingURL=chunk-H6C7SO5H.js.map
995
+ //# sourceMappingURL=chunk-QC5I4VWZ.js.map
@@ -0,0 +1,78 @@
1
+
2
+ // src/services/suggestion-store.ts
3
+ var sharedSuggestions = [];
4
+ var sharedAutoSuggestions = [];
5
+ function setSuggestions(suggestions) {
6
+ sharedSuggestions = suggestions;
7
+ }
8
+ function setAutoSuggestions(suggestions) {
9
+ sharedAutoSuggestions = suggestions;
10
+ }
11
+ function getSuggestions() {
12
+ return sharedSuggestions;
13
+ }
14
+ function removeSuggestions(indices) {
15
+ if (indices.length === 0) return;
16
+ const set = new Set(indices);
17
+ sharedSuggestions = sharedSuggestions.filter((_, i) => !set.has(i));
18
+ sharedAutoSuggestions = [];
19
+ }
20
+ function clearSuggestions() {
21
+ sharedSuggestions = [];
22
+ sharedAutoSuggestions = [];
23
+ }
24
+
25
+ // src/tui-thinking-word.ts
26
+ var DEFAULT_TUI_THINKING_WORD = "thinking";
27
+ var MAX_TUI_THINKING_WORD_LENGTH = 16;
28
+ function normalizeTuiThinkingWord(value) {
29
+ if (typeof value !== "string") return DEFAULT_TUI_THINKING_WORD;
30
+ const word = value.trim();
31
+ if (word.length === 0 || word.length > MAX_TUI_THINKING_WORD_LENGTH) {
32
+ return DEFAULT_TUI_THINKING_WORD;
33
+ }
34
+ if (!/^[\p{L}\p{N}_-]+$/u.test(word)) return DEFAULT_TUI_THINKING_WORD;
35
+ return word;
36
+ }
37
+
38
+ // src/services/run-git.ts
39
+ import { spawn } from "node:child_process";
40
+ import { toErrorMessage } from "@wrongstack/core/utils";
41
+ async function runGit(args, cwd) {
42
+ try {
43
+ return await new Promise((resolve, reject) => {
44
+ const child = spawn("git", args, {
45
+ cwd,
46
+ stdio: ["ignore", "pipe", "pipe"],
47
+ signal: AbortSignal.timeout(3e4),
48
+ windowsHide: true
49
+ });
50
+ let stdout = "";
51
+ let stderr = "";
52
+ child.stdout?.on("data", (d) => {
53
+ stdout += d;
54
+ });
55
+ child.stderr?.on("data", (d) => {
56
+ stderr += d;
57
+ });
58
+ child.on("error", (err) => {
59
+ reject(new Error(`Failed to run git: ${err.message}`));
60
+ });
61
+ child.on("close", (code) => resolve({ stdout, stderr, code: code ?? 0 }));
62
+ });
63
+ } catch (err) {
64
+ throw new Error(toErrorMessage(err));
65
+ }
66
+ }
67
+
68
+ export {
69
+ setSuggestions,
70
+ setAutoSuggestions,
71
+ getSuggestions,
72
+ removeSuggestions,
73
+ clearSuggestions,
74
+ MAX_TUI_THINKING_WORD_LENGTH,
75
+ normalizeTuiThinkingWord,
76
+ runGit
77
+ };
78
+ //# sourceMappingURL=chunk-SXJTVNWF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startProxyProbe
3
- } from "./chunk-GWVLRUVH.js";
3
+ } from "./chunk-G3IMKQRH.js";
4
4
 
5
5
  // src/wiring/proxy-wiring.ts
6
6
  import {
@@ -55,4 +55,4 @@ export {
55
55
  bootstrapWrongProxy,
56
56
  shutdownWrongProxy
57
57
  };
58
- //# sourceMappingURL=chunk-AOAIPYFB.js.map
58
+ //# sourceMappingURL=chunk-SYIBTG3X.js.map
@@ -24,9 +24,10 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
24
24
  "no-features",
25
25
  "tui",
26
26
  "no-tui",
27
- // Legacy no-ops: every surface now starts fresh unless an explicit
28
- // `--resume <id>` is supplied. Keep parsing these as booleans so old
29
- // launch scripts do not accidentally consume the next positional token.
27
+ // Recovery switches. `--recover` reopens the most recent session with no
28
+ // trailing `session_end` (see wiring/resume-candidate.ts); `--no-recovery`
29
+ // suppresses it, so a launch script that passes both still starts fresh.
30
+ // Both are boolean so they cannot swallow the next positional token.
30
31
  "no-recovery",
31
32
  "recover",
32
33
  "output-json",
@@ -1074,4 +1075,4 @@ export {
1074
1075
  runLiveProviderPicker,
1075
1076
  runPicker
1076
1077
  };
1077
- //# sourceMappingURL=chunk-PKHGLWUJ.js.map
1078
+ //# sourceMappingURL=chunk-T642Q732.js.map
@@ -38,4 +38,4 @@ function parseTokenTtlValue(raw) {
38
38
  export {
39
39
  parseTokenTtlValue
40
40
  };
41
- //# sourceMappingURL=chunk-BGFM3PD7.js.map
41
+ //# sourceMappingURL=chunk-UZ2TMHNH.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-U3SS4NRH.js";
4
4
  import {
5
5
  checkForUpdate
6
- } from "./chunk-NUIHRGPY.js";
6
+ } from "./chunk-NV3JDK4F.js";
7
7
 
8
8
  // src/subcommands/handlers/update.ts
9
9
  import { spawn } from "node:child_process";
@@ -383,4 +383,4 @@ export {
383
383
  detectUpdatePackageManager,
384
384
  detectUpdatePackageName
385
385
  };
386
- //# sourceMappingURL=chunk-4S52MIIM.js.map
386
+ //# sourceMappingURL=chunk-VXCCBI2W.js.map
@@ -507,4 +507,4 @@ function startCliHqConnection(options) {
507
507
  export {
508
508
  startCliHqConnection
509
509
  };
510
- //# sourceMappingURL=chunk-FKWHSFX4.js.map
510
+ //# sourceMappingURL=chunk-XYKYXFEE.js.map
@@ -12,6 +12,10 @@
12
12
  * leaking plugin or MCP server can hang the process indefinitely.
13
13
  * A 500ms `setTimeout(exit)` with `.unref()` lets the natural drain
14
14
  * finish first, then forces exit if anything is still pending. The
15
+ * grace window is durability-aware: it extends in 500ms steps while a
16
+ * fs write stream is still active (hard 5s ceiling), grants sockets one
17
+ * extra window (idle keep-alives must not stall exit), and every forced
18
+ * exit is reported via a structured `exit.forced` warning. The
15
19
  * `.unref()` is critical: it prevents the timer itself from keeping
16
20
  * the event loop alive.
17
21
  * 3. **Stack-trace on rejection** — a top-level `main().catch(...)` that
@@ -36,6 +40,11 @@ interface BrokenPipeHandlerOptions {
36
40
  * boundary and rethrow other stream failures so genuine faults remain visible.
37
41
  */
38
42
  export declare function installBrokenPipeHandlers(options?: BrokenPipeHandlerOptions): () => void;
43
+ interface ForcedExitDeps {
44
+ readonly getActiveResources?: () => readonly string[];
45
+ readonly exit?: ((code: number) => void) | undefined;
46
+ }
47
+ export declare function scheduleForcedExit(code: number, deps?: ForcedExitDeps): void;
39
48
  export declare function runAsMain(mainFn: (argv: string[]) => Promise<number>): void;
40
49
  export {};
41
50
  //# sourceMappingURL=cli-entry-point.d.ts.map
@@ -30,7 +30,7 @@ import type { AutonomyMode } from './services/autonomy-mode.js';
30
30
  type ContainerLike = {
31
31
  resolve: <T>(token: Token<T>) => T;
32
32
  };
33
- export interface EternalFlagDeps {
33
+ interface EternalFlagDeps {
34
34
  /** The `--eternal` flag value (already trimmed). Empty string = no-op. */
35
35
  eternalFlag: string;
36
36
  projectRoot: string;