@wrongstack/cli 1.0.35 → 1.0.37

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 (168) hide show
  1. package/dist/{acp-T77EAEDB.js → acp-HCGUTFNE.js} +11 -8
  2. package/dist/ascii-mode-B6PKLRHM.js +8 -0
  3. package/dist/{audit-KCBTHUQI.js → audit-NH7NUKBV.js} +3 -2
  4. package/dist/{auth-M6LXZTDA.js → auth-ANOVZVHE.js} +12 -11
  5. package/dist/auto-discover-providers-V75ICIBG.js +8 -0
  6. package/dist/{automation-MCDFCIMV.js → automation-O7ZRZSFS.js} +20 -4
  7. package/dist/{bench-MMZHFHDL.js → bench-NDYES33Y.js} +3 -2
  8. package/dist/boot/governance-evidence-candidate.d.ts +1 -1
  9. package/dist/boot/system-prompt-menu.d.ts +7 -0
  10. package/dist/boot/tui-settings-adapter.d.ts +0 -12
  11. package/dist/{boot-auto-thin-YMAZI3QL.js → boot-auto-thin-7D4OVEWA.js} +5 -4
  12. package/dist/boot-provider-selection.d.ts +9 -0
  13. package/dist/{chronicle-PBJS7BN6.js → chronicle-WBK3TJRB.js} +2 -1
  14. package/dist/{chunk-R4QGL6GB.js → chunk-2MV474XR.js} +1 -1
  15. package/dist/{chunk-AFOH6CHO.js → chunk-3EXRPTAU.js} +1 -1
  16. package/dist/{chunk-2EZ2DHOW.js → chunk-3R3OADC5.js} +2 -2
  17. package/dist/{chunk-RKU66D2O.js → chunk-57PSSEBR.js} +1 -1
  18. package/dist/{chunk-2CMMWRQH.js → chunk-5TRZZHMN.js} +2 -2
  19. package/dist/{chunk-RWNI5OWT.js → chunk-6KJU6POA.js} +6 -6
  20. package/dist/{chunk-AKESWZH5.js → chunk-6VPWQ4TG.js} +2 -2
  21. package/dist/{chunk-CJSHS2K7.js → chunk-75OLD563.js} +1 -1
  22. package/dist/{chunk-4UWCMBPG.js → chunk-76JE54WD.js} +7 -5
  23. package/dist/{chunk-7BNBD4PE.js → chunk-7IY2UTBE.js} +2 -2
  24. package/dist/{chunk-6Z6C6ZHH.js → chunk-AWRZWPJ3.js} +20 -26
  25. package/dist/{chunk-TXAFIERF.js → chunk-BAWRRA6O.js} +2 -2
  26. package/dist/{chunk-DAKVBMD4.js → chunk-BCKVNORU.js} +1 -1
  27. package/dist/{chunk-4BX2YDTQ.js → chunk-BIGSVBPI.js} +45 -4
  28. package/dist/{chunk-CZTXF6HY.js → chunk-BJ4LDJ4H.js} +1 -1
  29. package/dist/{chunk-KMU7GF7X.js → chunk-C2BBH4S4.js} +2 -2
  30. package/dist/chunk-C4654QI2.js +8 -0
  31. package/dist/{chunk-M4G5FO7F.js → chunk-C5JP6DJN.js} +1 -1
  32. package/dist/{chunk-LDV4ERNV.js → chunk-CIGEY7NU.js} +5 -5
  33. package/dist/{chunk-WTJDSTYD.js → chunk-CVVQ5NCN.js} +5 -5
  34. package/dist/{chunk-D3K4NYQL.js → chunk-DXHQFV5V.js} +1 -1
  35. package/dist/{chunk-SUDNPYWD.js → chunk-FM7DPSYA.js} +2 -2
  36. package/dist/{chunk-YL4KCHZG.js → chunk-FPUB5WWP.js} +1 -1
  37. package/dist/{chunk-P3Q3KMFH.js → chunk-FUJHWQV4.js} +1 -1
  38. package/dist/{chunk-ERX4BLKP.js → chunk-GFQH77OH.js} +1 -1
  39. package/dist/{chunk-DIOODAYM.js → chunk-H53EXXAU.js} +3 -3
  40. package/dist/{chunk-F5DCFAKI.js → chunk-HKMOIIPQ.js} +1 -1
  41. package/dist/{chunk-AUQDGU5D.js → chunk-HQBY6OFT.js} +1 -1
  42. package/dist/{chunk-6SIUTX75.js → chunk-IJLIAPCW.js} +1 -2
  43. package/dist/{chunk-QD544J2B.js → chunk-JTTV2EVA.js} +1 -1
  44. package/dist/{chunk-UKP7H2U4.js → chunk-KHFFJ2LC.js} +1 -1
  45. package/dist/{chunk-4TVYGG6G.js → chunk-MKM4X2AM.js} +1 -1
  46. package/dist/chunk-ML3US333.js +61 -0
  47. package/dist/{chunk-HLSHFXTO.js → chunk-NL2ABOAS.js} +2 -2
  48. package/dist/{chunk-Q7E3BPDU.js → chunk-OGVSKS4Q.js} +1 -1
  49. package/dist/chunk-OZCYZYN2.js +3708 -0
  50. package/dist/{chunk-EWKESL4L.js → chunk-P24ZPPYH.js} +1 -1
  51. package/dist/chunk-PY2LMG2V.js +1 -0
  52. package/dist/{chunk-CSAPOCBP.js → chunk-QC6CLAK7.js} +1 -1
  53. package/dist/{chunk-HXJYHAR4.js → chunk-QVITQ425.js} +1 -1
  54. package/dist/{chunk-GZSKLXYG.js → chunk-RAWHRRUJ.js} +10 -10
  55. package/dist/{chunk-PA4VBCXS.js → chunk-RBZVDWTL.js} +1 -1
  56. package/dist/{chunk-YMXXOOFN.js → chunk-SPSHEZ46.js} +1 -1
  57. package/dist/{chunk-TWSQTQKR.js → chunk-T4TGMTH2.js} +3 -3
  58. package/dist/{chunk-LKFKO4JW.js → chunk-TZPKOS5G.js} +3 -3
  59. package/dist/{chunk-X4LW5CZM.js → chunk-UBDLNC3N.js} +1 -1
  60. package/dist/{chunk-SDJCLEK6.js → chunk-UFRVTBV6.js} +1 -1
  61. package/dist/{chunk-VCYZ3WZV.js → chunk-UOQPDZ5H.js} +1 -1
  62. package/dist/{chunk-PZQBGUVZ.js → chunk-UVF3BGET.js} +1 -1
  63. package/dist/{chunk-HHRYIDOW.js → chunk-VAQXOZKP.js} +34 -7
  64. package/dist/{chunk-4XCBEUBX.js → chunk-VHC47E7U.js} +1 -1
  65. package/dist/{chunk-LKPEBZBE.js → chunk-VI2HE4A5.js} +1 -1
  66. package/dist/chunk-W23PY4IJ.js +44 -0
  67. package/dist/{chunk-AT2A7RJZ.js → chunk-WDXNBYGD.js} +1 -1
  68. package/dist/{chunk-NRXWOMK7.js → chunk-XT3NAHRX.js} +1 -1
  69. package/dist/{chunk-ZYACRPLN.js → chunk-ZCXZGYO5.js} +6 -3
  70. package/dist/{chunk-65VNCAF6.js → chunk-ZNNFEKDZ.js} +2 -2
  71. package/dist/{chunk-CDY4D5QK.js → chunk-ZTSTMFYW.js} +2 -2
  72. package/dist/{chunk-YTEOAWOJ.js → chunk-ZXX3MJRL.js} +1 -1
  73. package/dist/{cli-context-II57EHD2.js → cli-context-V6NKFU2X.js} +166 -100
  74. package/dist/{cli-main-YR2WJCPL.js → cli-main-LHQTVOYW.js} +963 -246
  75. package/dist/{config-transfer-VOIFY7U4.js → config-transfer-Y7XJMJRN.js} +8 -5
  76. package/dist/{diag-doctor-BIZAFIAT.js → diag-doctor-5SVYK2DR.js} +5 -4
  77. package/dist/execute-deps.d.ts +8 -0
  78. package/dist/{execution-IBAZ2EIU.js → execution-BAP566QC.js} +103 -33
  79. package/dist/{export-VVRIOWFV.js → export-W27PTU6Y.js} +3 -2
  80. package/dist/fleet/host-director-setup.d.ts +2 -0
  81. package/dist/fleet/host-skill-companion.d.ts +73 -0
  82. package/dist/fleet/host.d.ts +1 -0
  83. package/dist/fleet/skill-companion-policy.d.ts +33 -0
  84. package/dist/{governance-RYSHV675.js → governance-A32M4ILK.js} +2 -1
  85. package/dist/{hq-5OIEKB4V.js → hq-JD5AZVMG.js} +8 -7
  86. package/dist/hq-server/snapshot.d.ts +1 -1
  87. package/dist/hq-server/socket-credentials.d.ts +1 -1
  88. package/dist/hq-server/ws.d.ts +1 -1
  89. package/dist/{hq-server-DU3ZH3X7.js → hq-server-BI23EPM7.js} +7 -5
  90. package/dist/{hq-service-LYZV7EK7.js → hq-service-TQNPIRHL.js} +8 -7
  91. package/dist/hq-ttl-RKRF7AQX.js +8 -0
  92. package/dist/{hq-tunnel-NIJ5EP2Y.js → hq-tunnel-6VU4IWV4.js} +2 -1
  93. package/dist/{import-claude-code-AYG24RG2.js → import-claude-code-D4F6ZE7I.js} +6 -5
  94. package/dist/index.js +9 -8
  95. package/dist/{init-DRMMFG2G.js → init-5PLABNLR.js} +2 -1
  96. package/dist/ip-allowlist-YDOFO7XJ.js +10 -0
  97. package/dist/{kanban-run-mirror-22HQ5FNG.js → kanban-run-mirror-SZ3S3S3Z.js} +3 -2
  98. package/dist/kanban-supervisor-55XPUHAM.js +8 -0
  99. package/dist/live-settings-input.d.ts +8 -0
  100. package/dist/{mailbox-serve-S536N66F.js → mailbox-serve-MMQCHOHI.js} +5 -3
  101. package/dist/{mcp-LBS45HWZ.js → mcp-2XWBJEQN.js} +4 -3
  102. package/dist/{modeldiag-NEPTLFZW.js → modeldiag-ERXYJODJ.js} +8 -7
  103. package/dist/{per-subcommand-help-VKPV3OEY.js → per-subcommand-help-D6J4ZXW2.js} +4 -3
  104. package/dist/{permissions-PL27UHYD.js → permissions-6YJ64W65.js} +3 -2
  105. package/dist/plugin-config.d.ts +6 -0
  106. package/dist/{plugin-usage-3TZGROK7.js → plugin-usage-TYF5HY4K.js} +6 -5
  107. package/dist/{plugins-ITH4SLO6.js → plugins-XGAXDLPT.js} +6 -5
  108. package/dist/pre-launch/launch-prompts.d.ts +21 -2
  109. package/dist/pre-launch.d.ts +1 -1
  110. package/dist/{project-AOQI5XTK.js → project-V5KNTLV4.js} +2 -1
  111. package/dist/{project-manifest-FTFDCCTZ.js → project-manifest-HXCID644.js} +3 -2
  112. package/dist/{project-picker-NZYJKQQC.js → project-picker-FUSLXKSA.js} +4 -3
  113. package/dist/{projects-T4CZCA25.js → projects-FWRJHW3S.js} +2 -1
  114. package/dist/{providers-models-37DUV2GW.js → providers-models-CDI5GVBX.js} +7 -6
  115. package/dist/{proxy-wiring-K2DORFFL.js → proxy-wiring-FIW6HFJV.js} +4 -3
  116. package/dist/{quick-CNB4Z3HS.js → quick-NPC3N3ZX.js} +2 -1
  117. package/dist/{remote-C74BCNND.js → remote-AKKRJEHK.js} +5 -4
  118. package/dist/{replay-DEI566CW.js → replay-5FOPERB2.js} +2 -1
  119. package/dist/{replay-JJ2NOWD6.js → replay-URJFMQCU.js} +3 -2
  120. package/dist/{rewind-7AULJS7F.js → rewind-GAUXWSTU.js} +3 -2
  121. package/dist/{sage-FFKUOCQL.js → sage-6KKXK2ZS.js} +11 -6
  122. package/dist/{sage-sync-ZMTHB477.js → sage-sync-IN3WKEBN.js} +5 -3
  123. package/dist/{sandbox-TYGD6FI2.js → sandbox-EZQ76MNY.js} +2 -1
  124. package/dist/{sdd-runtime-PF72WHLO.js → sdd-runtime-6MFUXWJK.js} +4 -3
  125. package/dist/{session-move-P2EC2COA.js → session-move-F3N45UQQ.js} +2 -1
  126. package/dist/{sessions-config-VE26SB56.js → sessions-config-SJVQXCIE.js} +7 -6
  127. package/dist/{sessions-doctor-QUL37U32.js → sessions-doctor-DZQTDQRY.js} +2 -1
  128. package/dist/short-circuit-flags-647S5WBL.js +11 -0
  129. package/dist/{simpleui-dist-7BQISSEP.js → simpleui-dist-EE3TJRBG.js} +2 -1
  130. package/dist/{skill-suggest-THANK3LV.js → skill-suggest-LZV2TIPQ.js} +22 -6
  131. package/dist/slash-commands/browser.d.ts +3 -0
  132. package/dist/slash-commands/command-context.d.ts +3 -0
  133. package/dist/slash-commands/doctor.d.ts +0 -9
  134. package/dist/{standalone-auto-update-VQC4GYCM.js → standalone-auto-update-X5SK4M5B.js} +17 -5
  135. package/dist/{standalone-update-HZHDZZOR.js → standalone-update-6U4NP5MN.js} +4 -3
  136. package/dist/subcommands-EGZPBQOO.js +10 -0
  137. package/dist/{tools-skills-33AI6K6S.js → tools-skills-55QVTMSK.js} +2 -1
  138. package/dist/{typesafe-NHC322W5.js → typesafe-YBEADNAH.js} +8 -7
  139. package/dist/{typesafe-brain-replay-C5276FVR.js → typesafe-brain-replay-XBU5RZDY.js} +2 -1
  140. package/dist/{typesafe-judgment-check-GGYYV5UF.js → typesafe-judgment-check-XRLBF5JV.js} +2 -1
  141. package/dist/{typesafe-topic-replay-DB2AYL7V.js → typesafe-topic-replay-L6NKFYPM.js} +4 -3
  142. package/dist/{typesafe-triage-replay-27NDAZ3V.js → typesafe-triage-replay-IRV2HHLN.js} +3 -2
  143. package/dist/{update-6OEPAEUV.js → update-54W7GUS5.js} +6 -5
  144. package/dist/{update-check-VLVT4IV2.js → update-check-JBGP4ZFI.js} +4 -3
  145. package/dist/utils/win32-cmd.d.ts +1 -1
  146. package/dist/{version-JB2UAV2A.js → version-Q6KJ23GB.js} +3 -2
  147. package/dist/version-help-RBZC5GZZ.js +11 -0
  148. package/dist/webui-server/credential-watcher.d.ts +3 -1
  149. package/dist/webui-server/provider-config.d.ts +12 -5
  150. package/dist/{webui-server-6IC3SLZG.js → webui-server-HIUY3RHD.js} +59 -49
  151. package/dist/wiring/management-tools.d.ts +9 -1
  152. package/dist/wiring/slash-commands.d.ts +3 -0
  153. package/dist/{wrongtrace-gate-counters-7C2EAAZL.js → wrongtrace-gate-counters-K44XG3H3.js} +3 -2
  154. package/dist/{wrongtrace-telemetry-3ASFKOZO.js → wrongtrace-telemetry-YS6SUBXK.js} +3 -2
  155. package/dist/ws-runtime.d.ts +6 -0
  156. package/package.json +39 -39
  157. package/LICENSE +0 -21
  158. package/dist/ascii-mode-SG4PRNLP.js +0 -7
  159. package/dist/auto-discover-providers-JX346GOM.js +0 -7
  160. package/dist/chunk-BHXAKTBE.js +0 -10
  161. package/dist/chunk-LDXXMPMS.js +0 -61
  162. package/dist/chunk-TGSPCFBT.js +0 -1
  163. package/dist/hq-ttl-N4DAIAVX.js +0 -7
  164. package/dist/ip-allowlist-NHXO6AKJ.js +0 -9
  165. package/dist/kanban-supervisor-67ECABTD.js +0 -7
  166. package/dist/short-circuit-flags-EXJBJ5GT.js +0 -10
  167. package/dist/subcommands-DTKBXLPU.js +0 -9
  168. package/dist/version-help-JQGRPDJW.js +0 -10
