@wrongstack/cli 0.284.0 → 0.285.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 (547) hide show
  1. package/README.md +4 -4
  2. package/data/providers.json +5 -3
  3. package/dist/acp-registry-cache.d.ts +33 -0
  4. package/dist/acp-registry-cache.d.ts.map +1 -0
  5. package/dist/acp-server-agent.d.ts +66 -0
  6. package/dist/acp-server-agent.d.ts.map +1 -0
  7. package/dist/arg-parser.d.ts +41 -0
  8. package/dist/arg-parser.d.ts.map +1 -0
  9. package/dist/auth-menu/add-provider.d.ts +15 -0
  10. package/dist/auth-menu/add-provider.d.ts.map +1 -0
  11. package/dist/auth-menu/anthropic-oauth.d.ts +43 -0
  12. package/dist/auth-menu/anthropic-oauth.d.ts.map +1 -0
  13. package/dist/auth-menu/auth-menu-audit.d.ts +175 -0
  14. package/dist/auth-menu/auth-menu-audit.d.ts.map +1 -0
  15. package/dist/auth-menu/direct.d.ts +15 -0
  16. package/dist/auth-menu/direct.d.ts.map +1 -0
  17. package/dist/auth-menu/github-copilot-oauth.d.ts +73 -0
  18. package/dist/auth-menu/github-copilot-oauth.d.ts.map +1 -0
  19. package/dist/auth-menu/helpers.d.ts +7 -0
  20. package/dist/auth-menu/helpers.d.ts.map +1 -0
  21. package/dist/auth-menu/index.d.ts +8 -0
  22. package/dist/auth-menu/index.d.ts.map +1 -0
  23. package/dist/auth-menu/local-presets.d.ts +36 -0
  24. package/dist/auth-menu/local-presets.d.ts.map +1 -0
  25. package/dist/auth-menu/local.d.ts +138 -0
  26. package/dist/auth-menu/local.d.ts.map +1 -0
  27. package/dist/auth-menu/oauth-menu.d.ts +10 -0
  28. package/dist/auth-menu/oauth-menu.d.ts.map +1 -0
  29. package/dist/auth-menu/openai-codex-oauth.d.ts +167 -0
  30. package/dist/auth-menu/openai-codex-oauth.d.ts.map +1 -0
  31. package/dist/auth-menu/panel-service.d.ts +32 -0
  32. package/dist/auth-menu/panel-service.d.ts.map +1 -0
  33. package/dist/auth-menu/provider-menu.d.ts +7 -0
  34. package/dist/auth-menu/provider-menu.d.ts.map +1 -0
  35. package/dist/auth-menu/shared.d.ts +32 -0
  36. package/dist/auth-menu/shared.d.ts.map +1 -0
  37. package/dist/auth-menu/top-menu.d.ts +11 -0
  38. package/dist/auth-menu/top-menu.d.ts.map +1 -0
  39. package/dist/auth-menu/types.d.ts +42 -0
  40. package/dist/auth-menu/types.d.ts.map +1 -0
  41. package/dist/auth-menu.d.ts +7 -0
  42. package/dist/auth-menu.d.ts.map +1 -0
  43. package/dist/autophase-host.d.ts +103 -0
  44. package/dist/autophase-host.d.ts.map +1 -0
  45. package/dist/boot/auto-discover-providers.d.ts +20 -0
  46. package/dist/boot/auto-discover-providers.d.ts.map +1 -0
  47. package/dist/boot/brain-decision-log.d.ts +38 -0
  48. package/dist/boot/brain-decision-log.d.ts.map +1 -0
  49. package/dist/boot/container-wiring.d.ts +34 -0
  50. package/dist/boot/container-wiring.d.ts.map +1 -0
  51. package/dist/boot/dispatch-singleshot.d.ts +35 -0
  52. package/dist/boot/dispatch-singleshot.d.ts.map +1 -0
  53. package/dist/boot/dispatch-webui.d.ts +82 -0
  54. package/dist/boot/dispatch-webui.d.ts.map +1 -0
  55. package/dist/boot/event-wiring.d.ts +22 -0
  56. package/dist/boot/event-wiring.d.ts.map +1 -0
  57. package/dist/boot/short-circuit-desktop.d.ts +3 -0
  58. package/dist/boot/short-circuit-desktop.d.ts.map +1 -0
  59. package/dist/boot/short-circuit-flags.d.ts +9 -0
  60. package/dist/boot/short-circuit-flags.d.ts.map +1 -0
  61. package/dist/boot/short-circuit-hq.d.ts +16 -0
  62. package/dist/boot/short-circuit-hq.d.ts.map +1 -0
  63. package/dist/boot/system-prompt-builder.d.ts +91 -0
  64. package/dist/boot/system-prompt-builder.d.ts.map +1 -0
  65. package/dist/boot/system-prompt.d.ts +66 -0
  66. package/dist/boot/system-prompt.d.ts.map +1 -0
  67. package/dist/boot/tool-registry.d.ts +42 -0
  68. package/dist/boot/tool-registry.d.ts.map +1 -0
  69. package/dist/boot/tui-autophase-wiring.d.ts +23 -0
  70. package/dist/boot/tui-autophase-wiring.d.ts.map +1 -0
  71. package/dist/boot/tui-coordinator-setup.d.ts +38 -0
  72. package/dist/boot/tui-coordinator-setup.d.ts.map +1 -0
  73. package/dist/boot/tui-debug-stream.d.ts +18 -0
  74. package/dist/boot/tui-debug-stream.d.ts.map +1 -0
  75. package/dist/boot/tui-live-sessions.d.ts +39 -0
  76. package/dist/boot/tui-live-sessions.d.ts.map +1 -0
  77. package/dist/boot/tui-project-picker-callback.d.ts +30 -0
  78. package/dist/boot/tui-project-picker-callback.d.ts.map +1 -0
  79. package/dist/boot/tui-project-spawn.d.ts +19 -0
  80. package/dist/boot/tui-project-spawn.d.ts.map +1 -0
  81. package/dist/boot/tui-project-switch.d.ts +26 -0
  82. package/dist/boot/tui-project-switch.d.ts.map +1 -0
  83. package/dist/boot/tui-runtime-state.d.ts +83 -0
  84. package/dist/boot/tui-runtime-state.d.ts.map +1 -0
  85. package/dist/boot/tui-sdd-callback.d.ts +20 -0
  86. package/dist/boot/tui-sdd-callback.d.ts.map +1 -0
  87. package/dist/boot/tui-session-resume.d.ts +21 -0
  88. package/dist/boot/tui-session-resume.d.ts.map +1 -0
  89. package/dist/boot/tui-settings-adapter.d.ts +23 -0
  90. package/dist/boot/tui-settings-adapter.d.ts.map +1 -0
  91. package/dist/boot-config.d.ts +26 -0
  92. package/dist/boot-config.d.ts.map +1 -0
  93. package/dist/boot.d.ts +30 -0
  94. package/dist/boot.d.ts.map +1 -0
  95. package/dist/cli-bundled-prompts.d.ts +12 -0
  96. package/dist/cli-bundled-prompts.d.ts.map +1 -0
  97. package/dist/cli-bundled-skills.d.ts +13 -0
  98. package/dist/cli-bundled-skills.d.ts.map +1 -0
  99. package/dist/cli-context.d.ts +30 -0
  100. package/dist/cli-context.d.ts.map +1 -0
  101. package/dist/cli-entry-point.d.ts +2 -0
  102. package/dist/cli-entry-point.d.ts.map +1 -0
  103. package/dist/cli-eternal-flag.d.ts +66 -0
  104. package/dist/cli-eternal-flag.d.ts.map +1 -0
  105. package/dist/cli-main.d.ts +13 -0
  106. package/dist/cli-main.d.ts.map +1 -0
  107. package/dist/cli-recovery-prompt.d.ts +19 -0
  108. package/dist/cli-recovery-prompt.d.ts.map +1 -0
  109. package/dist/cli-update-notice.d.ts +3 -0
  110. package/dist/cli-update-notice.d.ts.map +1 -0
  111. package/dist/config-doctor.d.ts +39 -0
  112. package/dist/config-doctor.d.ts.map +1 -0
  113. package/dist/config-history.d.ts +54 -0
  114. package/dist/config-history.d.ts.map +1 -0
  115. package/dist/context-limit.d.ts +51 -0
  116. package/dist/context-limit.d.ts.map +1 -0
  117. package/dist/context-overflow-diagnostic.d.ts +3 -0
  118. package/dist/context-overflow-diagnostic.d.ts.map +1 -0
  119. package/dist/diff-renderer.d.ts +2 -0
  120. package/dist/diff-renderer.d.ts.map +1 -0
  121. package/dist/execute-deps.d.ts +239 -0
  122. package/dist/execute-deps.d.ts.map +1 -0
  123. package/dist/execution.d.ts +99 -0
  124. package/dist/execution.d.ts.map +1 -0
  125. package/dist/first-run-auth-gate.d.ts +18 -0
  126. package/dist/first-run-auth-gate.d.ts.map +1 -0
  127. package/dist/fleet/host.d.ts +533 -0
  128. package/dist/fleet/host.d.ts.map +1 -0
  129. package/dist/fleet/routing.d.ts +8 -0
  130. package/dist/fleet/routing.d.ts.map +1 -0
  131. package/dist/fleet/status-broadcast.d.ts +42 -0
  132. package/dist/fleet/status-broadcast.d.ts.map +1 -0
  133. package/dist/fleet/supervisor-registry.d.ts +16 -0
  134. package/dist/fleet/supervisor-registry.d.ts.map +1 -0
  135. package/dist/fleet-statusline.d.ts +71 -0
  136. package/dist/fleet-statusline.d.ts.map +1 -0
  137. package/dist/hooks-wiring.d.ts +26 -0
  138. package/dist/hooks-wiring.d.ts.map +1 -0
  139. package/dist/hq-command-controller.d.ts +52 -0
  140. package/dist/hq-command-controller.d.ts.map +1 -0
  141. package/dist/hq-dashboard-html.d.ts +2 -0
  142. package/dist/hq-dashboard-html.d.ts.map +1 -0
  143. package/dist/hq-publisher.d.ts +16 -0
  144. package/dist/hq-publisher.d.ts.map +1 -0
  145. package/dist/hq-server.d.ts +56 -0
  146. package/dist/hq-server.d.ts.map +1 -0
  147. package/dist/hq-static-serve.d.ts +26 -0
  148. package/dist/hq-static-serve.d.ts.map +1 -0
  149. package/dist/index.d.ts +3 -5
  150. package/dist/index.d.ts.map +1 -0
  151. package/dist/index.js +6025 -3952
  152. package/dist/index.js.map +7 -1
  153. package/dist/input-reader.d.ts +45 -0
  154. package/dist/input-reader.d.ts.map +1 -0
  155. package/dist/launch-hints.d.ts +46 -0
  156. package/dist/launch-hints.d.ts.map +1 -0
  157. package/dist/mailbox-bridge-bootstrap.d.ts +85 -0
  158. package/dist/mailbox-bridge-bootstrap.d.ts.map +1 -0
  159. package/dist/mcp-serve.d.ts +23 -0
  160. package/dist/mcp-serve.d.ts.map +1 -0
  161. package/dist/multi-agent.d.ts +4 -0
  162. package/dist/multi-agent.d.ts.map +1 -0
  163. package/dist/next-task-predictor.d.ts +45 -0
  164. package/dist/next-task-predictor.d.ts.map +1 -0
  165. package/dist/permission-prompt.d.ts +11 -0
  166. package/dist/permission-prompt.d.ts.map +1 -0
  167. package/dist/picker.d.ts +86 -0
  168. package/dist/picker.d.ts.map +1 -0
  169. package/dist/plugin-api-factory.d.ts +3 -0
  170. package/dist/plugin-api-factory.d.ts.map +1 -0
  171. package/dist/plugin-management.d.ts +43 -0
  172. package/dist/plugin-management.d.ts.map +1 -0
  173. package/dist/pre-launch/indexing-question.d.ts +28 -0
  174. package/dist/pre-launch/indexing-question.d.ts.map +1 -0
  175. package/dist/pre-launch/launch-prompts.d.ts +52 -0
  176. package/dist/pre-launch/launch-prompts.d.ts.map +1 -0
  177. package/dist/pre-launch/project-check.d.ts +25 -0
  178. package/dist/pre-launch/project-check.d.ts.map +1 -0
  179. package/dist/pre-launch.d.ts +4 -0
  180. package/dist/pre-launch.d.ts.map +1 -0
  181. package/dist/preflight.d.ts +58 -0
  182. package/dist/preflight.d.ts.map +1 -0
  183. package/dist/project-picker.d.ts +56 -0
  184. package/dist/project-picker.d.ts.map +1 -0
  185. package/dist/provider-config-utils.d.ts +58 -0
  186. package/dist/provider-config-utils.d.ts.map +1 -0
  187. package/dist/provider-helpers.d.ts +53 -0
  188. package/dist/provider-helpers.d.ts.map +1 -0
  189. package/dist/renderer.d.ts +76 -0
  190. package/dist/renderer.d.ts.map +1 -0
  191. package/dist/repl.d.ts +162 -0
  192. package/dist/repl.d.ts.map +1 -0
  193. package/dist/services/project-facts.d.ts +17 -0
  194. package/dist/services/project-facts.d.ts.map +1 -0
  195. package/dist/session-event-wiring.d.ts +48 -0
  196. package/dist/session-event-wiring.d.ts.map +1 -0
  197. package/dist/session-stats.d.ts +38 -0
  198. package/dist/session-stats.d.ts.map +1 -0
  199. package/dist/settings-menu.d.ts +87 -0
  200. package/dist/settings-menu.d.ts.map +1 -0
  201. package/dist/shutdown-cleanup.d.ts +44 -0
  202. package/dist/shutdown-cleanup.d.ts.map +1 -0
  203. package/dist/slash-commands/acp.d.ts +23 -0
  204. package/dist/slash-commands/acp.d.ts.map +1 -0
  205. package/dist/slash-commands/agents.d.ts +16 -0
  206. package/dist/slash-commands/agents.d.ts.map +1 -0
  207. package/dist/slash-commands/audit.d.ts +11 -0
  208. package/dist/slash-commands/audit.d.ts.map +1 -0
  209. package/dist/slash-commands/auth.d.ts +20 -0
  210. package/dist/slash-commands/auth.d.ts.map +1 -0
  211. package/dist/slash-commands/autonomy.d.ts +5 -0
  212. package/dist/slash-commands/autonomy.d.ts.map +1 -0
  213. package/dist/slash-commands/autophase.d.ts +13 -0
  214. package/dist/slash-commands/autophase.d.ts.map +1 -0
  215. package/dist/slash-commands/brain.d.ts +4 -0
  216. package/dist/slash-commands/brain.d.ts.map +1 -0
  217. package/dist/slash-commands/btw.d.ts +13 -0
  218. package/dist/slash-commands/btw.d.ts.map +1 -0
  219. package/dist/slash-commands/clear.d.ts +4 -0
  220. package/dist/slash-commands/clear.d.ts.map +1 -0
  221. package/dist/slash-commands/codebase-reindex.d.ts +11 -0
  222. package/dist/slash-commands/codebase-reindex.d.ts.map +1 -0
  223. package/dist/slash-commands/collab.d.ts +26 -0
  224. package/dist/slash-commands/collab.d.ts.map +1 -0
  225. package/dist/slash-commands/commit-llm.d.ts +41 -0
  226. package/dist/slash-commands/commit-llm.d.ts.map +1 -0
  227. package/dist/slash-commands/compact.d.ts +4 -0
  228. package/dist/slash-commands/compact.d.ts.map +1 -0
  229. package/dist/slash-commands/context.d.ts +4 -0
  230. package/dist/slash-commands/context.d.ts.map +1 -0
  231. package/dist/slash-commands/coordinator.d.ts +4 -0
  232. package/dist/slash-commands/coordinator.d.ts.map +1 -0
  233. package/dist/slash-commands/delegate.d.ts +17 -0
  234. package/dist/slash-commands/delegate.d.ts.map +1 -0
  235. package/dist/slash-commands/design.d.ts +16 -0
  236. package/dist/slash-commands/design.d.ts.map +1 -0
  237. package/dist/slash-commands/dev.d.ts +9 -0
  238. package/dist/slash-commands/dev.d.ts.map +1 -0
  239. package/dist/slash-commands/diag-stats.d.ts +5 -0
  240. package/dist/slash-commands/diag-stats.d.ts.map +1 -0
  241. package/dist/slash-commands/dispatch-llm.d.ts +12 -0
  242. package/dist/slash-commands/dispatch-llm.d.ts.map +1 -0
  243. package/dist/slash-commands/doctor.d.ts +13 -0
  244. package/dist/slash-commands/doctor.d.ts.map +1 -0
  245. package/dist/slash-commands/enhance.d.ts +13 -0
  246. package/dist/slash-commands/enhance.d.ts.map +1 -0
  247. package/dist/slash-commands/ensemble.d.ts +17 -0
  248. package/dist/slash-commands/ensemble.d.ts.map +1 -0
  249. package/dist/slash-commands/f-keys.d.ts +18 -0
  250. package/dist/slash-commands/f-keys.d.ts.map +1 -0
  251. package/dist/slash-commands/fallback.d.ts +20 -0
  252. package/dist/slash-commands/fallback.d.ts.map +1 -0
  253. package/dist/slash-commands/fix-classifier.d.ts +28 -0
  254. package/dist/slash-commands/fix-classifier.d.ts.map +1 -0
  255. package/dist/slash-commands/fix.d.ts +4 -0
  256. package/dist/slash-commands/fix.d.ts.map +1 -0
  257. package/dist/slash-commands/fleet.d.ts +20 -0
  258. package/dist/slash-commands/fleet.d.ts.map +1 -0
  259. package/dist/slash-commands/gitid.d.ts +22 -0
  260. package/dist/slash-commands/gitid.d.ts.map +1 -0
  261. package/dist/slash-commands/goal-refiner.d.ts +22 -0
  262. package/dist/slash-commands/goal-refiner.d.ts.map +1 -0
  263. package/dist/slash-commands/goal.d.ts +4 -0
  264. package/dist/slash-commands/goal.d.ts.map +1 -0
  265. package/dist/slash-commands/help.d.ts +4 -0
  266. package/dist/slash-commands/help.d.ts.map +1 -0
  267. package/dist/slash-commands/helpers.d.ts +33 -0
  268. package/dist/slash-commands/helpers.d.ts.map +1 -0
  269. package/dist/slash-commands/hq.d.ts +4 -0
  270. package/dist/slash-commands/hq.d.ts.map +1 -0
  271. package/dist/slash-commands/index.d.ts +524 -0
  272. package/dist/slash-commands/index.d.ts.map +1 -0
  273. package/dist/slash-commands/init.d.ts +4 -0
  274. package/dist/slash-commands/init.d.ts.map +1 -0
  275. package/dist/slash-commands/interrupt.d.ts +15 -0
  276. package/dist/slash-commands/interrupt.d.ts.map +1 -0
  277. package/dist/slash-commands/kanban.d.ts +4 -0
  278. package/dist/slash-commands/kanban.d.ts.map +1 -0
  279. package/dist/slash-commands/mailbox-demo.d.ts +19 -0
  280. package/dist/slash-commands/mailbox-demo.d.ts.map +1 -0
  281. package/dist/slash-commands/mailbox-serve.d.ts +20 -0
  282. package/dist/slash-commands/mailbox-serve.d.ts.map +1 -0
  283. package/dist/slash-commands/mailbox.d.ts +28 -0
  284. package/dist/slash-commands/mailbox.d.ts.map +1 -0
  285. package/dist/slash-commands/mcp-utils.d.ts +24 -0
  286. package/dist/slash-commands/mcp-utils.d.ts.map +1 -0
  287. package/dist/slash-commands/mcp.d.ts +19 -0
  288. package/dist/slash-commands/mcp.d.ts.map +1 -0
  289. package/dist/slash-commands/memory.d.ts +4 -0
  290. package/dist/slash-commands/memory.d.ts.map +1 -0
  291. package/dist/slash-commands/mode.d.ts +6 -0
  292. package/dist/slash-commands/mode.d.ts.map +1 -0
  293. package/dist/slash-commands/modelcaps.d.ts +4 -0
  294. package/dist/slash-commands/modelcaps.d.ts.map +1 -0
  295. package/dist/slash-commands/models.d.ts +23 -0
  296. package/dist/slash-commands/models.d.ts.map +1 -0
  297. package/dist/slash-commands/mouse.d.ts +14 -0
  298. package/dist/slash-commands/mouse.d.ts.map +1 -0
  299. package/dist/slash-commands/next.d.ts +21 -0
  300. package/dist/slash-commands/next.d.ts.map +1 -0
  301. package/dist/slash-commands/plugin.d.ts +4 -0
  302. package/dist/slash-commands/plugin.d.ts.map +1 -0
  303. package/dist/slash-commands/project-utils.d.ts +51 -0
  304. package/dist/slash-commands/project-utils.d.ts.map +1 -0
  305. package/dist/slash-commands/project.d.ts +4 -0
  306. package/dist/slash-commands/project.d.ts.map +1 -0
  307. package/dist/slash-commands/prune.d.ts +4 -0
  308. package/dist/slash-commands/prune.d.ts.map +1 -0
  309. package/dist/slash-commands/review.d.ts +4 -0
  310. package/dist/slash-commands/review.d.ts.map +1 -0
  311. package/dist/slash-commands/sdd/project-context.d.ts +7 -0
  312. package/dist/slash-commands/sdd/project-context.d.ts.map +1 -0
  313. package/dist/slash-commands/sdd/rendering.d.ts +2 -0
  314. package/dist/slash-commands/sdd/rendering.d.ts.map +1 -0
  315. package/dist/slash-commands/sdd/spec-detection.d.ts +21 -0
  316. package/dist/slash-commands/sdd/spec-detection.d.ts.map +1 -0
  317. package/dist/slash-commands/sdd/state.d.ts +40 -0
  318. package/dist/slash-commands/sdd/state.d.ts.map +1 -0
  319. package/dist/slash-commands/sdd/task-manager.d.ts +37 -0
  320. package/dist/slash-commands/sdd/task-manager.d.ts.map +1 -0
  321. package/dist/slash-commands/sdd.d.ts +15 -0
  322. package/dist/slash-commands/sdd.d.ts.map +1 -0
  323. package/dist/slash-commands/security.d.ts +4 -0
  324. package/dist/slash-commands/security.d.ts.map +1 -0
  325. package/dist/slash-commands/session.d.ts +7 -0
  326. package/dist/slash-commands/session.d.ts.map +1 -0
  327. package/dist/slash-commands/setmodel.d.ts +20 -0
  328. package/dist/slash-commands/setmodel.d.ts.map +1 -0
  329. package/dist/slash-commands/settings.d.ts +12 -0
  330. package/dist/slash-commands/settings.d.ts.map +1 -0
  331. package/dist/slash-commands/shadow.d.ts +28 -0
  332. package/dist/slash-commands/shadow.d.ts.map +1 -0
  333. package/dist/slash-commands/slash-deep-help.d.ts +51 -0
  334. package/dist/slash-commands/slash-deep-help.d.ts.map +1 -0
  335. package/dist/slash-commands/spawn-agents.d.ts +6 -0
  336. package/dist/slash-commands/spawn-agents.d.ts.map +1 -0
  337. package/dist/slash-commands/statusline.d.ts +67 -0
  338. package/dist/slash-commands/statusline.d.ts.map +1 -0
  339. package/dist/slash-commands/suggest.d.ts +4 -0
  340. package/dist/slash-commands/suggest.d.ts.map +1 -0
  341. package/dist/slash-commands/suggestion-store.d.ts +29 -0
  342. package/dist/slash-commands/suggestion-store.d.ts.map +1 -0
  343. package/dist/slash-commands/supervisor.d.ts +18 -0
  344. package/dist/slash-commands/supervisor.d.ts.map +1 -0
  345. package/dist/slash-commands/surfaces.d.ts +4 -0
  346. package/dist/slash-commands/surfaces.d.ts.map +1 -0
  347. package/dist/slash-commands/tasks.d.ts +4 -0
  348. package/dist/slash-commands/tasks.d.ts.map +1 -0
  349. package/dist/slash-commands/techstack.d.ts +4 -0
  350. package/dist/slash-commands/techstack.d.ts.map +1 -0
  351. package/dist/slash-commands/telegram-settings.d.ts +4 -0
  352. package/dist/slash-commands/telegram-settings.d.ts.map +1 -0
  353. package/dist/slash-commands/telegram-setup.d.ts +11 -0
  354. package/dist/slash-commands/telegram-setup.d.ts.map +1 -0
  355. package/dist/slash-commands/todos.d.ts +4 -0
  356. package/dist/slash-commands/todos.d.ts.map +1 -0
  357. package/dist/slash-commands/tool.d.ts +4 -0
  358. package/dist/slash-commands/tool.d.ts.map +1 -0
  359. package/dist/slash-commands/tools.d.ts +4 -0
  360. package/dist/slash-commands/tools.d.ts.map +1 -0
  361. package/dist/slash-commands/tuneup.d.ts +15 -0
  362. package/dist/slash-commands/tuneup.d.ts.map +1 -0
  363. package/dist/slash-commands/working-dir.d.ts +14 -0
  364. package/dist/slash-commands/working-dir.d.ts.map +1 -0
  365. package/dist/slash-commands/worktree.d.ts +8 -0
  366. package/dist/slash-commands/worktree.d.ts.map +1 -0
  367. package/dist/slash-commands/yolo.d.ts +4 -0
  368. package/dist/slash-commands/yolo.d.ts.map +1 -0
  369. package/dist/spinner.d.ts +44 -0
  370. package/dist/spinner.d.ts.map +1 -0
  371. package/dist/subcommands/handlers/acp.d.ts +15 -0
  372. package/dist/subcommands/handlers/acp.d.ts.map +1 -0
  373. package/dist/subcommands/handlers/audit.d.ts +12 -0
  374. package/dist/subcommands/handlers/audit.d.ts.map +1 -0
  375. package/dist/subcommands/handlers/auth-local-help.d.ts +69 -0
  376. package/dist/subcommands/handlers/auth-local-help.d.ts.map +1 -0
  377. package/dist/subcommands/handlers/auth.d.ts +3 -0
  378. package/dist/subcommands/handlers/auth.d.ts.map +1 -0
  379. package/dist/subcommands/handlers/bench-run-help.d.ts +145 -0
  380. package/dist/subcommands/handlers/bench-run-help.d.ts.map +1 -0
  381. package/dist/subcommands/handlers/bench.d.ts +13 -0
  382. package/dist/subcommands/handlers/bench.d.ts.map +1 -0
  383. package/dist/subcommands/handlers/config-history.d.ts +10 -0
  384. package/dist/subcommands/handlers/config-history.d.ts.map +1 -0
  385. package/dist/subcommands/handlers/diag-doctor.d.ts +4 -0
  386. package/dist/subcommands/handlers/diag-doctor.d.ts.map +1 -0
  387. package/dist/subcommands/handlers/export.d.ts +3 -0
  388. package/dist/subcommands/handlers/export.d.ts.map +1 -0
  389. package/dist/subcommands/handlers/helpers.d.ts +2 -0
  390. package/dist/subcommands/handlers/helpers.d.ts.map +1 -0
  391. package/dist/subcommands/handlers/hq.d.ts +3 -0
  392. package/dist/subcommands/handlers/hq.d.ts.map +1 -0
  393. package/dist/subcommands/handlers/init.d.ts +7 -0
  394. package/dist/subcommands/handlers/init.d.ts.map +1 -0
  395. package/dist/subcommands/handlers/mailbox-serve.d.ts +3 -0
  396. package/dist/subcommands/handlers/mailbox-serve.d.ts.map +1 -0
  397. package/dist/subcommands/handlers/mcp.d.ts +3 -0
  398. package/dist/subcommands/handlers/mcp.d.ts.map +1 -0
  399. package/dist/subcommands/handlers/modeldiag.d.ts +3 -0
  400. package/dist/subcommands/handlers/modeldiag.d.ts.map +1 -0
  401. package/dist/subcommands/handlers/models-add-help.d.ts +142 -0
  402. package/dist/subcommands/handlers/models-add-help.d.ts.map +1 -0
  403. package/dist/subcommands/handlers/per-subcommand-help.d.ts +136 -0
  404. package/dist/subcommands/handlers/per-subcommand-help.d.ts.map +1 -0
  405. package/dist/subcommands/handlers/plugin-usage.d.ts +4 -0
  406. package/dist/subcommands/handlers/plugin-usage.d.ts.map +1 -0
  407. package/dist/subcommands/handlers/projects.d.ts +3 -0
  408. package/dist/subcommands/handlers/projects.d.ts.map +1 -0
  409. package/dist/subcommands/handlers/providers-models.d.ts +4 -0
  410. package/dist/subcommands/handlers/providers-models.d.ts.map +1 -0
  411. package/dist/subcommands/handlers/quick.d.ts +14 -0
  412. package/dist/subcommands/handlers/quick.d.ts.map +1 -0
  413. package/dist/subcommands/handlers/replay.d.ts +12 -0
  414. package/dist/subcommands/handlers/replay.d.ts.map +1 -0
  415. package/dist/subcommands/handlers/rewind.d.ts +3 -0
  416. package/dist/subcommands/handlers/rewind.d.ts.map +1 -0
  417. package/dist/subcommands/handlers/sessions-config.d.ts +4 -0
  418. package/dist/subcommands/handlers/sessions-config.d.ts.map +1 -0
  419. package/dist/subcommands/handlers/sessions-fleet.d.ts +15 -0
  420. package/dist/subcommands/handlers/sessions-fleet.d.ts.map +1 -0
  421. package/dist/subcommands/handlers/tools-skills.d.ts +4 -0
  422. package/dist/subcommands/handlers/tools-skills.d.ts.map +1 -0
  423. package/dist/subcommands/handlers/update.d.ts +7 -0
  424. package/dist/subcommands/handlers/update.d.ts.map +1 -0
  425. package/dist/subcommands/handlers/version-help.d.ts +4 -0
  426. package/dist/subcommands/handlers/version-help.d.ts.map +1 -0
  427. package/dist/subcommands/index.d.ts +26 -0
  428. package/dist/subcommands/index.d.ts.map +1 -0
  429. package/dist/theme.d.ts +12 -0
  430. package/dist/theme.d.ts.map +1 -0
  431. package/dist/tui-thinking-word.d.ts +5 -0
  432. package/dist/tui-thinking-word.d.ts.map +1 -0
  433. package/dist/tuneup.d.ts +162 -0
  434. package/dist/tuneup.d.ts.map +1 -0
  435. package/dist/update-check.d.ts +22 -0
  436. package/dist/update-check.d.ts.map +1 -0
  437. package/dist/utils/delay-format.d.ts +5 -0
  438. package/dist/utils/delay-format.d.ts.map +1 -0
  439. package/dist/utils/win32-cmd.d.ts +7 -0
  440. package/dist/utils/win32-cmd.d.ts.map +1 -0
  441. package/dist/utils.d.ts +58 -0
  442. package/dist/utils.d.ts.map +1 -0
  443. package/dist/version.d.ts +4 -0
  444. package/dist/version.d.ts.map +1 -0
  445. package/dist/webui-server/client-registration.d.ts +41 -0
  446. package/dist/webui-server/client-registration.d.ts.map +1 -0
  447. package/dist/webui-server/connection-handler.d.ts +59 -0
  448. package/dist/webui-server/connection-handler.d.ts.map +1 -0
  449. package/dist/webui-server/context-breakdown.d.ts +57 -0
  450. package/dist/webui-server/context-breakdown.d.ts.map +1 -0
  451. package/dist/webui-server/cost-helpers.d.ts +29 -0
  452. package/dist/webui-server/cost-helpers.d.ts.map +1 -0
  453. package/dist/webui-server/lifecycle.d.ts +108 -0
  454. package/dist/webui-server/lifecycle.d.ts.map +1 -0
  455. package/dist/webui-server/logger-shim.d.ts +10 -0
  456. package/dist/webui-server/logger-shim.d.ts.map +1 -0
  457. package/dist/webui-server/message-router.d.ts +39 -0
  458. package/dist/webui-server/message-router.d.ts.map +1 -0
  459. package/dist/webui-server/prefs-seeding.d.ts +57 -0
  460. package/dist/webui-server/prefs-seeding.d.ts.map +1 -0
  461. package/dist/webui-server/provider-config.d.ts +61 -0
  462. package/dist/webui-server/provider-config.d.ts.map +1 -0
  463. package/dist/webui-server/session-start-payload.d.ts +20 -0
  464. package/dist/webui-server/session-start-payload.d.ts.map +1 -0
  465. package/dist/webui-server/session-status-poll.d.ts +14 -0
  466. package/dist/webui-server/session-status-poll.d.ts.map +1 -0
  467. package/dist/webui-server/setup-events.d.ts +45 -0
  468. package/dist/webui-server/setup-events.d.ts.map +1 -0
  469. package/dist/webui-server/static-serve.d.ts +70 -0
  470. package/dist/webui-server/static-serve.d.ts.map +1 -0
  471. package/dist/webui-server/stream-coalescer.d.ts +41 -0
  472. package/dist/webui-server/stream-coalescer.d.ts.map +1 -0
  473. package/dist/webui-server/ws-handlers/agent-config.d.ts +47 -0
  474. package/dist/webui-server/ws-handlers/agent-config.d.ts.map +1 -0
  475. package/dist/webui-server/ws-handlers/brain.d.ts +36 -0
  476. package/dist/webui-server/ws-handlers/brain.d.ts.map +1 -0
  477. package/dist/webui-server/ws-handlers/connection.d.ts +50 -0
  478. package/dist/webui-server/ws-handlers/connection.d.ts.map +1 -0
  479. package/dist/webui-server/ws-handlers/context.d.ts +55 -0
  480. package/dist/webui-server/ws-handlers/context.d.ts.map +1 -0
  481. package/dist/webui-server/ws-handlers/index.d.ts +60 -0
  482. package/dist/webui-server/ws-handlers/index.d.ts.map +1 -0
  483. package/dist/webui-server/ws-handlers/introspection.d.ts +35 -0
  484. package/dist/webui-server/ws-handlers/introspection.d.ts.map +1 -0
  485. package/dist/webui-server/ws-handlers/kanban.d.ts +41 -0
  486. package/dist/webui-server/ws-handlers/kanban.d.ts.map +1 -0
  487. package/dist/webui-server/ws-handlers/mailbox.d.ts +51 -0
  488. package/dist/webui-server/ws-handlers/mailbox.d.ts.map +1 -0
  489. package/dist/webui-server/ws-handlers/oauth.d.ts +16 -0
  490. package/dist/webui-server/ws-handlers/oauth.d.ts.map +1 -0
  491. package/dist/webui-server/ws-handlers/prefs.d.ts +32 -0
  492. package/dist/webui-server/ws-handlers/prefs.d.ts.map +1 -0
  493. package/dist/webui-server/ws-handlers/process.d.ts +6 -0
  494. package/dist/webui-server/ws-handlers/process.d.ts.map +1 -0
  495. package/dist/webui-server/ws-handlers/projects.d.ts +44 -0
  496. package/dist/webui-server/ws-handlers/projects.d.ts.map +1 -0
  497. package/dist/webui-server/ws-handlers/providers.d.ts +36 -0
  498. package/dist/webui-server/ws-handlers/providers.d.ts.map +1 -0
  499. package/dist/webui-server/ws-handlers/sessions.d.ts +38 -0
  500. package/dist/webui-server/ws-handlers/sessions.d.ts.map +1 -0
  501. package/dist/webui-server/ws-handlers/worklist.d.ts +49 -0
  502. package/dist/webui-server/ws-handlers/worklist.d.ts.map +1 -0
  503. package/dist/webui-server.d.ts +160 -0
  504. package/dist/webui-server.d.ts.map +1 -0
  505. package/dist/wiring/brain-and-orchestration.d.ts +63 -0
  506. package/dist/wiring/brain-and-orchestration.d.ts.map +1 -0
  507. package/dist/wiring/codebase-index.d.ts +33 -0
  508. package/dist/wiring/codebase-index.d.ts.map +1 -0
  509. package/dist/wiring/controllers.d.ts +46 -0
  510. package/dist/wiring/controllers.d.ts.map +1 -0
  511. package/dist/wiring/dep-watcher.d.ts +23 -0
  512. package/dist/wiring/dep-watcher.d.ts.map +1 -0
  513. package/dist/wiring/design-studio.d.ts +17 -0
  514. package/dist/wiring/design-studio.d.ts.map +1 -0
  515. package/dist/wiring/director-setup.d.ts +51 -0
  516. package/dist/wiring/director-setup.d.ts.map +1 -0
  517. package/dist/wiring/hq-telemetry.d.ts +42 -0
  518. package/dist/wiring/hq-telemetry.d.ts.map +1 -0
  519. package/dist/wiring/lifecycle-plugins.d.ts +58 -0
  520. package/dist/wiring/lifecycle-plugins.d.ts.map +1 -0
  521. package/dist/wiring/mailbox-bridge-bootstrap.d.ts +53 -0
  522. package/dist/wiring/mailbox-bridge-bootstrap.d.ts.map +1 -0
  523. package/dist/wiring/metrics.d.ts +21 -0
  524. package/dist/wiring/metrics.d.ts.map +1 -0
  525. package/dist/wiring/pipeline.d.ts +96 -0
  526. package/dist/wiring/pipeline.d.ts.map +1 -0
  527. package/dist/wiring/plugins.d.ts +108 -0
  528. package/dist/wiring/plugins.d.ts.map +1 -0
  529. package/dist/wiring/provider-runtime-setup.d.ts +47 -0
  530. package/dist/wiring/provider-runtime-setup.d.ts.map +1 -0
  531. package/dist/wiring/provider-runtime.d.ts +57 -0
  532. package/dist/wiring/provider-runtime.d.ts.map +1 -0
  533. package/dist/wiring/provider.d.ts +13 -0
  534. package/dist/wiring/provider.d.ts.map +1 -0
  535. package/dist/wiring/replay.d.ts +32 -0
  536. package/dist/wiring/replay.d.ts.map +1 -0
  537. package/dist/wiring/session.d.ts +56 -0
  538. package/dist/wiring/session.d.ts.map +1 -0
  539. package/dist/wiring/slash-commands.d.ts +74 -0
  540. package/dist/wiring/slash-commands.d.ts.map +1 -0
  541. package/dist/wiring/super-memory.d.ts +9 -0
  542. package/dist/wiring/super-memory.d.ts.map +1 -0
  543. package/dist/wiring/to-execute-deps.d.ts +11 -0
  544. package/dist/wiring/to-execute-deps.d.ts.map +1 -0
  545. package/dist/wiring/tools.d.ts +41 -0
  546. package/dist/wiring/tools.d.ts.map +1 -0
  547. package/package.json +20 -20
