@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,524 @@
1
+ import type { CompactReport, Context, EventBus, HealthRegistry, MemoryStore, MetricsSink, ModeStore, Renderer, SessionStore, SkillLoader, SlashCommand, SlashCommandRegistry, TokenCounter, ToolRegistry, WstackPaths } from '@wrongstack/core';
2
+ export interface SlashCommandContext {
3
+ registry: SlashCommandRegistry;
4
+ toolRegistry: ToolRegistry;
5
+ /** Resolved path helpers — use instead of constructing paths inline.
6
+ * Optional for unit tests that don't exercise commands requiring paths. */
7
+ paths?: WstackPaths | undefined;
8
+ compactor?: {
9
+ compact(ctx: Context, opts?: {
10
+ aggressive?: boolean | undefined;
11
+ }): Promise<CompactReport>;
12
+ };
13
+ sessionStore?: SessionStore | undefined;
14
+ skillLoader?: SkillLoader | undefined;
15
+ tokenCounter: TokenCounter;
16
+ renderer: Renderer;
17
+ /** App-level EventBus — used by AutoPhaseRunner to emit phase/graph events to the TUI. */
18
+ events: EventBus;
19
+ memoryStore?: MemoryStore | undefined;
20
+ context?: Context | undefined;
21
+ /** Working directory for the current session. */
22
+ cwd: string;
23
+ /** Project root (typically resolved from cwd). */
24
+ projectRoot: string;
25
+ metricsSink?: MetricsSink | undefined;
26
+ healthRegistry?: HealthRegistry | undefined;
27
+ modeStore?: ModeStore | undefined;
28
+ /** Input reader for interactive pickers (arrow key navigation etc.). */
29
+ inputReader?: import('@wrongstack/core').InputReader | undefined;
30
+ onExit?: (() => void) | undefined;
31
+ onBeforeExit?: () => Promise<{
32
+ abort?: boolean;
33
+ message?: string | undefined;
34
+ } | void>;
35
+ onClear?: (() => void) | undefined;
36
+ /**
37
+ * Called by /clear after wiping the session on disk and in the agent context.
38
+ * The TUI installs a dispatch-backed handler here to also reset its UI state
39
+ * (wipe rendered entries, reset fleet/leader stats, bump the context chip).
40
+ */
41
+ onNewSession?: (() => Promise<void>) | undefined;
42
+ onDiag?: (() => string) | undefined;
43
+ onStats?: (() => string | null) | undefined;
44
+ /** Agent Monitor Service — tracks subagent conversations and streams to HQ. */
45
+ agentMonitor?: import('@wrongstack/core/coordination').AgentMonitorService | undefined;
46
+ /**
47
+ * Generate a commit message by calling the LLM with the git diff.
48
+ * Receives the raw diff, returns a commit message string.
49
+ * When omitted /commit falls back to heuristics-only messages.
50
+ */
51
+ generateCommitMessage?: ((diff: string) => Promise<string>) | undefined;
52
+ /** Fire-and-forget spawn — returns immediately with spawn metadata. Used by /spawn. */
53
+ onSpawn?: (description: string, opts?: {
54
+ provider?: string | undefined;
55
+ model?: string | undefined;
56
+ fallbackModels?: string[] | undefined;
57
+ tools?: string[] | undefined;
58
+ name?: string | undefined;
59
+ /** Explicit capability allowlist for the subagent's auto-approve policy.
60
+ * When omitted the host applies the WIDE working default (read/write/
61
+ * net/shell/install) — or, for a scoped tools slice, that plus the
62
+ * tools' own capabilities. Pass this to narrow (e.g. read-only) or to
63
+ * grant an escape-hatch cap (fs.write.outside-project, config.mutate). */
64
+ allowedCapabilities?: readonly string[] | undefined;
65
+ /** Legacy Shadow Agent interval in ms. Only used when name === 'shadow'. */
66
+ shadowIntervalMs?: number | undefined;
67
+ }) => Promise<string>;
68
+ /**
69
+ * Blocking spawn — waits for the subagent to complete and returns the full
70
+ * result. Used by /techstack and any other command that needs the subagent's
71
+ * actual output inline.
72
+ */
73
+ onSpawnAndWait?: (description: string, opts?: {
74
+ provider?: string | undefined;
75
+ model?: string | undefined;
76
+ fallbackModels?: string[] | undefined;
77
+ tools?: string[] | undefined;
78
+ name?: string | undefined;
79
+ /** Explicit capability allowlist for the subagent's auto-approve policy.
80
+ * When omitted the host applies the WIDE working default (read/write/
81
+ * net/shell/install) — or, for a scoped tools slice, that plus the
82
+ * tools' own capabilities. Pass this to narrow (e.g. read-only) or to
83
+ * grant an escape-hatch cap (fs.write.outside-project, config.mutate). */
84
+ allowedCapabilities?: readonly string[] | undefined;
85
+ /** Legacy Shadow Agent interval in ms. Only used when name === 'shadow'. */
86
+ shadowIntervalMs?: number | undefined;
87
+ }) => Promise<string>;
88
+ onAgents?: ((subagentId?: string) => string) | undefined;
89
+ onFleet?: (action: 'status' | 'usage' | 'kill' | 'manifest' | 'concurrency' | 'retry' | 'log', target?: string | undefined) => Promise<string>;
90
+ /**
91
+ * Get live coordinator status for /fleet. Returns null when no fleet is active.
92
+ */
93
+ onFleetStatus?: (() => import('@wrongstack/core').CoordinatorStatus | null) | undefined;
94
+ /**
95
+ * Get fleet usage summary for /fleet usage.
96
+ */
97
+ onFleetUsage?: (() => import('@wrongstack/core').FleetUsage | null) | undefined;
98
+ /**
99
+ * Kill all running subagents. Returns count of killed subagents.
100
+ */
101
+ onFleetKill?: (() => number | Promise<number>) | undefined;
102
+ /**
103
+ * Abort the in-flight leader run. Installed by the surface (REPL/TUI) on
104
+ * startup so `/interrupt` can stop the current iteration — slash commands
105
+ * don't get the RunController directly. The default no-op returns false;
106
+ * a real handler returns true when it actually aborted a run.
107
+ */
108
+ interruptController?: {
109
+ abortLeader: () => boolean;
110
+ } | undefined;
111
+ /**
112
+ * Terminate a specific subagent by id. Returns true if terminated.
113
+ */
114
+ onFleetTerminate?: ((subagentId: string) => boolean | Promise<boolean>) | undefined;
115
+ /**
116
+ * Spawn a subagent of a given role. Returns the new subagent id.
117
+ */
118
+ onFleetSpawn?: ((role: string) => Promise<string>) | undefined;
119
+ /**
120
+ * Optional LLM classifier for `/fleet dispatch`. When wired, the smart
121
+ * dispatcher uses it to resolve ambiguous routing decisions; without it the
122
+ * dispatcher is heuristic-only. Built from the session provider in the host.
123
+ */
124
+ onDispatchClassify?: import('@wrongstack/core').DispatchClassifier | undefined;
125
+ /**
126
+ * Toggle subagent activity streaming into the leader's history. The
127
+ * TUI installs the actual setter on mount via a shared controller;
128
+ * before that, calls are buffered into the initial-value field so
129
+ * `/fleet stream off` issued before mount still takes effect.
130
+ */
131
+ fleetStreamController?: {
132
+ /** Current state, readable for the slash command's reply. */
133
+ enabled: boolean;
134
+ /** Replaced by the TUI on mount with a dispatch-backed setter. */
135
+ setEnabled: (enabled: boolean) => void;
136
+ } | undefined;
137
+ /**
138
+ * Toggle prompt refinement ("did you mean this?"). The TUI installs the
139
+ * actual dispatch-backed setter on mount via this shared controller; before
140
+ * that, `enabled` just mirrors the requested value so a pre-mount toggle
141
+ * still takes effect. Backed by `config.autonomy.enhance`.
142
+ */
143
+ enhanceController?: {
144
+ enabled: boolean;
145
+ setEnabled: (enabled: boolean) => void;
146
+ };
147
+ /**
148
+ * Re-run interrupted tasks from a prior director-state.json. Pass `undefined`
149
+ * to list them, a specific task id to retry one, or 'all' to retry every
150
+ * interrupted task. Returns a human-readable summary. Only wired when
151
+ * director mode is enabled.
152
+ */
153
+ onFleetRetry?: ((taskId?: string) => Promise<string>) | undefined;
154
+ /**
155
+ * Inspect per-subagent JSONL transcripts under `<fleetRoot>/subagents/`.
156
+ * Pass `undefined` to list available transcripts, a subagent id to show
157
+ * a compact event summary, or a subagent id with `mode='raw'` to dump
158
+ * the full JSONL. Only wired when a fleet root exists for this session.
159
+ */
160
+ onFleetLog?: (subagentId: string | undefined, mode: 'summary' | 'raw') => Promise<string>;
161
+ /** Promote to director mode at runtime. Returns success message or null on failure. */
162
+ onDirector?: (() => Promise<string | null>) | undefined;
163
+ /** Manage plugin config from the interactive slash menu. */
164
+ onPlugin?: ((args: string) => Promise<string>) | undefined;
165
+ /** Set/query the effective context window for this session. */
166
+ onContextLimit?: ((tokens?: number) => number) | undefined;
167
+ /** Toggle or query YOLO mode at runtime. Pass undefined to query, boolean to set. */
168
+ onYolo?: ((setTo?: boolean) => boolean) | undefined;
169
+ /** Toggle or query next-task prediction. Pass undefined to query, boolean to set. */
170
+ onNextPredict?: ((setTo?: boolean) => boolean) | undefined;
171
+ /**
172
+ * Store or retrieve the current suggestion list for `/next` selection.
173
+ * Pass a string array to set suggestions. Call without args to get the
174
+ * current list (returns empty array when no suggestions stored).
175
+ */
176
+ onSuggestions?: ((suggestions?: string[]) => string[]) | undefined;
177
+ /** Toggle or query autonomy mode. Pass undefined to query, AutonomyMode to set. */
178
+ onAutonomy?: (setTo?: import('./autonomy.js').AutonomyMode | undefined) => import('./autonomy.js').AutonomyMode;
179
+ /**
180
+ * Access the (possibly null) eternal-autonomy engine. The REPL drives
181
+ * `runOneIteration()` from its main loop when autonomy is 'eternal'.
182
+ */
183
+ getEternalEngine?: (() => import('@wrongstack/core').EternalAutonomyEngine | null) | undefined;
184
+ /**
185
+ * Access the (possibly null) parallel-eternal engine. The REPL drives
186
+ * `runOneIteration()` from its main loop when autonomy is 'eternal-parallel'.
187
+ */
188
+ getParallelEngine?: (() => import('@wrongstack/core').ParallelEternalEngine | null) | undefined;
189
+ /**
190
+ * Start the eternal/parallel autonomy engine. Called after `/autonomy eternal`
191
+ * or `/autonomy parallel` confirms a goal exists and YOLO has been forced on.
192
+ * Pass the mode so the REPL knows which engine to construct and drive.
193
+ */
194
+ onEternalStart?: ((mode?: import('./autonomy.js').AutonomyMode) => void) | undefined;
195
+ /** Stop the eternal/parallel autonomy engine (mid-iteration abort + flag flip). */
196
+ onEternalStop?: (() => void) | undefined;
197
+ /**
198
+ * Start the AutonomousCoordinator — project-level multi-session coordination
199
+ * that tracks goals, tasks, knowledge, and consensus across all active sessions
200
+ * in the same project. Fire-and-forget: run() loops asynchronously.
201
+ * Pass the goal text to decompose and work on.
202
+ */
203
+ onCoordinatorStart?: ((goal?: string) => void) | undefined;
204
+ /** Stop the AutonomousCoordinator loop. */
205
+ onCoordinatorStop?: (() => void) | undefined;
206
+ /**
207
+ * List available coordinator tasks for the current terminal/session to claim.
208
+ * Returns an array of pending tasks (id, title, priority, tags) or null when
209
+ * no coordinator is active. Terminals are treated as eligible workers — an
210
+ * open terminal session is sufficient; no subagent needs to be spawned.
211
+ */
212
+ onCoordinatorTasks?: (() => Promise<Array<{
213
+ id: string;
214
+ title: string;
215
+ priority: string;
216
+ tags: string[];
217
+ }> | null>) | undefined;
218
+ /**
219
+ * Claim a coordinator task from the terminal. On success returns the task
220
+ * description so the caller can inject it as the next agent prompt.
221
+ * Returns null when no coordinator is active, or an error message string.
222
+ */
223
+ onCoordinatorClaim?: ((taskId: string) => Promise<string | null | {
224
+ description: string;
225
+ }>) | undefined;
226
+ /** Mark a claimed task as completed. Returns null on success or an error message. */
227
+ onCoordinatorComplete?: ((taskId: string, result?: string) => Promise<string | null>) | undefined;
228
+ /** Mark a claimed task as failed. Returns null on success or an error message. */
229
+ onCoordinatorFail?: ((taskId: string, error: string) => Promise<string | null>) | undefined;
230
+ /** Get coordinator stats for status display. Returns null when no coordinator is active. */
231
+ onCoordinatorStatus?: (() => Promise<{
232
+ goals: {
233
+ total: number;
234
+ done: number;
235
+ pending: number;
236
+ failed: number;
237
+ };
238
+ dag: {
239
+ running: number;
240
+ ready: number;
241
+ done: number;
242
+ failed: number;
243
+ };
244
+ auction: {
245
+ pending: number;
246
+ inProgress: number;
247
+ };
248
+ } | null>) | undefined;
249
+ /**
250
+ * Mutable holder for coordinator callbacks. Set by execution.ts when the
251
+ * coordinator is created; read by slash commands. Mirrors the
252
+ * `onPanelOpen.current` indirection pattern.
253
+ */
254
+ coordinatorController?: {
255
+ onCoordinatorStart?: ((goal?: string) => void) | undefined;
256
+ onCoordinatorStop?: (() => void) | undefined;
257
+ onCoordinatorTasks?: (() => Promise<Array<{
258
+ id: string;
259
+ title: string;
260
+ priority: string;
261
+ tags: string[];
262
+ }> | null>) | undefined;
263
+ onCoordinatorClaim?: ((taskId: string) => Promise<string | null | {
264
+ description: string;
265
+ }>) | undefined;
266
+ onCoordinatorComplete?: ((taskId: string, result?: string) => Promise<string | null>) | undefined;
267
+ onCoordinatorFail?: ((taskId: string, error: string) => Promise<string | null>) | undefined;
268
+ onCoordinatorStatus?: (() => Promise<{
269
+ goals: {
270
+ total: number;
271
+ done: number;
272
+ pending: number;
273
+ failed: number;
274
+ };
275
+ dag: {
276
+ running: number;
277
+ ready: number;
278
+ done: number;
279
+ failed: number;
280
+ };
281
+ auction: {
282
+ pending: number;
283
+ inProgress: number;
284
+ };
285
+ } | null>) | undefined;
286
+ };
287
+ /**
288
+ * Ask the user a yes/no question on the REPL. Returns `true`/`false` for
289
+ * Y/N answers, `null` when the user cancels (q). Resolves to `defaultYes`
290
+ * on non-TTY / EOF so non-interactive callers don't hang. Slash commands
291
+ * use this for destructive or surprising actions (e.g. starting eternal
292
+ * mode against a stale goal).
293
+ */
294
+ confirm?: (question: string, defaultYes?: boolean) => Promise<boolean | null>;
295
+ /**
296
+ * Absolute path to the per-session plan JSON file. Read+written by the
297
+ * `/plan` slash command. Optional — when omitted, `/plan` short-circuits
298
+ * with a "not configured" message instead of crashing.
299
+ */
300
+ planPath?: string | undefined;
301
+ /** Direct access to the session's LLM provider and model, available even before the first agent run. */
302
+ llmProvider?: import('@wrongstack/core').Provider | undefined;
303
+ llmModel?: string | undefined;
304
+ /**
305
+ * Create a Provider instance for any configured provider by its id.
306
+ * Uses that provider's own API key (from config). Returns undefined
307
+ * when the provider is not configured or has no valid key.
308
+ *
309
+ * This enables slash commands like /modeldiag eval to test models
310
+ * across multiple providers, not just the currently active one.
311
+ */
312
+ createProvider?: ((providerId: string) => import('@wrongstack/core').Provider | undefined) | undefined;
313
+ /** StatusBar visibility config — loaded from ~/.wrongstack/statusline.json */
314
+ statuslineConfig?: {
315
+ get: () => Promise<import('./statusline.js').StatuslineConfig>;
316
+ set: (cfg: import('./statusline.js').StatuslineConfig) => Promise<void>;
317
+ };
318
+ /**
319
+ * Current list of hidden status bar items. Written by the /statusline command
320
+ * so the TUI can update without a restart.
321
+ */
322
+ statuslineHiddenItems?: import('./statusline.js').StatuslineConfigKey[];
323
+ setStatuslineHiddenItems?: (items: import('./statusline.js').StatuslineConfigKey[]) => void;
324
+ /**
325
+ * Atomically updates the in-memory hidden items list AND persists to
326
+ * ~/.wrongstack/statusline.json. Used by the TUI's statusline picker.
327
+ */
328
+ saveStatuslineHiddenItems?: (items: import('./statusline.js').StatuslineConfigKey[]) => Promise<void>;
329
+ /**
330
+ * Controller for the agents monitor overlay. The TUI installs the actual
331
+ * setter on mount via a shared controller; before that, calls are buffered
332
+ * into the initial-value field so `/agents off` issued before mount still takes effect.
333
+ */
334
+ agentsMonitorController?: {
335
+ /** Current state, readable for the slash command's reply. */
336
+ visible: boolean;
337
+ /** Replaced by the TUI on mount with a dispatch-backed setter. */
338
+ setVisible: (visible: boolean) => void;
339
+ } | undefined;
340
+ /** Manage MCP servers: add, remove, enable, disable, restart. */
341
+ onMcp?: ((args: string) => Promise<string>) | undefined;
342
+ /**
343
+ * Structured MCP server status for diagnostics (e.g. /tuneup). Backed by
344
+ * `mcpRegistry.describe()` — includes disabled + failed servers, unlike the
345
+ * rendered string `onMcp` returns. Undefined when no registry is wired.
346
+ */
347
+ mcpStatus?: (() => Array<{
348
+ name: string;
349
+ state: string;
350
+ enabled: boolean;
351
+ toolCount: number;
352
+ }>) | undefined;
353
+ /**
354
+ * Fix a reported error or bug. Pass the error message or problem description.
355
+ * Returns a structured diagnosis + fix plan, and sets up the next agent turn
356
+ * with the appropriate skill (bug-hunter, typescript-strict, security-scanner).
357
+ */
358
+ onFix?: (errorText: string) => Promise<{
359
+ message?: string | undefined;
360
+ runText?: string | undefined;
361
+ }>;
362
+ /**
363
+ * Start an SDD parallel fan-out run. Requires an active SDD session with
364
+ * an approved spec and generated task graph.
365
+ */
366
+ onSddParallelRun?: (opts?: {
367
+ parallelSlots?: number | undefined;
368
+ }) => Promise<string>;
369
+ /** Stop the currently running SDD parallel fan-out. */
370
+ onSddParallelStop?: (() => void) | undefined;
371
+ /** Requeue every failed task in the active SDD run to pending. Returns the count requeued. */
372
+ onSddRetryAllFailed?: (() => number) | undefined;
373
+ /**
374
+ * Split a task in the active SDD run into sub-tasks (refused while it runs).
375
+ * Returns the new leaf ids, or null when there is no active run / unknown task.
376
+ */
377
+ onSddSplitTask?: ((taskId: string, subtasks: Array<{
378
+ title: string;
379
+ description: string;
380
+ }>) => string[] | null) | undefined;
381
+ /**
382
+ * Remove the git worktrees + branches an SDD run created. Uses the live run
383
+ * when one is active (after a stop), else sweeps the project's leftovers from
384
+ * disk. Returns the number of worktrees removed.
385
+ */
386
+ onSddCleanWorktrees?: (() => Promise<number>) | undefined;
387
+ /**
388
+ * Roll back an SDD run's merged commits by reverting each on the base branch
389
+ * (history-preserving). Refuses while a run is still live. Returns the outcome.
390
+ */
391
+ onSddRollback?: (() => Promise<{
392
+ ok: boolean;
393
+ reverted: number;
394
+ reason?: string;
395
+ }>) | undefined;
396
+ /**
397
+ * Destroy the SDD project: stop any active run, clean worktrees, and delete the
398
+ * on-disk artifacts (specs, task-graphs, session, boards). Pass
399
+ * `{ revertMerged: true }` (`/sdd destroy --revert`) to also revert merged
400
+ * commits before wiping; otherwise they are left on the base branch.
401
+ */
402
+ onSddDestroy?: ((opts?: {
403
+ revertMerged?: boolean;
404
+ }) => Promise<{
405
+ worktreesRemoved: number;
406
+ deleted: string[];
407
+ reverted: number;
408
+ revertOk?: boolean | undefined;
409
+ revertReason?: string | undefined;
410
+ }>) | undefined;
411
+ /**
412
+ * Start a real, LLM-driven AutoPhase run from a free-text goal. The host
413
+ * plans phases (each holding many todos), persists the phase-graph as
414
+ * per-project JSON, and drives the orchestrator — one subagent per task —
415
+ * in the background. Returns the built graph or an error.
416
+ */
417
+ onAutoPhaseStart?: (opts: {
418
+ goal: string;
419
+ projectContext?: string | undefined;
420
+ }) => Promise<{
421
+ ok: true;
422
+ graph: import('@wrongstack/core').PhaseGraph;
423
+ } | {
424
+ ok: false;
425
+ error: string;
426
+ }>;
427
+ onAutoPhasePause?: (() => void) | undefined;
428
+ onAutoPhaseResume?: (() => void) | undefined;
429
+ onAutoPhaseStop?: (() => void) | undefined;
430
+ /**
431
+ * Resume a persisted PhaseGraph. The host creates a new orchestrator for
432
+ * the loaded graph and starts executing pending tasks.
433
+ */
434
+ onAutoPhaseResumeFromGraph?: ((graph: import('@wrongstack/core').PhaseGraph) => Promise<void>) | undefined;
435
+ /** Live, read-only view of the running AutoPhase (null when idle). */
436
+ getAutoPhaseRunner?: () => {
437
+ graph: import('@wrongstack/core').PhaseGraph;
438
+ getProgress: () => import('@wrongstack/core').PhaseProgress | null;
439
+ isRunning: () => boolean;
440
+ } | null;
441
+ /** Interactive board: move a task to another phase (returns false when idle/invalid). */
442
+ onAutoPhaseMoveTask?: ((taskId: string, toPhaseId: string) => boolean) | undefined;
443
+ /** Interactive board: (re)assign a task to an agent (clear with both omitted). */
444
+ onAutoPhaseAssignTask?: ((taskId: string, agentId?: string, agentName?: string) => boolean) | undefined;
445
+ /** Interactive board: add a new task to a phase, returning its id (or null when idle). */
446
+ onAutoPhaseAddTask?: ((phaseId: string, spec: {
447
+ title: string;
448
+ description?: string;
449
+ type?: import('@wrongstack/core').TaskNode['type'];
450
+ priority?: import('@wrongstack/core').TaskNode['priority'];
451
+ }) => string | null) | undefined;
452
+ /** Interactive board: requeue a task to pending so it (re)runs. */
453
+ onAutoPhaseRetryTask?: ((taskId: string) => boolean) | undefined;
454
+ /**
455
+ * Manage git worktrees used for per-phase AutoPhase isolation.
456
+ * `list` shows current worktrees, `merge <branch>` squash-merges a branch
457
+ * into HEAD, `prune` removes stale entries, `clean` removes all
458
+ * wstack-managed worktrees + branches. Backs the /worktree command.
459
+ */
460
+ onWorktree?: (action: 'list' | 'merge' | 'prune' | 'clean', target?: string) => Promise<string>;
461
+ /**
462
+ * The session's global Brain arbiter (policy → LLM → human chain).
463
+ * `/brain ask <question>` consults it directly for decision support.
464
+ */
465
+ brain?: import('@wrongstack/core').BrainArbiter | undefined;
466
+ /**
467
+ * Live Brain autonomy settings — `/brain risk <level>` mutates
468
+ * `maxAutoRisk` in place and the tiered arbiter reads it on every decision.
469
+ */
470
+ brainSettings?: {
471
+ maxAutoRisk: import('@wrongstack/core').BrainAutoRisk;
472
+ } | undefined;
473
+ /** Recent Brain decisions (newest last) for `/brain status`. */
474
+ getBrainLog?: (() => ReadonlyArray<{
475
+ at: number;
476
+ kind: string;
477
+ question: string;
478
+ outcome: string;
479
+ }>) | undefined;
480
+ /** Config store for reading/writing config sections at runtime (e.g. settings menu). */
481
+ configStore: import('@wrongstack/core').ConfigStore;
482
+ /** Models registry for looking up provider/model capabilities. */
483
+ modelsRegistry?: import('@wrongstack/core').ModelsRegistry | undefined;
484
+ /** Terminal reader for interactive user input (e.g. settings menu, auth menu). */
485
+ reader: import('@wrongstack/core').InputReader;
486
+ /**
487
+ * Mutable ref for opening a TUI panel by dispatching its action type.
488
+ * The slash commands call `onPanelOpen.current(action)` to open panels.
489
+ * The TUI sets `onPanelOpen.current` to its actual dispatch function on mount.
490
+ * This indirection lets the TUI set the function after slash commands are registered.
491
+ */
492
+ onPanelOpen: {
493
+ current: ((action: string) => boolean) | null;
494
+ };
495
+ /**
496
+ * Tracks the active Shadow Agent subagent. Set by the host when a shadow
497
+ * agent is spawned; cleared when the shadow agent terminates. Used by
498
+ * /shadow start to reject spawn attempts when one is already running.
499
+ */
500
+ shadowController?: {
501
+ /** id of the currently active Shadow Agent subagent, or null if none */
502
+ activeId: string | null;
503
+ /** Register a new shadow agent id. Throws if one is already active. */
504
+ register(id: string): void;
505
+ /** Clear the active shadow agent id (called on termination). */
506
+ clear(): void;
507
+ /** Read per-session defaults used by the next /shadow start. */
508
+ getDefaults?: (() => {
509
+ intervalMs?: number;
510
+ provider?: string;
511
+ model?: string;
512
+ }) | undefined;
513
+ /** Update per-session defaults used by the next /shadow start. */
514
+ setDefaults?: ((defaults: {
515
+ intervalMs?: number;
516
+ provider?: string;
517
+ model?: string;
518
+ }) => void) | undefined;
519
+ } | undefined;
520
+ }
521
+ export type { ProjectFacts } from './helpers.js';
522
+ export { detectProjectFacts, renderAgentsTemplate } from './helpers.js';
523
+ export declare function buildBuiltinSlashCommands(opts: SlashCommandContext): SlashCommand[];
524
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slash-commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;IAC3B;gFAC4E;IAC5E,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,SAAS,CAAC,EAAE;QACV,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,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@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export declare function buildInitCommand(opts: SlashCommandContext): SlashCommand;
4
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/slash-commands/init.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA8ExE"}
@@ -0,0 +1,15 @@
1
+ import { type SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/interrupt` (aliases `/stop`, `/int`) — stop the current run and every
5
+ * subagent without reaching for ESC / Ctrl+C. Aborts the in-flight leader run
6
+ * via the surface-installed `interruptController` and kills the whole fleet via
7
+ * `onFleetKill`. `/interrupt all` is the same thing, spelled explicitly.
8
+ *
9
+ * In the TUI and WebUI a slash command dispatches even mid-run, so this stops a
10
+ * run that is wedged retrying a 429. In the plain REPL the prompt is blocked
11
+ * while a run is in flight, so there `/interrupt` is mostly useful at the prompt
12
+ * (Ctrl+C remains the mid-run path — it now also stops the fleet).
13
+ */
14
+ export declare function buildInterruptCommand(opts: SlashCommandContext): SlashCommand;
15
+ //# sourceMappingURL=interrupt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interrupt.d.ts","sourceRoot":"","sources":["../../src/slash-commands/interrupt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA6B7E"}
@@ -0,0 +1,4 @@
1
+ import { type SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ export declare function buildKanbanCommand(opts: SlashCommandContext): SlashCommand;
4
+ //# sourceMappingURL=kanban.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kanban.d.ts","sourceRoot":"","sources":["../../src/slash-commands/kanban.ts"],"names":[],"mappings":"AA2CA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAiTtD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAiN1E"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `/mailbox-demo` — Cross-session mailbox testing command.
3
+ *
4
+ * Demonstrates and tests inter-agent messaging across TUI and WebUI sessions
5
+ * sharing the same project directory. Allows listing online agents, sending
6
+ * test messages, and verifying cross-session delivery.
7
+ *
8
+ * Usage:
9
+ * /mailbox-demo status — show project mailbox path and online agents
10
+ * /mailbox-demo agents — list all registered agents in the project
11
+ * /mailbox-demo send <id> <msg> — send a test message to a specific agent
12
+ * /mailbox-demo broadcast <msg> — broadcast to all agents
13
+ * /mailbox-demo inbox — check messages for the demo agent
14
+ * /mailbox-demo clear — clear all messages for the demo agent
15
+ */
16
+ import type { SlashCommand } from '@wrongstack/core';
17
+ import type { SlashCommandContext } from './index.js';
18
+ export declare function buildMailboxDemoCommand(opts: SlashCommandContext): SlashCommand;
19
+ //# sourceMappingURL=mailbox-demo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mailbox-demo.d.ts","sourceRoot":"","sources":["../../src/slash-commands/mailbox-demo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AASrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA6BtD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CAwL/E"}
@@ -0,0 +1,20 @@
1
+ import type { SlashCommand } from '@wrongstack/core';
2
+ import type { SlashCommandContext } from './index.js';
3
+ /**
4
+ * `/mailbox-serve` — start the mailbox HTTP bridge from inside the REPL.
5
+ *
6
+ * Spawns `wstack mailbox serve` as a detached child process so the REPL
7
+ * stays interactive. The child prints its own bind URL + token path on
8
+ * stdout; we just confirm the spawn, surface the token path, and let
9
+ * the user know the bridge is up.
10
+ *
11
+ * /mailbox-serve # defaults: 127.0.0.1, OS-assigned port
12
+ * /mailbox-serve --host 0.0.0.0 # expose to LAN
13
+ * /mailbox-serve --port 9000 # pin port (with strict-port semantics)
14
+ *
15
+ * The slash command is a thin REPL-friendly wrapper — it does NOT
16
+ * duplicate the bridge logic. `wstack mailbox serve` is the single
17
+ * source of truth, including auth, route table, and shutdown semantics.
18
+ */
19
+ export declare function buildMailboxServeCommand(opts: SlashCommandContext): SlashCommand;
20
+ //# sourceMappingURL=mailbox-serve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mailbox-serve.d.ts","sourceRoot":"","sources":["../../src/slash-commands/mailbox-serve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,mBAAmB,GAAG,YAAY,CA0IhF"}