@wrongstack/cli 0.313.0 → 0.316.1

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 (235) hide show
  1. package/dist/{acp-LQMSMV32.js → acp-CEQINXWB.js} +2 -2
  2. package/dist/acp-registry-cache.d.ts +0 -2
  3. package/dist/acp-server-agent.d.ts +2 -1
  4. package/dist/arg-parser.d.ts +2 -1
  5. package/dist/{auth-VQMSZGKE.js → auth-GZ5A5OF5.js} +3 -3
  6. package/dist/auth-menu/local.d.ts +3 -2
  7. package/dist/boot/boot-auto-thin.d.ts +44 -0
  8. package/dist/boot/brain-decision-log.d.ts +2 -1
  9. package/dist/boot/config-backup-recovery.d.ts +2 -6
  10. package/dist/boot/dispatch-singleshot.d.ts +2 -1
  11. package/dist/boot/dispatch-webui.d.ts +5 -1
  12. package/dist/boot/event-wiring.d.ts +1 -1
  13. package/dist/boot/execution-mode.d.ts +2 -1
  14. package/dist/boot/governance-shadow-bridge.d.ts +4 -3
  15. package/dist/boot/governance-trace-context.d.ts +4 -4
  16. package/dist/boot/launch-menu.d.ts +2 -2
  17. package/dist/boot/system-prompt-builder.d.ts +1 -1
  18. package/dist/boot/system-prompt-menu.d.ts +10 -58
  19. package/dist/boot/system-prompt.d.ts +3 -3
  20. package/dist/boot/tool-registry.d.ts +3 -1
  21. package/dist/boot/tui-coordinator-callbacks.d.ts +2 -1
  22. package/dist/boot/tui-coordinator-setup.d.ts +3 -2
  23. package/dist/boot/tui-goal-wiring.d.ts +2 -1
  24. package/dist/boot/tui-live-sessions.d.ts +3 -1
  25. package/dist/boot/tui-session-resume.d.ts +82 -10
  26. package/dist/boot/tui-session-stub-enrich.d.ts +7 -1
  27. package/dist/boot/tui-settings-adapter.d.ts +3 -2
  28. package/dist/boot/tui-theme-adapter.d.ts +3 -2
  29. package/dist/boot/webui-session-child.d.ts +2 -12
  30. package/dist/boot-auto-thin-BZ675EVT.js +102 -0
  31. package/dist/boot-config.d.ts +1 -1
  32. package/dist/brain-menu/panel-service.d.ts +2 -1
  33. package/dist/chimera-cascade-evidence.d.ts +4 -21
  34. package/dist/chimera-review-task.d.ts +0 -7
  35. package/dist/chimera-subagent-ladder.d.ts +2 -2
  36. package/dist/{chunk-USYOJIV2.js → chunk-32MTOI2I.js} +2 -2
  37. package/dist/{chunk-CNQZ4HG4.js → chunk-37SPPLUD.js} +57 -8
  38. package/dist/chunk-ALE5KHCA.js +1 -0
  39. package/dist/{chunk-GWVLRUVH.js → chunk-G3IMKQRH.js} +25 -6
  40. package/dist/{chunk-BZJ4MP32.js → chunk-GKHUHAIK.js} +8 -3
  41. package/dist/{chunk-3JPTNADJ.js → chunk-GPPRNAKW.js} +1 -1
  42. package/dist/{chunk-KE7E7DPX.js → chunk-HXJYHAR4.js} +1 -1
  43. package/dist/{chunk-X3N5TS2S.js → chunk-JACOMTIH.js} +2 -76
  44. package/dist/{chunk-DGXNL7OT.js → chunk-JHUJUIOH.js} +1 -18
  45. package/dist/{chunk-WOTGMHAH.js → chunk-KG4X5F7Z.js} +1 -1
  46. package/dist/{chunk-NUIHRGPY.js → chunk-NV3JDK4F.js} +1 -1
  47. package/dist/{chunk-E3X4KM7T.js → chunk-NZZOYLQ7.js} +5 -10
  48. package/dist/{chunk-H6C7SO5H.js → chunk-QC5I4VWZ.js} +1 -1
  49. package/dist/chunk-SXJTVNWF.js +78 -0
  50. package/dist/{chunk-AOAIPYFB.js → chunk-SYIBTG3X.js} +2 -2
  51. package/dist/{chunk-PKHGLWUJ.js → chunk-T642Q732.js} +5 -4
  52. package/dist/{chunk-BGFM3PD7.js → chunk-UZ2TMHNH.js} +1 -1
  53. package/dist/{chunk-4S52MIIM.js → chunk-VXCCBI2W.js} +2 -2
  54. package/dist/{chunk-FKWHSFX4.js → chunk-XYKYXFEE.js} +1 -1
  55. package/dist/cli-entry-point.d.ts +9 -0
  56. package/dist/cli-eternal-flag.d.ts +1 -1
  57. package/dist/{cli-main-BFUSCWXE.js → cli-main-IEAM6SK7.js} +3692 -1619
  58. package/dist/cli-main-helpers.d.ts +3 -3
  59. package/dist/config-doctor.d.ts +34 -3
  60. package/dist/context-limit.d.ts +4 -3
  61. package/dist/{diag-doctor-OPTB2NWY.js → diag-doctor-LFCCBPMD.js} +3 -3
  62. package/dist/execute-deps.d.ts +36 -7
  63. package/dist/{execution-TOBPK6MD.js → execution-TZUGCKFU.js} +462 -78
  64. package/dist/execution-chimera-cascade.d.ts +1 -1
  65. package/dist/execution-chimera-review.d.ts +1 -1
  66. package/dist/execution-cleanup.d.ts +2 -1
  67. package/dist/execution-kanban-dispatch.d.ts +2 -1
  68. package/dist/execution-repl-fleet-callbacks.d.ts +3 -2
  69. package/dist/fleet/budget-source.d.ts +2 -1
  70. package/dist/fleet/host-context.d.ts +8 -1
  71. package/dist/fleet/host-director-event-bridges.d.ts +28 -3
  72. package/dist/fleet/host-event-bridge.d.ts +6 -1
  73. package/dist/fleet/host-explore-companion-registry.d.ts +60 -0
  74. package/dist/fleet/host-explore-companion.d.ts +7 -3
  75. package/dist/fleet/host-provider.d.ts +2 -1
  76. package/dist/fleet/host-session-writer.d.ts +9 -1
  77. package/dist/fleet/host-shadow-manager.d.ts +82 -20
  78. package/dist/fleet/host-shadow-pass.d.ts +9 -1
  79. package/dist/fleet/host-spawn-types.d.ts +9 -0
  80. package/dist/fleet/host-status.d.ts +2 -1
  81. package/dist/fleet/host-subagent-factory.d.ts +2 -1
  82. package/dist/fleet/host-subagent-session-audit.d.ts +56 -0
  83. package/dist/fleet/host-supervisor.d.ts +11 -1
  84. package/dist/fleet/host-task-result-report.d.ts +2 -1
  85. package/dist/fleet/host.d.ts +38 -6
  86. package/dist/fleet/status-broadcast.d.ts +2 -1
  87. package/dist/fleet-statusline.d.ts +2 -1
  88. package/dist/goal-host.d.ts +3 -2
  89. package/dist/{governance-V2Z42RBE.js → governance-JSGHHA2R.js} +1 -1
  90. package/dist/governance-hq-telemetry.d.ts +2 -2
  91. package/dist/{hq-2XIXGAER.js → hq-NDTJRRX3.js} +3 -3
  92. package/dist/hq-publisher.d.ts +1 -1
  93. package/dist/hq-recovery-html.d.ts +1 -6
  94. package/dist/hq-server/auth-state.d.ts +2 -1
  95. package/dist/hq-server/auth.d.ts +3 -2
  96. package/dist/hq-server/login-attempt-store.d.ts +2 -1
  97. package/dist/hq-server/mailbox-gateway-manager.d.ts +2 -1
  98. package/dist/hq-server/preflight.d.ts +3 -2
  99. package/dist/hq-server/server-lifecycle.d.ts +2 -1
  100. package/dist/hq-server/snapshot.d.ts +0 -9
  101. package/dist/hq-server/startup.d.ts +2 -3
  102. package/dist/hq-server/types.d.ts +2 -2
  103. package/dist/hq-server/upgrade-handler.d.ts +2 -1
  104. package/dist/hq-server/ws-leader.d.ts +0 -6
  105. package/dist/{hq-server-DBT3OOYD.js → hq-server-OH3SPSE2.js} +3 -13
  106. package/dist/hq-server.d.ts +1 -6
  107. package/dist/hq-static-serve.d.ts +2 -1
  108. package/dist/{hq-ttl-U2FAYFAT.js → hq-ttl-KUO3AU7X.js} +2 -2
  109. package/dist/{hq-tunnel-RFKGC4HI.js → hq-tunnel-LO55RCZE.js} +1 -1
  110. package/dist/hq-tunnel.d.ts +2 -1
  111. package/dist/index.js +113 -109
  112. package/dist/input-reader.d.ts +2 -1
  113. package/dist/kanban-dispatch-route.d.ts +27 -2
  114. package/dist/kanban-hq-sync.d.ts +2 -1
  115. package/dist/launch-hints.d.ts +2 -1
  116. package/dist/live-settings-input.d.ts +5 -0
  117. package/dist/mailbox-bridge-bootstrap.d.ts +2 -3
  118. package/dist/{mailbox-serve-5S3PHG5D.js → mailbox-serve-VKQIRCCB.js} +47 -28
  119. package/dist/{mcp-RRPKNRSN.js → mcp-AQKSASHD.js} +1 -1
  120. package/dist/mcp-serve.d.ts +2 -1
  121. package/dist/{modeldiag-H6DKWJ2N.js → modeldiag-4NYBRSFP.js} +1 -1
  122. package/dist/next-task-predictor.d.ts +3 -2
  123. package/dist/permission-prompt.d.ts +2 -1
  124. package/dist/picker.d.ts +0 -18
  125. package/dist/plugin-management.d.ts +3 -14
  126. package/dist/{plugin-usage-GCTYOZPH.js → plugin-usage-AP7SJCDA.js} +2 -2
  127. package/dist/{plugins-EEKHCMBE.js → plugins-HQ5FU2AM.js} +3 -5
  128. package/dist/preflight.d.ts +2 -1
  129. package/dist/{proxy-wiring-G26YGP7S.js → proxy-wiring-EQB5X5YH.js} +3 -3
  130. package/dist/renderer.d.ts +18 -1
  131. package/dist/repl-client-registration.d.ts +2 -1
  132. package/dist/repl.d.ts +1 -1
  133. package/dist/{replay-XU6ZD7GM.js → replay-FJ2JBXUA.js} +1 -1
  134. package/dist/{sdd-runtime-GFZ3NJKS.js → sdd-runtime-FLKCSTYV.js} +3 -5
  135. package/dist/services/commit-message.d.ts +2 -1
  136. package/dist/services/sdd/state.d.ts +0 -2
  137. package/dist/services/sdd-runtime.d.ts +1 -1
  138. package/dist/services/statusline-config.d.ts +27 -4
  139. package/dist/session-event-wiring.d.ts +3 -5
  140. package/dist/{sessions-config-7Q7QJBKJ.js → sessions-config-P2LK2L32.js} +5 -1
  141. package/dist/sessions-doctor-EXHAZSSE.js +146 -0
  142. package/dist/settings-menu.d.ts +2 -1
  143. package/dist/shutdown-cleanup.d.ts +3 -2
  144. package/dist/{simpleui-dist-33VO3QHF.js → simpleui-dist-JKNRCRRK.js} +1 -1
  145. package/dist/simpleui-dist.d.ts +3 -2
  146. package/dist/slash-commands/brain-council.d.ts +0 -4
  147. package/dist/slash-commands/brain-status.d.ts +0 -1
  148. package/dist/slash-commands/command-context.d.ts +16 -2
  149. package/dist/slash-commands/fix-classifier.d.ts +2 -1
  150. package/dist/slash-commands/kanban-agent-helpers.d.ts +2 -1
  151. package/dist/slash-commands/kanban-board-handlers.d.ts +2 -1
  152. package/dist/slash-commands/kanban-lifecycle-diagnostics.d.ts +2 -1
  153. package/dist/slash-commands/kanban-task-subcommands.d.ts +0 -1
  154. package/dist/slash-commands/memory-audience.d.ts +1 -10
  155. package/dist/slash-commands/memory-flags.d.ts +2 -1
  156. package/dist/slash-commands/sdd-command-helpers.d.ts +3 -2
  157. package/dist/slash-commands/sdd.d.ts +2 -2
  158. package/dist/slash-commands/settings-mutations.d.ts +0 -1
  159. package/dist/slash-commands/sidebar.d.ts +4 -0
  160. package/dist/slash-commands/statusline.d.ts +4 -4
  161. package/dist/slash-commands/telegram-pairing.d.ts +2 -2
  162. package/dist/slash-commands/telegram-setup.d.ts +2 -1
  163. package/dist/slash-commands/tier.d.ts +13 -0
  164. package/dist/subcommands/handlers/acp-connection-gate.d.ts +4 -3
  165. package/dist/subcommands/handlers/bench-run-help.d.ts +3 -8
  166. package/dist/subcommands/handlers/daemon-inventory.d.ts +3 -2
  167. package/dist/subcommands/handlers/governance.d.ts +2 -1
  168. package/dist/subcommands/handlers/model-smoke-test.d.ts +3 -2
  169. package/dist/subcommands/handlers/modeldiag-eval.d.ts +0 -4
  170. package/dist/subcommands/handlers/modeldiag-profiles.d.ts +1 -1
  171. package/dist/subcommands/handlers/models-add-help.d.ts +3 -8
  172. package/dist/subcommands/handlers/sessions-doctor.d.ts +3 -0
  173. package/dist/subcommands/handlers/update.d.ts +1 -1
  174. package/dist/terminal-format.d.ts +3 -2
  175. package/dist/tui-resource-menus.d.ts +2 -1
  176. package/dist/tuneup.d.ts +5 -5
  177. package/dist/{update-ZXNC6I6G.js → update-XKARO3CY.js} +3 -3
  178. package/dist/{update-check-WARHSVZA.js → update-check-LICQNYFK.js} +2 -2
  179. package/dist/update-check.d.ts +1 -1
  180. package/dist/utils/hq-ttl.d.ts +2 -1
  181. package/dist/webui-server/connection-handler.d.ts +34 -2
  182. package/dist/webui-server/prefs-seeding.d.ts +11 -1
  183. package/dist/webui-server/route-contexts.d.ts +45 -5
  184. package/dist/webui-server/session-start-payload.d.ts +13 -0
  185. package/dist/webui-server/setup-events.d.ts +14 -1
  186. package/dist/{webui-server-I53IYBW4.js → webui-server-LZOEH7O6.js} +374 -169
  187. package/dist/webui-server-options.d.ts +30 -4
  188. package/dist/wiring/brain-and-orchestration.d.ts +3 -3
  189. package/dist/wiring/cli-execute-builder.d.ts +3 -0
  190. package/dist/wiring/cli-heap-watchdog.d.ts +2 -1
  191. package/dist/wiring/cli-prompt-and-tools-setup.d.ts +10 -8
  192. package/dist/wiring/codebase-index.d.ts +2 -1
  193. package/dist/wiring/command-host-state.d.ts +61 -5
  194. package/dist/wiring/controllers.d.ts +3 -4
  195. package/dist/wiring/dep-watcher-bridge.d.ts +3 -2
  196. package/dist/wiring/dep-watcher.d.ts +2 -1
  197. package/dist/wiring/design-studio.d.ts +2 -1
  198. package/dist/wiring/director-setup.d.ts +3 -2
  199. package/dist/wiring/domain-terms-mirror.d.ts +2 -1
  200. package/dist/wiring/external-plugins.d.ts +3 -2
  201. package/dist/wiring/fleet-command-handlers.d.ts +2 -2
  202. package/dist/wiring/heap-watchdog-setup.d.ts +2 -1
  203. package/dist/wiring/hq-telemetry.d.ts +3 -2
  204. package/dist/wiring/lifecycle-plugins.d.ts +2 -2
  205. package/dist/wiring/management-tools.d.ts +30 -2
  206. package/dist/wiring/metrics.d.ts +2 -2
  207. package/dist/wiring/plugins.d.ts +0 -1
  208. package/dist/wiring/prompt-journal-recorder.d.ts +1 -1
  209. package/dist/wiring/provider-runtime-setup.d.ts +9 -2
  210. package/dist/wiring/provider-runtime.d.ts +23 -3
  211. package/dist/wiring/provider-status.d.ts +2 -1
  212. package/dist/wiring/provider-utility-tools.d.ts +2 -1
  213. package/dist/wiring/provider.d.ts +2 -1
  214. package/dist/wiring/replay-governance-setup.d.ts +2 -1
  215. package/dist/wiring/replay.d.ts +2 -1
  216. package/dist/wiring/resume-candidate.d.ts +27 -0
  217. package/dist/wiring/runtime-controller-deps.d.ts +8 -1
  218. package/dist/wiring/runtime-dispatch-state.d.ts +2 -1
  219. package/dist/wiring/runtime-lifecycle-deps.d.ts +2 -1
  220. package/dist/wiring/runtime-picker-deps.d.ts +2 -1
  221. package/dist/wiring/session-command-handlers.d.ts +2 -2
  222. package/dist/wiring/session-establishment.d.ts +2 -1
  223. package/dist/wiring/session-registry.d.ts +3 -2
  224. package/dist/wiring/session-runtime.d.ts +1 -1
  225. package/dist/wiring/slash-commands.d.ts +5 -4
  226. package/dist/wiring/teardown-registrar.d.ts +3 -2
  227. package/dist/wiring/vector-memory-setup.d.ts +3 -2
  228. package/dist/wiring/wrongtrace-hooks.d.ts +1 -1
  229. package/dist/wiring/wrongtrace-telemetry.d.ts +2 -1
  230. package/dist/{wrongtrace-telemetry-6M2CCBX5.js → wrongtrace-telemetry-FNLANZ5I.js} +1 -1
  231. package/package.json +30 -30
  232. package/dist/auth-menu.d.ts +0 -7
  233. package/dist/chunk-WHOIR577.js +0 -1
  234. package/dist/webui-server/terminal-log-view.d.ts +0 -47
  235. package/dist/wiring/tools.d.ts +0 -29
