@wrongstack/tui 0.295.1 → 0.296.3

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 (279) hide show
  1. package/dist/app-action-type.d.ts +988 -0
  2. package/dist/app-action-type.d.ts.map +1 -0
  3. package/dist/app-initial-state.d.ts +1 -1
  4. package/dist/app-initial-state.d.ts.map +1 -1
  5. package/dist/app-key-handler.d.ts +11 -3
  6. package/dist/app-key-handler.d.ts.map +1 -1
  7. package/dist/app-props.d.ts +4 -2
  8. package/dist/app-props.d.ts.map +1 -1
  9. package/dist/app-reducer.d.ts +4 -2
  10. package/dist/app-reducer.d.ts.map +1 -1
  11. package/dist/app-settings-type.d.ts +75 -0
  12. package/dist/app-settings-type.d.ts.map +1 -0
  13. package/dist/app-state-core-types.d.ts +52 -0
  14. package/dist/app-state-core-types.d.ts.map +1 -0
  15. package/dist/app-state-fleet.d.ts +44 -0
  16. package/dist/app-state-fleet.d.ts.map +1 -0
  17. package/dist/app-state.d.ts +49 -1180
  18. package/dist/app-state.d.ts.map +1 -1
  19. package/dist/app-ui-state.d.ts +5 -0
  20. package/dist/app-ui-state.d.ts.map +1 -0
  21. package/dist/app-view-contract.d.ts +8 -1
  22. package/dist/app-view-contract.d.ts.map +1 -1
  23. package/dist/app-view.d.ts.map +1 -1
  24. package/dist/app.d.ts.map +1 -1
  25. package/dist/brain-panel-model.d.ts +8 -0
  26. package/dist/brain-panel-model.d.ts.map +1 -1
  27. package/dist/clipboard.d.ts +1 -1
  28. package/dist/clipboard.d.ts.map +1 -1
  29. package/dist/components/agents-monitor-constants.d.ts +12 -0
  30. package/dist/components/agents-monitor-constants.d.ts.map +1 -0
  31. package/dist/components/agents-monitor.d.ts +1 -7
  32. package/dist/components/agents-monitor.d.ts.map +1 -1
  33. package/dist/components/auth-panel.d.ts +2 -0
  34. package/dist/components/auth-panel.d.ts.map +1 -1
  35. package/dist/components/brain-panel.d.ts.map +1 -1
  36. package/dist/components/connections-panel.d.ts +7 -0
  37. package/dist/components/connections-panel.d.ts.map +1 -0
  38. package/dist/components/f-key-picker.d.ts.map +1 -1
  39. package/dist/components/history/basic-format.d.ts +19 -0
  40. package/dist/components/history/basic-format.d.ts.map +1 -0
  41. package/dist/components/history/code-block-diff-helpers.d.ts +28 -0
  42. package/dist/components/history/code-block-diff-helpers.d.ts.map +1 -0
  43. package/dist/components/history/code-block.d.ts +1 -1
  44. package/dist/components/history/code-block.d.ts.map +1 -1
  45. package/dist/components/history/copy-icon.d.ts +25 -0
  46. package/dist/components/history/copy-icon.d.ts.map +1 -0
  47. package/dist/components/history/entry.d.ts.map +1 -1
  48. package/dist/components/history/index.d.ts +5 -6
  49. package/dist/components/history/index.d.ts.map +1 -1
  50. package/dist/components/history/sage-output-format.d.ts +58 -0
  51. package/dist/components/history/sage-output-format.d.ts.map +1 -0
  52. package/dist/components/history/stream-box.d.ts +23 -0
  53. package/dist/components/history/stream-box.d.ts.map +1 -0
  54. package/dist/components/history/tool-arg-format.d.ts +5 -0
  55. package/dist/components/history/tool-arg-format.d.ts.map +1 -0
  56. package/dist/components/history/tool-group.d.ts.map +1 -1
  57. package/dist/components/history/tool-output-summary.d.ts +4 -0
  58. package/dist/components/history/tool-output-summary.d.ts.map +1 -0
  59. package/dist/components/history/tool-visual-command.d.ts +3 -0
  60. package/dist/components/history/tool-visual-command.d.ts.map +1 -0
  61. package/dist/components/history/tool-visual-domain.d.ts +8 -0
  62. package/dist/components/history/tool-visual-domain.d.ts.map +1 -0
  63. package/dist/components/history/tool-visual-format.d.ts +13 -0
  64. package/dist/components/history/tool-visual-format.d.ts.map +1 -0
  65. package/dist/components/history/tool-visual-lsp.d.ts +4 -0
  66. package/dist/components/history/tool-visual-lsp.d.ts.map +1 -0
  67. package/dist/components/history/tool-visual-misc.d.ts +7 -0
  68. package/dist/components/history/tool-visual-misc.d.ts.map +1 -0
  69. package/dist/components/history/tool-visual-mode-workdir.d.ts +4 -0
  70. package/dist/components/history/tool-visual-mode-workdir.d.ts.map +1 -0
  71. package/dist/components/history/tool-visual-types.d.ts +9 -0
  72. package/dist/components/history/tool-visual-types.d.ts.map +1 -0
  73. package/dist/components/history/utils.d.ts +16 -54
  74. package/dist/components/history/utils.d.ts.map +1 -1
  75. package/dist/components/history/visual-lines.d.ts +7 -0
  76. package/dist/components/history/visual-lines.d.ts.map +1 -0
  77. package/dist/components/history/visual-memory-logs.d.ts +4 -0
  78. package/dist/components/history/visual-memory-logs.d.ts.map +1 -0
  79. package/dist/components/input.d.ts.map +1 -1
  80. package/dist/components/kanban-panel.d.ts.map +1 -1
  81. package/dist/components/key-hint-bar.d.ts +11 -0
  82. package/dist/components/key-hint-bar.d.ts.map +1 -1
  83. package/dist/components/powerline-rail.d.ts +11 -4
  84. package/dist/components/powerline-rail.d.ts.map +1 -1
  85. package/dist/components/provider-colors.d.ts.map +1 -1
  86. package/dist/components/refine-countdown-panel.d.ts +25 -0
  87. package/dist/components/refine-countdown-panel.d.ts.map +1 -0
  88. package/dist/components/refine-failure-panel.d.ts +3 -1
  89. package/dist/components/refine-failure-panel.d.ts.map +1 -1
  90. package/dist/components/resume-picker.d.ts.map +1 -1
  91. package/dist/components/scrollable-history.d.ts +96 -17
  92. package/dist/components/scrollable-history.d.ts.map +1 -1
  93. package/dist/components/settings-picker-filter.d.ts +20 -0
  94. package/dist/components/settings-picker-filter.d.ts.map +1 -0
  95. package/dist/components/settings-picker-jumps.d.ts +16 -0
  96. package/dist/components/settings-picker-jumps.d.ts.map +1 -0
  97. package/dist/components/settings-picker-model.d.ts +271 -0
  98. package/dist/components/settings-picker-model.d.ts.map +1 -0
  99. package/dist/components/settings-picker-row-list.d.ts +21 -0
  100. package/dist/components/settings-picker-row-list.d.ts.map +1 -0
  101. package/dist/components/settings-picker.d.ts +8 -313
  102. package/dist/components/settings-picker.d.ts.map +1 -1
  103. package/dist/components/status-bar-format.d.ts +65 -0
  104. package/dist/components/status-bar-format.d.ts.map +1 -0
  105. package/dist/components/status-bar-helpers.d.ts +19 -0
  106. package/dist/components/status-bar-helpers.d.ts.map +1 -0
  107. package/dist/components/status-bar-types.d.ts +350 -0
  108. package/dist/components/status-bar-types.d.ts.map +1 -0
  109. package/dist/components/status-bar.d.ts +4 -444
  110. package/dist/components/status-bar.d.ts.map +1 -1
  111. package/dist/components/statusline-detail-panel.d.ts.map +1 -1
  112. package/dist/components/statusline-picker.d.ts +5 -3
  113. package/dist/components/statusline-picker.d.ts.map +1 -1
  114. package/dist/connections-health.d.ts +39 -0
  115. package/dist/connections-health.d.ts.map +1 -0
  116. package/dist/connections-slash.d.ts +12 -0
  117. package/dist/connections-slash.d.ts.map +1 -0
  118. package/dist/esc-close-panels.d.ts.map +1 -1
  119. package/dist/f-key-panels.d.ts +4 -2
  120. package/dist/f-key-panels.d.ts.map +1 -1
  121. package/dist/heap-watchdog.d.ts.map +1 -1
  122. package/dist/height-cache.d.ts.map +1 -1
  123. package/dist/history-archive.d.ts +69 -0
  124. package/dist/history-archive.d.ts.map +1 -0
  125. package/dist/history-entry.d.ts +52 -0
  126. package/dist/history-entry.d.ts.map +1 -1
  127. package/dist/hit-test.d.ts +3 -4
  128. package/dist/hit-test.d.ts.map +1 -1
  129. package/dist/hooks/use-app-picker-keys.d.ts +3 -2
  130. package/dist/hooks/use-app-picker-keys.d.ts.map +1 -1
  131. package/dist/hooks/use-app-runtime-refs.d.ts +38 -0
  132. package/dist/hooks/use-app-runtime-refs.d.ts.map +1 -0
  133. package/dist/hooks/use-app-session-state.d.ts +28 -0
  134. package/dist/hooks/use-app-session-state.d.ts.map +1 -0
  135. package/dist/hooks/use-autonomy-drivers.d.ts +1 -1
  136. package/dist/hooks/use-autonomy-drivers.d.ts.map +1 -1
  137. package/dist/hooks/use-brain-panel.d.ts +1 -1
  138. package/dist/hooks/use-brain-panel.d.ts.map +1 -1
  139. package/dist/hooks/use-brain-risk-sync.d.ts +11 -0
  140. package/dist/hooks/use-brain-risk-sync.d.ts.map +1 -0
  141. package/dist/hooks/use-client-telemetry.d.ts +1 -1
  142. package/dist/hooks/use-client-telemetry.d.ts.map +1 -1
  143. package/dist/hooks/use-core-tui-commands.d.ts +2 -1
  144. package/dist/hooks/use-core-tui-commands.d.ts.map +1 -1
  145. package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -1
  146. package/dist/hooks/use-enhance-runtime-state.d.ts +23 -0
  147. package/dist/hooks/use-enhance-runtime-state.d.ts.map +1 -0
  148. package/dist/hooks/use-git-session-status.d.ts.map +1 -1
  149. package/dist/hooks/use-help-panel.d.ts +6 -0
  150. package/dist/hooks/use-help-panel.d.ts.map +1 -0
  151. package/dist/hooks/use-history-copy-notice.d.ts +4 -0
  152. package/dist/hooks/use-history-copy-notice.d.ts.map +1 -0
  153. package/dist/hooks/use-history-viewport-sync.d.ts +13 -0
  154. package/dist/hooks/use-history-viewport-sync.d.ts.map +1 -0
  155. package/dist/hooks/use-initial-prompt.d.ts +1 -1
  156. package/dist/hooks/use-initial-prompt.d.ts.map +1 -1
  157. package/dist/hooks/use-interrupt-ladder.d.ts +2 -1
  158. package/dist/hooks/use-interrupt-ladder.d.ts.map +1 -1
  159. package/dist/hooks/use-kanban-board-focus.d.ts +8 -0
  160. package/dist/hooks/use-kanban-board-focus.d.ts.map +1 -0
  161. package/dist/hooks/use-live-settings-state.d.ts +20 -0
  162. package/dist/hooks/use-live-settings-state.d.ts.map +1 -0
  163. package/dist/hooks/use-mailbox-view-model.d.ts.map +1 -1
  164. package/dist/hooks/use-model-pick.d.ts +1 -1
  165. package/dist/hooks/use-model-pick.d.ts.map +1 -1
  166. package/dist/hooks/use-mouse-tracking.d.ts +15 -0
  167. package/dist/hooks/use-mouse-tracking.d.ts.map +1 -0
  168. package/dist/hooks/use-next-steps-auto-submit.d.ts +2 -1
  169. package/dist/hooks/use-next-steps-auto-submit.d.ts.map +1 -1
  170. package/dist/hooks/use-panel-controllers.d.ts +2 -1
  171. package/dist/hooks/use-panel-controllers.d.ts.map +1 -1
  172. package/dist/hooks/use-picker-keys-types.d.ts +56 -0
  173. package/dist/hooks/use-picker-keys-types.d.ts.map +1 -0
  174. package/dist/hooks/use-picker-keys.d.ts +2 -64
  175. package/dist/hooks/use-picker-keys.d.ts.map +1 -1
  176. package/dist/hooks/use-provider-event-bridge.d.ts +1 -1
  177. package/dist/hooks/use-provider-event-bridge.d.ts.map +1 -1
  178. package/dist/hooks/use-session-interrupt-controller.d.ts +6 -1
  179. package/dist/hooks/use-session-interrupt-controller.d.ts.map +1 -1
  180. package/dist/hooks/use-settings-auto-save.d.ts +2 -1
  181. package/dist/hooks/use-settings-auto-save.d.ts.map +1 -1
  182. package/dist/hooks/use-shadow-panel.d.ts +17 -0
  183. package/dist/hooks/use-shadow-panel.d.ts.map +1 -0
  184. package/dist/hooks/use-slash-picker.d.ts +2 -1
  185. package/dist/hooks/use-slash-picker.d.ts.map +1 -1
  186. package/dist/hooks/use-stable-key-handler.d.ts +5 -0
  187. package/dist/hooks/use-stable-key-handler.d.ts.map +1 -0
  188. package/dist/hooks/use-statusbar-view-model.d.ts.map +1 -1
  189. package/dist/hooks/use-subagent-events.d.ts.map +1 -1
  190. package/dist/hooks/use-terminal-render-lifecycle.d.ts.map +1 -1
  191. package/dist/hooks/use-todos-auto-clear.d.ts +3 -0
  192. package/dist/hooks/use-todos-auto-clear.d.ts.map +1 -0
  193. package/dist/hooks/use-tui-activity.d.ts +7 -1
  194. package/dist/hooks/use-tui-activity.d.ts.map +1 -1
  195. package/dist/hooks/use-tui-environment-state.d.ts +1 -0
  196. package/dist/hooks/use-tui-environment-state.d.ts.map +1 -1
  197. package/dist/hooks/use-tui-slash-commands.d.ts +2 -1
  198. package/dist/hooks/use-tui-slash-commands.d.ts.map +1 -1
  199. package/dist/index.js +22376 -20119
  200. package/dist/index.js.map +4 -4
  201. package/dist/input-validation/action-helpers.d.ts +12 -0
  202. package/dist/input-validation/action-helpers.d.ts.map +1 -0
  203. package/dist/input-validation/action-types.d.ts +4 -0
  204. package/dist/input-validation/action-types.d.ts.map +1 -0
  205. package/dist/input-validation/allow-lists.d.ts +29 -0
  206. package/dist/input-validation/allow-lists.d.ts.map +1 -0
  207. package/dist/input-validation/limits.d.ts +27 -0
  208. package/dist/input-validation/limits.d.ts.map +1 -0
  209. package/dist/input-validation/result.d.ts +10 -0
  210. package/dist/input-validation/result.d.ts.map +1 -0
  211. package/dist/input-validation/state-entries.d.ts +22 -0
  212. package/dist/input-validation/state-entries.d.ts.map +1 -0
  213. package/dist/input-validation/terminal.d.ts +69 -0
  214. package/dist/input-validation/terminal.d.ts.map +1 -0
  215. package/dist/input-validation.d.ts +7 -176
  216. package/dist/input-validation.d.ts.map +1 -1
  217. package/dist/layout-engine.d.ts +5 -1
  218. package/dist/layout-engine.d.ts.map +1 -1
  219. package/dist/layout-store.d.ts.map +1 -1
  220. package/dist/mailbox-view-model-types.d.ts +19 -0
  221. package/dist/mailbox-view-model-types.d.ts.map +1 -0
  222. package/dist/memory-context-monitor.d.ts +6 -0
  223. package/dist/memory-context-monitor.d.ts.map +1 -1
  224. package/dist/memory-slash-format.d.ts +10 -0
  225. package/dist/memory-slash-format.d.ts.map +1 -0
  226. package/dist/memory-slash.d.ts.map +1 -1
  227. package/dist/mouse.d.ts +11 -4
  228. package/dist/mouse.d.ts.map +1 -1
  229. package/dist/on-panel-open.d.ts +1 -1
  230. package/dist/on-panel-open.d.ts.map +1 -1
  231. package/dist/overlay-key-router.d.ts +1 -1
  232. package/dist/overlay-key-router.d.ts.map +1 -1
  233. package/dist/reducers/activity.d.ts +2 -1
  234. package/dist/reducers/activity.d.ts.map +1 -1
  235. package/dist/reducers/composer.d.ts +2 -1
  236. package/dist/reducers/composer.d.ts.map +1 -1
  237. package/dist/reducers/conversation.d.ts +3 -2
  238. package/dist/reducers/conversation.d.ts.map +1 -1
  239. package/dist/reducers/dialogs.d.ts +3 -2
  240. package/dist/reducers/dialogs.d.ts.map +1 -1
  241. package/dist/reducers/fleet.d.ts +2 -1
  242. package/dist/reducers/fleet.d.ts.map +1 -1
  243. package/dist/reducers/helpers.d.ts +1 -1
  244. package/dist/reducers/helpers.d.ts.map +1 -1
  245. package/dist/reducers/panel-pickers.d.ts +2 -1
  246. package/dist/reducers/panel-pickers.d.ts.map +1 -1
  247. package/dist/reducers/settings-panel.d.ts +2 -1
  248. package/dist/reducers/settings-panel.d.ts.map +1 -1
  249. package/dist/reducers/settings-values.d.ts +2 -1
  250. package/dist/reducers/settings-values.d.ts.map +1 -1
  251. package/dist/reducers/workspace-panels.d.ts +3 -2
  252. package/dist/reducers/workspace-panels.d.ts.map +1 -1
  253. package/dist/run-tui-client-registration.d.ts +18 -0
  254. package/dist/run-tui-client-registration.d.ts.map +1 -0
  255. package/dist/run-tui-options.d.ts +569 -0
  256. package/dist/run-tui-options.d.ts.map +1 -0
  257. package/dist/run-tui-title-controller.d.ts +16 -0
  258. package/dist/run-tui-title-controller.d.ts.map +1 -0
  259. package/dist/run-tui.d.ts +5 -572
  260. package/dist/run-tui.d.ts.map +1 -1
  261. package/dist/scroll-anchor.d.ts +10 -14
  262. package/dist/scroll-anchor.d.ts.map +1 -1
  263. package/dist/settings-contracts.d.ts +6 -1
  264. package/dist/settings-contracts.d.ts.map +1 -1
  265. package/dist/submit-controller.d.ts +4 -0
  266. package/dist/submit-controller.d.ts.map +1 -1
  267. package/dist/submit-prompt-refinement.d.ts +2 -0
  268. package/dist/submit-prompt-refinement.d.ts.map +1 -1
  269. package/dist/terminal-modes.d.ts +3 -0
  270. package/dist/terminal-modes.d.ts.map +1 -0
  271. package/dist/terminal-silence.d.ts +3 -0
  272. package/dist/terminal-silence.d.ts.map +1 -0
  273. package/dist/terminal-title.d.ts +7 -1
  274. package/dist/terminal-title.d.ts.map +1 -1
  275. package/dist/tui-host-capabilities.d.ts +1 -1
  276. package/dist/tui-host-capabilities.d.ts.map +1 -1
  277. package/dist/ui-contracts.d.ts +2 -1
  278. package/dist/ui-contracts.d.ts.map +1 -1
  279. package/package.json +11 -12
