@wrongstack/tui 0.295.1 → 0.296.2

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 (274) hide show
  1. package/dist/app-action-type.d.ts +987 -0
  2. package/dist/app-action-type.d.ts.map +1 -0
  3. package/dist/app-initial-state.d.ts.map +1 -1
  4. package/dist/app-key-handler.d.ts +11 -3
  5. package/dist/app-key-handler.d.ts.map +1 -1
  6. package/dist/app-props.d.ts +4 -2
  7. package/dist/app-props.d.ts.map +1 -1
  8. package/dist/app-reducer.d.ts +4 -2
  9. package/dist/app-reducer.d.ts.map +1 -1
  10. package/dist/app-settings-type.d.ts +73 -0
  11. package/dist/app-settings-type.d.ts.map +1 -0
  12. package/dist/app-state-core-types.d.ts +52 -0
  13. package/dist/app-state-core-types.d.ts.map +1 -0
  14. package/dist/app-state-fleet.d.ts +44 -0
  15. package/dist/app-state-fleet.d.ts.map +1 -0
  16. package/dist/app-state.d.ts +46 -1179
  17. package/dist/app-state.d.ts.map +1 -1
  18. package/dist/app-ui-state.d.ts +5 -0
  19. package/dist/app-ui-state.d.ts.map +1 -0
  20. package/dist/app-view-contract.d.ts +8 -1
  21. package/dist/app-view-contract.d.ts.map +1 -1
  22. package/dist/app-view.d.ts.map +1 -1
  23. package/dist/app.d.ts.map +1 -1
  24. package/dist/brain-panel-model.d.ts +8 -0
  25. package/dist/brain-panel-model.d.ts.map +1 -1
  26. package/dist/clipboard.d.ts +1 -1
  27. package/dist/clipboard.d.ts.map +1 -1
  28. package/dist/components/agents-monitor-constants.d.ts +12 -0
  29. package/dist/components/agents-monitor-constants.d.ts.map +1 -0
  30. package/dist/components/agents-monitor.d.ts +1 -7
  31. package/dist/components/agents-monitor.d.ts.map +1 -1
  32. package/dist/components/auth-panel.d.ts +2 -0
  33. package/dist/components/auth-panel.d.ts.map +1 -1
  34. package/dist/components/brain-panel.d.ts.map +1 -1
  35. package/dist/components/connections-panel.d.ts +7 -0
  36. package/dist/components/connections-panel.d.ts.map +1 -0
  37. package/dist/components/f-key-picker.d.ts.map +1 -1
  38. package/dist/components/history/basic-format.d.ts +19 -0
  39. package/dist/components/history/basic-format.d.ts.map +1 -0
  40. package/dist/components/history/code-block-diff-helpers.d.ts +28 -0
  41. package/dist/components/history/code-block-diff-helpers.d.ts.map +1 -0
  42. package/dist/components/history/code-block.d.ts +1 -1
  43. package/dist/components/history/code-block.d.ts.map +1 -1
  44. package/dist/components/history/copy-icon.d.ts +25 -0
  45. package/dist/components/history/copy-icon.d.ts.map +1 -0
  46. package/dist/components/history/entry.d.ts.map +1 -1
  47. package/dist/components/history/index.d.ts +5 -6
  48. package/dist/components/history/index.d.ts.map +1 -1
  49. package/dist/components/history/sage-output-format.d.ts +20 -0
  50. package/dist/components/history/sage-output-format.d.ts.map +1 -0
  51. package/dist/components/history/stream-box.d.ts +23 -0
  52. package/dist/components/history/stream-box.d.ts.map +1 -0
  53. package/dist/components/history/tool-arg-format.d.ts +5 -0
  54. package/dist/components/history/tool-arg-format.d.ts.map +1 -0
  55. package/dist/components/history/tool-group.d.ts.map +1 -1
  56. package/dist/components/history/tool-output-summary.d.ts +4 -0
  57. package/dist/components/history/tool-output-summary.d.ts.map +1 -0
  58. package/dist/components/history/tool-visual-command.d.ts +3 -0
  59. package/dist/components/history/tool-visual-command.d.ts.map +1 -0
  60. package/dist/components/history/tool-visual-domain.d.ts +8 -0
  61. package/dist/components/history/tool-visual-domain.d.ts.map +1 -0
  62. package/dist/components/history/tool-visual-format.d.ts +13 -0
  63. package/dist/components/history/tool-visual-format.d.ts.map +1 -0
  64. package/dist/components/history/tool-visual-lsp.d.ts +4 -0
  65. package/dist/components/history/tool-visual-lsp.d.ts.map +1 -0
  66. package/dist/components/history/tool-visual-misc.d.ts +7 -0
  67. package/dist/components/history/tool-visual-misc.d.ts.map +1 -0
  68. package/dist/components/history/tool-visual-mode-workdir.d.ts +4 -0
  69. package/dist/components/history/tool-visual-mode-workdir.d.ts.map +1 -0
  70. package/dist/components/history/tool-visual-types.d.ts +9 -0
  71. package/dist/components/history/tool-visual-types.d.ts.map +1 -0
  72. package/dist/components/history/utils.d.ts +14 -54
  73. package/dist/components/history/utils.d.ts.map +1 -1
  74. package/dist/components/history/visual-lines.d.ts +7 -0
  75. package/dist/components/history/visual-lines.d.ts.map +1 -0
  76. package/dist/components/history/visual-memory-logs.d.ts +4 -0
  77. package/dist/components/history/visual-memory-logs.d.ts.map +1 -0
  78. package/dist/components/input.d.ts.map +1 -1
  79. package/dist/components/kanban-panel.d.ts.map +1 -1
  80. package/dist/components/key-hint-bar.d.ts +11 -0
  81. package/dist/components/key-hint-bar.d.ts.map +1 -1
  82. package/dist/components/powerline-rail.d.ts +11 -4
  83. package/dist/components/powerline-rail.d.ts.map +1 -1
  84. package/dist/components/provider-colors.d.ts.map +1 -1
  85. package/dist/components/refine-countdown-panel.d.ts +25 -0
  86. package/dist/components/refine-countdown-panel.d.ts.map +1 -0
  87. package/dist/components/refine-failure-panel.d.ts +1 -0
  88. package/dist/components/refine-failure-panel.d.ts.map +1 -1
  89. package/dist/components/resume-picker.d.ts.map +1 -1
  90. package/dist/components/scrollable-history.d.ts +96 -17
  91. package/dist/components/scrollable-history.d.ts.map +1 -1
  92. package/dist/components/settings-picker-filter.d.ts +20 -0
  93. package/dist/components/settings-picker-filter.d.ts.map +1 -0
  94. package/dist/components/settings-picker-jumps.d.ts +16 -0
  95. package/dist/components/settings-picker-jumps.d.ts.map +1 -0
  96. package/dist/components/settings-picker-model.d.ts +270 -0
  97. package/dist/components/settings-picker-model.d.ts.map +1 -0
  98. package/dist/components/settings-picker-row-list.d.ts +21 -0
  99. package/dist/components/settings-picker-row-list.d.ts.map +1 -0
  100. package/dist/components/settings-picker.d.ts +6 -313
  101. package/dist/components/settings-picker.d.ts.map +1 -1
  102. package/dist/components/status-bar-format.d.ts +65 -0
  103. package/dist/components/status-bar-format.d.ts.map +1 -0
  104. package/dist/components/status-bar-helpers.d.ts +19 -0
  105. package/dist/components/status-bar-helpers.d.ts.map +1 -0
  106. package/dist/components/status-bar-types.d.ts +350 -0
  107. package/dist/components/status-bar-types.d.ts.map +1 -0
  108. package/dist/components/status-bar.d.ts +4 -444
  109. package/dist/components/status-bar.d.ts.map +1 -1
  110. package/dist/components/statusline-detail-panel.d.ts.map +1 -1
  111. package/dist/components/statusline-picker.d.ts +5 -3
  112. package/dist/components/statusline-picker.d.ts.map +1 -1
  113. package/dist/connections-health.d.ts +39 -0
  114. package/dist/connections-health.d.ts.map +1 -0
  115. package/dist/connections-slash.d.ts +12 -0
  116. package/dist/connections-slash.d.ts.map +1 -0
  117. package/dist/esc-close-panels.d.ts.map +1 -1
  118. package/dist/f-key-panels.d.ts +4 -2
  119. package/dist/f-key-panels.d.ts.map +1 -1
  120. package/dist/heap-watchdog.d.ts.map +1 -1
  121. package/dist/height-cache.d.ts.map +1 -1
  122. package/dist/history-archive.d.ts +69 -0
  123. package/dist/history-archive.d.ts.map +1 -0
  124. package/dist/history-entry.d.ts +2 -0
  125. package/dist/history-entry.d.ts.map +1 -1
  126. package/dist/hit-test.d.ts +3 -4
  127. package/dist/hit-test.d.ts.map +1 -1
  128. package/dist/hooks/use-app-picker-keys.d.ts +3 -2
  129. package/dist/hooks/use-app-picker-keys.d.ts.map +1 -1
  130. package/dist/hooks/use-app-runtime-refs.d.ts +38 -0
  131. package/dist/hooks/use-app-runtime-refs.d.ts.map +1 -0
  132. package/dist/hooks/use-app-session-state.d.ts +28 -0
  133. package/dist/hooks/use-app-session-state.d.ts.map +1 -0
  134. package/dist/hooks/use-autonomy-drivers.d.ts +1 -1
  135. package/dist/hooks/use-autonomy-drivers.d.ts.map +1 -1
  136. package/dist/hooks/use-brain-panel.d.ts +1 -1
  137. package/dist/hooks/use-brain-panel.d.ts.map +1 -1
  138. package/dist/hooks/use-brain-risk-sync.d.ts +11 -0
  139. package/dist/hooks/use-brain-risk-sync.d.ts.map +1 -0
  140. package/dist/hooks/use-client-telemetry.d.ts +1 -1
  141. package/dist/hooks/use-client-telemetry.d.ts.map +1 -1
  142. package/dist/hooks/use-core-tui-commands.d.ts +2 -1
  143. package/dist/hooks/use-core-tui-commands.d.ts.map +1 -1
  144. package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -1
  145. package/dist/hooks/use-enhance-runtime-state.d.ts +23 -0
  146. package/dist/hooks/use-enhance-runtime-state.d.ts.map +1 -0
  147. package/dist/hooks/use-help-panel.d.ts +6 -0
  148. package/dist/hooks/use-help-panel.d.ts.map +1 -0
  149. package/dist/hooks/use-history-copy-notice.d.ts +4 -0
  150. package/dist/hooks/use-history-copy-notice.d.ts.map +1 -0
  151. package/dist/hooks/use-history-viewport-sync.d.ts +13 -0
  152. package/dist/hooks/use-history-viewport-sync.d.ts.map +1 -0
  153. package/dist/hooks/use-initial-prompt.d.ts +1 -1
  154. package/dist/hooks/use-initial-prompt.d.ts.map +1 -1
  155. package/dist/hooks/use-interrupt-ladder.d.ts +2 -1
  156. package/dist/hooks/use-interrupt-ladder.d.ts.map +1 -1
  157. package/dist/hooks/use-kanban-board-focus.d.ts +8 -0
  158. package/dist/hooks/use-kanban-board-focus.d.ts.map +1 -0
  159. package/dist/hooks/use-live-settings-state.d.ts +20 -0
  160. package/dist/hooks/use-live-settings-state.d.ts.map +1 -0
  161. package/dist/hooks/use-mailbox-view-model.d.ts.map +1 -1
  162. package/dist/hooks/use-model-pick.d.ts +1 -1
  163. package/dist/hooks/use-model-pick.d.ts.map +1 -1
  164. package/dist/hooks/use-mouse-tracking.d.ts +15 -0
  165. package/dist/hooks/use-mouse-tracking.d.ts.map +1 -0
  166. package/dist/hooks/use-next-steps-auto-submit.d.ts +2 -1
  167. package/dist/hooks/use-next-steps-auto-submit.d.ts.map +1 -1
  168. package/dist/hooks/use-panel-controllers.d.ts +2 -1
  169. package/dist/hooks/use-panel-controllers.d.ts.map +1 -1
  170. package/dist/hooks/use-picker-keys-types.d.ts +56 -0
  171. package/dist/hooks/use-picker-keys-types.d.ts.map +1 -0
  172. package/dist/hooks/use-picker-keys.d.ts +2 -64
  173. package/dist/hooks/use-picker-keys.d.ts.map +1 -1
  174. package/dist/hooks/use-provider-event-bridge.d.ts +1 -1
  175. package/dist/hooks/use-provider-event-bridge.d.ts.map +1 -1
  176. package/dist/hooks/use-session-interrupt-controller.d.ts +6 -1
  177. package/dist/hooks/use-session-interrupt-controller.d.ts.map +1 -1
  178. package/dist/hooks/use-settings-auto-save.d.ts +2 -1
  179. package/dist/hooks/use-settings-auto-save.d.ts.map +1 -1
  180. package/dist/hooks/use-shadow-panel.d.ts +17 -0
  181. package/dist/hooks/use-shadow-panel.d.ts.map +1 -0
  182. package/dist/hooks/use-slash-picker.d.ts +2 -1
  183. package/dist/hooks/use-slash-picker.d.ts.map +1 -1
  184. package/dist/hooks/use-stable-key-handler.d.ts +5 -0
  185. package/dist/hooks/use-stable-key-handler.d.ts.map +1 -0
  186. package/dist/hooks/use-subagent-events.d.ts.map +1 -1
  187. package/dist/hooks/use-terminal-render-lifecycle.d.ts.map +1 -1
  188. package/dist/hooks/use-todos-auto-clear.d.ts +3 -0
  189. package/dist/hooks/use-todos-auto-clear.d.ts.map +1 -0
  190. package/dist/hooks/use-tui-activity.d.ts +7 -1
  191. package/dist/hooks/use-tui-activity.d.ts.map +1 -1
  192. package/dist/hooks/use-tui-environment-state.d.ts +1 -0
  193. package/dist/hooks/use-tui-environment-state.d.ts.map +1 -1
  194. package/dist/hooks/use-tui-slash-commands.d.ts +2 -1
  195. package/dist/hooks/use-tui-slash-commands.d.ts.map +1 -1
  196. package/dist/index.js +19676 -17853
  197. package/dist/index.js.map +4 -4
  198. package/dist/input-validation/action-helpers.d.ts +12 -0
  199. package/dist/input-validation/action-helpers.d.ts.map +1 -0
  200. package/dist/input-validation/action-types.d.ts +4 -0
  201. package/dist/input-validation/action-types.d.ts.map +1 -0
  202. package/dist/input-validation/allow-lists.d.ts +29 -0
  203. package/dist/input-validation/allow-lists.d.ts.map +1 -0
  204. package/dist/input-validation/limits.d.ts +27 -0
  205. package/dist/input-validation/limits.d.ts.map +1 -0
  206. package/dist/input-validation/result.d.ts +10 -0
  207. package/dist/input-validation/result.d.ts.map +1 -0
  208. package/dist/input-validation/state-entries.d.ts +22 -0
  209. package/dist/input-validation/state-entries.d.ts.map +1 -0
  210. package/dist/input-validation/terminal.d.ts +69 -0
  211. package/dist/input-validation/terminal.d.ts.map +1 -0
  212. package/dist/input-validation.d.ts +7 -176
  213. package/dist/input-validation.d.ts.map +1 -1
  214. package/dist/layout-engine.d.ts +1 -1
  215. package/dist/layout-engine.d.ts.map +1 -1
  216. package/dist/layout-store.d.ts.map +1 -1
  217. package/dist/mailbox-view-model-types.d.ts +19 -0
  218. package/dist/mailbox-view-model-types.d.ts.map +1 -0
  219. package/dist/memory-context-monitor.d.ts.map +1 -1
  220. package/dist/memory-slash-format.d.ts +10 -0
  221. package/dist/memory-slash-format.d.ts.map +1 -0
  222. package/dist/memory-slash.d.ts.map +1 -1
  223. package/dist/mouse.d.ts +11 -4
  224. package/dist/mouse.d.ts.map +1 -1
  225. package/dist/on-panel-open.d.ts +1 -1
  226. package/dist/on-panel-open.d.ts.map +1 -1
  227. package/dist/overlay-key-router.d.ts.map +1 -1
  228. package/dist/reducers/activity.d.ts +2 -1
  229. package/dist/reducers/activity.d.ts.map +1 -1
  230. package/dist/reducers/composer.d.ts +2 -1
  231. package/dist/reducers/composer.d.ts.map +1 -1
  232. package/dist/reducers/conversation.d.ts +3 -2
  233. package/dist/reducers/conversation.d.ts.map +1 -1
  234. package/dist/reducers/dialogs.d.ts +3 -2
  235. package/dist/reducers/dialogs.d.ts.map +1 -1
  236. package/dist/reducers/fleet.d.ts +2 -1
  237. package/dist/reducers/fleet.d.ts.map +1 -1
  238. package/dist/reducers/helpers.d.ts +1 -1
  239. package/dist/reducers/helpers.d.ts.map +1 -1
  240. package/dist/reducers/panel-pickers.d.ts +2 -1
  241. package/dist/reducers/panel-pickers.d.ts.map +1 -1
  242. package/dist/reducers/settings-panel.d.ts +2 -1
  243. package/dist/reducers/settings-panel.d.ts.map +1 -1
  244. package/dist/reducers/settings-values.d.ts +2 -1
  245. package/dist/reducers/settings-values.d.ts.map +1 -1
  246. package/dist/reducers/workspace-panels.d.ts +3 -2
  247. package/dist/reducers/workspace-panels.d.ts.map +1 -1
  248. package/dist/run-tui-client-registration.d.ts +18 -0
  249. package/dist/run-tui-client-registration.d.ts.map +1 -0
  250. package/dist/run-tui-options.d.ts +569 -0
  251. package/dist/run-tui-options.d.ts.map +1 -0
  252. package/dist/run-tui-title-controller.d.ts +16 -0
  253. package/dist/run-tui-title-controller.d.ts.map +1 -0
  254. package/dist/run-tui.d.ts +5 -572
  255. package/dist/run-tui.d.ts.map +1 -1
  256. package/dist/scroll-anchor.d.ts +10 -14
  257. package/dist/scroll-anchor.d.ts.map +1 -1
  258. package/dist/settings-contracts.d.ts +1 -1
  259. package/dist/settings-contracts.d.ts.map +1 -1
  260. package/dist/submit-controller.d.ts +4 -0
  261. package/dist/submit-controller.d.ts.map +1 -1
  262. package/dist/submit-prompt-refinement.d.ts +2 -0
  263. package/dist/submit-prompt-refinement.d.ts.map +1 -1
  264. package/dist/terminal-modes.d.ts +3 -0
  265. package/dist/terminal-modes.d.ts.map +1 -0
  266. package/dist/terminal-silence.d.ts +3 -0
  267. package/dist/terminal-silence.d.ts.map +1 -0
  268. package/dist/terminal-title.d.ts +7 -1
  269. package/dist/terminal-title.d.ts.map +1 -1
  270. package/dist/tui-host-capabilities.d.ts +1 -1
  271. package/dist/tui-host-capabilities.d.ts.map +1 -1
  272. package/dist/ui-contracts.d.ts +2 -1
  273. package/dist/ui-contracts.d.ts.map +1 -1
  274. package/package.json +11 -12
