@wrongstack/cli 0.297.0 → 0.298.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 (505) hide show
  1. package/dist/{acp-A5OSIU2P.js → acp-S4LZQB66.js} +91 -23
  2. package/dist/{auth-CJWQJVRH.js → auth-NLLGEYQR.js} +3 -3
  3. package/dist/boot/governance-evidence-candidate.d.ts +3 -0
  4. package/dist/boot/governance-shadow-bridge.d.ts +19 -0
  5. package/dist/boot/governance-trace-context.d.ts +64 -0
  6. package/dist/boot/tui-session-resume.d.ts +10 -1
  7. package/dist/chimera-leader-wake.d.ts +57 -0
  8. package/dist/chimera-reviewer-policy.d.ts +89 -1
  9. package/dist/chimera-subagent-ladder.d.ts +72 -0
  10. package/dist/{chunk-AZESNNIC.js → chunk-4HH3YGG4.js} +3 -3
  11. package/dist/{chunk-IHBYBYGA.js → chunk-A6Q5KGLV.js} +51 -18
  12. package/dist/{chunk-ABXK4VVY.js → chunk-ARWGQUB3.js} +2 -1
  13. package/dist/{chunk-7JABKXET.js → chunk-C5GH4YBL.js} +1018 -175
  14. package/dist/{chunk-TADVX644.js → chunk-GO3TJICK.js} +11 -2
  15. package/dist/{chunk-JBTFWWKV.js → chunk-I2BM6FK6.js} +9 -4
  16. package/dist/{chunk-AXVZMEWG.js → chunk-I5MEUFDI.js} +2 -2
  17. package/dist/chunk-U3SS4NRH.js +10 -0
  18. package/dist/{chunk-QZKWRNIP.js → chunk-V3XH6XBJ.js} +12 -9
  19. package/dist/{cli-main-GOY5YGVL.js → cli-main-TJEU4OUY.js} +954 -268
  20. package/dist/cli-main-helpers.d.ts +42 -2
  21. package/dist/{execution-A4PGK4XV.js → execution-INOV5P7N.js} +1236 -652
  22. package/dist/execution-chimera-cascade.d.ts +7 -1
  23. package/dist/execution-chimera-review.d.ts +35 -0
  24. package/dist/fleet/host-types.d.ts +6 -1
  25. package/dist/fleet-statusline.d.ts +1 -0
  26. package/dist/governance-V2Z42RBE.js +65 -0
  27. package/dist/governance-hq-telemetry.d.ts +17 -0
  28. package/dist/{hq-GBPGXIR5.js → hq-WO6CLUSI.js} +2 -2
  29. package/dist/hq-server/auth.d.ts +33 -2
  30. package/dist/hq-server/login-attempt-store.d.ts +73 -0
  31. package/dist/hq-server/routes/auth-handlers.d.ts +73 -5
  32. package/dist/hq-server/routes.d.ts +5 -5
  33. package/dist/hq-server/types.d.ts +36 -2
  34. package/dist/hq-server/utils.d.ts +51 -6
  35. package/dist/{hq-server-YQUUMTPU.js → hq-server-6TSAORAC.js} +2 -2
  36. package/dist/hq-server.d.ts +10 -0
  37. package/dist/index.js +49 -21
  38. package/dist/live-settings-input.d.ts +1 -1
  39. package/dist/settings-menu.d.ts +1 -1
  40. package/dist/slash-commands/fallback.d.ts +2 -0
  41. package/dist/slash-commands/goal-refiner.d.ts +1 -1
  42. package/dist/subcommands/handlers/acp-connection-gate.d.ts +20 -0
  43. package/dist/subcommands/handlers/governance.d.ts +8 -0
  44. package/dist/{update-YC4TYW2Y.js → update-MV6TUACD.js} +3 -3
  45. package/dist/utils/win32-cmd.d.ts +9 -6
  46. package/dist/{version-help-DROHZRW6.js → version-help-ASKQYXDJ.js} +2 -2
  47. package/dist/{webui-server-XKFUOKMJ.js → webui-server-PCLSXX6L.js} +10 -3
  48. package/dist/wiring/brain-and-orchestration.d.ts +2 -0
  49. package/dist/wiring/provider-runtime-setup.d.ts +2 -2
  50. package/package.json +23 -22
  51. package/dist/acp-A5OSIU2P.js.map +0 -7
  52. package/dist/acp-registry-cache.d.ts.map +0 -1
  53. package/dist/acp-server-agent.d.ts.map +0 -1
  54. package/dist/arg-parser.d.ts.map +0 -1
  55. package/dist/audit-2ZSFGNIF.js.map +0 -7
  56. package/dist/auth-CJWQJVRH.js.map +0 -7
  57. package/dist/auth-menu/add-provider.d.ts.map +0 -1
  58. package/dist/auth-menu/anthropic-oauth.d.ts.map +0 -1
  59. package/dist/auth-menu/auth-menu-audit.d.ts.map +0 -1
  60. package/dist/auth-menu/direct.d.ts.map +0 -1
  61. package/dist/auth-menu/github-copilot-oauth.d.ts.map +0 -1
  62. package/dist/auth-menu/helpers.d.ts.map +0 -1
  63. package/dist/auth-menu/index.d.ts.map +0 -1
  64. package/dist/auth-menu/local-presets.d.ts.map +0 -1
  65. package/dist/auth-menu/local.d.ts.map +0 -1
  66. package/dist/auth-menu/loopback-server.d.ts.map +0 -1
  67. package/dist/auth-menu/oauth-menu.d.ts.map +0 -1
  68. package/dist/auth-menu/openai-codex-oauth.d.ts.map +0 -1
  69. package/dist/auth-menu/panel-service.d.ts.map +0 -1
  70. package/dist/auth-menu/provider-menu.d.ts.map +0 -1
  71. package/dist/auth-menu/shared.d.ts.map +0 -1
  72. package/dist/auth-menu/top-menu.d.ts.map +0 -1
  73. package/dist/auth-menu/types.d.ts.map +0 -1
  74. package/dist/auth-menu.d.ts.map +0 -1
  75. package/dist/bench-7ZDWSNEF.js.map +0 -7
  76. package/dist/boot/auto-discover-providers.d.ts.map +0 -1
  77. package/dist/boot/brain-decision-log.d.ts.map +0 -1
  78. package/dist/boot/config-backup-recovery.d.ts.map +0 -1
  79. package/dist/boot/container-wiring.d.ts.map +0 -1
  80. package/dist/boot/dispatch-singleshot.d.ts.map +0 -1
  81. package/dist/boot/dispatch-tui.d.ts.map +0 -1
  82. package/dist/boot/dispatch-webui.d.ts.map +0 -1
  83. package/dist/boot/event-wiring.d.ts.map +0 -1
  84. package/dist/boot/execution-mode.d.ts.map +0 -1
  85. package/dist/boot/launch-banner.d.ts.map +0 -1
  86. package/dist/boot/launch-menu.d.ts.map +0 -1
  87. package/dist/boot/short-circuit-desktop.d.ts.map +0 -1
  88. package/dist/boot/short-circuit-flags.d.ts.map +0 -1
  89. package/dist/boot/short-circuit-hq.d.ts.map +0 -1
  90. package/dist/boot/simpleui-full-auto.d.ts.map +0 -1
  91. package/dist/boot/system-prompt-builder.d.ts.map +0 -1
  92. package/dist/boot/system-prompt.d.ts.map +0 -1
  93. package/dist/boot/tool-registry.d.ts.map +0 -1
  94. package/dist/boot/tui-coordinator-callbacks.d.ts.map +0 -1
  95. package/dist/boot/tui-coordinator-setup.d.ts.map +0 -1
  96. package/dist/boot/tui-debug-stream.d.ts.map +0 -1
  97. package/dist/boot/tui-goal-wiring.d.ts.map +0 -1
  98. package/dist/boot/tui-live-sessions.d.ts.map +0 -1
  99. package/dist/boot/tui-project-picker-callback.d.ts.map +0 -1
  100. package/dist/boot/tui-project-spawn.d.ts.map +0 -1
  101. package/dist/boot/tui-project-switch.d.ts.map +0 -1
  102. package/dist/boot/tui-runtime-state.d.ts.map +0 -1
  103. package/dist/boot/tui-sdd-callback.d.ts.map +0 -1
  104. package/dist/boot/tui-session-resume.d.ts.map +0 -1
  105. package/dist/boot/tui-settings-adapter.d.ts.map +0 -1
  106. package/dist/boot-config.d.ts.map +0 -1
  107. package/dist/boot.d.ts.map +0 -1
  108. package/dist/brain-menu/panel-service.d.ts.map +0 -1
  109. package/dist/chimera-review-task.d.ts.map +0 -1
  110. package/dist/chimera-reviewer-policy.d.ts.map +0 -1
  111. package/dist/chronicle-QQEQFSSE.js.map +0 -7
  112. package/dist/chunk-5N34EWJR.js.map +0 -7
  113. package/dist/chunk-66T43Q4Y.js.map +0 -7
  114. package/dist/chunk-7JABKXET.js.map +0 -7
  115. package/dist/chunk-7OCVIDC7.js.map +0 -7
  116. package/dist/chunk-ABXK4VVY.js.map +0 -7
  117. package/dist/chunk-AXVZMEWG.js.map +0 -7
  118. package/dist/chunk-AZESNNIC.js.map +0 -7
  119. package/dist/chunk-BGFM3PD7.js.map +0 -7
  120. package/dist/chunk-DPJZQCVP.js.map +0 -7
  121. package/dist/chunk-F4PEGAJZ.js.map +0 -7
  122. package/dist/chunk-IHBYBYGA.js.map +0 -7
  123. package/dist/chunk-JBSQ7ONN.js.map +0 -7
  124. package/dist/chunk-JBTFWWKV.js.map +0 -7
  125. package/dist/chunk-JUHRI6OV.js.map +0 -7
  126. package/dist/chunk-JW75HY4F.js.map +0 -7
  127. package/dist/chunk-OP47B3IX.js.map +0 -7
  128. package/dist/chunk-PJHET45A.js.map +0 -7
  129. package/dist/chunk-Q5GTM25S.js.map +0 -7
  130. package/dist/chunk-QD544J2B.js.map +0 -7
  131. package/dist/chunk-QUNHS6O3.js.map +0 -7
  132. package/dist/chunk-QZKWRNIP.js.map +0 -7
  133. package/dist/chunk-TADVX644.js.map +0 -7
  134. package/dist/chunk-TGDHN4LM.js.map +0 -7
  135. package/dist/chunk-TYO2OVAD.js.map +0 -7
  136. package/dist/chunk-VCYZ3WZV.js.map +0 -7
  137. package/dist/chunk-VJUEZZYB.js +0 -29
  138. package/dist/chunk-VJUEZZYB.js.map +0 -7
  139. package/dist/chunk-WHOIR577.js.map +0 -7
  140. package/dist/chunk-XJXDOF63.js.map +0 -7
  141. package/dist/chunk-XTIXVJXP.js.map +0 -7
  142. package/dist/chunk-XWEGWYDU.js.map +0 -7
  143. package/dist/chunk-YWUPHRGB.js.map +0 -7
  144. package/dist/cli-bundled-prompts.d.ts.map +0 -1
  145. package/dist/cli-bundled-skills.d.ts.map +0 -1
  146. package/dist/cli-context.d.ts.map +0 -1
  147. package/dist/cli-entry-main.d.ts.map +0 -1
  148. package/dist/cli-entry-point.d.ts.map +0 -1
  149. package/dist/cli-eternal-flag.d.ts.map +0 -1
  150. package/dist/cli-main-GOY5YGVL.js.map +0 -7
  151. package/dist/cli-main-helpers.d.ts.map +0 -1
  152. package/dist/cli-main.d.ts.map +0 -1
  153. package/dist/cli-update-notice.d.ts.map +0 -1
  154. package/dist/config-doctor.d.ts.map +0 -1
  155. package/dist/config-history.d.ts.map +0 -1
  156. package/dist/context-limit.d.ts.map +0 -1
  157. package/dist/context-overflow-diagnostic.d.ts.map +0 -1
  158. package/dist/diag-doctor-OQ3AA63O.js.map +0 -7
  159. package/dist/diff-renderer.d.ts.map +0 -1
  160. package/dist/execute-deps.d.ts.map +0 -1
  161. package/dist/execution-A4PGK4XV.js.map +0 -7
  162. package/dist/execution-chimera-ask.d.ts.map +0 -1
  163. package/dist/execution-chimera-cascade.d.ts.map +0 -1
  164. package/dist/execution-cleanup.d.ts.map +0 -1
  165. package/dist/execution-kanban-dispatch.d.ts.map +0 -1
  166. package/dist/execution-repl-fleet-callbacks.d.ts.map +0 -1
  167. package/dist/execution-storage-observability.d.ts.map +0 -1
  168. package/dist/execution-tui-next-step-callbacks.d.ts.map +0 -1
  169. package/dist/execution.d.ts.map +0 -1
  170. package/dist/export-TPORYVRZ.js.map +0 -7
  171. package/dist/fleet/host-acp-runner-cache.d.ts.map +0 -1
  172. package/dist/fleet/host-acp.d.ts.map +0 -1
  173. package/dist/fleet/host-concurrency.d.ts.map +0 -1
  174. package/dist/fleet/host-context.d.ts.map +0 -1
  175. package/dist/fleet/host-director-builder.d.ts.map +0 -1
  176. package/dist/fleet/host-director-event-bridges.d.ts.map +0 -1
  177. package/dist/fleet/host-director-services.d.ts.map +0 -1
  178. package/dist/fleet/host-event-bridge.d.ts.map +0 -1
  179. package/dist/fleet/host-helpers.d.ts.map +0 -1
  180. package/dist/fleet/host-learning-tracker.d.ts.map +0 -1
  181. package/dist/fleet/host-learning.d.ts.map +0 -1
  182. package/dist/fleet/host-lifecycle-events.d.ts.map +0 -1
  183. package/dist/fleet/host-paths.d.ts.map +0 -1
  184. package/dist/fleet/host-provider.d.ts.map +0 -1
  185. package/dist/fleet/host-session-writer.d.ts.map +0 -1
  186. package/dist/fleet/host-shadow-pass.d.ts.map +0 -1
  187. package/dist/fleet/host-spawn-types.d.ts.map +0 -1
  188. package/dist/fleet/host-status.d.ts.map +0 -1
  189. package/dist/fleet/host-subagent-factory.d.ts.map +0 -1
  190. package/dist/fleet/host-supervisor.d.ts.map +0 -1
  191. package/dist/fleet/host-task-result-report.d.ts.map +0 -1
  192. package/dist/fleet/host-types.d.ts.map +0 -1
  193. package/dist/fleet/host.d.ts.map +0 -1
  194. package/dist/fleet/routing.d.ts.map +0 -1
  195. package/dist/fleet/status-broadcast.d.ts.map +0 -1
  196. package/dist/fleet/supervisor-registry.d.ts.map +0 -1
  197. package/dist/fleet-statusline.d.ts.map +0 -1
  198. package/dist/goal-host.d.ts.map +0 -1
  199. package/dist/hooks-wiring.d.ts.map +0 -1
  200. package/dist/hq-GBPGXIR5.js.map +0 -7
  201. package/dist/hq-command-controller.d.ts.map +0 -1
  202. package/dist/hq-publisher.d.ts.map +0 -1
  203. package/dist/hq-recovery-html.d.ts.map +0 -1
  204. package/dist/hq-server/audit-actor.d.ts.map +0 -1
  205. package/dist/hq-server/auth-state.d.ts.map +0 -1
  206. package/dist/hq-server/auth.d.ts.map +0 -1
  207. package/dist/hq-server/preflight.d.ts.map +0 -1
  208. package/dist/hq-server/project-root.d.ts.map +0 -1
  209. package/dist/hq-server/routes/auth-handlers.d.ts.map +0 -1
  210. package/dist/hq-server/routes/session-handlers.d.ts.map +0 -1
  211. package/dist/hq-server/routes/system-handlers.d.ts.map +0 -1
  212. package/dist/hq-server/routes.d.ts.map +0 -1
  213. package/dist/hq-server/snapshot.d.ts.map +0 -1
  214. package/dist/hq-server/startup.d.ts.map +0 -1
  215. package/dist/hq-server/trust-boundary.d.ts.map +0 -1
  216. package/dist/hq-server/types.d.ts.map +0 -1
  217. package/dist/hq-server/utils.d.ts.map +0 -1
  218. package/dist/hq-server/ws.d.ts.map +0 -1
  219. package/dist/hq-server-YQUUMTPU.js.map +0 -7
  220. package/dist/hq-server.d.ts.map +0 -1
  221. package/dist/hq-static-serve.d.ts.map +0 -1
  222. package/dist/hq-ttl-U2FAYFAT.js.map +0 -7
  223. package/dist/hq-tunnel-RFKGC4HI.js.map +0 -7
  224. package/dist/hq-tunnel.d.ts.map +0 -1
  225. package/dist/index.d.ts.map +0 -1
  226. package/dist/index.js.map +0 -7
  227. package/dist/init-E2NDDOHI.js.map +0 -7
  228. package/dist/input-reader.d.ts.map +0 -1
  229. package/dist/kanban-dispatch-route.d.ts.map +0 -1
  230. package/dist/kanban-hq-sync.d.ts.map +0 -1
  231. package/dist/kanban-run-mirror-EKVNGXWW.js.map +0 -7
  232. package/dist/launch-hints.d.ts.map +0 -1
  233. package/dist/live-settings-input.d.ts.map +0 -1
  234. package/dist/mailbox-bridge-bootstrap.d.ts.map +0 -1
  235. package/dist/mailbox-serve-DBOOOOWZ.js.map +0 -7
  236. package/dist/mcp-CYLPUEHC.js.map +0 -7
  237. package/dist/mcp-serve.d.ts.map +0 -1
  238. package/dist/modeldiag-HENYJ4N7.js.map +0 -7
  239. package/dist/multi-agent.d.ts.map +0 -1
  240. package/dist/next-task-predictor.d.ts.map +0 -1
  241. package/dist/permission-prompt.d.ts.map +0 -1
  242. package/dist/permissions-FNYLZIL4.js.map +0 -7
  243. package/dist/picker-key-state.d.ts.map +0 -1
  244. package/dist/picker-model-picker.d.ts.map +0 -1
  245. package/dist/picker-ui.d.ts.map +0 -1
  246. package/dist/picker.d.ts.map +0 -1
  247. package/dist/plugin-api-factory.d.ts.map +0 -1
  248. package/dist/plugin-management.d.ts.map +0 -1
  249. package/dist/plugin-usage-OU6X6LM3.js.map +0 -7
  250. package/dist/plugins-4LJ5IUBI.js.map +0 -7
  251. package/dist/pre-launch/launch-prompts.d.ts.map +0 -1
  252. package/dist/pre-launch/project-check.d.ts.map +0 -1
  253. package/dist/pre-launch.d.ts.map +0 -1
  254. package/dist/preflight.d.ts.map +0 -1
  255. package/dist/profile-config-path.d.ts.map +0 -1
  256. package/dist/project-BLQ3ALVL.js.map +0 -7
  257. package/dist/project-manifest-GE25PW4S.js.map +0 -7
  258. package/dist/project-picker-BOCWHBXP.js.map +0 -7
  259. package/dist/project-picker.d.ts.map +0 -1
  260. package/dist/projects-XE76NFNZ.js.map +0 -7
  261. package/dist/provider-config-utils.d.ts.map +0 -1
  262. package/dist/provider-helpers.d.ts.map +0 -1
  263. package/dist/provider-id.d.ts.map +0 -1
  264. package/dist/providers-models-GDELBHZK.js.map +0 -7
  265. package/dist/quick-VIO2BEHS.js.map +0 -7
  266. package/dist/renderer.d.ts.map +0 -1
  267. package/dist/repl-auto-proceed.d.ts.map +0 -1
  268. package/dist/repl-client-registration.d.ts.map +0 -1
  269. package/dist/repl-input.d.ts.map +0 -1
  270. package/dist/repl-options.d.ts.map +0 -1
  271. package/dist/repl-rendering.d.ts.map +0 -1
  272. package/dist/repl-suggestions.d.ts.map +0 -1
  273. package/dist/repl.d.ts.map +0 -1
  274. package/dist/replay-KCTXNMZQ.js.map +0 -7
  275. package/dist/rewind-EJMVFVLS.js.map +0 -7
  276. package/dist/sdd-runtime-AIJCJGWC.js.map +0 -7
  277. package/dist/services/autonomy-mode.d.ts.map +0 -1
  278. package/dist/services/commit-message.d.ts.map +0 -1
  279. package/dist/services/dispatch-classifier.d.ts.map +0 -1
  280. package/dist/services/mcp-management.d.ts.map +0 -1
  281. package/dist/services/project-facts.d.ts.map +0 -1
  282. package/dist/services/project-manifest.d.ts.map +0 -1
  283. package/dist/services/sdd/project-context.d.ts.map +0 -1
  284. package/dist/services/sdd/spec-detection.d.ts.map +0 -1
  285. package/dist/services/sdd/state.d.ts.map +0 -1
  286. package/dist/services/sdd/task-manager.d.ts.map +0 -1
  287. package/dist/services/sdd-runtime.d.ts.map +0 -1
  288. package/dist/services/statusline-config.d.ts.map +0 -1
  289. package/dist/services/suggestion-store.d.ts.map +0 -1
  290. package/dist/session-event-wiring.d.ts.map +0 -1
  291. package/dist/session-stats.d.ts.map +0 -1
  292. package/dist/sessions-config-NLCMK3BY.js.map +0 -7
  293. package/dist/settings-menu.d.ts.map +0 -1
  294. package/dist/shutdown-cleanup.d.ts.map +0 -1
  295. package/dist/simpleui-dist-JIFGUJO7.js.map +0 -7
  296. package/dist/simpleui-dist.d.ts.map +0 -1
  297. package/dist/slash-commands/acp.d.ts.map +0 -1
  298. package/dist/slash-commands/agent-improve.d.ts.map +0 -1
  299. package/dist/slash-commands/agents.d.ts.map +0 -1
  300. package/dist/slash-commands/audit.d.ts.map +0 -1
  301. package/dist/slash-commands/auth.d.ts.map +0 -1
  302. package/dist/slash-commands/autonomy.d.ts.map +0 -1
  303. package/dist/slash-commands/brain.d.ts.map +0 -1
  304. package/dist/slash-commands/btw.d.ts.map +0 -1
  305. package/dist/slash-commands/clear.d.ts.map +0 -1
  306. package/dist/slash-commands/codebase-reindex.d.ts.map +0 -1
  307. package/dist/slash-commands/collab.d.ts.map +0 -1
  308. package/dist/slash-commands/command-context.d.ts.map +0 -1
  309. package/dist/slash-commands/commit-llm.d.ts.map +0 -1
  310. package/dist/slash-commands/compact.d.ts.map +0 -1
  311. package/dist/slash-commands/context.d.ts.map +0 -1
  312. package/dist/slash-commands/coordinator.d.ts.map +0 -1
  313. package/dist/slash-commands/delegate.d.ts.map +0 -1
  314. package/dist/slash-commands/design.d.ts.map +0 -1
  315. package/dist/slash-commands/dev.d.ts.map +0 -1
  316. package/dist/slash-commands/diag-stats.d.ts.map +0 -1
  317. package/dist/slash-commands/dispatch-llm.d.ts.map +0 -1
  318. package/dist/slash-commands/doctor.d.ts.map +0 -1
  319. package/dist/slash-commands/enhance.d.ts.map +0 -1
  320. package/dist/slash-commands/ensemble.d.ts.map +0 -1
  321. package/dist/slash-commands/f-keys.d.ts.map +0 -1
  322. package/dist/slash-commands/fallback.d.ts.map +0 -1
  323. package/dist/slash-commands/fix-classifier.d.ts.map +0 -1
  324. package/dist/slash-commands/fix.d.ts.map +0 -1
  325. package/dist/slash-commands/fleet.d.ts.map +0 -1
  326. package/dist/slash-commands/git.d.ts.map +0 -1
  327. package/dist/slash-commands/gitid.d.ts.map +0 -1
  328. package/dist/slash-commands/goal-refiner.d.ts.map +0 -1
  329. package/dist/slash-commands/goal.d.ts.map +0 -1
  330. package/dist/slash-commands/health.d.ts.map +0 -1
  331. package/dist/slash-commands/help.d.ts.map +0 -1
  332. package/dist/slash-commands/helpers.d.ts.map +0 -1
  333. package/dist/slash-commands/hq.d.ts.map +0 -1
  334. package/dist/slash-commands/index.d.ts.map +0 -1
  335. package/dist/slash-commands/init.d.ts.map +0 -1
  336. package/dist/slash-commands/interrupt.d.ts.map +0 -1
  337. package/dist/slash-commands/kanban-agent-helpers.d.ts.map +0 -1
  338. package/dist/slash-commands/kanban-format.d.ts.map +0 -1
  339. package/dist/slash-commands/kanban-help.d.ts.map +0 -1
  340. package/dist/slash-commands/kanban.d.ts.map +0 -1
  341. package/dist/slash-commands/mailbox-demo.d.ts.map +0 -1
  342. package/dist/slash-commands/mailbox-serve.d.ts.map +0 -1
  343. package/dist/slash-commands/mailbox.d.ts.map +0 -1
  344. package/dist/slash-commands/mcp-utils.d.ts.map +0 -1
  345. package/dist/slash-commands/mcp.d.ts.map +0 -1
  346. package/dist/slash-commands/memory-compact.d.ts.map +0 -1
  347. package/dist/slash-commands/memory-flags.d.ts.map +0 -1
  348. package/dist/slash-commands/memory-formatters.d.ts.map +0 -1
  349. package/dist/slash-commands/memory.d.ts.map +0 -1
  350. package/dist/slash-commands/metrics.d.ts.map +0 -1
  351. package/dist/slash-commands/mode.d.ts.map +0 -1
  352. package/dist/slash-commands/modelcaps.d.ts.map +0 -1
  353. package/dist/slash-commands/models.d.ts.map +0 -1
  354. package/dist/slash-commands/mouse.d.ts.map +0 -1
  355. package/dist/slash-commands/next.d.ts.map +0 -1
  356. package/dist/slash-commands/plan.d.ts.map +0 -1
  357. package/dist/slash-commands/plugin.d.ts.map +0 -1
  358. package/dist/slash-commands/profile.d.ts.map +0 -1
  359. package/dist/slash-commands/project-utils.d.ts.map +0 -1
  360. package/dist/slash-commands/project.d.ts.map +0 -1
  361. package/dist/slash-commands/provider-status.d.ts.map +0 -1
  362. package/dist/slash-commands/prune.d.ts.map +0 -1
  363. package/dist/slash-commands/refiner.d.ts.map +0 -1
  364. package/dist/slash-commands/review.d.ts.map +0 -1
  365. package/dist/slash-commands/sdd/rendering.d.ts.map +0 -1
  366. package/dist/slash-commands/sdd-command-helpers.d.ts.map +0 -1
  367. package/dist/slash-commands/sdd-format.d.ts.map +0 -1
  368. package/dist/slash-commands/sdd.d.ts.map +0 -1
  369. package/dist/slash-commands/security.d.ts.map +0 -1
  370. package/dist/slash-commands/session.d.ts.map +0 -1
  371. package/dist/slash-commands/setmodel.d.ts.map +0 -1
  372. package/dist/slash-commands/settings.d.ts.map +0 -1
  373. package/dist/slash-commands/shadow.d.ts.map +0 -1
  374. package/dist/slash-commands/slash-deep-help.d.ts.map +0 -1
  375. package/dist/slash-commands/spawn-agents.d.ts.map +0 -1
  376. package/dist/slash-commands/statusline.d.ts.map +0 -1
  377. package/dist/slash-commands/suggest.d.ts.map +0 -1
  378. package/dist/slash-commands/suggestion-store.d.ts.map +0 -1
  379. package/dist/slash-commands/supervisor.d.ts.map +0 -1
  380. package/dist/slash-commands/surfaces.d.ts.map +0 -1
  381. package/dist/slash-commands/tasks.d.ts.map +0 -1
  382. package/dist/slash-commands/techstack.d.ts.map +0 -1
  383. package/dist/slash-commands/telegram-pairing.d.ts.map +0 -1
  384. package/dist/slash-commands/telegram-settings.d.ts.map +0 -1
  385. package/dist/slash-commands/telegram-setup.d.ts.map +0 -1
  386. package/dist/slash-commands/todos.d.ts.map +0 -1
  387. package/dist/slash-commands/tool.d.ts.map +0 -1
  388. package/dist/slash-commands/tools.d.ts.map +0 -1
  389. package/dist/slash-commands/tuneup.d.ts.map +0 -1
  390. package/dist/slash-commands/working-dir.d.ts.map +0 -1
  391. package/dist/slash-commands/worktree.d.ts.map +0 -1
  392. package/dist/slash-commands/yolo.d.ts.map +0 -1
  393. package/dist/spinner.d.ts.map +0 -1
  394. package/dist/subcommands/contracts.d.ts.map +0 -1
  395. package/dist/subcommands/handlers/acp.d.ts.map +0 -1
  396. package/dist/subcommands/handlers/audit.d.ts.map +0 -1
  397. package/dist/subcommands/handlers/auth-local-help.d.ts.map +0 -1
  398. package/dist/subcommands/handlers/auth.d.ts.map +0 -1
  399. package/dist/subcommands/handlers/bench-run-help.d.ts.map +0 -1
  400. package/dist/subcommands/handlers/bench.d.ts.map +0 -1
  401. package/dist/subcommands/handlers/chronicle.d.ts.map +0 -1
  402. package/dist/subcommands/handlers/config-history.d.ts.map +0 -1
  403. package/dist/subcommands/handlers/diag-doctor.d.ts.map +0 -1
  404. package/dist/subcommands/handlers/export.d.ts.map +0 -1
  405. package/dist/subcommands/handlers/helpers.d.ts.map +0 -1
  406. package/dist/subcommands/handlers/hq.d.ts.map +0 -1
  407. package/dist/subcommands/handlers/init.d.ts.map +0 -1
  408. package/dist/subcommands/handlers/mailbox-serve.d.ts.map +0 -1
  409. package/dist/subcommands/handlers/mcp.d.ts.map +0 -1
  410. package/dist/subcommands/handlers/model-smoke-test.d.ts.map +0 -1
  411. package/dist/subcommands/handlers/modeldiag-profiles.d.ts.map +0 -1
  412. package/dist/subcommands/handlers/modeldiag.d.ts.map +0 -1
  413. package/dist/subcommands/handlers/models-add-help.d.ts.map +0 -1
  414. package/dist/subcommands/handlers/per-subcommand-deep-help-table.d.ts.map +0 -1
  415. package/dist/subcommands/handlers/per-subcommand-help-data.d.ts.map +0 -1
  416. package/dist/subcommands/handlers/per-subcommand-help-table.d.ts.map +0 -1
  417. package/dist/subcommands/handlers/per-subcommand-help-types.d.ts.map +0 -1
  418. package/dist/subcommands/handlers/per-subcommand-help.d.ts.map +0 -1
  419. package/dist/subcommands/handlers/permissions.d.ts.map +0 -1
  420. package/dist/subcommands/handlers/plugin-usage.d.ts.map +0 -1
  421. package/dist/subcommands/handlers/project.d.ts.map +0 -1
  422. package/dist/subcommands/handlers/projects.d.ts.map +0 -1
  423. package/dist/subcommands/handlers/providers-models.d.ts.map +0 -1
  424. package/dist/subcommands/handlers/quick.d.ts.map +0 -1
  425. package/dist/subcommands/handlers/replay.d.ts.map +0 -1
  426. package/dist/subcommands/handlers/rewind.d.ts.map +0 -1
  427. package/dist/subcommands/handlers/sessions-config.d.ts.map +0 -1
  428. package/dist/subcommands/handlers/sessions-fleet.d.ts.map +0 -1
  429. package/dist/subcommands/handlers/tools-skills.d.ts.map +0 -1
  430. package/dist/subcommands/handlers/update.d.ts.map +0 -1
  431. package/dist/subcommands/handlers/version-help.d.ts.map +0 -1
  432. package/dist/subcommands/index.d.ts.map +0 -1
  433. package/dist/theme.d.ts.map +0 -1
  434. package/dist/tools-skills-UNKLOB7M.js.map +0 -7
  435. package/dist/tui-thinking-word.d.ts.map +0 -1
  436. package/dist/tuneup.d.ts.map +0 -1
  437. package/dist/update-YC4TYW2Y.js.map +0 -7
  438. package/dist/update-check-UMYTOH7Z.js.map +0 -7
  439. package/dist/update-check.d.ts.map +0 -1
  440. package/dist/utils/delay-format.d.ts.map +0 -1
  441. package/dist/utils/hq-ttl.d.ts.map +0 -1
  442. package/dist/utils/win32-cmd.d.ts.map +0 -1
  443. package/dist/utils.d.ts.map +0 -1
  444. package/dist/version-help-DROHZRW6.js.map +0 -7
  445. package/dist/version.d.ts.map +0 -1
  446. package/dist/webui-server/client-registration.d.ts.map +0 -1
  447. package/dist/webui-server/connection-handler.d.ts.map +0 -1
  448. package/dist/webui-server/context-breakdown.d.ts.map +0 -1
  449. package/dist/webui-server/contracts.d.ts.map +0 -1
  450. package/dist/webui-server/cost-helpers.d.ts.map +0 -1
  451. package/dist/webui-server/kanban-host-adapter.d.ts.map +0 -1
  452. package/dist/webui-server/kanban-run-mirror.d.ts.map +0 -1
  453. package/dist/webui-server/kanban-supervisor.d.ts.map +0 -1
  454. package/dist/webui-server/lifecycle.d.ts.map +0 -1
  455. package/dist/webui-server/listen-helpers.d.ts.map +0 -1
  456. package/dist/webui-server/logger-shim.d.ts.map +0 -1
  457. package/dist/webui-server/node-pty-loader.d.ts.map +0 -1
  458. package/dist/webui-server/prefs-seeding.d.ts.map +0 -1
  459. package/dist/webui-server/privileged-actions.d.ts.map +0 -1
  460. package/dist/webui-server/provider-config.d.ts.map +0 -1
  461. package/dist/webui-server/session-start-payload.d.ts.map +0 -1
  462. package/dist/webui-server/setup-events.d.ts.map +0 -1
  463. package/dist/webui-server/static-serve.d.ts.map +0 -1
  464. package/dist/webui-server/stream-coalescer.d.ts.map +0 -1
  465. package/dist/webui-server/terminal-log-view.d.ts.map +0 -1
  466. package/dist/webui-server-XKFUOKMJ.js.map +0 -7
  467. package/dist/webui-server-options.d.ts.map +0 -1
  468. package/dist/webui-server.d.ts.map +0 -1
  469. package/dist/wiring/brain-and-orchestration.d.ts.map +0 -1
  470. package/dist/wiring/codebase-index.d.ts.map +0 -1
  471. package/dist/wiring/command-host-adapters.d.ts.map +0 -1
  472. package/dist/wiring/command-host-state.d.ts.map +0 -1
  473. package/dist/wiring/controllers.d.ts.map +0 -1
  474. package/dist/wiring/dep-watcher-bridge.d.ts.map +0 -1
  475. package/dist/wiring/dep-watcher.d.ts.map +0 -1
  476. package/dist/wiring/design-studio.d.ts.map +0 -1
  477. package/dist/wiring/director-setup.d.ts.map +0 -1
  478. package/dist/wiring/eternal-command-handlers.d.ts.map +0 -1
  479. package/dist/wiring/fleet-command-handlers.d.ts.map +0 -1
  480. package/dist/wiring/hq-telemetry.d.ts.map +0 -1
  481. package/dist/wiring/lifecycle-plugins.d.ts.map +0 -1
  482. package/dist/wiring/mailbox-bridge-bootstrap.d.ts.map +0 -1
  483. package/dist/wiring/management-tools.d.ts.map +0 -1
  484. package/dist/wiring/metrics.d.ts.map +0 -1
  485. package/dist/wiring/pipeline.d.ts.map +0 -1
  486. package/dist/wiring/plugins.d.ts.map +0 -1
  487. package/dist/wiring/provider-runtime-setup.d.ts.map +0 -1
  488. package/dist/wiring/provider-runtime.d.ts.map +0 -1
  489. package/dist/wiring/provider-status.d.ts.map +0 -1
  490. package/dist/wiring/provider-utility-tools.d.ts.map +0 -1
  491. package/dist/wiring/provider.d.ts.map +0 -1
  492. package/dist/wiring/replay.d.ts.map +0 -1
  493. package/dist/wiring/runtime-controller-deps.d.ts.map +0 -1
  494. package/dist/wiring/runtime-dispatch-state.d.ts.map +0 -1
  495. package/dist/wiring/runtime-lifecycle-deps.d.ts.map +0 -1
  496. package/dist/wiring/runtime-picker-deps.d.ts.map +0 -1
  497. package/dist/wiring/sage.d.ts.map +0 -1
  498. package/dist/wiring/sdd-handlers.d.ts.map +0 -1
  499. package/dist/wiring/security-command.d.ts.map +0 -1
  500. package/dist/wiring/session-command-handlers.d.ts.map +0 -1
  501. package/dist/wiring/session-registry.d.ts.map +0 -1
  502. package/dist/wiring/session.d.ts.map +0 -1
  503. package/dist/wiring/slash-commands.d.ts.map +0 -1
  504. package/dist/wiring/to-execute-deps.d.ts.map +0 -1
  505. package/dist/wiring/tools.d.ts.map +0 -1