@@ -0,0 +1,87 @@
1
+ import { type ConfigStore, type SecretVault } from '@wrongstack/core';
2
+ import type { ReadlineInputReader } from './input-reader.js';
3
+ import type { TerminalRenderer } from './renderer.js';
4
+ export interface SettingsMenuDeps {
5
+ renderer: TerminalRenderer;
6
+ reader: ReadlineInputReader;
7
+ configStore: ConfigStore;
8
+ globalConfigPath: string;
9
+ vault: SecretVault;
10
+ }
11
+ /**
12
+ * Interactive settings manager. Shows current configuration values,
13
+ * lets the user edit them, and persists changes back to the config file.
14
+ * Loops until the user exits.
15
+ */
16
+ export declare function runSettingsMenu(deps: SettingsMenuDeps): Promise<number>;
17
+ /** The subset of {@link SettingsMenuDeps} needed to persist a setting —
18
+ * no renderer/reader, so this is safe to call from non-interactive surfaces
19
+ * (the TUI, headless runs, the arg-driven `/settings` slash command). */
20
+ export interface PersistSettingDeps {
21
+ configStore: ConfigStore;
22
+ globalConfigPath: string;
23
+ /** Per-project config path (<project>/.wrongstack/config.json).
24
+ * Used when configScope === 'project'. Lives inside the project
25
+ * root so it can be gitignored or team-shared. */
26
+ inProjectConfigPath?: string | undefined;
27
+ vault: SecretVault;
28
+ /** Force writes to ~/.wrongstack/config.json even when configScope is project. */
29
+ forceGlobal?: boolean | undefined;
30
+ }
31
+ /**
32
+ * Strip credential-bearing and machine-specific fields from a config object
33
+ * so it is safe to write into a per-project `.wrongstack/config.json` file.
34
+ * Returns a new object — the original is not mutated.
35
+ */
36
+ export declare function filterSafeForProject(cfg: Record<string, unknown>): Record<string, unknown>;
37
+ /**
38
+ * Read the config file, apply `mutator` to its `autonomy` block, and write it
39
+ * back atomically (then mirror into the in-memory config store). Pure I/O — no
40
+ * terminal interaction — so it works identically under the plain REPL and the
41
+ * Ink TUI.
42
+ */
43
+ export declare function persistAutonomySetting(deps: PersistSettingDeps, mutator: (autonomy: {
44
+ autoProceedDelayMs?: number | undefined;
45
+ defaultMode?: string | undefined;
46
+ enhance?: boolean | undefined;
47
+ enhanceDelayMs?: number | undefined;
48
+ enhanceLanguage?: string | undefined;
49
+ }) => void): Promise<void>;
50
+ /**
51
+ * Read the config file, apply `mutator` to the full decrypted object, and
52
+ * write it back atomically. This is used for small top-level settings that do
53
+ * not warrant a dedicated helper.
54
+ */
55
+ export declare function persistConfigSetting(deps: PersistSettingDeps, mutator: (config: Record<string, unknown>) => void): Promise<void>;
56
+ /**
57
+ * Persist Telegram plugin config to `extensions.telegram` in the global config
58
+ * file. Mirrors `persistAutonomySetting` — reads the config, applies the
59
+ * mutator, encrypts secrets, writes atomically, then updates ConfigStore.
60
+ */
61
+ export declare function persistTelegramConfig(deps: PersistSettingDeps, mutator: (telegram: Record<string, unknown>) => void): Promise<void>;
62
+ /**
63
+ * Derive the filesystem-access pair (`features.allowOutsideProjectRoot` and
64
+ * `tools.restrictToProjectRoot`) from a save input. The two are inverses
65
+ * of each other and the codebase intentionally keeps both in sync for
66
+ * backward compatibility with older readers that only know about
67
+ * `tools.restrictToProjectRoot`.
68
+ *
69
+ * Single source of truth: `allowOutsideProjectRoot`. If the caller only
70
+ * sets `restrictFsToRoot`, it is converted to its inverse. If both are
71
+ * set (which the picker should not do, but defensive code paths may),
72
+ * `allowOutsideProjectRoot` wins. Returns `undefined` if neither is set,
73
+ * so the caller can skip the write.
74
+ *
75
+ * The input is duck-typed (only the two relevant fields are read) so any
76
+ * caller can pass a partial shape: the TUI's full `LiveSettingsInput`,
77
+ * a slash-command's `{ restrictFsToRoot: boolean }`, or any future
78
+ * save-handler that only carries these two knobs.
79
+ */
80
+ export declare function deriveFsAccessPair(input: {
81
+ allowOutsideProjectRoot?: boolean | undefined;
82
+ restrictFsToRoot?: boolean | undefined;
83
+ }): {
84
+ allowOutsideProjectRoot: boolean;
85
+ restrictToProjectRoot: boolean;
86
+ } | undefined;
87
+ //# sourceMappingURL=settings-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-menu.d.ts","sourceRoot":"","sources":["../src/settings-menu.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,WAAW,EAMhB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,WAAW,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CA+B7E;AAyID;;0EAE0E;AAC1E,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB;;uDAEmD;IACnD,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,KAAK,EAAE,WAAW,CAAC;IACnB,kFAAkF;IAClF,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACnC;AA+DD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQ1F;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,kBAAkB,EACxB,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,KAAK,IAAI,GACT,OAAO,CAAC,IAAI,CAAC,CAmEf;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,kBAAkB,EACxB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GACjD,OAAO,CAAC,IAAI,CAAC,CA+Df;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,kBAAkB,EACxB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GACnD,OAAO,CAAC,IAAI,CAAC,CAkDf;AAiBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IACxC,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9C,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,GACG;IAAE,uBAAuB,EAAE,OAAO,CAAC;IAAC,qBAAqB,EAAE,OAAO,CAAA;CAAE,GACpE,SAAS,CAUZ"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Graceful shutdown for the CLI host process.
3
+ *
4
+ * Bug history: cli-main.ts used to call `process.exit(0)` immediately in its
5
+ * SIGINT/SIGTERM handlers, after kicking off async cleanup with `void
6
+ * cleanup()`. The async work (most importantly `registry.markClosing()`, an
7
+ * awaited atomic disk write) was being cut off — leaving the cross-process
8
+ * session registry thinking the host was still alive after Ctrl+C.
9
+ *
10
+ * This helper is the same pattern `webui-server/lifecycle.ts` uses
11
+ * (`createWebuiShutdown`) and `cli-entry-point.ts` uses for its natural-exit
12
+ * drain: idempotent guard, await the work, set `exitCode`, give the event
13
+ * loop a bounded grace period, then force exit. A repeated signal that
14
+ * somehow re-fires our handler (e.g. someone re-installs it, or the
15
+ * `beforeExit` and a `SIGINT` race) short-circuits to immediate exit instead
16
+ * of waiting for the cleanup to settle a second time.
17
+ *
18
+ * The cleanup function is responsible for whatever the caller needs to flush
19
+ * — registry writes, unsubscribe, dispose, etc. The wrapper only handles the
20
+ * process-exit handshake around it.
21
+ */
22
+ export interface ShutdownCleanup {
23
+ /**
24
+ * Async cleanup. Called exactly once across all signals. May throw — errors
25
+ * are swallowed so a stuck cleanup can't wedge the exit path.
26
+ */
27
+ run: () => Promise<void>;
28
+ /** Exit code to use on a clean shutdown (default 0). */
29
+ exitCode?: number;
30
+ }
31
+ export interface ShutdownHandle {
32
+ /** Install SIGINT + SIGTERM + beforeExit listeners. Idempotent. */
33
+ install: () => void;
34
+ /** Uninstall listeners (for tests). */
35
+ uninstall: () => void;
36
+ /** True iff cleanup has been kicked off (by any signal). */
37
+ get cleanupStarted(): boolean;
38
+ }
39
+ /**
40
+ * Build a graceful-shutdown handle. Pass the cleanup function; the wrapper
41
+ * installs signal handlers that call it once and let the event loop drain.
42
+ */
43
+ export declare function createGracefulShutdown(cleanup: ShutdownCleanup): ShutdownHandle;
44
+ //# sourceMappingURL=shutdown-cleanup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shutdown-cleanup.d.ts","sourceRoot":"","sources":["../src/shutdown-cleanup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,GAAG,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uCAAuC;IACvC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,4DAA4D;IAC5D,IAAI,cAAc,IAAI,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,eAAe,GAAG,cAAc,CAqD/E"}
@@ -0,0 +1,23 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * /acp — discover and drive the ACP-supporting coding CLIs installed on this
5
+ * machine (Claude Code, Codex CLI, Gemini CLI, OpenCode, …) from inside the
6
+ * WrongStack interface. These external agents run as subprocesses using THEIR
7
+ * OWN login, so you exploit them without spending API credits here.
8
+ *
9
+ * /acp list detected agents (✓ installed / ✗ missing)
10
+ * /acp <agent-id> <task> run a task on one agent (inline, streamed)
11
+ * /acp <agent-id> --bg <task> run it as a background fleet subagent
12
+ * /acp parallel <csv> <task> fan a task out to several agents at once
13
+ * /acp probe [csv] handshake-test agents (what actually works)
14
+ * /acp bench [csv] [--fs] end-to-end verify each agent + graded report
15
+ * /acp sync pull the official agentclientprotocol/registry
16
+ * /acp help
17
+ *
18
+ * The agent list comes from the official registry
19
+ * (https://github.com/agentclientprotocol/registry) once synced — cached
20
+ * locally and merged over the bundled offline catalog.
21
+ */
22
+ export declare function buildAcpCommand(opts: SlashCommandContext): SlashCommand;
23
+ //# sourceMappingURL=acp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acp.d.ts","sourceRoot":"","sources":["../../src/slash-commands/acp.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAOrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA0DvE"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `/agents` — agent monitoring and timeline streaming commands.
3
+ *
4
+ * Commands:
5
+ * /agents — Show legacy subagent status
6
+ * /agents help — Show detailed help
7
+ * /agents stream on — Show agent conversations in the main chat timeline
8
+ * /agents stream off — Hide agent conversations from the main chat
9
+ * /agents stream status — Show current stream state
10
+ * /agents list — List all active subagents
11
+ * /agents show <id> — Show transcript for a specific agent
12
+ */
13
+ import type { SlashCommand } from '@wrongstack/core';
14
+ import type { SlashCommandContext } from './index.js';
15
+ export declare function buildAgentsCommand(opts: SlashCommandContext): SlashCommand;
16
+ //# sourceMappingURL=agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/slash-commands/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAiBtD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAoI1E"}
@@ -0,0 +1,11 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * /audit — opens the TUI AuditPanel overlay showing the side-effect
5
+ * timeline (bash commands, package installs, network requests).
6
+ *
7
+ * P2 #5 Phase 4: in the REPL (non-TUI) context, falls back to the /diag
8
+ * output which already includes the side-effect section.
9
+ */
10
+ export declare function buildAuditCommand(opts: SlashCommandContext): SlashCommand;
11
+ //# sourceMappingURL=audit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/slash-commands/audit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAmEzE"}
@@ -0,0 +1,20 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/auth` — manage provider credentials.
5
+ *
6
+ * In the TUI, a bare `/auth` opens the interactive auth panel (providers,
7
+ * key CRUD, catalog/local/custom adds, OAuth sign-in) via the panel-open
8
+ * bridge — the same UX as `wstack auth`, embedded in the session. `/auth
9
+ * login` jumps straight to the OAuth sign-in view.
10
+ *
11
+ * In the plain REPL (no TUI mounted) the command falls back to a
12
+ * read-only dashboard and points at `wstack auth`:
13
+ * /auth Show saved providers and key status
14
+ * /auth login Open OAuth sign-in (TUI) / show hint (REPL)
15
+ * /auth status <id> Show detail for one provider
16
+ * /auth open Open the panel (TUI) / show launch hint (REPL)
17
+ * /auth help Show this help
18
+ */
19
+ export declare function buildAuthCommand(opts: SlashCommandContext): SlashCommand;
20
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/slash-commands/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAwCtD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAwMxE"}
@@ -0,0 +1,5 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export type AutonomyMode = 'off' | 'suggest' | 'auto' | 'eternal' | 'eternal-parallel';
4
+ export declare function buildAutonomyCommand(opts: SlashCommandContext): SlashCommand;
5
+ //# sourceMappingURL=autonomy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autonomy.d.ts","sourceRoot":"","sources":["../../src/slash-commands/autonomy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,kBAAkB,CAAC;AAkBvF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAwP5E"}
@@ -0,0 +1,13 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * Build the /autophase slash command.
5
+ *
6
+ * AutoPhase turns a free-text goal into a real, LLM-driven build: the host
7
+ * plans phases (each holding many todos), persists the phase-graph as
8
+ * per-project JSON under ~/.wrongstack/projects/<hash>/autophase, and drives
9
+ * the orchestrator — one subagent per task — in the background. Live progress
10
+ * is shown in the TUI PhaseMonitor.
11
+ */
12
+ export declare function buildAutoPhaseCommand(opts: SlashCommandContext): SlashCommand;
13
+ //# sourceMappingURL=autophase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autophase.d.ts","sourceRoot":"","sources":["../../src/slash-commands/autophase.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA6B,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAiEtD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA+J7E"}
@@ -0,0 +1,4 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export declare function buildBrainCommand(opts: SlashCommandContext): SlashCommand;
4
+ //# sourceMappingURL=brain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brain.d.ts","sourceRoot":"","sources":["../../src/slash-commands/brain.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAWtD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA6HzE"}
@@ -0,0 +1,13 @@
1
+ import { type SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/btw <note>` — non-aborting mid-run steering ("by the way").
5
+ *
6
+ * Stashes a short note on the live run context. Unlike `/steer` (which aborts
7
+ * the iteration and prepends a heavy STEERING preamble), `/btw` lets the agent
8
+ * keep working and folds the note in at the start of its next iteration —
9
+ * between tool batches. If no run is active, the note rides along on the next
10
+ * turn the agent takes.
11
+ */
12
+ export declare function buildBtwCommand(opts: SlashCommandContext): SlashCommand;
13
+ //# sourceMappingURL=btw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"btw.d.ts","sourceRoot":"","sources":["../../src/slash-commands/btw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,YAAY,EAAc,MAAM,kBAAkB,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAqCvE"}
@@ -0,0 +1,4 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export declare function buildClearCommand(opts: SlashCommandContext): SlashCommand;
4
+ //# sourceMappingURL=clear.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear.d.ts","sourceRoot":"","sources":["../../src/slash-commands/clear.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA6CzE"}
@@ -0,0 +1,11 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/codebase-reindex` — manually refresh the `codebase-search` symbol index.
5
+ *
6
+ * Incremental by default (unchanged files skipped via mtime); `force` clears and
7
+ * rebuilds from scratch. Runs through the shared background indexer's mutex, so
8
+ * it serializes safely with the session-start scan and live per-edit reindexes.
9
+ */
10
+ export declare function buildCodebaseReindexCommand(opts: SlashCommandContext): SlashCommand;
11
+ //# sourceMappingURL=codebase-reindex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codebase-reindex.d.ts","sourceRoot":"","sources":["../../src/slash-commands/codebase-reindex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAG9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAsCnF"}
@@ -0,0 +1,26 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * /collab — operator-side controls for the live-collaboration feature
5
+ * (Phase 1 of idea #13 from IDEAS.md).
6
+ *
7
+ * The CLI doesn't speak the WebSocket protocol itself — the *observer*
8
+ * client is a browser (webui). But the CLI user is the agent's owner
9
+ * and needs to know:
10
+ *
11
+ * - Is anyone watching this session right now?
12
+ * - How do I give someone a link to join?
13
+ * - What's been happening (so I can summarize for a teammate)?
14
+ *
15
+ * That's what these three subcommands do. The "actual join" flow
16
+ * lives in the webui's `CollabPanel`.
17
+ *
18
+ * Note: the observer count is currently best-effort. The webui server
19
+ * keeps a live participant list per session but the CLI doesn't see
20
+ * that state directly. For now we show "observer count: unknown" and
21
+ * the invite URL; a future iteration can pipe the count through the
22
+ * kernel's EventBus (e.g. by listening to `collab.participant.joined`
23
+ * in the CLI's own EventBus subscriber).
24
+ */
25
+ export declare function buildCollabCommand(opts: SlashCommandContext): SlashCommand;
26
+ //# sourceMappingURL=collab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collab.d.ts","sourceRoot":"","sources":["../../src/slash-commands/collab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAgC1E"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * LLM-powered commit message generation.
3
+ * Generates proper commit messages by analyzing git diffs via the configured LLM provider.
4
+ */
5
+ export interface CommitLLMProvider {
6
+ complete(req: {
7
+ model: string;
8
+ system?: {
9
+ type: 'text' | undefined;
10
+ text: string;
11
+ }[];
12
+ messages: {
13
+ role: string;
14
+ content: {
15
+ type: 'text';
16
+ text: string;
17
+ }[];
18
+ }[];
19
+ maxTokens: number;
20
+ temperature?: number | undefined;
21
+ }, opts: {
22
+ signal: AbortSignal;
23
+ }): Promise<{
24
+ /** Normalized content blocks (Anthropic/OpenAI compatible) */
25
+ content: {
26
+ type: 'text';
27
+ text: string;
28
+ }[];
29
+ model: string;
30
+ }>;
31
+ }
32
+ export interface CommitLLMOpts {
33
+ provider: CommitLLMProvider;
34
+ model: string;
35
+ }
36
+ /**
37
+ * Generate a proper commit message by asking the LLM to analyze the diff.
38
+ * Falls back to heuristics on failure.
39
+ */
40
+ export declare function generateCommitMessageWithLLM(diff: string, opts: CommitLLMOpts): Promise<string>;
41
+ //# sourceMappingURL=commit-llm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commit-llm.d.ts","sourceRoot":"","sources":["../../src/slash-commands/commit-llm.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CACN,GAAG,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACtD,QAAQ,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE;gBAAE,IAAI,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,EAAE,CAAA;SAAE,EAAE,CAAC;QACxE,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAClC,EACD,IAAI,EAAE;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,GAC5B,OAAO,CAAC;QACT,8DAA8D;QAC9D,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC1C,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,MAAM,CAAC,CAsCjB"}
@@ -0,0 +1,4 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export declare function buildCompactCommand(opts: SlashCommandContext): SlashCommand;
4
+ //# sourceMappingURL=compact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compact.d.ts","sourceRoot":"","sources":["../../src/slash-commands/compact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA6D3E"}
@@ -0,0 +1,4 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export declare function buildContextCommand(opts: SlashCommandContext): SlashCommand;
4
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/slash-commands/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAWtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAiL3E"}
@@ -0,0 +1,4 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export declare function buildCoordinatorCommand(opts: SlashCommandContext): SlashCommand;
4
+ //# sourceMappingURL=coordinator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/slash-commands/coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAuL/E"}
@@ -0,0 +1,17 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * /delegate — user-facing counterpart to the AI's `delegate` tool.
5
+ *
6
+ * Hands a task to a subagent. With --role, spawns that specific role.
7
+ * Without --role, uses smart dispatch (heuristic + LLM classifier) to
8
+ * pick the best agent — same engine as /fleet dispatch.
9
+ *
10
+ * Usage:
11
+ * /delegate [--role=<role>] [--name=<label>] <task description>
12
+ * /delegate list List available roles
13
+ *
14
+ * Requires director mode. Run /director first.
15
+ */
16
+ export declare function buildDelegateCommand(opts: SlashCommandContext): SlashCommand;
17
+ //# sourceMappingURL=delegate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../src/slash-commands/delegate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA8H5E"}
@@ -0,0 +1,16 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/design` — manual control over the Design Studio kit picker.
5
+ *
6
+ * /design list kits + show the active one
7
+ * /design <kit-id> [stack] pin a kit and load its full spec next turn
8
+ * /design off clear the active kit (detection stays on)
9
+ * /design foundations print the mandatory baseline
10
+ *
11
+ * Pinning sets `ctx.meta.designStudio.activeKit` so the per-turn request
12
+ * middleware switches to the adherence reminder, and emits `runText` so the
13
+ * model loads the full kit body via the `design` tool on the next turn.
14
+ */
15
+ export declare function buildDesignCommand(opts: SlashCommandContext): SlashCommand;
16
+ //# sourceMappingURL=design.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../../src/slash-commands/design.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAerD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAYtD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAuH1E"}
@@ -0,0 +1,9 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/dev <shell command>` — execute a shell command from the chat input and
5
+ * display its output. The LLM does NOT see the result — this is a developer
6
+ * convenience shortcut, not a tool invocation.
7
+ */
8
+ export declare function buildDevCommand(opts: SlashCommandContext): SlashCommand;
9
+ //# sourceMappingURL=dev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/slash-commands/dev.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAkGtD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA6CvE"}
@@ -0,0 +1,5 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export declare function buildDiagCommand(opts: SlashCommandContext): SlashCommand;
4
+ export declare function buildStatsCommand(opts: SlashCommandContext): SlashCommand;
5
+ //# sourceMappingURL=diag-stats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diag-stats.d.ts","sourceRoot":"","sources":["../../src/slash-commands/diag-stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAUxE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAWzE"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * LLM-backed classifier for the smart agent dispatcher.
3
+ *
4
+ * Wraps the session provider in the `complete(prompt) => text` shape that
5
+ * `makeLLMClassifier` expects, so `/fleet dispatch` can fall back to the model
6
+ * when the heuristic router is ambiguous. Mirrors the one-shot completion
7
+ * pattern used by `generateCommitMessageWithLLM`.
8
+ */
9
+ import { type DispatchClassifier } from '@wrongstack/core';
10
+ import type { CommitLLMProvider } from './commit-llm.js';
11
+ export declare function makeProviderClassifier(provider: CommitLLMProvider, model: string): DispatchClassifier;
12
+ //# sourceMappingURL=dispatch-llm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatch-llm.d.ts","sourceRoot":"","sources":["../../src/slash-commands/dispatch-llm.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,kBAAkB,EAAqB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,iBAAiB,EAC3B,KAAK,EAAE,MAAM,GACZ,kBAAkB,CA8BpB"}
@@ -0,0 +1,13 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/doctor` — diagnose and auto-repair the persisted config files.
5
+ *
6
+ * Report mode (bare `/doctor`) never writes anything. `/doctor fix` backs the
7
+ * file up first (config.json.last + a timestamped .bak, the same convention
8
+ * config-history uses), then writes the repaired config and mirrors it into
9
+ * the in-memory store. A config that fails to parse at all is restored from
10
+ * the newest parsable backup.
11
+ */
12
+ export declare function buildDoctorCommand(opts: SlashCommandContext): SlashCommand;
13
+ //# sourceMappingURL=doctor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/slash-commands/doctor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA8N1E"}
@@ -0,0 +1,13 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/enhance` — toggle prompt refinement ("did you mean this?").
5
+ *
6
+ * When on, free-text prompts are rewritten by a separate one-shot LLM call into
7
+ * a clearer instruction and briefly previewed before reaching the main agent.
8
+ * The live toggle is flipped via the shared `enhanceController` (the TUI
9
+ * installs a dispatch-backed setter on mount); the choice is persisted to
10
+ * `config.autonomy.enhance` so it survives restarts.
11
+ */
12
+ export declare function buildEnhanceCommand(opts: SlashCommandContext): SlashCommand;
13
+ //# sourceMappingURL=enhance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enhance.d.ts","sourceRoot":"","sources":["../../src/slash-commands/enhance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAiF3E"}
@@ -0,0 +1,17 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * /ensemble <agent-csv> <task description>
5
+ *
6
+ * Fan a single task out to multiple ACP-supporting agents in parallel.
7
+ * Each agent runs in its own process; the command waits for all of them
8
+ * and reports per-agent outcomes.
9
+ *
10
+ * Examples:
11
+ * /ensemble claude-code,gemini-cli "review this diff"
12
+ * /ensemble claude-code,codex-cli "refactor auth/session.ts"
13
+ *
14
+ * Run /ensemble (no args) to see usage and the list of available agents.
15
+ */
16
+ export declare function buildEnsembleCommand(_opts: SlashCommandContext): SlashCommand;
17
+ //# sourceMappingURL=ensemble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensemble.d.ts","sourceRoot":"","sources":["../../src/slash-commands/ensemble.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CAgF7E"}
@@ -0,0 +1,18 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * Build the `/f` slash command and its hidden `/f1`–`/f12` aliases.
5
+ *
6
+ * - `/f` (no args) — list numbered F-key options
7
+ * - `/f 1` … `/f 12` — open the corresponding panel
8
+ * - `/f1` … `/f12` — same as above (hidden aliases, not shown in the picker)
9
+ *
10
+ * The TUI handles panel opening via `onPanelOpen`; the REPL shows a message.
11
+ */
12
+ export declare function buildFKeysCommand(opts: SlashCommandContext): SlashCommand;
13
+ /**
14
+ * Build hidden `/f1`–`/f12` alias commands.
15
+ * These are registered individually so typing `/f1` (no space) also works.
16
+ */
17
+ export declare function buildFKeyAliasCommands(opts: SlashCommandContext): SlashCommand[];
18
+ //# sourceMappingURL=f-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"f-keys.d.ts","sourceRoot":"","sources":["../../src/slash-commands/f-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAsBtD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAiCzE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,EAAE,CAgBhF"}
@@ -0,0 +1,20 @@
1
+ import { type SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/fallback` — view or change the cross-provider fallback chain that the
5
+ * agent rotates to when the primary model is rate-limited / overloaded
6
+ * (429/529/5xx) and its own retries are exhausted. Argument-driven (never
7
+ * blocks on readline) so it behaves identically in the REPL and the TUI.
8
+ * Persists to ~/.wrongstack/config.json.
9
+ *
10
+ * Subcommands:
11
+ * (none) Show the active chain (explicit or smart-default
12
+ * preview) and the smart-default toggle.
13
+ * add <provider/model> Append a model reference to the explicit chain.
14
+ * remove <n|ref> Remove by 1-based index or by exact reference.
15
+ * clear Empty the explicit chain (smart default takes over
16
+ * again when `auto` is on).
17
+ * auto on|off Toggle the smart default (config.fallbackAuto).
18
+ */
19
+ export declare function buildFallbackCommand(opts: SlashCommandContext): SlashCommand;
20
+ //# sourceMappingURL=fallback.d.ts.map