@@ -185,8 +185,14 @@ async function ensureHistoryDir(homeFn = defaultHomeDir, targetConfigPath) {
185
185
  }
186
186
  }
187
187
  async function readIndex(homeFn = defaultHomeDir, targetConfigPath) {
188
+ let raw;
189
+ try {
190
+ raw = await fs.readFile(historyIndexPath(homeFn, targetConfigPath), "utf8");
191
+ } catch (err) {
192
+ if (err.code !== "ENOENT") throw err;
193
+ return rebuildIndexFromEntries(homeFn, targetConfigPath);
194
+ }
188
195
  try {
189
- const raw = await fs.readFile(historyIndexPath(homeFn, targetConfigPath), "utf8");
190
196
  const parsed = JSON.parse(raw);
191
197
  if (parsed && typeof parsed === "object" && Array.isArray(parsed.entries)) {
192
198
  const entries = parsed.entries.filter(
@@ -194,10 +200,44 @@ async function readIndex(homeFn = defaultHomeDir, targetConfigPath) {
194
200
  );
195
201
  return { version: 1, entries };
196
202
  }
197
- return { version: 1, entries: [] };
198
203
  } catch {
199
- return { version: 1, entries: [] };
200
204
  }
205
+ return rebuildIndexFromEntries(homeFn, targetConfigPath);
206
+ }
207
+ async function rebuildIndexFromEntries(homeFn = defaultHomeDir, targetConfigPath) {
208
+ const dir = historyDir(homeFn, targetConfigPath);
209
+ let files;
210
+ try {
211
+ files = (await fs.readdir(dir)).filter((file) => file.endsWith(".json"));
212
+ } catch (err) {
213
+ if (err.code === "ENOENT") return { version: 1, entries: [] };
214
+ throw err;
215
+ }
216
+ const entries = [];
217
+ for (const file of files) {
218
+ const id = file.slice(0, -".json".length);
219
+ let raw;
220
+ try {
221
+ raw = await fs.readFile(path.join(dir, file), "utf8");
222
+ } catch (err) {
223
+ if (err.code === "ENOENT") continue;
224
+ entries.push({ id, timestamp: "", description: "" });
225
+ continue;
226
+ }
227
+ try {
228
+ const entry = JSON.parse(raw);
229
+ if (entry.id === id && typeof entry.timestamp === "string") {
230
+ entries.push({
231
+ id,
232
+ timestamp: entry.timestamp,
233
+ description: typeof entry.description === "string" ? entry.description : ""
234
+ });
235
+ }
236
+ } catch {
237
+ }
238
+ }
239
+ entries.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
240
+ return { version: 1, entries };
201
241
  }
202
242
  async function writeIndex(idx, homeFn = defaultHomeDir, targetConfigPath) {
203
243
  await ensureHistoryDir(homeFn, targetConfigPath);
@@ -297,6 +337,7 @@ async function appendHistory(oldCfg, newCfg, description, homeFn = defaultHomeDi
297
337
  }
298
338
  await withFileLock(historyIndexPath(homeFn, targetConfigPath), async () => {
299
339
  const idx = await readIndex(homeFn, targetConfigPath);
340
+ idx.entries = idx.entries.filter((e) => e.id !== id);
300
341
  idx.entries.unshift({ id, timestamp, description });
301
342
  await pruneHistoryEntries(idx, homeFn, targetConfigPath);
302
343
  await writeIndex(idx, homeFn, targetConfigPath);
@@ -398,4 +439,4 @@ export {
398
439
  restoreFromHistory,
399
440
  restoreLast
400
441
  };
401
- //# sourceMappingURL=chunk-4BX2YDTQ.js.map
442
+ //# sourceMappingURL=chunk-BIGSVBPI.js.map
@@ -137,4 +137,4 @@ export {
137
137
  describeMaxContextChange,
138
138
  refreshRuntimeModelCatalog
139
139
  };
140
- //# sourceMappingURL=chunk-CZTXF6HY.js.map
140
+ //# sourceMappingURL=chunk-BJ4LDJ4H.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  appendHistory,
3
3
  backupCurrent
4
- } from "./chunk-4BX2YDTQ.js";
4
+ } from "./chunk-BIGSVBPI.js";
5
5
 
6
6
  // src/settings-menu.ts
7
7
  import * as fs from "node:fs/promises";
@@ -246,4 +246,4 @@ export {
246
246
  persistTelegramConfig,
247
247
  deriveFsAccessPair
248
248
  };
249
- //# sourceMappingURL=chunk-KMU7GF7X.js.map
249
+ //# sourceMappingURL=chunk-C2BBH4S4.js.map
@@ -0,0 +1,8 @@
1
+
2
+ // src/utils/win32-cmd.ts
3
+ import { buildWin32CmdShimInvocation } from "@wrongstack/core/utils";
4
+
5
+ export {
6
+ buildWin32CmdShimInvocation
7
+ };
8
+ //# sourceMappingURL=chunk-C4654QI2.js.map
@@ -48,4 +48,4 @@ export {
48
48
  extractBehaviorSettings,
49
49
  mergeBehaviorSettings
50
50
  };
51
- //# sourceMappingURL=chunk-M4G5FO7F.js.map
51
+ //# sourceMappingURL=chunk-C5JP6DJN.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  parseArgs
3
- } from "./chunk-CJSHS2K7.js";
3
+ } from "./chunk-75OLD563.js";
4
4
  import {
5
5
  helpCmd,
6
6
  versionCmd
7
- } from "./chunk-AKESWZH5.js";
7
+ } from "./chunk-6VPWQ4TG.js";
8
8
 