@@ -1,73 +1,7 @@
1
1
  import type React from 'react';
2
- /** Selectable presets for the auto-proceed delay, so the field is fully
3
- * keyboard-cyclable (←/→) instead of needing typed numeric input. */
4
- export declare const DELAY_PRESETS_MS: number[];
5
- export declare const SETTINGS_MODES: readonly ['off', 'suggest', 'auto'];
6
- export type SettingsMode = (typeof SETTINGS_MODES)[number];
7
- export declare const LOG_LEVELS: readonly ['error', 'warn', 'info', 'debug', 'trace'];
8
- export type LogLevel = (typeof LOG_LEVELS)[number];
9
- export declare const AUDIT_LEVELS: readonly ['minimal', 'standard', 'full'];
10
- export type AuditLevel = (typeof AUDIT_LEVELS)[number];
11
- export declare const COMPACTOR_STRATEGIES: readonly ['hybrid', 'intelligent', 'selective'];
12
- export type CompactorStrategy = (typeof COMPACTOR_STRATEGIES)[number];
13
- /** Context window mode options — cyclable via ←/→. */
14
- export declare const CONTEXT_MODES: readonly ['balanced', 'frugal', 'deep', 'archival'];
15
- export type ContextMode = (typeof CONTEXT_MODES)[number];
16
- export declare const CONTEXT_MODE_DESCS: Record<ContextMode, string>;
17
- export declare const STATUSLINE_MODES: readonly ['minimum', 'detailed', 'no-color'];
18
- export type StatuslineMode = (typeof STATUSLINE_MODES)[number];
19
- export declare const REASONING_MODES: readonly ['auto', 'on', 'off'];
20
- export type ReasoningMode = (typeof REASONING_MODES)[number];
21
- export declare const REASONING_EFFORTS: readonly ['none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max'];
22
- export type ReasoningEffort = (typeof REASONING_EFFORTS)[number];
23
- export declare const CACHE_TTLS: readonly ['default', '5m', '1h'];
24
- export type CacheTtl = (typeof CACHE_TTLS)[number];
25
- export declare const STATUSLINE_MODE_DESCS: Record<StatuslineMode, string>;
26
- /** Presets for max iterations — cyclable via ←/→. 0 = unlimited. */
27
- export declare const MAX_ITERATIONS_PRESETS: number[];
28
- /** Presets for max concurrent subagents. 0 = runtime default. */
29
- export declare const MAX_CONCURRENT_PRESETS: number[];
30
- /** Presets for auto-proceed max iterations. 0 = unlimited, 50 default. */
31
- export declare const AUTO_PROCEED_MAX_PRESETS: number[];
32
- /** Presets for prompt refinement preview countdown. */
33
- export declare const ENHANCE_DELAY_PRESETS: number[];
34
- /** Presets for the circuit-breaker auto kill/reset delay. 0 = manual recovery. */
35
- export declare const BREAKER_TIMEOUT_PRESETS: number[];
36
- export declare function formatBreakerTimeout(ms: number): string;
37
- /**
38
- * Presets for the multi-file diff summary footer cutoff. Each value is the
39
- * minimum number of files before the aggregate `N files · +X -Y · …`
40
- * line is rendered above the per-file blocks. `0` suppresses the footer
41
- * entirely; `5` is the package default; values up to 15 are useful for
42
- * very wide terminals where per-file footers are cheap.
43
- */
44
- export declare const MULTI_DIFF_SUMMARY_THRESHOLD_PRESETS: number[];
45
- /** Language options for prompt refinement. */
46
- export declare const ENHANCE_LANGUAGES: readonly ['original', 'english'];
47
- export type EnhanceLanguage = (typeof ENHANCE_LANGUAGES)[number];
48
- /** Token-saving tier options — cyclable via ←/→ in the settings picker.
49
- * `auto` is the default: it keeps all tools and picks a leaner PROMPT only on
50
- * small context windows (cache-safe). The concrete tiers below force a fixed
51
- * level regardless of window. */
52
- export declare const TOKEN_SAVING_TIERS: readonly ['auto', 'off', 'minimal', 'light', 'medium', 'aggressive'];
53
- export type TokenSavingTierTui = (typeof TOKEN_SAVING_TIERS)[number];
54
- export declare const TOKEN_SAVING_TIER_DESCS: Record<TokenSavingTierTui, string>;
55
- /**
56
- * Fleet-chat verbosity options — cyclable via ←/→ in the settings picker.
57
- * Values MUST match core's `FleetChatVerbosity` union (config schema).
58
- */
59
- export declare const FLEET_CHAT_MODES: readonly ['off', 'full'];
60
- export type FleetChatVerbosityTui = (typeof FLEET_CHAT_MODES)[number];
61
- export declare const FLEET_CHAT_MODE_DESCS: Record<FleetChatVerbosityTui, string>;
62
- export declare function formatSettingsDelay(ms: number): string;
63
- export declare function formatMaxIterations(n: number): string;
64
- export declare function formatMultiDiffSummaryThreshold(n: number): string;
65
- export declare function formatEnhanceDelay(ms: number): string;
66
- /** Animation style choices for the settings picker — all AnimationStyles plus 'cycle'. */
67
- export declare const ANIMATION_STYLE_CHOICES: readonly ["rainbow", "wave", "pulse", "dots", "breathe", "cycle"];
68
- export type AnimationStyleChoice = (typeof ANIMATION_STYLE_CHOICES)[number];
69
- /** Human-readable label for an animation style choice (including cycle). */
70
- export declare function formatAnimationStyle(style: AnimationStyleChoice): string;
2
+ import type { AnimationStyleChoice, AuditLevel, CacheTtl, CompactorStrategy, ConfigScope, ContextMode, EnhanceLanguage, FleetChatVerbosityTui, LogLevel, ReasoningEffort, ReasoningMode, SettingsMode, StatuslineMode, TokenSavingTierTui } from './settings-picker-model.js';
3
+ export { SETTINGS_PICKER_JUMP_CHORDS, type SettingsPickerJumpChord, type SettingsPickerJumpMod, settingsPickerJumpByName, settingsPickerJumpField, settingsPickerJumpNames, } from './settings-picker-jumps.js';
4
+ export * from './settings-picker-model.js';
71
5
  export interface SettingsPickerProps {
72
6
  /** Focused row index. */
73
7
  field: number;
@@ -97,6 +31,8 @@ export interface SettingsPickerProps {
97
31
  enhanceEnabled: boolean;
98
32
  /** Default language for refinement: original (keep user's language) or english. */
99
33
  enhanceLanguage: EnhanceLanguage;
34
+ /** Pre-refine grace countdown (seconds). 0 = skip. */
35
+ preRefineSeconds: number;
100
36
  /** Run incremental index at session start. */
101
37
  indexOnStart: boolean;
102
38
  /** User-tunable cutoff for the multi-file diff summary footer. 0 = off. */
@@ -133,6 +69,8 @@ export interface SettingsPickerProps {
133
69
  * remain independently available through their panel shortcuts. Default: true.
134
70
  */
135
71
  showAgentSwarmPanel: boolean;
72
+ /** When true, read tool includes codebase-index symbols alongside file content. */
73
+ readSymbols: boolean;
136
74
  /** Raw SSE stream debugging toggle — hex-dump every byte received from providers. */
137
75
  debugStream: boolean;
138
76
  /** Statusline density: minimum single-line or detailed multi-line. */
@@ -155,248 +93,5 @@ export interface SettingsPickerProps {
155
93
  filter?: string | undefined;
156
94
  hint?: string | undefined;
157
95
  }
158
- /** Total number of settings rows (used for wrap-around navigation). */
159
- export declare const SETTINGS_FIELD_COUNT = 41;
160
- /**
161
- * Field index of the "Thinking word" row. The reducer's per-field switch and
162
- * the app.tsx key handler both branch on this, so it lives next to the row
163
- * definitions to keep the three in sync. If the row order changes, update this.
164
- */
165
- export declare const THINKING_WORD_FIELD = 22;
166
- /**
167
- * Field index of the "Multi-diff summary" row. Same rationale as
168
- * {@link THINKING_WORD_FIELD}: the keyboard handler in app.tsx dispatches
169
- * `settingsFieldSet` to this index when the user presses Ctrl+M inside the
170
- * picker, so any reorder of the Tools section must update this constant.
171
- */
172
- export declare const MULTI_DIFF_SUMMARY_THRESHOLD_FIELD = 21;
173
- /**
174
- * Map of modifier+<letter> chords to settings-picker rows. While the picker
175
- * is open, pressing a chord jumps the cursor straight to the target row so
176
- * the user can immediately cycle its value with ←/→ (or, for the thinking
177
- * word, Enter to open the free-text editor).
178
- *
179
- * Ctrl chords must NOT collide with global bindings:
180
- * Ctrl+S = close picker · Ctrl+G = F3 agents monitor · Ctrl+F = F2 fleet
181
- * monitor · Ctrl+P = PhaseMonitor · Ctrl+T = F4 worktree · Ctrl+A = F5 plan
182
- * panel · Ctrl+K = F9 goal panel.
183
- *
184
- * Alt chords must NOT collide with:
185
- * Alt+V = paste image from clipboard (chat input).
186
- *
187
- * Alt+Shift chords (mod+Alt in the user's framing) reuse the same letter as
188
- * plain Alt or Ctrl when the plain variants are already taken — the
189
- * composition distinguishes them at the keyboard level. For example, the
190
- * Ctrl and Alt+Shift sets both use 'L' for the Logging rows, but Alt+L and
191
- * Alt+Shift+L land on different fields.
192
- *
193
- * Each entry's `field` must match the actual row index at render time — the
194
- * `settingsFieldSet` action clamps out-of-range values to 0, so a drift
195
- * between this map and the picker row order would silently land the user on
196
- * row 0 instead of jumping them to the intended target.
197
- */
198
- export type SettingsPickerJumpMod = 'ctrl' | 'alt' | 'alt-shift';
199
- export interface SettingsPickerJumpChord {
200
- /** The modifier that, combined with the letter, triggers the jump. */
201
- mod: SettingsPickerJumpMod;
202
- /** The lowercase letter that triggers the jump. */
203
- letter: string;
204
- /** Target row index. Must match the picker's actual field order. */
205
- field: number;
206
- /** Short label for the help overlay and any debug surfaces. */
207
- label: string;
208
- }
209
- export declare const SETTINGS_PICKER_JUMP_CHORDS: ReadonlyArray<SettingsPickerJumpChord>;
210
- /**
211
- * Lookup helper for the modifier+<letter> jump handler. Returns the
212
- * target field index for the given combination, or undefined if no chord
213
- * is bound. Centralised here so the help overlay and the keyboard
214
- * handler share a single source of truth — adding a new chord only
215
- * requires touching this array (and re-running the tests, which read it
216
- * back to verify the help overlay stays in sync).
217
- */
218
- export declare function settingsPickerJumpField(mod: SettingsPickerJumpMod, letter: string): number | undefined;
219
- /**
220
- * Look up a settings-picker row by free-text name. Used by the
221
- * `/settings <chord>` slash command so users can jump by label
222
- * ("/settings multi-diff") in addition to the in-picker Ctrl+<letter>
223
- * chords.
224
- *
225
- * Match strategies, in priority order:
226
- * 1. Exact slug match — `/settings multi-diff-summary` → 21
227
- * 2. Token-prefix match — `/settings multi-diff` → 21 (matches the
228
- * leading two tokens of "Multi-diff summary")
229
- * 3. Any-token match — `/settings chime` → 5 (matches the second
230
- * token of "Completion chime"); `/settings context` → 29 (matches
231
- * the first token of "Context mode")
232
- *
233
- * Ties (multiple rows match) resolve to the first chord in the array,
234
- * which is the most-tweaked-row-first ordering used throughout the
235
- * help overlay and the keyboard handler. Returns undefined if no row
236
- * matches. The caller is expected to surface a helpful error listing
237
- * the available names when this returns undefined.
238
- */
239
- export declare function settingsPickerJumpByName(name: string): number | undefined;
240
- /**
241
- * All unique row names in the order they appear in the picker, formatted
242
- * as slash-separated slugs. Used by the help text of `/settings` so
243
- * the user can see the full vocabulary without leaving the prompt.
244
- */
245
- export declare function settingsPickerJumpNames(): string[];
246
- /**
247
- * Curated words the "Thinking word" field cycles through with ←/→. The user's
248
- * own custom word (set via Enter free-text edit or config) is folded into this
249
- * list at runtime so cycling never drops it. All entries must satisfy
250
- * `normalizeTuiThinkingWord` (single short word, ≤16 chars).
251
- *
252
- * `'thinking'` (the default) and `'random'` both surface a fresh fun word from
253
- * the pool on each working spell — see `isRandomTuiThinkingWord`.
254
- */
255
- export declare const THINKING_WORD_PRESETS: readonly ['thinking', 'random', 'working', 'cooking', 'vibing', 'pondering', 'brewing', 'crunching', 'computing', 'grinding', 'noodling', 'churning', 'hacking'];
256
- export declare const CONFIG_SCOPES: readonly ['global', 'project'];
257
- export type ConfigScope = (typeof CONFIG_SCOPES)[number];
258
- /**
259
- * Partial patch for the configurable keys of the settings-picker state.
260
- * Excludes non-configurable keys (open, field, lastSettingsField, filter,
261
- * hint, thinkingWordEditing, thinkingWordDraft).
262
- */
263
- export type SettingsPickerPatch = Partial<{
264
- mode: SettingsMode;
265
- delayMs: number;
266
- titleAnimation: boolean;
267
- yolo: boolean;
268
- fleetChat: FleetChatVerbosityTui;
269
- chime: boolean;
270
- confirmExit: boolean;
271
- nextPrediction: boolean;
272
- featureMcp: boolean;
273
- featurePlugins: boolean;
274
- featureMemory: boolean;
275
- featureSkills: boolean;
276
- featureModelsRegistry: boolean;
277
- tokenSavingTier: TokenSavingTierTui;
278
- allowOutsideProjectRoot: boolean;
279
- contextAutoCompact: boolean;
280
- contextStrategy: CompactorStrategy;
281
- contextMode: ContextMode;
282
- maxConcurrent: number;
283
- logLevel: LogLevel;
284
- auditLevel: AuditLevel;
285
- indexOnStart: boolean;
286
- multiDiffSummaryThreshold: number;
287
- maxIterations: number;
288
- autoProceedMaxIterations: number;
289
- enhanceDelayMs: number;
290
- enhanceEnabled: boolean;
291
- enhanceLanguage: EnhanceLanguage;
292
- debugStream: boolean;
293
- statuslineMode: StatuslineMode;
294
- reasoningMode: ReasoningMode;
295
- reasoningEffort: ReasoningEffort;
296
- reasoningPreserve: boolean;
297
- thinkingWord: string;
298
- cacheTtl: CacheTtl;
299
- configScope: ConfigScope;
300
- animationStyle: AnimationStyleChoice;
301
- breakerEnabled: boolean;
302
- breakerAutoKillResetMs: number;
303
- showModelReasoning: boolean;
304
- showAgentSwarmPanel: boolean;
305
- }>;
306
- /**
307
- * Human-readable labels for all settings fields (0–SETTINGS_FIELD_COUNT-1),
308
- * in picker row order. Used by `resolveSettingsFieldValue` for confirmation
309
- * and error messages, and by the `/settings` help text.
310
- */
311
- export declare const SETTINGS_FIELD_LABELS: readonly string[];
312
- /**
313
- * Resolve a free-text value for a given settings field into a typed
314
- * state patch. Used by the `/settings <chord> <value>` slash command.
315
- *
316
- * Value parsing rules:
317
- * - **Boolean fields**: "on"/"off", "true"/"false", "yes"/"no",
318
- * "1"/"0" (case-insensitive).
319
- * - **Enum fields**: case-insensitive match against the allowed values.
320
- * - **Preset fields**: either the raw number (e.g. "500") or the
321
- * display name (e.g. "unlimited" for 0, "off" for 0, "1m" for 60000).
322
- * - **Text fields** (thinking word): accepted as-is, validated by
323
- * `normalizeTuiThinkingWord`.
324
- *
325
- * Returns `{ ok: true, patch, label, displayValue }` on success, or
326
- * `{ ok: false, error }` with a helpful message listing valid options.
327
- */
328
- export declare function resolveSettingsFieldValue(field: number, input: string): {
329
- ok: true;
330
- patch: SettingsPickerPatch;
331
- label: string;
332
- displayValue: string;
333
- } | {
334
- ok: false;
335
- error: string;
336
- };
337
- /**
338
- * Read-only counterpart to {@link resolveSettingsFieldValue}. Given the
339
- * current settings-picker values and a field index, returns the value
340
- * formatted for display (e.g. `30s`, `unlimited`, `off`, `high`).
341
- *
342
- * Used by the `/settings-get <chord>` slash command so the user can
343
- * query a setting without opening the picker.
344
- *
345
- * The input type is `SettingsPickerValues` — all keys of
346
- * {@link SettingsPickerPatch} made required — which matches the
347
- * settingsPicker state slice from app-state.ts (minus non-configurable
348
- * keys like `open`, `field`, `filter`).
349
- */
350
- export type SettingsPickerValues = {
351
- [K in keyof SettingsPickerPatch]-?: SettingsPickerPatch[K];
352
- };
353
- export declare function getSettingsFieldValue(values: SettingsPickerValues, field: number): {
354
- ok: true;
355
- label: string;
356
- displayValue: string;
357
- } | {
358
- ok: false;
359
- error: string;
360
- };
361
- /**
362
- * Produce a compact, section-grouped text summary of ALL settings values.
363
- * Used by the `/settings-get` command when called with no arguments, so
364
- * the user can see their full configuration at a glance without opening
365
- * the picker overlay.
366
- *
367
- * Format (one line per field):
368
- * ```
369
- * ── Autonomy ──
370
- * Default autonomy mode auto
371
- * Auto-proceed delay 30s
372
- * ── UX ──
373
- * YOLO mode off
374
- * ...
375
- * ```
376
- */
377
- export declare function formatAllSettingsSummary(values: SettingsPickerValues): string;
378
- /**
379
- * Default values for all configurable settings fields, in the same
380
- * shape as {@link SettingsPickerValues}. Extracted from the reducer's
381
- * initial state so there is a single source of truth for "factory
382
- * defaults". Used by {@link resetSettingsFieldValue}.
383
- */
384
- export declare const SETTINGS_DEFAULTS: Readonly<SettingsPickerValues>;
385
- /**
386
- * Reset a single settings field to its factory default. Returns the
387
- * same shape as {@link resolveSettingsFieldValue} so the command
388
- * handler can use the same dispatch + persist logic.
389
- *
390
- * Used by the `/settings reset <chord>` slash command.
391
- */
392
- export declare function resetSettingsFieldValue(field: number): {
393
- ok: true;
394
- patch: SettingsPickerPatch;
395
- label: string;
396
- displayValue: string;
397
- } | {
398
- ok: false;
399
- error: string;
400
- };
401
- export declare function SettingsPicker({ field, filter, mode, delayMs, titleAnimation, yolo, fleetChat, chime, confirmExit, nextPrediction, featureMcp, featurePlugins, featureMemory, featureSkills, featureModelsRegistry, tokenSavingTier, allowOutsideProjectRoot, maxIterations, autoProceedMaxIterations, enhanceDelayMs, enhanceEnabled, enhanceLanguage, indexOnStart, multiDiffSummaryThreshold, thinkingWord, thinkingWordEditing, thinkingWordDraft, reasoningMode, reasoningEffort, reasoningPreserve, cacheTtl, contextAutoCompact, contextStrategy, contextMode, maxConcurrent, logLevel, auditLevel, debugStream, statuslineMode, configScope, profileConfigPath, animationStyle, breakerEnabled, breakerAutoKillResetMs, showModelReasoning, showAgentSwarmPanel, hint, }: SettingsPickerProps): React.ReactElement;
96
+ export declare function SettingsPicker({ field, filter, mode, delayMs, titleAnimation, yolo, fleetChat, chime, confirmExit, nextPrediction, featureMcp, featurePlugins, featureMemory, featureSkills, featureModelsRegistry, tokenSavingTier, allowOutsideProjectRoot, maxIterations, autoProceedMaxIterations, enhanceDelayMs, enhanceEnabled, enhanceLanguage, preRefineSeconds, indexOnStart, multiDiffSummaryThreshold, thinkingWord, thinkingWordEditing, thinkingWordDraft, reasoningMode, reasoningEffort, reasoningPreserve, cacheTtl, contextAutoCompact, contextStrategy, contextMode, maxConcurrent, logLevel, auditLevel, debugStream, statuslineMode, configScope, profileConfigPath, animationStyle, breakerEnabled, breakerAutoKillResetMs, showModelReasoning, showAgentSwarmPanel, readSymbols, hint, }: SettingsPickerProps): React.ReactElement;
402
97
  //# sourceMappingURL=settings-picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-picker.d.ts","sourceRoot":"","sources":["../../src/components/settings-picker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;sEACsE;AACtE,eAAO,MAAM,gBAAgB,UAA+C,CAAC;AAC7E,eAAO,MAAM,cAAc,YAAI,KAAK,EAAE,SAAS,EAAE,MAAM,CAAU,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,eAAO,MAAM,UAAU,YAAI,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAC/E,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,YAAY,YAAI,SAAS,EAAE,UAAU,EAAE,MAAM,CAAU,CAAC;AACrE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,eAAO,MAAM,oBAAoB,YAAI,QAAQ,EAAE,aAAa,EAAE,WAAW,CAAU,CAAC;AACpF,MAAM,MAAM,iBAAiB,GAAG,C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Aa,EACb,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,eAAe,EACf,YAAY,EACZ,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,aAAa,EACb,QAAQ,EACR,UAAU,EACV,WAAW,EACX,cAAc,EACd,WAAW,EACX,iBAAgE,EAChE,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,IAAI,GACL,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CAukB1C"}
1
+ {"version":3,"file":"settings-picker.d.ts","sourceRoot":"","sources":["../../src/components/settings-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,QAAQ,EACR,eAAe,EACf,aAAa,EACb,YAAY,EACZ,cAAc,EACd,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AAiBpC,OAAO,EACL,2BAA2B,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,4BAA4B,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAE3C,MAAM,WAAW,mBAAmB;IAClC,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAEhB,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,qBAAqB,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;I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 /**
3
+ * Head-truncate a chip's free-text payload (branch, path, project name) with a
4
+ * trailing ellipsis so one long value can't blow out the line width.
5
+ */
6
+ export declare function truncateChip(text: string, max: number): string;
7
+ /**
8
+ * Recover the visible plain text of a rendered chip by walking its React
9
+ * element tree (string/number leaves only).
10
+ */
11
+ export declare function nodeText(node: React.ReactNode): string;
12
+ export declare function planChipFit(widths: number[], budget: number, sepCost?: number): number;
13
+ export interface TokenDisplayTotals {
14
+ input: number;
15
+ output: number;
16
+ }
17
+ export declare function tokenDisplayTotals(usage: {
18
+ input: number;
19
+ output: number;
20
+ cacheRead?: number | undefined;
21
+ cacheWrite?: number | undefined;
22
+ } | undefined, currentRequest: {
23
+ input: number;
24
+ cacheRead: number;
25
+ cacheWrite?: number | undefined;
26
+ } | undefined, estimatedInput?: number | undefined): TokenDisplayTotals;
27
+ export declare function hasTokenDisplay(tokens: TokenDisplayTotals): boolean;
28
+ export declare function statusBarModelSpan(opts: {
29
+ model: string;
30
+ provider?: string | undefined;
31
+ yolo?: boolean | undefined;
32
+ autonomy?: 'off' | 'suggest' | 'auto' | 'eternal' | 'eternal-parallel' | undefined;
33
+ projectName?: string | undefined;
34
+ workingDir?: string | undefined;
35
+ projectHidden?: boolean | undefined;
36
+ workingDirHidden?: boolean | undefined;
37
+ monochrome?: boolean | undefined;
38
+ }): {
39
+ start: number;
40
+ len: number;
41
+ };
42
+ export declare function statusBarAutonomySpan(opts: {
43
+ yolo?: boolean | undefined;
44
+ autonomy?: 'off' | 'suggest' | 'auto' | 'eternal' | 'eternal-parallel' | undefined;
45
+ monochrome?: boolean | undefined;
46
+ }): {
47
+ start: number;
48
+ len: number;
49
+ } | null;
50
+ export declare function statusBarTodosSpan(): {
51
+ start: number;
52
+ len: number;
53
+ };
54
+ export declare function stateChip(state: 'idle' | 'running' | 'streaming' | 'aborting', fleetRunning: number, thinkingWord?: string | undefined): {
55
+ label: string;
56
+ color: string;
57
+ };
58
+ export declare function renderProgress(ratio: number, width: number): string;
59
+ export declare function contextBarColor(ratio: number): string;
60
+ export declare function renderMeter(ratio: number, width: number): string;
61
+ export declare function fmtTok(n: number): string;
62
+ export declare function fmtMemory(bytes: number): string;
63
+ export declare function fmtElapsed(ms: number): string;
64
+ export declare function fmtDebugBytes(n: number): string;
65
+ //# sourceMappingURL=status-bar-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-bar-format.d.ts","sourceRoot":"","sources":["../../src/components/status-bar-format.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAStD;AAID,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,SAAc,GAAG,MAAM,CAU3F;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EACD;IACE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,GACD,SAAS,EACb,cAAc,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,EACjG,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,GAClC,kBAAkB,CAgBpB;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAEnE;AAKD,wBAAgB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A;CAAE,CAOlC;AAKD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAKnE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAchE;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAIxC;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK/C;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAS7C;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/C"}
@@ -0,0 +1,19 @@
1
+ import type { ChipMeta } from './statusline-picker.js';
2
+ interface MailboxActivityStatus {
3
+ unread: number;
4
+ onlineAgents: number;
5
+ onlineClients: {
6
+ tui: number;
7
+ webui: number;
8
+ repl: number;
9
+ };
10
+ lastSubject?: string | null | undefined;
11
+ lastFrom?: string | null | undefined;
12
+ }
13
+ export declare function isStreamChipVisible(key: 'brain' | 'mailbox' | 'enhance' | 'debug_stream', dataIsPresent: unknown, hiddenSet: ReadonlySet<string>, visibleChips: ChipMeta[]): boolean;
14
+ export declare function hasMailboxActivity(mailbox: MailboxActivityStatus | undefined): boolean;
15
+ export declare function modeIcon(label?: string): string;
16
+ export declare function formatSuggestionLabel(label: string, maxLen?: number): string;
17
+ export declare function countdownColor(secs: number, warn: number, danger: number): string;
18
+ export {};
19
+ //# sourceMappingURL=status-bar-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-bar-helpers.d.ts","sourceRoot":"","sources":["../../src/components/status-bar-helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD,UAAU,qBAAqB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC;AAOD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,cAAc,EACrD,aAAa,EAAE,OAAO,EACtB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,YAAY,EAAE,QAAQ,EAAE,GACvB,OAAO,CAOT;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,GAAG,SAAS,GAAG,OAAO,CAYtF;AAgBD,wBAAgB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/C;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,SAAK,GAAG,MAAM,CAOxE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAIjF"}