@wrongstack/tui 0.284.1 → 0.286.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 (249) hide show
  1. package/dist/app-initial-state.d.ts +28 -0
  2. package/dist/app-initial-state.d.ts.map +1 -0
  3. package/dist/app-reducer.d.ts +5 -0
  4. package/dist/app-reducer.d.ts.map +1 -0
  5. package/dist/app-state.d.ts +1841 -0
  6. package/dist/app-state.d.ts.map +1 -0
  7. package/dist/app.d.ts +593 -0
  8. package/dist/app.d.ts.map +1 -0
  9. package/dist/clipboard.d.ts +2 -0
  10. package/dist/clipboard.d.ts.map +1 -0
  11. package/dist/components/agents-monitor.d.ts +114 -0
  12. package/dist/components/agents-monitor.d.ts.map +1 -0
  13. package/dist/components/animation-style.d.ts +51 -0
  14. package/dist/components/animation-style.d.ts.map +1 -0
  15. package/dist/components/audit-panel.d.ts +9 -0
  16. package/dist/components/audit-panel.d.ts.map +1 -0
  17. package/dist/components/auth-panel-model.d.ts +150 -0
  18. package/dist/components/auth-panel-model.d.ts.map +1 -0
  19. package/dist/components/auth-panel.d.ts +8 -0
  20. package/dist/components/auth-panel.d.ts.map +1 -0
  21. package/dist/components/autonomy-picker.d.ts +15 -0
  22. package/dist/components/autonomy-picker.d.ts.map +1 -0
  23. package/dist/components/brain-decision-prompt.d.ts +28 -0
  24. package/dist/components/brain-decision-prompt.d.ts.map +1 -0
  25. package/dist/components/brain-panel-model.d.ts +107 -0
  26. package/dist/components/brain-panel-model.d.ts.map +1 -0
  27. package/dist/components/brain-panel.d.ts +22 -0
  28. package/dist/components/brain-panel.d.ts.map +1 -0
  29. package/dist/components/checkpoint-timeline.d.ts +19 -0
  30. package/dist/components/checkpoint-timeline.d.ts.map +1 -0
  31. package/dist/components/confirm-prompt.d.ts +26 -0
  32. package/dist/components/confirm-prompt.d.ts.map +1 -0
  33. package/dist/components/continue-confirm-panel.d.ts +47 -0
  34. package/dist/components/continue-confirm-panel.d.ts.map +1 -0
  35. package/dist/components/coordinator-panel.d.ts +11 -0
  36. package/dist/components/coordinator-panel.d.ts.map +1 -0
  37. package/dist/components/design-picker.d.ts +14 -0
  38. package/dist/components/design-picker.d.ts.map +1 -0
  39. package/dist/components/enhance-panel.d.ts +36 -0
  40. package/dist/components/enhance-panel.d.ts.map +1 -0
  41. package/dist/components/esc-confirm-prompt.d.ts +17 -0
  42. package/dist/components/esc-confirm-prompt.d.ts.map +1 -0
  43. package/dist/components/f-key-picker.d.ts +13 -0
  44. package/dist/components/f-key-picker.d.ts.map +1 -0
  45. package/dist/components/file-picker.d.ts +8 -0
  46. package/dist/components/file-picker.d.ts.map +1 -0
  47. package/dist/components/fleet-monitor.d.ts +60 -0
  48. package/dist/components/fleet-monitor.d.ts.map +1 -0
  49. package/dist/components/fleet-panel.d.ts +69 -0
  50. package/dist/components/fleet-panel.d.ts.map +1 -0
  51. package/dist/components/goal-panel.d.ts +17 -0
  52. package/dist/components/goal-panel.d.ts.map +1 -0
  53. package/dist/components/help-overlay.d.ts +27 -0
  54. package/dist/components/help-overlay.d.ts.map +1 -0
  55. package/dist/components/help-panel.d.ts +16 -0
  56. package/dist/components/help-panel.d.ts.map +1 -0
  57. package/dist/components/history/assistant.d.ts +61 -0
  58. package/dist/components/history/assistant.d.ts.map +1 -0
  59. package/dist/components/history/banner.d.ts +13 -0
  60. package/dist/components/history/banner.d.ts.map +1 -0
  61. package/dist/components/history/code-block.d.ts +217 -0
  62. package/dist/components/history/code-block.d.ts.map +1 -0
  63. package/dist/components/history/entry.d.ts +19 -0
  64. package/dist/components/history/entry.d.ts.map +1 -0
  65. package/dist/components/history/index.d.ts +21 -0
  66. package/dist/components/history/index.d.ts.map +1 -0
  67. package/dist/components/history/replay.d.ts +44 -0
  68. package/dist/components/history/replay.d.ts.map +1 -0
  69. package/dist/components/history/types.d.ts +146 -0
  70. package/dist/components/history/types.d.ts.map +1 -0
  71. package/dist/components/history/utils.d.ts +65 -0
  72. package/dist/components/history/utils.d.ts.map +1 -0
  73. package/dist/components/history.d.ts +2 -0
  74. package/dist/components/history.d.ts.map +1 -0
  75. package/dist/components/input.d.ts +57 -0
  76. package/dist/components/input.d.ts.map +1 -0
  77. package/dist/components/kanban-panel.d.ts +7 -0
  78. package/dist/components/kanban-panel.d.ts.map +1 -0
  79. package/dist/components/key-hint-bar.d.ts +31 -0
  80. package/dist/components/key-hint-bar.d.ts.map +1 -0
  81. package/dist/components/live-activity-strip.d.ts +39 -0
  82. package/dist/components/live-activity-strip.d.ts.map +1 -0
  83. package/dist/components/mailbox-panel.d.ts +40 -0
  84. package/dist/components/mailbox-panel.d.ts.map +1 -0
  85. package/dist/components/mcp-picker.d.ts +18 -0
  86. package/dist/components/mcp-picker.d.ts.map +1 -0
  87. package/dist/components/mode-picker.d.ts +17 -0
  88. package/dist/components/mode-picker.d.ts.map +1 -0
  89. package/dist/components/model-picker.d.ts +37 -0
  90. package/dist/components/model-picker.d.ts.map +1 -0
  91. package/dist/components/phase-monitor.d.ts +33 -0
  92. package/dist/components/phase-monitor.d.ts.map +1 -0
  93. package/dist/components/phase-panel.d.ts +22 -0
  94. package/dist/components/phase-panel.d.ts.map +1 -0
  95. package/dist/components/plan-panel.d.ts +17 -0
  96. package/dist/components/plan-panel.d.ts.map +1 -0
  97. package/dist/components/plugin-picker.d.ts +22 -0
  98. package/dist/components/plugin-picker.d.ts.map +1 -0
  99. package/dist/components/process-list.d.ts +14 -0
  100. package/dist/components/process-list.d.ts.map +1 -0
  101. package/dist/components/project-picker.d.ts +21 -0
  102. package/dist/components/project-picker.d.ts.map +1 -0
  103. package/dist/components/prompt-picker.d.ts +31 -0
  104. package/dist/components/prompt-picker.d.ts.map +1 -0
  105. package/dist/components/provider-colors.d.ts +40 -0
  106. package/dist/components/provider-colors.d.ts.map +1 -0
  107. package/dist/components/queue-panel.d.ts +16 -0
  108. package/dist/components/queue-panel.d.ts.map +1 -0
  109. package/dist/components/resume-picker.d.ts +16 -0
  110. package/dist/components/resume-picker.d.ts.map +1 -0
  111. package/dist/components/scrollable-history.d.ts +60 -0
  112. package/dist/components/scrollable-history.d.ts.map +1 -0
  113. package/dist/components/sdd-board-overlay.d.ts +15 -0
  114. package/dist/components/sdd-board-overlay.d.ts.map +1 -0
  115. package/dist/components/send-mode-picker.d.ts +64 -0
  116. package/dist/components/send-mode-picker.d.ts.map +1 -0
  117. package/dist/components/sessions-panel.d.ts +46 -0
  118. package/dist/components/sessions-panel.d.ts.map +1 -0
  119. package/dist/components/settings-picker.d.ts +387 -0
  120. package/dist/components/settings-picker.d.ts.map +1 -0
  121. package/dist/components/shadow-panel.d.ts +13 -0
  122. package/dist/components/shadow-panel.d.ts.map +1 -0
  123. package/dist/components/shell-command-warning.d.ts +9 -0
  124. package/dist/components/shell-command-warning.d.ts.map +1 -0
  125. package/dist/components/slash-menu.d.ts +9 -0
  126. package/dist/components/slash-menu.d.ts.map +1 -0
  127. package/dist/components/status-bar.d.ts +378 -0
  128. package/dist/components/status-bar.d.ts.map +1 -0
  129. package/dist/components/statusline-picker.d.ts +55 -0
  130. package/dist/components/statusline-picker.d.ts.map +1 -0
  131. package/dist/components/suggestions.d.ts +9 -0
  132. package/dist/components/suggestions.d.ts.map +1 -0
  133. package/dist/components/todos-monitor.d.ts +13 -0
  134. package/dist/components/todos-monitor.d.ts.map +1 -0
  135. package/dist/components/tools-picker.d.ts +20 -0
  136. package/dist/components/tools-picker.d.ts.map +1 -0
  137. package/dist/components/worktree-monitor.d.ts +23 -0
  138. package/dist/components/worktree-monitor.d.ts.map +1 -0
  139. package/dist/components/worktree-panel.d.ts +21 -0
  140. package/dist/components/worktree-panel.d.ts.map +1 -0
  141. package/dist/f-key-panels.d.ts +46 -0
  142. package/dist/f-key-panels.d.ts.map +1 -0
  143. package/dist/file-search.d.ts +3 -0
  144. package/dist/file-search.d.ts.map +1 -0
  145. package/dist/fn-keys.d.ts +20 -0
  146. package/dist/fn-keys.d.ts.map +1 -0
  147. package/dist/git-info.d.ts +20 -0
  148. package/dist/git-info.d.ts.map +1 -0
  149. package/dist/heap-watchdog.d.ts +41 -0
  150. package/dist/heap-watchdog.d.ts.map +1 -0
  151. package/dist/highlight.d.ts +30 -0
  152. package/dist/highlight.d.ts.map +1 -0
  153. package/dist/hit-test.d.ts +75 -0
  154. package/dist/hit-test.d.ts.map +1 -0
  155. package/dist/hooks/fleet-chat-coalescer.d.ts +32 -0
  156. package/dist/hooks/fleet-chat-coalescer.d.ts.map +1 -0
  157. package/dist/hooks/use-auth-panel.d.ts +38 -0
  158. package/dist/hooks/use-auth-panel.d.ts.map +1 -0
  159. package/dist/hooks/use-autonomous-coordinator.d.ts +21 -0
  160. package/dist/hooks/use-autonomous-coordinator.d.ts.map +1 -0
  161. package/dist/hooks/use-brain-events.d.ts +7 -0
  162. package/dist/hooks/use-brain-events.d.ts.map +1 -0
  163. package/dist/hooks/use-brain-panel.d.ts +43 -0
  164. package/dist/hooks/use-brain-panel.d.ts.map +1 -0
  165. package/dist/hooks/use-director-fleet-bridge.d.ts +31 -0
  166. package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -0
  167. package/dist/hooks/use-file-search.d.ts +42 -0
  168. package/dist/hooks/use-file-search.d.ts.map +1 -0
  169. package/dist/hooks/use-input-history-persistence.d.ts +14 -0
  170. package/dist/hooks/use-input-history-persistence.d.ts.map +1 -0
  171. package/dist/hooks/use-mode-picker.d.ts +15 -0
  172. package/dist/hooks/use-mode-picker.d.ts.map +1 -0
  173. package/dist/hooks/use-model-pick.d.ts +34 -0
  174. package/dist/hooks/use-model-pick.d.ts.map +1 -0
  175. package/dist/hooks/use-paste-handling.d.ts +30 -0
  176. package/dist/hooks/use-paste-handling.d.ts.map +1 -0
  177. package/dist/hooks/use-picker-keys.d.ts +72 -0
  178. package/dist/hooks/use-picker-keys.d.ts.map +1 -0
  179. package/dist/hooks/use-prompt-picker.d.ts +28 -0
  180. package/dist/hooks/use-prompt-picker.d.ts.map +1 -0
  181. package/dist/hooks/use-queue-manager.d.ts +26 -0
  182. package/dist/hooks/use-queue-manager.d.ts.map +1 -0
  183. package/dist/hooks/use-statusline-hidden-sync.d.ts +14 -0
  184. package/dist/hooks/use-statusline-hidden-sync.d.ts.map +1 -0
  185. package/dist/hooks/use-statusline-state.d.ts +44 -0
  186. package/dist/hooks/use-statusline-state.d.ts.map +1 -0
  187. package/dist/hooks/use-stream-chip-expiration.d.ts +25 -0
  188. package/dist/hooks/use-stream-chip-expiration.d.ts.map +1 -0
  189. package/dist/hooks/use-subagent-events.d.ts +16 -0
  190. package/dist/hooks/use-subagent-events.d.ts.map +1 -0
  191. package/dist/hooks/use-token-counter-refresh.d.ts +30 -0
  192. package/dist/hooks/use-token-counter-refresh.d.ts.map +1 -0
  193. package/dist/hooks/use-tui-controllers.d.ts +37 -0
  194. package/dist/hooks/use-tui-controllers.d.ts.map +1 -0
  195. package/dist/hooks/use-tui-event-bridge.d.ts +29 -0
  196. package/dist/hooks/use-tui-event-bridge.d.ts.map +1 -0
  197. package/dist/hooks/use-working-dir-chip.d.ts +8 -0
  198. package/dist/hooks/use-working-dir-chip.d.ts.map +1 -0
  199. package/dist/index.d.ts +12 -910
  200. package/dist/index.d.ts.map +1 -0
  201. package/dist/index.js +4348 -2974
  202. package/dist/index.js.map +7 -1
  203. package/dist/ink.d.ts +20 -0
  204. package/dist/ink.d.ts.map +1 -0
  205. package/dist/input-editing.d.ts +76 -0
  206. package/dist/input-editing.d.ts.map +1 -0
  207. package/dist/input-tokens.d.ts +65 -0
  208. package/dist/input-tokens.d.ts.map +1 -0
  209. package/dist/kill-slash.d.ts +3 -0
  210. package/dist/kill-slash.d.ts.map +1 -0
  211. package/dist/markdown-table.d.ts +45 -0
  212. package/dist/markdown-table.d.ts.map +1 -0
  213. package/dist/markdown.d.ts +47 -0
  214. package/dist/markdown.d.ts.map +1 -0
  215. package/dist/mouse.d.ts +73 -0
  216. package/dist/mouse.d.ts.map +1 -0
  217. package/dist/on-panel-open.d.ts +62 -0
  218. package/dist/on-panel-open.d.ts.map +1 -0
  219. package/dist/paste-accumulator.d.ts +19 -0
  220. package/dist/paste-accumulator.d.ts.map +1 -0
  221. package/dist/ps-slash.d.ts +7 -0
  222. package/dist/ps-slash.d.ts.map +1 -0
  223. package/dist/queue-slash.d.ts +24 -0
  224. package/dist/queue-slash.d.ts.map +1 -0
  225. package/dist/reducers/fleet.d.ts +16 -0
  226. package/dist/reducers/fleet.d.ts.map +1 -0
  227. package/dist/reducers/helpers.d.ts +38 -0
  228. package/dist/reducers/helpers.d.ts.map +1 -0
  229. package/dist/rehydrate-history.d.ts +40 -0
  230. package/dist/rehydrate-history.d.ts.map +1 -0
  231. package/dist/run-tui.d.ts +522 -0
  232. package/dist/run-tui.d.ts.map +1 -0
  233. package/dist/sdd-lifecycle-entry.d.ts +18 -0
  234. package/dist/sdd-lifecycle-entry.d.ts.map +1 -0
  235. package/dist/slash-command-search.d.ts +10 -0
  236. package/dist/slash-command-search.d.ts.map +1 -0
  237. package/dist/steering-preamble.d.ts +25 -0
  238. package/dist/steering-preamble.d.ts.map +1 -0
  239. package/dist/submit-history.d.ts +17 -0
  240. package/dist/submit-history.d.ts.map +1 -0
  241. package/dist/terminal-title.d.ts +12 -0
  242. package/dist/terminal-title.d.ts.map +1 -0
  243. package/dist/theme.d.ts +91 -0
  244. package/dist/theme.d.ts.map +1 -0
  245. package/dist/thinking-word.d.ts +26 -0
  246. package/dist/thinking-word.d.ts.map +1 -0
  247. package/dist/tool-glyph.d.ts +18 -0
  248. package/dist/tool-glyph.d.ts.map +1 -0
  249. package/package.json +8 -9