9
9
  // src/boot/short-circuit-flags.ts
10
10
  async function handleHelpVersionShortCircuit(argv) {
@@ -22,11 +22,11 @@ async function handleHelpVersionShortCircuit(argv) {
22
22
  }
23
23
  if (earlyFlags["help"] === true) {
24
24
  if (positional.length > 0) {
25
- const { subcommandNames } = await import("./subcommands-DTKBXLPU.js");
25
+ const { subcommandNames } = await import("./subcommands-EGZPBQOO.js");
26
26
  if (subcommandNames.includes(positional[0])) {
27
27
  const first = positional[0];
28
28
  const deep = positional[1];
29
- const { renderDeepHelp, renderFocusedHelp } = await import("./per-subcommand-help-VKPV3OEY.js");
29
+ const { renderDeepHelp, renderFocusedHelp } = await import("./per-subcommand-help-D6J4ZXW2.js");
30
30
  if (deep && renderDeepHelp(`${first}:${deep}`, stubRenderer)) {
31
31
  return 0;
32
32
  }
@@ -43,4 +43,4 @@ async function handleHelpVersionShortCircuit(argv) {
43
43
  export {
44
44
  handleHelpVersionShortCircuit
45
45
  };
46
- //# sourceMappingURL=chunk-LDV4ERNV.js.map
46
+ //# sourceMappingURL=chunk-CIGEY7NU.js.map
@@ -23,9 +23,9 @@ var APPLIED_FMT = `
23
23
  `;
24
24
  async function printStandaloneUpdateNotice(info, config) {
25
25
  const [{ autoUpdateEnabled, standaloneUpdater, takeAppliedUpdate }, { isNewer }, version] = await Promise.all([
26
- import("./standalone-auto-update-VQC4GYCM.js"),
27
- import("./update-check-VLVT4IV2.js"),
28
- import("./version-JB2UAV2A.js")
26
+ import("./standalone-auto-update-X5SK4M5B.js"),
27
+ import("./update-check-JBGP4ZFI.js"),
28
+ import("./version-Q6KJ23GB.js")
29
29
  ]);
30
30
  const applied = takeAppliedUpdate();
31
31
  if (applied) writeErr(APPLIED_FMT.replace("%s", applied.from).replace("%s", applied.to));
@@ -47,7 +47,7 @@ async function printUpdateNotice(initialUpdateInfo, config) {
47
47
  const ac = new AbortController();
48
48
  const timer = setTimeout(() => ac.abort(), 2e3);
49
49
  try {
50
- const { checkForUpdate } = await import("./update-check-VLVT4IV2.js");
50
+ const { checkForUpdate } = await import("./update-check-JBGP4ZFI.js");
51
51
  info = await checkForUpdate(ac.signal);
52
52
  } catch {
53
53
  } finally {
@@ -102,4 +102,4 @@ export {
102
102
  applySessionShellDefault,
103
103
  runPreflight
104
104
  };
105
- //# sourceMappingURL=chunk-WTJDSTYD.js.map
105
+ //# sourceMappingURL=chunk-CVVQ5NCN.js.map
@@ -21,4 +21,4 @@ export {
21
21
  resetGateDecisions,
22
22
  snapshotGateDecisions
23
23
  };
24
- //# sourceMappingURL=chunk-D3K4NYQL.js.map
24
+ //# sourceMappingURL=chunk-DXHQFV5V.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  STANDALONE_TARGET
3
- } from "./chunk-F5DCFAKI.js";
3
+ } from "./chunk-HKMOIIPQ.js";
4
4
 
5
5
  // src/standalone-update.ts
6
6
  import { createHash as createHash2, randomBytes } from "node:crypto";
@@ -326,4 +326,4 @@ export {
326
326
  installExecutableFrom,
327
327
  updateStandaloneBinary
328
328
  };
329
- //# sourceMappingURL=chunk-SUDNPYWD.js.map
329
+ //# sourceMappingURL=chunk-FM7DPSYA.js.map
@@ -558,4 +558,4 @@ export {
558
558
  createProviderForId,
559
559
  runModeldiagEval
560
560
  };
561
- //# sourceMappingURL=chunk-YL4KCHZG.js.map
561
+ //# sourceMappingURL=chunk-FPUB5WWP.js.map
@@ -127,4 +127,4 @@ export {
127
127
  writeWebuiSessionChildReady,
128
128
  writeWebuiSessionChildError
129
129
  };
130
- //# sourceMappingURL=chunk-P3Q3KMFH.js.map
130
+ //# sourceMappingURL=chunk-FUJHWQV4.js.map
@@ -10,4 +10,4 @@ import {
10
10
  export {
11
11
  getWrongTrace
12
12
  };
13
- //# sourceMappingURL=chunk-ERX4BLKP.js.map
13
+ //# sourceMappingURL=chunk-GFQH77OH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CLI_VERSION
3
- } from "./chunk-F5DCFAKI.js";
3
+ } from "./chunk-HKMOIIPQ.js";
4
4
 
5
5
  // src/update-check.ts
6
6
  import * as fs from "node:fs/promises";
@@ -144,7 +144,7 @@ async function checkForUpdate(signalOrOptions, legacyHomeFn) {
144
144
  };
145
145
  }
146
146
  try {
147
- const latest = packageName === "standalone-binary" ? await (await import("./standalone-update-HZHDZZOR.js")).fetchLatestStandaloneVersion(3e3, signal) : await fetchLatestFromNpm(packageName, 3e3, signal);
147
+ const latest = packageName === "standalone-binary" ? await (await import("./standalone-update-6U4NP5MN.js")).fetchLatestStandaloneVersion(3e3, signal) : await fetchLatestFromNpm(packageName, 3e3, signal);
148
148
  await writeCache({ timestamp: Date.now(), latestVersion: latest, packageName }, hf);
149
149
  return {
150
150
  current,
@@ -183,4 +183,4 @@ export {
183
183
  checkForUpdate,
184
184
  getUpdateNotification
185
185
  };
186
- //# sourceMappingURL=chunk-DIOODAYM.js.map
186
+ //# sourceMappingURL=chunk-H53EXXAU.js.map
@@ -33,4 +33,4 @@ export {
33
33
  API_VERSION,
34
34
  STANDALONE_TARGET
35
35
  };
36
- //# sourceMappingURL=chunk-F5DCFAKI.js.map
36
+ //# sourceMappingURL=chunk-HKMOIIPQ.js.map
@@ -29,4 +29,4 @@ async function resolveHqPasswordInput(options = {}) {
29
29
  export {
30
30
  resolveHqPasswordInput
31
31
  };
32
- //# sourceMappingURL=chunk-AUQDGU5D.js.map
32
+ //# sourceMappingURL=chunk-HQBY6OFT.js.map
@@ -127,7 +127,6 @@ async function spawnHqAgent(director, sessionId, role, task, maxIterations) {
127
127
  const base = FLEET_ROSTER[role] ?? {
128
128
  id: `manual-${Date.now()}`,
129
129
  name: role,
130
- maxIterations: maxIterations ?? 0,
131
130
  maxToolCalls: 200
132
131
  };
133
132
  const overrides = maxIterations !== void 0 ? { maxIterations } : {};
@@ -157,4 +156,4 @@ export {
157
156
  spawnHqAgent,
158
157
  createHqFleetControl
159
158
  };
160
- //# sourceMappingURL=chunk-6SIUTX75.js.map
159
+ //# sourceMappingURL=chunk-IJLIAPCW.js.map
@@ -16,4 +16,4 @@ var theme = {
16
16
  export {
17
17
  theme
18
18
  };
19
- //# sourceMappingURL=chunk-QD544J2B.js.map
19
+ //# sourceMappingURL=chunk-JTTV2EVA.js.map
@@ -46,4 +46,4 @@ function parseTokenTtlValue(raw) {
46
46
  export {
47
47
  parseTokenTtlValue
48
48
  };
49
- //# sourceMappingURL=chunk-UKP7H2U4.js.map
49
+ //# sourceMappingURL=chunk-KHFFJ2LC.js.map
@@ -59,4 +59,4 @@ export {
59
59
  formatPermissionRules,
60
60
  formatExplainedCall
61
61
  };
62
- //# sourceMappingURL=chunk-4TVYGG6G.js.map
62
+ //# sourceMappingURL=chunk-MKM4X2AM.js.map
@@ -0,0 +1,61 @@
1
+
2
+ // src/subcommands/index.ts
3
+ var loaders = {
4
+ automation: async () => (await import("./automation-O7ZRZSFS.js")).automationCmd,
5
+ sandbox: async () => (await import("./sandbox-EZQ76MNY.js")).sandboxCmd,
6
+ acp: async () => (await import("./acp-HCGUTFNE.js")).acpCmd,
7
+ init: async () => (await import("./init-5PLABNLR.js")).initCmd,
8
+ auth: async () => (await import("./auth-ANOVZVHE.js")).authCmd,
9
+ update: async () => (await import("./update-54W7GUS5.js")).updateCmd,
10
+ remote: async () => (await import("./remote-AKKRJEHK.js")).remoteCmd,
11
+ sessions: async () => (await import("./sessions-config-SJVQXCIE.js")).sessionsCmd,
12
+ config: async () => (await import("./sessions-config-SJVQXCIE.js")).configCmd,
13
+ "config-export": async () => (await import("./config-transfer-Y7XJMJRN.js")).configExportCmd,
14
+ "config-import": async () => (await import("./config-transfer-Y7XJMJRN.js")).configImportCmd,
15
+ rewind: async () => (await import("./rewind-GAUXWSTU.js")).rewindCmd,
16
+ replay: async () => (await import("./replay-URJFMQCU.js")).replayCmd,
17
+ audit: async () => (await import("./audit-NH7NUKBV.js")).auditCmd,
18
+ tools: async () => (await import("./tools-skills-55QVTMSK.js")).toolsCmd,
19
+ skills: async () => (await import("./tools-skills-55QVTMSK.js")).skillsCmd,
20
+ "skill-suggest": async () => (await import("./skill-suggest-LZV2TIPQ.js")).skillSuggestCmd,
21
+ typesafe: async () => (await import("./typesafe-YBEADNAH.js")).typesafeCmd,
22
+ providers: async () => (await import("./providers-models-CDI5GVBX.js")).providersCmd,
23
+ models: async () => (await import("./providers-models-CDI5GVBX.js")).modelsCmd,
24
+ mcp: async () => (await import("./mcp-2XWBJEQN.js")).mcpCmd,
25
+ plugin: async () => (await import("./plugin-usage-TYF5HY4K.js")).pluginCmd,
26
+ plugins: async () => (await import("./plugin-usage-TYF5HY4K.js")).pluginCmd,
27
+ diag: async () => (await import("./diag-doctor-5SVYK2DR.js")).diagCmd,
28
+ doctor: async () => (await import("./diag-doctor-5SVYK2DR.js")).doctorCmd,
29
+ "proxy-status": async () => (await import("./diag-doctor-5SVYK2DR.js")).proxyCmd,
30
+ export: async () => (await import("./export-W27PTU6Y.js")).exportCmd,
31
+ usage: async () => (await import("./plugin-usage-TYF5HY4K.js")).usageCmd,
32
+ version: async () => (await import("./version-help-RBZC5GZZ.js")).versionCmd,
33
+ help: async () => (await import("./version-help-RBZC5GZZ.js")).helpCmd,
34
+ projects: async () => (await import("./projects-FWRJHW3S.js")).projectsCmd,
35
+ modeldiag: async () => (await import("./modeldiag-ERXYJODJ.js")).modeldiagCmd,
36
+ quick: async () => (await import("./quick-NPC3N3ZX.js")).quickCmd,
37
+ bench: async () => (await import("./bench-NDYES33Y.js")).benchCmd,
38
+ chronicle: async () => (await import("./chronicle-WBK3TJRB.js")).chronicleCmd,
39
+ hq: async () => (await import("./hq-JD5AZVMG.js")).hqCmd,
40
+ mailbox: async () => (await import("./mailbox-serve-MMQCHOHI.js")).mailboxServeCmd,
41
+ permissions: async () => (await import("./permissions-6YJ64W65.js")).permissionsCmd,
42
+ project: async () => (await import("./project-V5KNTLV4.js")).projectCmd,
43
+ sage: async () => (await import("./sage-6KKXK2ZS.js")).sageCmd,
44
+ governance: async () => (await import("./governance-A32M4ILK.js")).governanceCmd,
45
+ "import-claude-code": async () => (await import("./import-claude-code-D4F6ZE7I.js")).importClaudeCodeCmd
46
+ };
47
+ var subcommands = Object.fromEntries(
48
+ Object.entries(loaders).map(
49
+ ([name, load]) => [
50
+ name,
51
+ async (args, deps) => (await load())(args, deps)
52
+ ]
53
+ )
54
+ );
55
+ var subcommandNames = Object.keys(loaders);
56
+
57
+ export {
58
+ subcommands,
59
+ subcommandNames
60
+ };
61
+ //# sourceMappingURL=chunk-ML3US333.js.map
@@ -50,7 +50,7 @@ function normalizeMcpServerEntry(name, raw) {
50
50
  function parseLaunchMcpServers(text, source) {
51
51
  let doc;
52
52
  try {
53
- doc = JSON.parse(text);
53
+ doc = JSON.parse(text.replace(/^\uFEFF/, ""));
54
54
  } catch (err) {
55
55
  throw new Error(`--mcp-config: ${source} is not valid JSON (${err.message})`);
56
56
  }
@@ -94,4 +94,4 @@ export {
94
94
  resolveLaunchMcpServers,
95
95
  effectiveMcpServers
96
96
  };
97
- //# sourceMappingURL=chunk-HLSHFXTO.js.map
97
+ //# sourceMappingURL=chunk-NL2ABOAS.js.map
@@ -59,4 +59,4 @@ export {
59
59
  createHqIpAllowlist,
60
60
  parseHqIpAllowlist
61
61
  };
62
- //# sourceMappingURL=chunk-Q7E3BPDU.js.map
62
+ //# sourceMappingURL=chunk-OGVSKS4Q.js.map