@@ -2,7 +2,7 @@ import type { FallbackProfileManager } from '@wrongstack/core/agent';
2
2
  import { ProviderModelStatusTracker } from '@wrongstack/core/coordination';
3
3
  import type { EventBus } from '@wrongstack/core/kernel';
4
4
  import type { WstackPaths } from '@wrongstack/core/utils';
5
- export interface ProviderStatusInput {
5
+ interface ProviderStatusInput {
6
6
  events: EventBus;
7
7
  paths: WstackPaths;
8
8
  fallbackProfileManager: FallbackProfileManager;
@@ -13,4 +13,5 @@ export interface ProviderStatusInput {
13
13
  teardownHandlers: Array<() => void>;
14
14
  }
15
15
  export declare function setupProviderStatus(input: ProviderStatusInput): Promise<ProviderModelStatusTracker>;
16
+ export {};
16
17
  //# sourceMappingURL=provider-status.d.ts.map
@@ -5,7 +5,7 @@ import { type CouncilPersonaRegistry, type CouncilProfileRegistry } from '@wrong
5
5
  import { createContextManagerTool } from '@wrongstack/core/infrastructure';
6
6
  import type { ToolRegistry } from '@wrongstack/core/registry';
7
7
  import type { Config, CouncilToolConfig, OneShotModelRouter, Provider } from '@wrongstack/core/types';
8
- export interface ProviderUtilityToolsInput {
8
+ interface ProviderUtilityToolsInput {
9
9
  toolRegistry: ToolRegistry;
10
10
  buildProvider: (providerId: string) => Provider;
11
11
  getConfig: () => Config;
@@ -48,4 +48,5 @@ export declare function buildCouncilRegistries(cfg: CouncilToolConfig | undefine
48
48
  maxConcurrency?: number | undefined;
49
49
  };
50
50
  export declare function registerProviderUtilityTools(input: ProviderUtilityToolsInput): void;
51
+ export {};
51
52
  //# sourceMappingURL=provider-utility-tools.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { ProviderRegistry } from '@wrongstack/core/registry';
2
2
  import type { ResolvedProvider } from '@wrongstack/core/types';
3
3
  import { type Config, type Logger, type ModelsRegistry } from '@wrongstack/core/types';
4
- export interface ProviderSetupResult {
4
+ interface ProviderSetupResult {
5
5
  resolvedProvider: ResolvedProvider | undefined;
6
6
  provider: ReturnType<ProviderRegistry['create']>;
7
7
  providerRegistry: ProviderRegistry;
@@ -11,4 +11,5 @@ export declare function setupProvider(params: {
11
11
  modelsRegistry: ModelsRegistry;
12
12
  logger: Logger;
13
13
  }): Promise<ProviderSetupResult>;
14
+ export {};
14
15
  //# sourceMappingURL=provider.d.ts.map
@@ -2,7 +2,7 @@ import type { Container, EventBus } from '@wrongstack/core/kernel';
2
2
  import type { WstackPaths } from '@wrongstack/core/utils';
3
3
  import type { Logger, MemoryPort, SessionStore } from '@wrongstack/core/types';
4
4
  import { type CliFlags } from '../boot/simpleui-full-auto.js';
5
- export interface SetupReplayAndGovernanceOptions {
5
+ interface SetupReplayAndGovernanceOptions {
6
6
  flags: CliFlags;
7
7
  container: Container;
8
8
  wpaths: WstackPaths;
@@ -28,4 +28,5 @@ export interface SetupReplayAndGovernanceOptions {
28
28
  export declare function setupReplayAndGovernance({ flags, container, wpaths, projectRoot, session, sessionRef, logger, events, planPath, sessionStore, context, traceId, memoryStore, }: SetupReplayAndGovernanceOptions): Promise<{
29
29
  governanceHandle: import("../cli-main-helpers.js").CliGovernanceRuntimeHandle | undefined;
30
30
  }>;
31
+ export {};
31
32
  //# sourceMappingURL=replay-governance-setup.d.ts.map
@@ -29,7 +29,7 @@ import type { WstackPaths } from '@wrongstack/core/utils';
29
29
  * has to be in place before the first `run()` — which is what lets `--record`
30
30
  * name the real session instead of inventing one.
31
31
  */
32
- export interface BindReplayOptions {
32
+ interface BindReplayOptions {
33
33
  container: Container;
34
34
  wpaths: WstackPaths;
35
35
  /**
@@ -42,4 +42,5 @@ export interface BindReplayOptions {
42
42
  logger?: Logger | undefined;
43
43
  }
44
44
  export declare function bindReplayToContainer(opts: BindReplayOptions): void;
45
+ export {};
45
46
  //# sourceMappingURL=replay.d.ts.map
@@ -0,0 +1,27 @@
1
+ import type { SessionStore } from '@wrongstack/core/types';
2
+ export interface PickResumeCandidateOptions {
3
+ /** `wpaths.projectSessions` — where this project's transcripts live. */
4
+ sessionsDir: string;
5
+ /** `wpaths.globalRoot` — the registry of sessions live in other processes. */
6
+ globalRoot: string;
7
+ sessionStore: Pick<SessionStore, 'list'>;
8
+ /** true for `--recover` (unclosed only), false for a bare `--resume`. */
9
+ unclosedOnly: boolean;
10
+ }
11
+ export declare function pickResumeCandidate(options: PickResumeCandidateOptions): Promise<string | undefined>;
12
+ export interface AnnounceRecoverableOptions {
13
+ sessionsDir: string;
14
+ globalRoot: string;
15
+ onHint: (message: string) => void;
16
+ }
17
+ /**
18
+ * Mention the most recent unclosed session, once, at boot.
19
+ *
20
+ * A crash used to be indistinguishable from a normal start: the transcript sat
21
+ * on disk and nothing ever said so, so the user retyped work that was already
22
+ * recorded. This says it — and only says it. It never prompts, never blocks the
23
+ * boot, and never resumes anything on its own, because a launch that stops to
24
+ * ask a question is worse than one that starts fresh.
25
+ */
26
+ export declare function announceRecoverableSession(options: AnnounceRecoverableOptions): Promise<void>;
27
+ //# sourceMappingURL=resume-candidate.d.ts.map
@@ -5,10 +5,13 @@ import type { AuditLevel } from '@wrongstack/core/storage';
5
5
  import type { Config, LogLevel, Provider } from '@wrongstack/core/types';
6
6
  import type { ControllerDeps } from '../execute-deps.js';
7
7
  import type { AutonomyMode } from '../services/autonomy-mode.js';
8
- export interface RuntimeControllerDepsInput {
8
+ interface RuntimeControllerDepsInput {
9
9
  interruptController: ControllerDeps['interruptController'];
10
10
  enhanceController: ControllerDeps['enhanceController'];
11
11
  getEnhancerReasoning: ControllerDeps['getEnhancerReasoning'];
12
+ /** Effort levels the active model documents (see ControllerDeps). Optional
13
+ * to mirror ControllerDeps — hosts without catalog metadata omit it. */
14
+ getActiveModelReasoningEffortLevels?: ControllerDeps['getActiveModelReasoningEffortLevels'];
12
15
  buildProviderForModel: (providerId: string, modelId: string) => Promise<Provider>;
13
16
  context: Context;
14
17
  getConfig: () => Config;
@@ -16,6 +19,9 @@ export interface RuntimeControllerDepsInput {
16
19
  statuslineHiddenItems: ControllerDeps['statuslineHiddenItems'];
17
20
  setStatuslineHiddenItems: ControllerDeps['setStatuslineHiddenItems'];
18
21
  saveStatuslineHiddenItems: ControllerDeps['saveStatuslineHiddenItems'];
22
+ statuslineLines?: ControllerDeps['statuslineLines'];
23
+ setStatuslineLines?: ControllerDeps['setStatuslineLines'];
24
+ saveStatuslineLines?: ControllerDeps['saveStatuslineLines'];
19
25
  getYolo: NonNullable<ControllerDeps['getYolo']>;
20
26
  onYolo: NonNullable<ControllerDeps['onYolo']>;
21
27
  getAutonomy: () => AutonomyMode;
@@ -38,4 +44,5 @@ export interface RuntimeControllerDepsInput {
38
44
  getSessionId: () => string;
39
45
  }
40
46
  export declare function createRuntimeControllerDeps(input: RuntimeControllerDepsInput): ControllerDeps;
47
+ export {};
41
48
  //# sourceMappingURL=runtime-controller-deps.d.ts.map
@@ -5,7 +5,7 @@ import type { ToolRegistry } from '@wrongstack/core/registry';
5
5
  import type { Config, ConfigStore, MemoryPort } from '@wrongstack/core/types';
6
6
  import type { PluginPickerItem, ToolPickerItem } from '../execute-deps.js';
7
7
  import { setupSage } from './sage.js';
8
- export interface RuntimeDispatchStateInput {
8
+ interface RuntimeDispatchStateInput {
9
9
  getConfig: () => Config;
10
10
  setConfig: (config: Config) => void;
11
11
  configStore: ConfigStore;
@@ -31,4 +31,5 @@ export declare function prepareRuntimeDispatch(input: RuntimeDispatchStateInput)
31
31
  }>;
32
32
  getToolItems: () => ToolPickerItem[];
33
33
  }>;
34
+ export {};
34
35
  //# sourceMappingURL=runtime-dispatch-state.d.ts.map
@@ -7,7 +7,7 @@ import type { AutonomyStage, Config } from '@wrongstack/core/types';
7
7
  import type { SddRunRegistry } from '@wrongstack/sdd';
8
8
  import type { LifecycleDeps } from '../execute-deps.js';
9
9
  import type { SessionStats } from '../session-stats.js';
10
- export interface RuntimeLifecycleDepsInput {
10
+ interface RuntimeLifecycleDepsInput {
11
11
  getConfig: () => Config;
12
12
  context: Context;
13
13
  getCurrentSuggestions: () => string[];
@@ -36,4 +36,5 @@ export interface RuntimeLifecycleDepsInput {
36
36
  };
37
37
  }
38
38
  export declare function createRuntimeLifecycleDeps(input: RuntimeLifecycleDepsInput): LifecycleDeps;
39
+ export {};
39
40
  //# sourceMappingURL=runtime-lifecycle-deps.d.ts.map
@@ -2,7 +2,7 @@ import type { ToolRegistry } from '@wrongstack/core/registry';
2
2
  import type { Config, ConfigStore } from '@wrongstack/core/types';
3
3
  import type { MCPRegistry } from '@wrongstack/mcp';
4
4
  import type { PickerDeps, PluginPickerItem, ToolPickerItem } from '../execute-deps.js';
5
- export interface RuntimePickerDepsInput {
5
+ interface RuntimePickerDepsInput {
6
6
  getConfig: () => Config;
7
7
  setConfig: (config: Config) => void;
8
8
  profileConfigPath: string;
@@ -18,4 +18,5 @@ export interface RuntimePickerDepsInput {
18
18
  getBrainLog: NonNullable<PickerDeps['getBrainLog']>;
19
19
  }
20
20
  export declare function createRuntimePickerDeps(input: RuntimePickerDepsInput): PickerDeps;
21
+ export {};
21
22
  //# sourceMappingURL=runtime-picker-deps.d.ts.map
@@ -7,14 +7,14 @@ import type { MultiAgentHost } from '../multi-agent.js';
7
7
  import type { SessionStats } from '../session-stats.js';
8
8
  import type { BuiltinSlashCommandDeps } from './slash-commands.js';
9
9
  type SlashCommandDeps = BuiltinSlashCommandDeps;
10
- export type SessionCommandHandlers = Pick<SlashCommandDeps, 'onPlugin' | 'onContextLimit' | 'onMcp' | 'mcpRegistry' | 'mcpStatus' | 'onYolo' | 'onNextPredict' | 'onSuggestions' | 'onExit' | 'onBeforeExit' | 'onClear' | 'onNewSession' | 'onDiag' | 'onStats' | 'generateCommitMessage' | 'onDispatchClassify'>;
10
+ type SessionCommandHandlers = Pick<SlashCommandDeps, 'onPlugin' | 'onContextLimit' | 'onMcp' | 'mcpRegistry' | 'mcpStatus' | 'onYolo' | 'onNextPredict' | 'onSuggestions' | 'onExit' | 'onBeforeExit' | 'onClear' | 'onNewSession' | 'onDiag' | 'onStats' | 'generateCommitMessage' | 'onDispatchClassify'>;
11
11
  interface ErrorRecord {
12
12
  ts: string;
13
13
  phase: string;
14
14
  code: string;
15
15
  message: string;
16
16
  }
17
- export interface SessionCommandHandlersInput {
17
+ interface SessionCommandHandlersInput {
18
18
  getConfig: () => Config;
19
19
  setConfig: (config: Config) => void;
20
20
  configStore: ConfigStore;
@@ -1,7 +1,7 @@
1
1
  import type { CliContext } from '../cli-context.js';
2
2
  import type { loadOnlineAgentsForPrompt } from '../cli-main-helpers.js';
3
3
  import { setupSession } from './session.js';
4
- export interface SessionEstablishmentArgs {
4
+ interface SessionEstablishmentArgs {
5
5
  /** Container used to resolve SessionStore + TokenCounter. */
6
6
  container: Pick<CliContext['container'], 'resolve'>;
7
7
  config: {
@@ -42,4 +42,5 @@ export declare function setupSessionEstablishment(args: SessionEstablishmentArgs
42
42
  * (runCliExecution, multi-agent setup read traceId/resumed* off it). */
43
43
  sessResult: import("./session.js").SessionResult;
44
44
  }>;
45
+ export {};
45
46
  //# sourceMappingURL=session-establishment.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { EventBus } from '@wrongstack/core/kernel';
2
- export interface SetupSessionRegistryDeps {
2
+ interface SetupSessionRegistryDeps {
3
3
  wpaths: {
4
4
  globalRoot: string;
5
5
  projectDir: string;
@@ -18,7 +18,7 @@ export interface SetupSessionRegistryDeps {
18
18
  tuiOwnsScreen: boolean;
19
19
  events: EventBus;
20
20
  }
21
- export interface SetupSessionRegistryResult {
21
+ interface SetupSessionRegistryResult {
22
22
  /** AgentStatusTracker when the dynamic import and setup succeeded, else undefined. */
23
23
  tracker: InstanceType<typeof import('@wrongstack/core/coordination').AgentStatusTracker> | undefined;
24
24
  /**
@@ -35,4 +35,5 @@ export interface SessionIdentityTarget {
35
35
  gitBranch?: string | undefined;
36
36
  }
37
37
  export declare function setupSessionRegistry(deps: SetupSessionRegistryDeps): Promise<SetupSessionRegistryResult>;
38
+ export {};
38
39
  //# sourceMappingURL=session-registry.d.ts.map
@@ -25,7 +25,7 @@ import { SessionStats } from '../session-stats.js';
25
25
  import type { setupReplayAndGovernance } from './replay-governance-setup.js';
26
26
  type WireArgs = Parameters<typeof wireSessionEvents>[0];
27
27
  type GovernanceHandle = Awaited<ReturnType<typeof setupReplayAndGovernance>>['governanceHandle'];
28
- export interface SessionRuntimeArgs {
28
+ interface SessionRuntimeArgs {
29
29
  evOn: WireArgs['evOn'];
30
30
  events: NonNullable<WireArgs['events']>;
31
31
  /** Live config binding; provider/model are read once at setup time. */
@@ -4,12 +4,12 @@ import type { SlashCommandRegistry, ToolRegistry } from '@wrongstack/core/regist
4
4
  import type { CompactReport, ConfigStore, HealthRegistry, InputReader, MemoryPort, MetricsSink, ModeStore, Provider, Renderer, SecretVault, SessionStore, SkillLoader, TokenCounter } from '@wrongstack/core/types';
5
5
  import type { WstackPaths } from '@wrongstack/core/utils';
6
6
  import type { MultiAgentHost } from '../multi-agent.js';
7
- import { type StatuslineConfig } from '../services/statusline-config.js';
7
+ import { type StatuslineDocument } from '../services/statusline-config.js';
8
8
  import { buildBuiltinSlashCommands } from '../slash-commands/index.js';
9
9
  export type BuiltinSlashCommandDeps = Parameters<typeof buildBuiltinSlashCommands>[0];
10
10
  /** Canonical bridge into the slash-command catalog for non-command hosts. */
11
11
  export declare function buildCommandHostSlashCommands(deps: BuiltinSlashCommandDeps): ReturnType<typeof buildBuiltinSlashCommands>;
12
- export interface SlashCommandsDeps {
12
+ interface SlashCommandsDeps {
13
13
  slashRegistry: SlashCommandRegistry;
14
14
  toolRegistry: ToolRegistry;
15
15
  paths: WstackPaths;
@@ -77,8 +77,9 @@ export interface SlashCommandsDeps {
77
77
  };
78
78
  }
79
79
  export interface StatuslineConfigDeps {
80
- get(): Promise<StatuslineConfig>;
81
- set(cfg: StatuslineConfig): Promise<void>;
80
+ get(): Promise<StatuslineDocument>;
81
+ set(cfg: StatuslineDocument): Promise<void>;
82
82
  }
83
83
  export declare function setupSlashCommands(params: SlashCommandsDeps): Promise<void>;
84
+ export {};
84
85
  //# sourceMappingURL=slash-commands.d.ts.map
@@ -21,7 +21,7 @@
21
21
  */
22
22
  import type { VectorMemoryStore } from '@wrongstack/vector-memory';
23
23
  import { createTeardownEventRegistrar } from '../cli-main-helpers.js';
24
- export interface TeardownRegistrarArgs {
24
+ interface TeardownRegistrarArgs {
25
25
  flags: {
26
26
  tui?: unknown;
27
27
  'no-tui'?: unknown;
@@ -33,9 +33,10 @@ export interface TeardownRegistrarArgs {
33
33
  teardownHandlers: Array<() => void>;
34
34
  vectorMemoryStore: VectorMemoryStore | undefined;
35
35
  }
36
- export interface TeardownRegistrarResult {
36
+ interface TeardownRegistrarResult {
37
37
  tuiOwnsScreen: boolean;
38
38
  evOn: ReturnType<typeof createTeardownEventRegistrar>;
39
39
  }
40
40
  export declare function setupTeardownRegistrar(args: TeardownRegistrarArgs): TeardownRegistrarResult;
41
+ export {};
41
42
  //# sourceMappingURL=teardown-registrar.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { MemoryPort } from '@wrongstack/core/types';
2
2
  import { VectorMemoryStore } from '@wrongstack/vector-memory';
3
- export interface VectorMemoryArgs {
3
+ interface VectorMemoryArgs {
4
4
  projectRoot: string;
5
5
  flags: {
6
6
  'vector-sync'?: unknown;
@@ -15,7 +15,7 @@ export interface VectorMemoryArgs {
15
15
  /** Disposer chain; the mirror-dispose handler is pushed from inside. */
16
16
  teardownHandlers: Array<() => void>;
17
17
  }
18
- export interface VectorMemoryResult {
18
+ interface VectorMemoryResult {
19
19
  memoryStore: MemoryPort;
20
20
  vectorMemoryStore: VectorMemoryStore | undefined;
21
21
  /**
@@ -27,4 +27,5 @@ export interface VectorMemoryResult {
27
27
  vectorMemoryModelCacheDir: string;
28
28
  }
29
29
  export declare function setupVectorMemory(args: VectorMemoryArgs): Promise<VectorMemoryResult>;
30
+ export {};
30
31
  //# sourceMappingURL=vector-memory-setup.d.ts.map
@@ -3,6 +3,6 @@
3
3
  * (see wrongtrace-gate.ts for why). Same factories, same behaviour, now
4
4
  * shared by every host process that executes tools.
5
5
  */
6
- export { createWrongTraceHookPair, createWrongTracePostToolUseHook, createWrongTracePreToolUseHook, } from "@wrongstack/wrongtrace";
6
+ export { createWrongTraceHookPair } from '@wrongstack/wrongtrace';
7
7
  export type { WrongTraceGateDecisionEvent, WrongTraceHookInput, WrongTraceHookOptions, WrongTraceHookPair, WrongTracePreToolUseOutcome, } from "@wrongstack/wrongtrace";
8
8
  //# sourceMappingURL=wrongtrace-hooks.d.ts.map
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import type { WrongTraceTelemetryReport } from '@wrongstack/wrongtrace';
15
15
  /** Inputs the session-completion path already has in hand. */
16
- export interface WrongTraceTelemetryInput {
16
+ interface WrongTraceTelemetryInput {
17
17
  sessionId: string;
18
18
  /** Stable agent identity, e.g. 'wrongstack-cli'. */
19
19
  agentName: string;
@@ -50,4 +50,5 @@ export declare function reportWrongTraceSessionTelemetry(input: WrongTraceTeleme
50
50
  } | null>;
51
51
  };
52
52
  }): Promise<void>;
53
+ export {};
53
54
  //# sourceMappingURL=wrongtrace-telemetry.d.ts.map
@@ -31,4 +31,4 @@ export {
31
31
  buildWrongTraceTelemetryReport,
32
32
  reportWrongTraceSessionTelemetry
33
33
  };
34
- //# sourceMappingURL=wrongtrace-telemetry-6M2CCBX5.js.map
34
+ //# sourceMappingURL=wrongtrace-telemetry-FNLANZ5I.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/cli",
3
- "version": "0.313.0",
3
+ "version": "0.316.1",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack CLI — terminal AI coding agent with provider catalog from models.dev. Provides `wrongstack` and `wstack` binaries.",
6
6
  "keywords": [
@@ -42,35 +42,35 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "ws": "^8.21.3",
45
- "@wrongstack/acp": "0.313.0",
46
- "@wrongstack/mcp": "0.313.0",
47
- "@wrongstack/bench": "0.313.0",
48
- "@wrongstack/primitives": "0.313.0",
49
- "@wrongstack/plugins": "0.313.0",
50
- "@wrongstack/core": "0.313.0",
51
- "@wrongstack/kanban": "0.313.0",
52
- "@wrongstack/plug-lsp": "0.313.0",
53
- "@wrongstack/persistence": "0.313.0",
54
- "@wrongstack/providers": "0.313.0",
55
- "@wrongstack/requirement-intake": "0.313.0",
56
- "@wrongstack/runtime": "0.313.0",
57
- "@wrongstack/sage": "0.313.0",
58
- "@wrongstack/simpleui": "0.313.0",
59
- "@wrongstack/sdd": "0.313.0",
60
- "@wrongstack/security-scanner": "0.313.0",
61
- "@wrongstack/techstack": "0.313.0",
62
- "@wrongstack/telegram": "0.313.0",
63
- "@wrongstack/tui": "0.313.0",
64
- "@wrongstack/tools": "0.313.0",
65
- "@wrongstack/vector-memory": "0.313.0",
66
- "@wrongstack/webui-protocol": "0.313.0",
67
- "@wrongstack/webui": "0.313.0",
68
- "@wrongstack/webui-hq": "0.313.0",
69
- "@wrongstack/wrongtrace": "0.313.0",
70
- "@wrongstack/webui-server": "0.313.0"
45
+ "@wrongstack/core": "0.316.1",
46
+ "@wrongstack/mcp": "0.316.1",
47
+ "@wrongstack/bench": "0.316.1",
48
+ "@wrongstack/acp": "0.316.1",
49
+ "@wrongstack/persistence": "0.316.1",
50
+ "@wrongstack/plug-lsp": "0.316.1",
51
+ "@wrongstack/kanban": "0.316.1",
52
+ "@wrongstack/providers": "0.316.1",
53
+ "@wrongstack/runtime": "0.316.1",
54
+ "@wrongstack/primitives": "0.316.1",
55
+ "@wrongstack/sage": "0.316.1",
56
+ "@wrongstack/sdd": "0.316.1",
57
+ "@wrongstack/plugins": "0.316.1",
58
+ "@wrongstack/requirement-intake": "0.316.1",
59
+ "@wrongstack/security-scanner": "0.316.1",
60
+ "@wrongstack/tools": "0.316.1",
61
+ "@wrongstack/telegram": "0.316.1",
62
+ "@wrongstack/simpleui": "0.316.1",
63
+ "@wrongstack/vector-memory": "0.316.1",
64
+ "@wrongstack/webui": "0.316.1",
65
+ "@wrongstack/webui-protocol": "0.316.1",
66
+ "@wrongstack/webui-server": "0.316.1",
67
+ "@wrongstack/techstack": "0.316.1",
68
+ "@wrongstack/tui": "0.316.1",
69
+ "@wrongstack/wrongtrace": "0.316.1",
70
+ "@wrongstack/webui-hq": "0.316.1"
71
71
  },
72
72
  "optionalDependencies": {
73
- "@wrongstack/desktop": "0.313.0"
73
+ "@wrongstack/desktop": "0.316.1"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/node": "^26.2.0",
@@ -82,8 +82,8 @@
82
82
  "access": "public"
83
83
  },
84
84
  "scripts": {
85
- "build": "node ../../scripts/build.mjs --target @wrongstack/webui-hq --skip-if-workspace-build && node ../../scripts/build-package.mjs",
86
- "typecheck": "pnpm --filter @wrongstack/tools run build && pnpm --filter @wrongstack/tui run build && tsc --noEmit",
85
+ "build": "node ../../scripts/build-package.mjs",
86
+ "typecheck": "pnpm --filter @wrongstack/tools run build && pnpm --filter @wrongstack/tui run build && tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
87
87
  "test": "vitest run",
88
88
  "test:hqdash": "vitest run --config vitest.hqdash.config.ts",
89
89
  "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""
@@ -1,7 +0,0 @@
1
- /**
2
- * Backward-compatible re-export. All functionality has moved to
3
- * `auth-menu/index.ts` and its submodules. This file exists so
4
- * existing imports don't break during the transition.
5
- */
6
- export { type AuthMenuDeps, runAuthDirect, runAuthMenu } from './auth-menu/index.js';
7
- //# sourceMappingURL=auth-menu.d.ts.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-WHOIR577.js.map
@@ -1,47 +0,0 @@
1
- type ConsoleMethod = (...args: unknown[]) => void;
2
- interface ConsoleTarget {
3
- log: ConsoleMethod;
4
- info: ConsoleMethod;
5
- warn: ConsoleMethod;
6
- error: ConsoleMethod;
7
- debug: ConsoleMethod;
8
- }
9
- export interface QuietSurfaceConsoleOptions {
10
- isTTY?: boolean | undefined;
11
- /** Pass everything through untouched (the `WEBUI_VERBOSE=1` escape hatch). */
12
- verbose?: boolean | undefined;
13
- consoleTarget?: ConsoleTarget | undefined;
14
- /** Ring-buffer size for {@link QuietSurfaceConsole.recent}. */
15
- bufferLines?: number | undefined;
16
- }
17
- export interface QuietSurfaceConsole {
18
- /** `false` when the console was left untouched (non-TTY or verbose). */
19
- readonly enabled: boolean;
20
- /** Chatter lines dropped from the terminal so far. */
21
- readonly mutedCount: number;
22
- /** Newest muted lines, oldest first — for a diagnostic dump on failure. */
23
- recent(): readonly string[];
24
- stop(): void;
25
- }
26
- /**
27
- * Keep an interactive WebUI/SimpleUI terminal quiet while the browser owns
28
- * the output surface.
29
- *
30
- * Two things fill that terminal, and this handles both:
31
- *
32
- * - **Chatter.** Every `console.log`/`info`/`debug` from the server is
33
- * progress the browser already shows. Those are dropped from the
34
- * terminal (still counted, and the newest are kept in memory for a
35
- * failure dump); `console.warn`/`error` are forwarded untouched.
36
- *
37
- * - **Repetition.** A warning that fires on a timer used to append an
38
- * identical line every tick until the terminal was pages deep in the
39
- * same text. Consecutive identical lines now collapse into a single
40
- * `↑ previous line repeated N×` notice emitted when the streak ends.
41
- *
42
- * Non-TTY output is deliberately untouched so redirected output and log
43
- * collectors retain the complete append-only log, as is `WEBUI_VERBOSE=1`.
44
- */
45
- export declare function startQuietSurfaceConsole(options?: QuietSurfaceConsoleOptions): QuietSurfaceConsole;
46
- export {};
47
- //# sourceMappingURL=terminal-log-view.d.ts.map
@@ -1,29 +0,0 @@
1
- import { DefaultSystemPromptBuilder } from '@wrongstack/core/agent';
2
- import { DefaultSkillLoader } from '@wrongstack/core/execution';
3
- import { type DefaultModelsRegistry, DefaultModeStore } from '@wrongstack/core/models';
4
- import type { ToolRegistry } from '@wrongstack/core/registry';
5
- import type { Config, MemoryPort, TextBlock } from '@wrongstack/core/types';
6
- import { type WstackPaths } from '@wrongstack/core/utils';
7
- export interface ToolsWiringDeps {
8
- config: Config;
9
- toolRegistry: ToolRegistry;
10
- modelsRegistry: DefaultModelsRegistry;
11
- memoryStore: MemoryPort;
12
- wpaths: WstackPaths;
13
- projectRoot: string;
14
- cwd: string;
15
- container: {
16
- resolve<T>(tok: unknown): T;
17
- has(tok: unknown): boolean;
18
- };
19
- }
20
- export interface ToolsWiringResult {
21
- toolRegistry: ToolRegistry;
22
- systemPrompt: Promise<TextBlock[]>;
23
- promptBuilder: DefaultSystemPromptBuilder;
24
- modeStore: DefaultModeStore;
25
- skillLoader: DefaultSkillLoader | undefined;
26
- memoryStore: MemoryPort;
27
- }
28
- export declare function setupTools(params: ToolsWiringDeps): Promise<ToolsWiringResult>;
29
- //# sourceMappingURL=tools.d.ts.map