@@ -0,0 +1,64 @@
1
+ import type React from 'react';
2
+ /**
3
+ * How a plain message typed mid-run should be delivered to the agent.
4
+ * Mirrors the WebUI's `QueueMode` vocabulary (ChatInput.tsx).
5
+ */
6
+ export type SendMode = 'queue' | 'btw' | 'steer';
7
+ export interface SendModeOption {
8
+ mode: SendMode;
9
+ /** Quick-select key (lower-case). */
10
+ key: string;
11
+ label: string;
12
+ description: string;
13
+ color: string;
14
+ }
15
+ /**
16
+ * The three delivery modes, Queue first so it is the default highlight and
17
+ * the safest no-op-to-in-flight-work choice. Order is load-bearing: the
18
+ * reducer indexes selection into this array.
19
+ */
20
+ export declare const SEND_MODE_OPTIONS: SendModeOption[];
21
+ /**
22
+ * Clamp-free wrap-around index move. `delta` is +1 (down) / -1 (up).
23
+ * Pure — unit-tested independently of Ink.
24
+ */
25
+ export declare function nextSendModeIndex(selected: number, delta: number, len: number): number;
26
+ /** A minimal structural view of the key event — keeps the helper pure/testable. */
27
+ export interface SendModeKey {
28
+ upArrow?: boolean | undefined;
29
+ downArrow?: boolean | undefined;
30
+ return?: boolean | undefined;
31
+ escape?: boolean | undefined;
32
+ }
33
+ /**
34
+ * Map a keypress to a picker decision. Returns:
35
+ * - a `SendMode` when the user committed a choice (quick-key or Enter),
36
+ * - `'cancel'` on Esc,
37
+ * - `null` when the key only moves the selection / is irrelevant
38
+ * (the caller handles `↑/↓` movement separately).
39
+ *
40
+ * Pure: no Ink, no React. The single source of truth for key semantics.
41
+ */
42
+ export declare function sendModeFromKey(input: string, key: SendModeKey, selected: number): SendMode | 'cancel' | null;
43
+ export declare function formatSendModeMessagePreview(text: string, maxChars?: number): string;
44
+ export interface SendModePickerProps {
45
+ selected: number;
46
+ /** The message being routed, shown so the modal question has context. */
47
+ messagePreview?: string | undefined;
48
+ /** Move the highlight by `delta` (caller clamps/wraps via nextSendModeIndex). */
49
+ onMove: (delta: number) => void;
50
+ /** Commit a decision (quick-key / Enter) or cancel (Esc → 'cancel'). */
51
+ onSelect: (decision: SendMode | 'cancel') => void;
52
+ }
53
+ /**
54
+ * Modal shown when the user submits a plain message while the agent is busy.
55
+ * Self-contained input handling (own `useInput`) like {@link EscConfirmPrompt};
56
+ * the main input is gated off via a handleKey early-return while this is open.
57
+ *
58
+ * - q / b / s → pick that mode immediately
59
+ * - ↑ / ↓ → move the highlight
60
+ * - Enter → pick the highlighted mode
61
+ * - Esc → cancel (caller treats this as Queue — text is never lost)
62
+ */
63
+ export declare function SendModePicker({ selected, messagePreview, onMove, onSelect, }: SendModePickerProps): React.ReactElement;
64
+ //# sourceMappingURL=send-mode-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-mode-picker.d.ts","sourceRoot":"","sources":["../../src/components/send-mode-picker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;AAEjD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,qCAAqC;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAsB7C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGtF;AAED,mFAAmF;AACnF,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,MAAM,GACf,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAO5B;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,SAAM,GAAG,MAAM,CAIjF;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,iFAAiF;IACjF,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,wEAAwE;IACxE,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,KAAK,IAAI,CAAC;CACnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,cAAc,EACd,MAAM,EACN,QAAQ,GACT,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CAwC1C"}
@@ -0,0 +1,46 @@
1
+ import type React from 'react';
2
+ /** A single session row from the SessionRegistry, exposed via WebSocket. */
3
+ export interface LiveSessionEntry {
4
+ sessionId: string;
5
+ projectName: string;
6
+ projectSlug: string;
7
+ projectRoot?: string | undefined;
8
+ workingDir: string;
9
+ gitBranch?: string | undefined;
10
+ status: string;
11
+ pid: number;
12
+ startedAt: string;
13
+ agentCount: number;
14
+ agents: LiveAgentEntry[];
15
+ }
16
+ export interface LiveAgentEntry {
17
+ id: string;
18
+ name: string;
19
+ status: string;
20
+ currentTool?: string | undefined;
21
+ iterations: number;
22
+ toolCalls: number;
23
+ lastActivityAt: string;
24
+ }
25
+ export interface SessionsPanelProps {
26
+ sessions: LiveSessionEntry[];
27
+ /** True while the data is being fetched. */
28
+ busy: boolean;
29
+ /** Selected index for arrow-key navigation. */
30
+ selected: number;
31
+ /**
32
+ * When set, the panel shows a confirmation prompt for session resume.
33
+ * Press Enter again to confirm, Esc to cancel.
34
+ */
35
+ resumeConfirm?: {
36
+ sessionName: string;
37
+ } | undefined;
38
+ /** The current session ID — highlighted with a ● marker. */
39
+ currentSessionId?: string | undefined;
40
+ }
41
+ /**
42
+ * Full-width panel showing all live sessions tracked by the SessionRegistry.
43
+ * Opened with F10. Mirrors the output of /sessions status.
44
+ */
45
+ export declare function SessionsPanel({ sessions, busy, selected, resumeConfirm, currentSessionId, }: SessionsPanelProps): React.ReactElement;
46
+ //# sourceMappingURL=sessions-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions-panel.d.ts","sourceRoot":"","sources":["../../src/components/sessions-panel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,4CAA4C;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IACpD,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAsCD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,gBAAgB,GACjB,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAsFzC"}
@@ -0,0 +1,387 @@
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
+ export declare const TOKEN_SAVING_TIERS: readonly ['off', 'minimal', 'light', 'medium', 'aggressive'];
50
+ export type TokenSavingTierTui = (typeof TOKEN_SAVING_TIERS)[number];
51
+ export declare const TOKEN_SAVING_TIER_DESCS: Record<TokenSavingTierTui, string>;
52
+ /**
53
+ * Fleet-chat verbosity options — cyclable via ←/→ in the settings picker.
54
+ * Values MUST match core's `FleetChatVerbosity` union (config schema).
55
+ */
56
+ export declare const FLEET_CHAT_MODES: readonly ['off', 'compact', 'full'];
57
+ export type FleetChatVerbosityTui = (typeof FLEET_CHAT_MODES)[number];
58
+ export declare const FLEET_CHAT_MODE_DESCS: Record<FleetChatVerbosityTui, string>;
59
+ export declare function formatSettingsDelay(ms: number): string;
60
+ export declare function formatMaxIterations(n: number): string;
61
+ export declare function formatMultiDiffSummaryThreshold(n: number): string;
62
+ export declare function formatEnhanceDelay(ms: number): string;
63
+ /** Animation style choices for the settings picker — all AnimationStyles plus 'cycle'. */
64
+ export declare const ANIMATION_STYLE_CHOICES: readonly ["rainbow", "wave", "pulse", "dots", "breathe", "cycle"];
65
+ export type AnimationStyleChoice = (typeof ANIMATION_STYLE_CHOICES)[number];
66
+ /** Human-readable label for an animation style choice (including cycle). */
67
+ export declare function formatAnimationStyle(style: AnimationStyleChoice): string;
68
+ export interface SettingsPickerProps {
69
+ /** Focused row index. */
70
+ field: number;
71
+ mode: SettingsMode;
72
+ delayMs: number;
73
+ titleAnimation: boolean;
74
+ yolo: boolean;
75
+ fleetChat: FleetChatVerbosityTui;
76
+ chime: boolean;
77
+ confirmExit: boolean;
78
+ nextPrediction: boolean;
79
+ featureMcp: boolean;
80
+ featurePlugins: boolean;
81
+ featureMemory: boolean;
82
+ featureSkills: boolean;
83
+ featureModelsRegistry: boolean;
84
+ /** Token-saving tier: off | minimal | light | medium | aggressive. */
85
+ tokenSavingTier: TokenSavingTierTui;
86
+ /** Allow tools to read/write paths outside the project root directory. Default: true. */
87
+ allowOutsideProjectRoot: boolean;
88
+ maxIterations: number;
89
+ /** Maximum auto-proceed iterations before stopping (0 = unlimited). */
90
+ autoProceedMaxIterations: number;
91
+ /** Prompt refinement preview countdown (ms). Cycled via ENHANCE_DELAY_PRESETS. */
92
+ enhanceDelayMs: number;
93
+ /** Enable/disable prompt refinement. */
94
+ enhanceEnabled: boolean;
95
+ /** Default language for refinement: original (keep user's language) or english. */
96
+ enhanceLanguage: EnhanceLanguage;
97
+ /** Run incremental index at session start. */
98
+ indexOnStart: boolean;
99
+ /** User-tunable cutoff for the multi-file diff summary footer. 0 = off. */
100
+ multiDiffSummaryThreshold: number;
101
+ /** Thinking word displayed in status bar while agent is working. */
102
+ thinkingWord: string;
103
+ /** True while the user is free-text editing the thinking word (Enter on the row). */
104
+ thinkingWordEditing?: boolean | undefined;
105
+ /** In-progress text buffer shown while `thinkingWordEditing`. */
106
+ thinkingWordDraft?: string | undefined;
107
+ /** Reasoning mode: auto (provider default) | on | off. */
108
+ reasoningMode: ReasoningMode;
109
+ /** Reasoning effort level. */
110
+ reasoningEffort: ReasoningEffort;
111
+ /** Preserve thinking across turns. */
112
+ reasoningPreserve: boolean;
113
+ /** Prompt cache TTL. */
114
+ cacheTtl: CacheTtl;
115
+ contextAutoCompact: boolean;
116
+ contextStrategy: CompactorStrategy;
117
+ contextMode: ContextMode;
118
+ maxConcurrent: number;
119
+ logLevel: LogLevel;
120
+ auditLevel: AuditLevel;
121
+ /** Whether the process circuit breaker gates bash/exec. */
122
+ breakerEnabled: boolean;
123
+ /** Auto kill/reset delay (ms) when the breaker trips. 0 = manual recovery. */
124
+ breakerAutoKillResetMs: number;
125
+ /** Raw SSE stream debugging toggle — hex-dump every byte received from providers. */
126
+ debugStream: boolean;
127
+ /** Statusline density: minimum single-line or detailed multi-line. */
128
+ statuslineMode: StatuslineMode;
129
+ /** Where settings are persisted. */
130
+ configScope: ConfigScope;
131
+ /**
132
+ * Animation style for the status bar's working/thinking chip.
133
+ * One of the AnimationStyle values, or 'cycle' to rotate through variants.
134
+ */
135
+ animationStyle: AnimationStyleChoice;
136
+ /**
137
+ * Live filter for the row-search modal (entered via `/`). When non-empty,
138
+ * the picker renders only matching rows. The leading `/` is part of the
139
+ * value (matches fzf/vim convention) — the matcher strips it before
140
+ * matching against row labels.
141
+ */
142
+ filter?: string | undefined;
143
+ hint?: string | undefined;
144
+ }
145
+ /** Total number of settings rows (used for wrap-around navigation). */
146
+ export declare const SETTINGS_FIELD_COUNT = 39;
147
+ /**
148
+ * Field index of the "Thinking word" row. The reducer's per-field switch and
149
+ * the app.tsx key handler both branch on this, so it lives next to the row
150
+ * definitions to keep the three in sync. If the row order changes, update this.
151
+ */
152
+ export declare const THINKING_WORD_FIELD = 22;
153
+ /**
154
+ * Field index of the "Multi-diff summary" row. Same rationale as
155
+ * {@link THINKING_WORD_FIELD}: the keyboard handler in app.tsx dispatches
156
+ * `settingsFieldSet` to this index when the user presses Ctrl+M inside the
157
+ * picker, so any reorder of the Tools section must update this constant.
158
+ */
159
+ export declare const MULTI_DIFF_SUMMARY_THRESHOLD_FIELD = 21;
160
+ /**
161
+ * Map of modifier+<letter> chords to settings-picker rows. While the picker
162
+ * is open, pressing a chord jumps the cursor straight to the target row so
163
+ * the user can immediately cycle its value with ←/→ (or, for the thinking
164
+ * word, Enter to open the free-text editor).
165
+ *
166
+ * Ctrl chords must NOT collide with global bindings:
167
+ * Ctrl+S = close picker · Ctrl+G = F3 agents monitor · Ctrl+F = F2 fleet
168
+ * monitor · Ctrl+P = PhaseMonitor · Ctrl+T = F4 worktree · Ctrl+A = F5 plan
169
+ * panel · Ctrl+K = F9 goal panel.
170
+ *
171
+ * Alt chords must NOT collide with:
172
+ * Alt+V = paste image from clipboard (chat input).
173
+ *
174
+ * Alt+Shift chords (mod+Alt in the user's framing) reuse the same letter as
175
+ * plain Alt or Ctrl when the plain variants are already taken — the
176
+ * composition distinguishes them at the keyboard level. For example, the
177
+ * Ctrl and Alt+Shift sets both use 'L' for the Logging rows, but Alt+L and
178
+ * Alt+Shift+L land on different fields.
179
+ *
180
+ * Each entry's `field` must match the actual row index at render time — the
181
+ * `settingsFieldSet` action clamps out-of-range values to 0, so a drift
182
+ * between this map and the picker row order would silently land the user on
183
+ * row 0 instead of jumping them to the intended target.
184
+ */
185
+ export type SettingsPickerJumpMod = 'ctrl' | 'alt' | 'alt-shift';
186
+ export interface SettingsPickerJumpChord {
187
+ /** The modifier that, combined with the letter, triggers the jump. */
188
+ mod: SettingsPickerJumpMod;
189
+ /** The lowercase letter that triggers the jump. */
190
+ letter: string;
191
+ /** Target row index. Must match the picker's actual field order. */
192
+ field: number;
193
+ /** Short label for the help overlay and any debug surfaces. */
194
+ label: string;
195
+ }
196
+ export declare const SETTINGS_PICKER_JUMP_CHORDS: ReadonlyArray<SettingsPickerJumpChord>;
197
+ /**
198
+ * Lookup helper for the modifier+<letter> jump handler. Returns the
199
+ * target field index for the given combination, or undefined if no chord
200
+ * is bound. Centralised here so the help overlay and the keyboard
201
+ * handler share a single source of truth — adding a new chord only
202
+ * requires touching this array (and re-running the tests, which read it
203
+ * back to verify the help overlay stays in sync).
204
+ */
205
+ export declare function settingsPickerJumpField(mod: SettingsPickerJumpMod, letter: string): number | undefined;
206
+ /**
207
+ * Look up a settings-picker row by free-text name. Used by the
208
+ * `/settings <chord>` slash command so users can jump by label
209
+ * ("/settings multi-diff") in addition to the in-picker Ctrl+<letter>
210
+ * chords.
211
+ *
212
+ * Match strategies, in priority order:
213
+ * 1. Exact slug match — `/settings multi-diff-summary` → 21
214
+ * 2. Token-prefix match — `/settings multi-diff` → 21 (matches the
215
+ * leading two tokens of "Multi-diff summary")
216
+ * 3. Any-token match — `/settings chime` → 5 (matches the second
217
+ * token of "Completion chime"); `/settings context` → 29 (matches
218
+ * the first token of "Context mode")
219
+ *
220
+ * Ties (multiple rows match) resolve to the first chord in the array,
221
+ * which is the most-tweaked-row-first ordering used throughout the
222
+ * help overlay and the keyboard handler. Returns undefined if no row
223
+ * matches. The caller is expected to surface a helpful error listing
224
+ * the available names when this returns undefined.
225
+ */
226
+ export declare function settingsPickerJumpByName(name: string): number | undefined;
227
+ /**
228
+ * All unique row names in the order they appear in the picker, formatted
229
+ * as slash-separated slugs. Used by the help text of `/settings` so
230
+ * the user can see the full vocabulary without leaving the prompt.
231
+ */
232
+ export declare function settingsPickerJumpNames(): string[];
233
+ /**
234
+ * Curated words the "Thinking word" field cycles through with ←/→. The user's
235
+ * own custom word (set via Enter free-text edit or config) is folded into this
236
+ * list at runtime so cycling never drops it. All entries must satisfy
237
+ * `normalizeTuiThinkingWord` (single short word, ≤16 chars).
238
+ *
239
+ * `'thinking'` (the default) and `'random'` both surface a fresh fun word from
240
+ * the pool on each working spell — see `isRandomTuiThinkingWord`.
241
+ */
242
+ export declare const THINKING_WORD_PRESETS: readonly ['thinking', 'random', 'working', 'cooking', 'vibing', 'pondering', 'brewing', 'crunching', 'computing', 'grinding', 'noodling', 'churning', 'hacking'];
243
+ export declare const CONFIG_SCOPES: readonly ['global', 'project'];
244
+ export type ConfigScope = (typeof CONFIG_SCOPES)[number];
245
+ /**
246
+ * Partial patch for the configurable keys of the settings-picker state.
247
+ * Excludes non-configurable keys (open, field, lastSettingsField, filter,
248
+ * hint, thinkingWordEditing, thinkingWordDraft).
249
+ */
250
+ export type SettingsPickerPatch = Partial<{
251
+ mode: SettingsMode;
252
+ delayMs: number;
253
+ titleAnimation: boolean;
254
+ yolo: boolean;
255
+ fleetChat: FleetChatVerbosityTui;
256
+ chime: boolean;
257
+ confirmExit: boolean;
258
+ nextPrediction: boolean;
259
+ featureMcp: boolean;
260
+ featurePlugins: boolean;
261
+ featureMemory: boolean;
262
+ featureSkills: boolean;
263
+ featureModelsRegistry: boolean;
264
+ tokenSavingTier: TokenSavingTierTui;
265
+ allowOutsideProjectRoot: boolean;
266
+ contextAutoCompact: boolean;
267
+ contextStrategy: CompactorStrategy;
268
+ contextMode: ContextMode;
269
+ maxConcurrent: number;
270
+ logLevel: LogLevel;
271
+ auditLevel: AuditLevel;
272
+ indexOnStart: boolean;
273
+ multiDiffSummaryThreshold: number;
274
+ maxIterations: number;
275
+ autoProceedMaxIterations: number;
276
+ enhanceDelayMs: number;
277
+ enhanceEnabled: boolean;
278
+ enhanceLanguage: EnhanceLanguage;
279
+ debugStream: boolean;
280
+ statuslineMode: StatuslineMode;
281
+ reasoningMode: ReasoningMode;
282
+ reasoningEffort: ReasoningEffort;
283
+ reasoningPreserve: boolean;
284
+ thinkingWord: string;
285
+ cacheTtl: CacheTtl;
286
+ configScope: ConfigScope;
287
+ animationStyle: AnimationStyleChoice;
288
+ breakerEnabled: boolean;
289
+ breakerAutoKillResetMs: number;
290
+ }>;
291
+ /**
292
+ * Human-readable labels for all settings fields (0–SETTINGS_FIELD_COUNT-1),
293
+ * in picker row order. Used by `resolveSettingsFieldValue` for confirmation
294
+ * and error messages, and by the `/settings` help text.
295
+ */
296
+ export declare const SETTINGS_FIELD_LABELS: readonly string[];
297
+ /**
298
+ * Resolve a free-text value for a given settings field into a typed
299
+ * state patch. Used by the `/settings <chord> <value>` slash command.
300
+ *
301
+ * Value parsing rules:
302
+ * - **Boolean fields**: "on"/"off", "true"/"false", "yes"/"no",
303
+ * "1"/"0" (case-insensitive).
304
+ * - **Enum fields**: case-insensitive match against the allowed values.
305
+ * - **Preset fields**: either the raw number (e.g. "500") or the
306
+ * display name (e.g. "unlimited" for 0, "off" for 0, "1m" for 60000).
307
+ * - **Text fields** (thinking word): accepted as-is, validated by
308
+ * `normalizeTuiThinkingWord`.
309
+ *
310
+ * Returns `{ ok: true, patch, label, displayValue }` on success, or
311
+ * `{ ok: false, error }` with a helpful message listing valid options.
312
+ */
313
+ export declare function resolveSettingsFieldValue(field: number, input: string): {
314
+ ok: true;
315
+ patch: SettingsPickerPatch;
316
+ label: string;
317
+ displayValue: string;
318
+ } | {
319
+ ok: false;
320
+ error: string;
321
+ };
322
+ /**
323
+ * Read-only counterpart to {@link resolveSettingsFieldValue}. Given the
324
+ * current settings-picker values and a field index, returns the value
325
+ * formatted for display (e.g. `30s`, `unlimited`, `off`, `high`).
326
+ *
327
+ * Used by the `/settings-get <chord>` slash command so the user can
328
+ * query a setting without opening the picker.
329
+ *
330
+ * The input type is `SettingsPickerValues` — all keys of
331
+ * {@link SettingsPickerPatch} made required — which matches the
332
+ * settingsPicker state slice from app-state.ts (minus non-configurable
333
+ * keys like `open`, `field`, `filter`).
334
+ */
335
+ export type SettingsPickerValues = {
336
+ [K in keyof SettingsPickerPatch]-?: SettingsPickerPatch[K];
337
+ };
338
+ export declare function getSettingsFieldValue(values: SettingsPickerValues, field: number): {
339
+ ok: true;
340
+ label: string;
341
+ displayValue: string;
342
+ } | {
343
+ ok: false;
344
+ error: string;
345
+ };
346
+ /**
347
+ * Produce a compact, section-grouped text summary of ALL settings values.
348
+ * Used by the `/settings-get` command when called with no arguments, so
349
+ * the user can see their full configuration at a glance without opening
350
+ * the picker overlay.
351
+ *
352
+ * Format (one line per field):
353
+ * ```
354
+ * ── Autonomy ──
355
+ * Default autonomy mode auto
356
+ * Auto-proceed delay 30s
357
+ * ── UX ──
358
+ * YOLO mode off
359
+ * ...
360
+ * ```
361
+ */
362
+ export declare function formatAllSettingsSummary(values: SettingsPickerValues): string;
363
+ /**
364
+ * Default values for all configurable settings fields, in the same
365
+ * shape as {@link SettingsPickerValues}. Extracted from the reducer's
366
+ * initial state so there is a single source of truth for "factory
367
+ * defaults". Used by {@link resetSettingsFieldValue}.
368
+ */
369
+ export declare const SETTINGS_DEFAULTS: Readonly<SettingsPickerValues>;
370
+ /**
371
+ * Reset a single settings field to its factory default. Returns the
372
+ * same shape as {@link resolveSettingsFieldValue} so the command
373
+ * handler can use the same dispatch + persist logic.
374
+ *
375
+ * Used by the `/settings reset <chord>` slash command.
376
+ */
377
+ export declare function resetSettingsFieldValue(field: number): {
378
+ ok: true;
379
+ patch: SettingsPickerPatch;
380
+ label: string;
381
+ displayValue: string;
382
+ } | {
383
+ ok: false;
384
+ error: string;
385
+ };
386
+ 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, animationStyle, breakerEnabled, breakerAutoKillResetMs, hint, }: SettingsPickerProps): React.ReactElement;
387
+ //# sourceMappingURL=settings-picker.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BAAiB,EAAE,QAAQ,CAAC,oBAAoB,CA2ClD,CAAC;AAEZ;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,GACZ;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAO9G;AA6BD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,MAAM,EACN,IAAI,EACJ,OAAO,EACP,cAAc,EACd,IAAI,EACJ,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EACd,UAAU,EACV,cAAc,EACd,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,aAAa,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,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,IAAI,GACL,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CA2jB1C"}
@@ -0,0 +1,13 @@
1
+ import type React from 'react';
2
+ export interface ShadowState {
3
+ activeId: string | null;
4
+ running: boolean;
5
+ model: string;
6
+ intervalMs: number;
7
+ }
8
+ export interface ShadowPanelProps {
9
+ shadow: ShadowState;
10
+ hint?: string | undefined;
11
+ }
12
+ export declare function ShadowPanel({ shadow, hint, }: ShadowPanelProps): React.ReactElement;
13
+ //# sourceMappingURL=shadow-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadow-panel.d.ts","sourceRoot":"","sources":["../../src/components/shadow-panel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,IAAI,GACL,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAoDvC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export type ShellCommandWarningDecision = 'yes' | 'no' | 'dont-show-again';
3
+ export interface ShellCommandWarningProps {
4
+ command: string;
5
+ onDecision: (decision: ShellCommandWarningDecision) => void;
6
+ }
7
+ export declare function truncateShellCommandWarningCommand(text: string, max?: number): string;
8
+ export declare function ShellCommandWarning({ command, onDecision, }: ShellCommandWarningProps): React.ReactElement;
9
+ //# sourceMappingURL=shell-command-warning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-command-warning.d.ts","sourceRoot":"","sources":["../../src/components/shell-command-warning.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,2BAA2B,GAAG,KAAK,GAAG,IAAI,GAAG,iBAAiB,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,CAAC,QAAQ,EAAE,2BAA2B,KAAK,IAAI,CAAC;CAC7D;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAEjF;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,UAAU,GACX,EAAE,wBAAwB,GAAG,KAAK,CAAC,YAAY,CAsC/C"}
@@ -0,0 +1,9 @@
1
+ import type React from 'react';
2
+ import type { SlashCommandMatch } from '../app-state.js';
3
+ export interface SlashMenuProps {
4
+ query: string;
5
+ matches: SlashCommandMatch[];
6
+ selected: number;
7
+ }
8
+ export declare function SlashMenu({ query, matches, selected }: SlashMenuProps): React.ReactElement;
9
+ //# sourceMappingURL=slash-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slash-menu.d.ts","sourceRoot":"","sources":["../../src/components/slash-menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB;AASD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,cAAc,GAAG,KAAK,CAAC,YAAY,CA+D1F"}