@@ -30,7 +30,8 @@ function configureSimpleUiRuntimeContext(meta, flags) {
30
30
  }
31
31
 
32
32
  // src/permission-prompt.ts
33
- import { color as color2, truncate, writeOut } from "@wrongstack/core/utils";
33
+ import { alwaysAllowUnavailableReason } from "@wrongstack/core/security";
34
+ import { color as color2, truncate, unifiedDiff, writeOut } from "@wrongstack/core/utils";
34
35
 
35
36
  // src/diff-renderer.ts
36
37
  import { color } from "@wrongstack/core/utils";
@@ -57,21 +58,25 @@ ${theme.warn("\u26A0 APPROVAL REQUIRED")} ${theme.primary("\u2502")} ${theme.bol
57
58
  );
58
59
  writeOut(`${color2.dim(stringifyInput(input))}
59
60
  `);
60
- if (tool.name === "edit" && hasDiff(input)) {
61
- const inp = input;
62
- const diff = typeof inp.diff === "string" ? inp.diff : "";
63
- if (diff) writeOut(`${renderDiff(diff)}
61
+ const preview = renderPayloadPreview(input);
62
+ if (preview) writeOut(`${preview}
64
63
  `);
65
- }
66
64
  writeOut(color2.dim("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n"));
65
+ const noAlwaysReason = alwaysAllowUnavailableReason(tool, input);
66
+ if (noAlwaysReason) {
67
+ writeOut(`${color2.dim(`(no "always" for this call \u2014 ${noAlwaysReason})`)}
68
+ `);
69
+ }
70
+ const options = [
71
+ { key: "y", label: "yes", value: "yes" },
72
+ { key: "n", label: "no", value: "no" },
73
+ ...noAlwaysReason ? [] : [{ key: "a", label: "always", value: "always" }],
74
+ { key: "d", label: "deny", value: "deny" }
75
+ ];
76
+ const alwaysHint = noAlwaysReason ? "" : ` ${theme.bold("[a]")}lways allow (${suggestedPattern})`;
67
77
  const answer = await reader.readKey(
68
- `${theme.bold("[y]")}es ${theme.bold("[n]")}o ${theme.bold("[a]")}lways allow (${suggestedPattern}) ${theme.bold("[d]")}eny: `,
69
- [
70
- { key: "y", label: "yes", value: "yes" },
71
- { key: "n", label: "no", value: "no" },
72
- { key: "a", label: "always", value: "always" },
73
- { key: "d", label: "deny", value: "deny" }
74
- ]
78
+ `${theme.bold("[y]")}es ${theme.bold("[n]")}o${alwaysHint} ${theme.bold("[d]")}eny: `,
79
+ options
75
80
  );
76
81
  return answer;
77
82
  };
@@ -88,10 +93,38 @@ function stringifyInput(input) {
88
93
  const obj = input;
89
94
  return Object.entries(obj).filter(([k]) => k !== "content" && k !== "new_string").map(([k, v]) => `${k}: ${truncate(JSON.stringify(v), 80)}`).join(" ");
90
95
  }
91
- function hasDiff(input) {
92
- return Boolean(
93
- input && typeof input === "object" && "diff" in input
94
- );
96
+ var PREVIEW_MAX_LINES = 40;
97
+ function clipPreview(body) {
98
+ const lines = body.split("\n");
99
+ if (lines.length <= PREVIEW_MAX_LINES) return body;
100
+ const hidden = lines.length - PREVIEW_MAX_LINES;
101
+ return `${lines.slice(0, PREVIEW_MAX_LINES).join("\n")}
102
+ ${color2.dim(
103
+ `\u2026 ${hidden} more line${hidden === 1 ? "" : "s"} not shown \u2014 review the file before approving`
104
+ )}`;
105
+ }
106
+ function renderPayloadPreview(input) {
107
+ if (!input || typeof input !== "object") return "";
108
+ const obj = input;
109
+ const newString = obj["new_string"];
110
+ if (typeof newString === "string") {
111
+ const oldString = typeof obj["old_string"] === "string" ? obj["old_string"] : "";
112
+ const diff2 = unifiedDiff(oldString, newString, {
113
+ fromFile: "before",
114
+ toFile: "after",
115
+ context: 2
116
+ });
117
+ return diff2 ? clipPreview(renderDiff(diff2)) : color2.dim("(replacement is identical)");
118
+ }
119
+ const content = obj["content"];
120
+ if (typeof content === "string") {
121
+ if (content === "") return color2.dim("(writes an empty file)");
122
+ return clipPreview(
123
+ content.split("\n").map((line) => color2.dim("\u2502 ") + line).join("\n")
124
+ );
125
+ }
126
+ const diff = obj["diff"];
127
+ return typeof diff === "string" && diff ? clipPreview(renderDiff(diff)) : "";
95
128
  }
96
129
 
97
130
  // src/services/project-facts.ts
@@ -440,4 +473,4 @@ export {
440
473
  makePromptDelegate,
441
474
  makeConfirmAwaiter
442
475
  };
443
- //# sourceMappingURL=chunk-IHBYBYGA.js.map
476
+ //# sourceMappingURL=chunk-A6Q5KGLV.js.map
@@ -44,6 +44,7 @@ var helpCmd = async (_args, deps) => {
44
44
  " wstack mcp [list] List MCP servers",
45
45
  " wstack plugin [list|report|menu|official|install|toggle|remove|enable|disable] Manage plugins",
46
46
  " wstack project id|init|rekey Manage the committed repository identity",
47
+ " wstack governance status Show advisory project-daemon governance health",
47
48
  " wstack projects List tracked projects",
48
49
  " wstack diag Full diagnostics",
49
50
  " wstack doctor Health checks",
@@ -81,4 +82,4 @@ export {
81
82
  versionCmd,
82
83
  helpCmd
83
84
  };
84
- //# sourceMappingURL=chunk-ABXK4VVY.js.map
85
+ //# sourceMappingURL=chunk-ARWGQUB3.js.map