@@ -1 +1 @@
1
- {"version":3,"file":"tool-group.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-group.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,YAAY,EAAE,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tD,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,2CAA2C;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC;AAIhD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAczC,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAExD;AAuBD,0EAA0E;AAC1E,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CA6DxF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,GAAG,WAAW,EAAE,CAiD5E;AAmDD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,SAAS,GACV,EAAE;IACD,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,KAAK,CAAC,YAAY,CAsCrB"}
@@ -0,0 +1,4 @@
1
+ export declare const OUT_BUDGET = 80;
2
+ export declare const GENERIC_BUDGET = 240;
3
+ export declare function summarizeJsonObject(obj: Record<string, unknown>): string | null;
4
+ //# sourceMappingURL=tool-output-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-output-summary.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-output-summary.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI,CA4C/E"}
@@ -0,0 +1,3 @@
1
+ import type { ToolVisualLine } from './tool-visual-types.js';
2
+ export declare function visualCommand(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
3
+ //# sourceMappingURL=tool-visual-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-visual-command.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,wBAAwB,CAAC;AAIjF,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CAyB9B"}
@@ -0,0 +1,8 @@
1
+ import type { ToolVisualLine } from './tool-visual-types.js';
2
+ export declare function visualTodo(text: string, input?: unknown): ToolVisualLine[] | undefined;
3
+ export declare function visualWorkBoard(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
4
+ export declare function visualDocument(text: string): ToolVisualLine[] | undefined;
5
+ export declare function visualToolCatalog(toolName: string, text: string): ToolVisualLine[] | undefined;
6
+ export declare function visualMetaExecution(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
7
+ export declare function visualCodebase(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
8
+ //# sourceMappingURL=tool-visual-domain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-visual-domain.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-domain.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,SAAS,CAyCtF;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CA6B9B;AA2CD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAqBzE;AAoBD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CA4B9F;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CA2C9B;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CA2D9B"}
@@ -0,0 +1,13 @@
1
+ import type { ToolVisualLine } from './tool-visual-types.js';
2
+ export declare function recordToStringFields(obj: Record<string, unknown>): Record<string, string>;
3
+ export declare function appendOutputPreview(rows: ToolVisualLine[], output: string | undefined, kind: 'stdout' | 'stderr'): void;
4
+ export declare function bodyLines(text: string): string[];
5
+ export declare function parseHeaderLine(text: string): {
6
+ label: string;
7
+ fields: Record<string, string>;
8
+ };
9
+ export declare function parseInlineFields(raw: string): Record<string, string>;
10
+ export declare function parseNamedSections(text: string): Map<string, string>;
11
+ export declare function parseKeyValueLines(text: string): Record<string, string>;
12
+ export declare function numberFromParsedField(fields: Record<string, string>, key: string): number | undefined;
13
+ //# sourceMappingURL=tool-visual-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-visual-format.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASzF;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,cAAc,EAAE,EACtB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,IAAI,EAAE,QAAQ,GAAG,QAAQ,GACxB,IAAI,CAMN;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAMhD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAM/F;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMrE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAoBpE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOvE;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,SAAS,CAKpB"}
@@ -0,0 +1,4 @@
1
+ import type { ToolVisualLine } from './tool-visual-types.js';
2
+ /** Turn the compact text emitted by plug-lsp into navigable, severity-aware rows. */
3
+ export declare function visualLsp(toolName: string, text: string, ok: boolean): ToolVisualLine[];
4
+ //# sourceMappingURL=tool-visual-lsp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-visual-lsp.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-lsp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,qFAAqF;AACrF,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,cAAc,EAAE,CAmGvF"}
@@ -0,0 +1,7 @@
1
+ import type { ToolVisualLine } from './tool-visual-types.js';
2
+ export declare function visualFetch(text: string): ToolVisualLine[] | undefined;
3
+ export declare function visualJson(text: string): ToolVisualLine[] | undefined;
4
+ export declare function visualOutdated(text: string): ToolVisualLine[] | undefined;
5
+ export declare function visualAudit(text: string): ToolVisualLine[] | undefined;
6
+ export declare function visualScaffold(text: string): ToolVisualLine[] | undefined;
7
+ //# sourceMappingURL=tool-visual-misc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-visual-misc.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-misc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,wBAAwB,CAAC;AAIjF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAetE;AA6BD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAiBrE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAMzE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAkBtE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAazE"}
@@ -0,0 +1,4 @@
1
+ import type { ToolVisualLine } from './tool-visual-types.js';
2
+ export declare function visualWorkingDir(text: string, ok: boolean): ToolVisualLine[] | undefined;
3
+ export declare function visualMode(text: string, ok: boolean): ToolVisualLine[] | undefined;
4
+ //# sourceMappingURL=tool-visual-mode-workdir.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-visual-mode-workdir.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-mode-workdir.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,SAAS,CAgBxF;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,SAAS,CAuClF"}
@@ -0,0 +1,9 @@
1
+ export type ToolVisualLineKind = 'ok' | 'warn' | 'error' | 'meta' | 'path' | 'match' | 'code' | 'stdout' | 'stderr';
2
+ export interface ToolVisualLine {
3
+ kind: ToolVisualLineKind;
4
+ text: string;
5
+ marker?: string | undefined;
6
+ lineNo?: string | undefined;
7
+ path?: string | undefined;
8
+ }
9
+ //# sourceMappingURL=tool-visual-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-visual-types.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B,IAAI,GACJ,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B"}
@@ -1,67 +1,27 @@
1
- import React from 'react';
2
- export declare function shortenPath(p: string, max: number): string;
3
- export declare function previewArgs(input: unknown): string;
4
- export declare function previewOutput(output: string): string;
5
- export declare function fmtTok(n: number): string;
6
- export declare function fmtDuration(ms: number): string;
7
- export declare function fmtBytes(n: number): string;
8
- export declare function truncMid(s: string, max: number): string;
9
- export declare function stringOf(v: unknown): string | undefined;
10
- export declare function numOf(v: unknown): number | undefined;
11
- export declare function tryParseJson(s: string): unknown;
12
- export declare function scanNumberedRange(text: string): {
13
- first?: number | undefined;
14
- last?: number | undefined;
15
- count: number;
16
- };
17
- export declare function countLines(text: string): number;
18
- export declare function firstNonEmpty(text: string): string | undefined;
19
- export declare function formatMatchHit(hit: unknown): string | undefined;
1
+ export { countLines, firstNonEmpty, fmtBytes, fmtDuration, fmtTok, formatMatchHit, numOf, previewArgs, previewOutput, scanNumberedRange, shortenPath, stringOf, truncMid, tryParseJson, } from './basic-format.js';
2
+ export { MAX_STREAM_DISPLAY_CHARS, streamBoxRows, ToolStreamBox, tailForDisplay, toolStreamBoxHeight, } from './stream-box.js';
3
+ export { ToolOutputLines } from './visual-lines.js';
4
+ export type { ToolVisualLine, ToolVisualLineKind } from './tool-visual-types.js';
5
+ import type { ToolVisualLine } from './tool-visual-types.js';
6
+ export { formatToolArgs } from './tool-arg-format.js';
7
+ export { extractSageBlock, type SageSplit } from './sage-output-format.js';
20
8
  /**
21
- * Render the most useful single-line description of a tool call's arguments.
9
+ * Like `formatToolOutput` but strips SAGE-injected memory lines first.
10
+ * Returns the tool output lines and any SAGE block lines separately.
22
11
  */
23
- export declare function formatToolArgs(toolName: string, input: unknown): string;
12
+ export declare function formatToolOutputSage(toolName: string, output: string | undefined, ok: boolean, outputBytes?: number | undefined, outputLines?: number | undefined): {
13
+ cleanOutput: string;
14
+ outLines: string[];
15
+ sageLines: string[];
16
+ };
24
17
  /**
25
18
  * Distil a tool's result text into 0–N digest lines the renderer can stack.
26
19
  */
27
20
  export declare function formatToolOutput(toolName: string, output: string | undefined, ok: boolean, _outputBytes?: number | undefined, outputLines?: number | undefined): string[];
28
- export type ToolVisualLineKind = 'ok' | 'warn' | 'error' | 'meta' | 'path' | 'match' | 'code' | 'stdout' | 'stderr';
29
- export interface ToolVisualLine {
30
- kind: ToolVisualLineKind;
31
- text: string;
32
- marker?: string | undefined;
33
- lineNo?: string | undefined;
34
- path?: string | undefined;
35
- }
36
21
  /**
37
22
  * Build richer terminal-native rows for common tool outputs. This handles both
38
23
  * raw JSON-shaped results used by unit tests and the compact serializer text
39
24
  * emitted in real sessions.
40
25
  */
41
26
  export declare function formatToolVisualOutput(toolName: string, output: string | undefined, ok: boolean, input?: unknown | undefined): ToolVisualLine[] | undefined;
42
- export declare function ToolOutputLines({ lines, hasFollowingBlock, }: {
43
- lines: ToolVisualLine[];
44
- hasFollowingBlock?: boolean | undefined;
45
- }): React.ReactElement;
46
- export declare const MAX_STREAM_DISPLAY_CHARS = 480;
47
- /** Fixed layout height of the live tool-stream tail for scroll-range math. */
48
- export declare function toolStreamBoxHeight(name: string): number;
49
- /**
50
- * Build the CONSTANT-height content block for the live tool-stream box: always
51
- * exactly `maxLines` rows, newest-pinned-to-bottom, every line truncated to
52
- * `contentWidth` so nothing wraps. Holding the row count fixed is what stops the
53
- * live region from growing (and thus scrolling the terminal + leaking the header
54
- * into scrollback) as output streams in. Pure + exported for testing.
55
- */
56
- export declare function streamBoxRows(text: string, maxLines: number, contentWidth: number): Array<{
57
- text: string;
58
- italic?: boolean | undefined;
59
- }>;
60
- export declare const ToolStreamBox: React.MemoExoticComponent<({ name, text, startedAt, termWidth, }: {
61
- name: string;
62
- text: string;
63
- startedAt: number;
64
- termWidth: number;
65
- }) => React.ReactElement>;
66
- export declare function tailForDisplay(text: string, maxChars: number): string;
67
27
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/history/utils.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,MAA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C;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CASlE;AAMD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,EAAE,EAAE,OAAO,EACX,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,EACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,GAC/B,MAAM,EAAE,CAucV;AAOD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,EAAE,EAAE,OAAO,EACX,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,GAC1B,cAAc,EAAE,GAAG,SAAS,CA6E9B"}
@@ -0,0 +1,7 @@
1
+ import type React from 'react';
2
+ import type { ToolVisualLine } from './tool-visual-types.js';
3
+ export declare function ToolOutputLines({ lines, hasFollowingBlock, }: {
4
+ lines: ToolVisualLine[];
5
+ hasFollowingBlock?: boolean | undefined;
6
+ }): React.ReactElement;
7
+ //# sourceMappingURL=visual-lines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visual-lines.d.ts","sourceRoot":"","sources":["../../../src/components/history/visual-lines.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,wBAAwB,CAAC;AAIjF,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,iBAAiB,GAClB,EAAE;IACD,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,GAAG,KAAK,CAAC,YAAY,CAkCrB"}
@@ -0,0 +1,4 @@
1
+ import type { ToolVisualLine } from './tool-visual-types.js';
2
+ export declare function visualMemory(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
3
+ export declare function visualLogs(text: string): ToolVisualLine[] | undefined;
4
+ //# sourceMappingURL=visual-memory-logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visual-memory-logs.d.ts","sourceRoot":"","sources":["../../../src/components/history/visual-memory-logs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,wBAAwB,CAAC;AAIjF,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CAsC9B;AAsDD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAuBrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAsB,KAAK,cAAc,EAAoB,MAAM,aAAa,CAAC;AAIxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAEL,KAAK,cAAc,EAGpB,MAAM,2BAA2B,CAAC;AAGnC,eAAO,MAAM,oBAAoB,QAAsB,CAAC;AA4ExD,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;;;OAIG;IACH,MAAM,CAAC,EAAE,cA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ACrC,QAAQ,EAAE,MAAM,GACf,oBAAoB,GAAG,IAAI,CAK7B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,GAAG;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAaA;AA8DD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAKxE;AASD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAepE;AA8CD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,IAAQ,GACT,EAAE;IACD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAuC5B"}
@@ -18,12 +18,23 @@ export interface Hint {
18
18
  /** When true, render in a distinct color to highlight panel discovery. */
19
19
  discovery?: boolean | undefined;
20
20
  }
21
+ /**
22
+ * Messages cycled in the idle status line (no active confirm/picker/monitor).
23
+ * The first entry is the canonical brand link — tests depend on it being
24
+ * index 0, so keep it there.
25
+ */
26
+ export declare const IDLE_MESSAGES: readonly Hint[];
27
+ /** Returns true when no interactive context is active (idle / chat). */
28
+ export declare function isIdleContext(ctx: KeyHintContext): boolean;
21
29
  export declare function hintsFor(ctx: KeyHintContext): Hint[];
22
30
  /**
23
31
  * Persistent one-line keybinding hint bar shown at the very bottom of the TUI,
24
32
  * like a status-line cheat sheet. Context-aware: surfaces the keys that matter
25
33
  * for whatever is on screen (confirm prompt → y/n/a/d, picker → ↑↓/↵, etc.).
26
34
  * Discovery hints (next panel) are rendered in a distinct color to encourage exploration.
35
+ *
36
+ * When idle (no active context), the bar rotates through {@link IDLE_MESSAGES}
37
+ * on an interval so the status line serves different purposes over time.
27
38
  */
28
39
  export declare function KeyHintBar({ context }: {
29
40
  context: KeyHintContext;
@@ -1 +1 @@
1
- {"version":3,"file":"key-hint-bar.d.ts","sourceRoot":"","sources":["../../src/components/key-hint-bar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;uEACuE;AACvE,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sFAAsF;IACtF,aAAa,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CAC5D;AAED,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,EAAE,CAgCpD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,CAYvF"}
1
+ {"version":3,"file":"key-hint-bar.d.ts","sourceRoot":"","sources":["../../src/components/key-hint-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;uEACuE;AACvE,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sFAAsF;IACtF,aAAa,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CAC5D;AAED,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,IAAI,EAM/B,CAAC;AAEX,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAE1D;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,EAAE,CAsCpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,CAyBvF"}
@@ -6,11 +6,18 @@ export interface PowerlineRailProps {
6
6
  monochrome?: boolean | undefined;
7
7
  /** Override the filler background for per-line tonal layering. */
8
8
  fillBg?: string | undefined;
9
+ /**
10
+ * Optional right-anchored segment. When provided, the rail reserves
11
+ * space for this segment at the right edge of the budget so its
12
+ * position is independent of how wide the left segments are —
13
+ * preventing visual jitter when the left side updates frequently.
14
+ */
15
+ rightAnchor?: React.ReactElement | null | undefined;
9
16
  }
10
17
  /**
11
- * Full-cell status segments with Powerline-style transitions. The default
12
- * Unicode profile uses font-safe half-circles/triangles; Nerd Font mode swaps
13
- * in the canonical Powerline private-use glyphs.
18
+ * Full-width status segments with a single uniform background.
19
+ * No per-chip backgrounds, no transition glyphs, no segment caps —
20
+ * just clean chips separated by a single space.
14
21
  */
15
- export declare function PowerlineRail({ segments, budget, monochrome, fillBg, }: PowerlineRailProps): React.ReactElement;
22
+ export declare function PowerlineRail({ segments, budget, monochrome, fillBg, rightAnchor, }: PowerlineRailProps): React.ReactElement;
16
23
  //# sourceMappingURL=powerline-rail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"powerline-rail.d.ts","sourceRoot":"","sources":["../../src/components/powerline-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAW7D;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,MAAM,EACN,UAAkB,EAClB,MAAM,GACP,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAoFzC"}
1
+ {"version":3,"file":"powerline-rail.d.ts","sourceRoot":"","sources":["../../src/components/powerline-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAW7D;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;CACrD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,MAAM,EACN,UAAkB,EAClB,MAAM,EACN,WAAW,GACZ,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAuFzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"provider-colors.d.ts","sourceRoot":"","sources":["../../src/components/provider-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEjE;AAED,sEAAsE;AACtE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEpE;AA4CD,gEAAgE;AAChE,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,GACtD;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAS9C;AAED,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIpD,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,SAAS;aACpB,OAAO,EAAE,SAAS;aAClB,MAAM,EAAE,SAAS;aACjB,QAAQ,EAAE,SAAS;aACnB,OAAO,EAAE,SAAS;aAClB,KAAK,EAAE,SAAS;aAChB,IAAI,EAAE,SAAS;aACf,MAAM,EAAE,SAAS;aACjB,KAAK,EAAE,SAAS;aAChB,aAAa,EAAE,SAAS;aACxB,MAAM,EAAe,MAAM,GAAG,SAAS;CAC/B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8CzD,CAAC"}
1
+ {"version":3,"file":"provider-colors.d.ts","sourceRoot":"","sources":["../../src/components/provider-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEjE;AAED,sEAAsE;AACtE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEpE;AA4CD,gEAAgE;AAChE,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,GACtD;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAS9C;AAED,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIpD,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,SAAS;aACpB,OAAO,EAAE,SAAS;aAClB,MAAM,EAAE,SAAS;aACjB,QAAQ,EAAE,SAAS;aACnB,OAAO,EAAE,SAAS;aAClB,KAAK,EAAE,SAAS;aAChB,IAAI,EAAE,SAAS;aACf,MAAM,EAAE,SAAS;aACjB,KAAK,EAAE,SAAS;aAChB,aAAa,EAAE,SAAS;aACxB,MAAM,EAAe,MAAM,GAAG,SAAS;CAC/B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6CzD,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type React from 'react';
2
+ export type RefineCountdownDecision = 'proceed' | 'skip' | 'cancel';
3
+ export interface RefineCountdownPanelProps {
4
+ /** The user's just-submitted message. */
5
+ original: string;
6
+ /** Grace period, in seconds, before the refiner call starts. */
7
+ seconds: number;
8
+ /** Called once with the chosen action (keypress or countdown expiry). */
9
+ onDecision: (decision: RefineCountdownDecision) => void;
10
+ /** Provider id of the model that will run the refinement (e.g. "openai"). */
11
+ providerId?: string | undefined;
12
+ /** Model name that will run the refinement (e.g. "gpt-4o"). */
13
+ model?: string | undefined;
14
+ }
15
+ /**
16
+ * Pre-refine grace countdown ("about to refine — last chance to bail").
17
+ *
18
+ * Shown for the window between submit and the refiner's first LLM call:
19
+ * Enter starts refining immediately, any other key sends the message
20
+ * unchanged (skip), Esc cancels back to the composer, and expiry
21
+ * proceeds into the normal refine flow. Mirrors the
22
+ * WebUI/SimpleUI RefinePanel's 'countdown' face.
23
+ */
24
+ export declare function RefineCountdownPanel({ original, seconds, onDecision, providerId, model, }: RefineCountdownPanelProps): React.ReactElement;
25
+ //# sourceMappingURL=refine-countdown-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refine-countdown-panel.d.ts","sourceRoot":"","sources":["../../src/components/refine-countdown-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,UAAU,EAAE,CAAC,QAAQ,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACxD,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,KAAK,GACN,EAAE,yBAAyB,GAAG,KAAK,CAAC,YAAY,CAqEhD"}
@@ -24,6 +24,7 @@ export interface RefineFailureModel {
24
24
  model: string;
25
25
  label?: string | undefined;
26
26
  }
27
+ export declare function filterRefineModels<T extends RefineFailureModel>(models: readonly T[], query: string): readonly T[];
27
28
  export interface RefineFailurePanelProps {
28
29
  /** The user's original message (sent as-is if they decline recovery). */
29
30
  original: string;
@@ -1 +1 @@
1
- {"version":3,"file":"refine-failure-panel.d.ts","sourceRoot":"","sources":["../../src/components/refine-failure-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,0EAA0E;IAC1E,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,UAAU,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACvD;AASD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,KAAK,EACL,SAAa,EACb,WAAW,EACX,MAAM,EACN,UAAU,GACX,EAAE,uBAAuB,GAAG,KAAK,CAAC,YAAY,CAuL9C"}
1
+ {"version":3,"file":"refine-failure-panel.d.ts","sourceRoot":"","sources":["../../src/components/refine-failure-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;GAMG;AACH,MAAM,MA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KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,GACL,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,CAqExC"}
1
+ {"version":3,"file":"resume-picker.d.ts","sourceRoot":"","sources":["../../src/components/resume-picker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,GACL,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,CA0ExC"}
@@ -21,7 +21,75 @@ export interface HistoryScrollController {
21
21
  scrollToTrackCell(cell: number): void;
22
22
  /** True while the viewport is scrolled away from the newest output. */
23
23
  isScrolled(): boolean;
24
+ /**
25
+ * True when the viewport cell lands on a copyable card's copy icon. Lets the
26
+ * mouse handler decide synchronously whether to consume the click before
27
+ * firing the async copy. See {@link copyAtViewportCell} for the `row`/`col`
28
+ * coordinate contract.
29
+ */
30
+ hasCopyTargetAt(row: number, col: number): boolean;
31
+ /**
32
+ * Handle a left-click inside the history viewport. `row` is 0-based from the
33
+ * viewport top; `col` is 0-based from the LEFT EDGE OF THE HISTORY BAND, not
34
+ * the raw terminal column. In the interactive mount the band renders flush at
35
+ * terminal column 0 (the scrollbar occupies the rightmost columns), so the
36
+ * caller passes the terminal column directly; a band that is inset from the
37
+ * left must subtract its left offset first. When the cell lands on a copyable
38
+ * card's copy icon, its content is written to the system clipboard and the
39
+ * entry id is returned; otherwise returns null.
40
+ */
41
+ copyAtViewportCell(row: number, col: number): Promise<number | null>;
24
42
  }
43
+ /**
44
+ * A clickable copy-icon target resolved in viewport coordinates during the
45
+ * post-render measurement pass. `entryId` identifies a single card or the first
46
+ * member of a compact tool group; `entryIds` contains every group member when
47
+ * present. `startRow`/`endRow` bound the box's visible rows (0-based from the
48
+ * viewport top, `endRow` exclusive); `iconCol` is the 0-based terminal column
49
+ * the icon renders at on the box's first visible row.
50
+ */
51
+ export interface CopyHit {
52
+ entryId: number;
53
+ entryIds?: readonly number[] | undefined;
54
+ startRow: number;
55
+ endRow: number;
56
+ iconCol: number;
57
+ }
58
+ /** Sentinel returned after copying the active, non-retained tool-stream box. */
59
+ export declare const LIVE_TOOL_STREAM_COPY_ID = -1;
60
+ /**
61
+ * Resolve the copy target under a viewport cell, or null. A cell matches when
62
+ * its `row` is within the card's visible rows and its `col` is within the
63
+ * icon's cell span. Iterates newest-first so overlapping row estimates favor
64
+ * the most recently rendered card. Exported-shape pure helper for unit tests.
65
+ */
66
+ export declare function findCopyHit(hits: readonly CopyHit[], row: number, col: number): CopyHit | null;
67
+ /** Resolve a hit to the complete current clipboard payload without performing I/O. */
68
+ export declare function resolveCopyPayload(hit: CopyHit, entriesById: ReadonlyMap<number, HistoryEntry>, liveToolText?: string | undefined): {
69
+ entryId: number;
70
+ text: string;
71
+ } | null;
72
+ /**
73
+ * Rows clipped from the top of the mounted history stack before it appears in
74
+ * the viewport. Scrolled frames clip by the anchor's row offset; pinned frames
75
+ * rely on Ink flex-end clipping, which hides top overflow from mounted groups
76
+ * plus the live tool tail.
77
+ */
78
+ export declare function copyRegistryVisibleClip(opts: {
79
+ scrolled: boolean;
80
+ clip: number;
81
+ mountedRows: number;
82
+ tailRows: number;
83
+ viewportRows: number;
84
+ }): number;
85
+ /** Build the live tool-stream header hit, accounting for ToolStreamBox's top margin. */
86
+ export declare function liveToolStreamCopyHit(opts: {
87
+ visible: boolean;
88
+ mountedRows: number;
89
+ visibleClip: number;
90
+ viewportRows: number;
91
+ iconCol: number;
92
+ }): CopyHit | null;
25
93
  export interface ScrollableHistoryProps extends HistoryProps {
26
94
  /** Height of the viewport in rows, computed by App from the bottom region. */
27
95
  viewportRows: number;
@@ -40,6 +108,19 @@ export interface ScrollableHistoryProps extends HistoryProps {
40
108
  * store's persisted measurements and marks entries as measured after render,
41
109
  * eliminating estimate-vs-actual scroll jumps on re-render. */
42
110
  layoutStore?: import('../layout-store.js').LayoutStore | undefined;
111
+ /**
112
+ * Entry id of the card whose copy icon was just clicked. That card's icon
113
+ * renders in the success color for the brief window the host keeps this set,
114
+ * giving per-card visual feedback alongside the status-line "Copied" notice.
115
+ * `null` / undefined = no card highlighted.
116
+ */
117
+ copiedEntryId?: number | null | undefined;
118
+ /**
119
+ * Called when the user scrolls near the top of the currently loaded
120
+ * entries. The host should respond by loading older entries from the
121
+ * history archive and dispatching `archiveLoaded` to prepend them.
122
+ */
123
+ onRequestOlderEntries?: (() => void) | undefined;
43
124
  }
44
125
  /** Pure thumb geometry for the scrollbar: where the thumb starts and how many
45
126
  * cells it spans, given the track height, scroll offset, and total content
@@ -55,34 +136,32 @@ export declare function scrollbarThumb(rows: number, offset: number, total: numb
55
136
  * offset); cell rows-1 (bottom) → newest (offset 0). Exported for testing. */
56
137
  export declare function scrollOffsetForTrackRow(rows: number, total: number, cell: number): number;
57
138
  /**
58
- * Bounded history viewport with anchor-based virtual scrolling.
139
+ * Bounded history viewport with stable-anchor virtual scrolling.
59
140
  *
60
141
  * Instead of streaming entries into the terminal's native scrollback via
61
142
  * `<Static>`, retained entries render into a fixed-height `overflowY:'hidden'`
62
- * viewport the app scrolls itself. PageUp/PageDown always scroll it; mouse
63
- * mode additionally captures wheel and scrollbar interactions — both through
64
- * the {@link HistoryScrollController} this component owns.
143
+ * viewport the app scrolls itself. Wheel, PageUp/PageDown, and Ctrl+U/D scroll
144
+ * it in every mode; full mouse mode additionally enables scrollbar interaction.
145
+ * All paths use the {@link HistoryScrollController} this component owns.
65
146
  *
66
147
  * Positioning model (Ink-7 verified against real yoga layout):
67
- * - Pinned (anchor `null`): `justifyContent:'flex-end'` + enough trailing
148
+ * - Pinned (`anchor:null`): `justifyContent:'flex-end'` + enough trailing
68
149
  * groups mounted to overfill the viewport. Ink clips the overflow at the
69
150
  * TOP, so the newest output hugs the input line with zero position math.
70
- * - Scrolled (anchor set): `justifyContent:'flex-start'`; groups mount from
71
- * the anchor downward and the inner column gets `marginTop:-clip`, hiding
72
- * exactly the anchor rows above the viewport. Ink clips the excess at the
73
- * BOTTOM. What is on screen therefore depends ONLY on the anchor and the
74
- * real heights of mounted groups — estimated heights of off-window content
75
- * cannot move anything. There are no spacer elements to misalign.
151
+ * - Scrolled: wheel, page keys, and scrollbar gestures all resolve to the
152
+ * render-group id at the viewport top plus a row clipped inside that group.
153
+ * Groups mount from that stable anchor and `marginTop:-clip` hides preceding
154
+ * rows. Height corrections above the anchor can refine the scrollbar extent
155
+ * without changing which content is visible.
76
156
  *
77
- * Height estimates are still kept (in the {@link EntryHeightCache}) but are
78
- * demoted to two harmless jobs: deciding how many groups to mount (overfill is
79
- * clipped; underfill self-corrects after measurement) and sizing the scrollbar
80
- * thumb. A post-render `measureElement` pass promotes every mounted group to
81
- * its real height and persists it via the layout store.
157
+ * The {@link EntryHeightCache} seeds the global row space and decides how many
158
+ * groups to mount. A post-render `measureElement` pass promotes mounted groups
159
+ * to real heights and persists them. Only the mounted virtual window is
160
+ * measured; a long transcript is never mounted wholesale for calibration.
82
161
  *
83
162
  * Wrapped in `React.memo` so keystrokes in the input buffer don't trigger a
84
163
  * full managed-viewport re-layout.
85
164
  */
86
- export declare const ScrollableHistory: React.MemoExoticComponent<({ entries, toolStream, viewportRows, controllerRef, onScrollInfo, maxWidth, setSuggestions, autonomyMode, multiDiffSummaryThreshold, todos, showModelReasoning, layoutStore, }: ScrollableHistoryProps) => React.ReactElement>;
165
+ export declare const ScrollableHistory: React.MemoExoticComponent<({ entries, toolStream, viewportRows, controllerRef, onScrollInfo, maxWidth, setSuggestions, autonomyMode, multiDiffSummaryThreshold, todos, showModelReasoning, layoutStore, copiedEntryId, onRequestOlderEntries, }: ScrollableHistoryProps) => React.ReactElement>;
87
166
  export type { HistoryEntry };
88
167
  //# sourceMappingURL=scrollable-history.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scrollable-history.d.ts","sourceRoot":"","sources":["../../src/components/scrollable-history.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,gBAAgB,EAOtB,MAAM,OAAO,CAAC;AA2Bf,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,YAAY,EAKlB,MAAM,cAAc,CAAC;AAEtB;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mCAAmC;IACnC,UAAU,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IACrC,yCAAyC;IACzC,WAAW,IAAI,IAAI,CAAC;IACpB,mCAAmC;IACnC,cAAc,IAAI,IAAI,CAAC;IACvB,qEAAqE;IACrE,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,uEAAuE;IACvE,UAAU,IAAI,OAAO,CA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C,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAYpD;AAED;;;+EAG+E;AAC/E,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAMzF;AA6DD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,iBAAiB,mPAe3B,sBAAsB,KAAG,KAAK,CAAC,YAAY,CAqkB5C,CAAC;AAGH,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { SettingsPickerJumpChord } from './settings-picker-jumps.js';
2
+ export type SettingsHighlightSegment = {
3
+ text: string;
4
+ match: boolean;
5
+ };
6
+ export type SettingsFilterResult = {
7
+ chord: SettingsPickerJumpChord;
8
+ contiguous: boolean;
9
+ fuzzyIdx: number[] | undefined;
10
+ score: number;
11
+ };
12
+ export interface SettingsFilterState {
13
+ filterActive: boolean;
14
+ filterQuery: string;
15
+ rankedResults: SettingsFilterResult[];
16
+ filteredFieldIndices: number[];
17
+ highlightSegments: (label: string) => SettingsHighlightSegment[];
18
+ }
19
+ export declare function buildSettingsFilterState(filter: string | undefined, chords: readonly SettingsPickerJumpChord[]): SettingsFilterState;
20
+ //# sourceMappingURL=settings-picker-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-picker-filter.d.ts","sourceRoot":"","sources":["../../src/components/settings-picker-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAExE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,oBAAoB,EAAE,CAAC;IACtC,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,wBAAwB,EAAE,CAAC;CAClE;AAkFD,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,EAAE,SAAS,uBAAuB,EAAE,GACzC,mBAAmB,CAsCrB"}
@@ -0,0 +1,16 @@
1
+ export type SettingsPickerJumpMod = 'ctrl' | 'alt' | 'alt-shift';
2
+ export interface SettingsPickerJumpChord {
3
+ /** The modifier that, combined with the letter, triggers the jump. */
4
+ mod: SettingsPickerJumpMod;
5
+ /** The lowercase letter that triggers the jump. */
6
+ letter: string;
7
+ /** Target row index. Must match the picker's actual field order. */
8
+ field: number;
9
+ /** Short label for the help overlay and any debug surfaces. */
10
+ label: string;
11
+ }
12
+ export declare const SETTINGS_PICKER_JUMP_CHORDS: ReadonlyArray<SettingsPickerJumpChord>;
13
+ export declare function settingsPickerJumpField(mod: SettingsPickerJumpMod, letter: string): number | undefined;
14
+ export declare function settingsPickerJumpByName(name: string): number | undefined;
15
+ export declare function settingsPickerJumpNames(): string[];
16
+ //# sourceMappingURL=settings-picker-jumps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-picker-jumps.d.ts","sourceRoot":"","sources":["../../src/components/settings-picker-jumps.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,KAAK,GAAG,WAAW,CAAC;AAEjE,MAAM,WAAW,uBAAuB;IACtC,sEAAsE;IACtE,GAAG,EAAE,qBAAqB,CAAC;IAC3B,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,uBAAuB,CAsB7E,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,qBAAqB,EAC1B,MAAM,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CAIpB;AAMD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAuBzE;AAED,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAElD"}