@dexto/tui 1.14.6 → 1.15.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (570) hide show
  1. package/dist/InkCLIRefactored.cjs +30 -24
  2. package/dist/InkCLIRefactored.d.ts.map +1 -1
  3. package/dist/InkCLIRefactored.js +30 -24
  4. package/dist/components/ApprovalPrompt.cjs +128 -40
  5. package/dist/components/ApprovalPrompt.d.ts +2 -0
  6. package/dist/components/ApprovalPrompt.d.ts.map +1 -1
  7. package/dist/components/ApprovalPrompt.js +128 -41
  8. package/dist/components/CustomInput.cjs +4 -3
  9. package/dist/components/CustomInput.d.ts.map +1 -1
  10. package/dist/components/CustomInput.js +4 -3
  11. package/dist/components/DeckArea.cjs +43 -0
  12. package/dist/components/DeckArea.d.ts +14 -0
  13. package/dist/components/DeckArea.d.ts.map +1 -0
  14. package/dist/components/DeckArea.js +19 -0
  15. package/dist/components/EditableMultiLineInput.cjs +9 -8
  16. package/dist/components/EditableMultiLineInput.d.ts.map +1 -1
  17. package/dist/components/EditableMultiLineInput.js +9 -8
  18. package/dist/components/ElicitationForm.cjs +78 -18
  19. package/dist/components/ElicitationForm.d.ts.map +1 -1
  20. package/dist/components/ElicitationForm.js +78 -18
  21. package/dist/components/ErrorBoundary.cjs +15 -5
  22. package/dist/components/ErrorBoundary.d.ts.map +1 -1
  23. package/dist/components/ErrorBoundary.js +15 -5
  24. package/dist/components/Footer.cjs +41 -86
  25. package/dist/components/Footer.d.ts +2 -2
  26. package/dist/components/Footer.d.ts.map +1 -1
  27. package/dist/components/Footer.js +44 -92
  28. package/dist/components/Footer.test.cjs +44 -0
  29. package/dist/components/Footer.test.js +44 -0
  30. package/dist/components/HistorySearchBar.cjs +6 -5
  31. package/dist/components/HistorySearchBar.d.ts.map +1 -1
  32. package/dist/components/HistorySearchBar.js +6 -5
  33. package/dist/components/MultiLineInput.cjs +6 -5
  34. package/dist/components/MultiLineInput.d.ts.map +1 -1
  35. package/dist/components/MultiLineInput.js +6 -5
  36. package/dist/components/ResourceAutocomplete.cjs +5 -4
  37. package/dist/components/ResourceAutocomplete.d.ts.map +1 -1
  38. package/dist/components/ResourceAutocomplete.js +5 -4
  39. package/dist/components/SignalGates.test.cjs +215 -0
  40. package/dist/components/SignalGates.test.d.ts +2 -0
  41. package/dist/components/SignalGates.test.d.ts.map +1 -0
  42. package/dist/components/SignalGates.test.js +217 -0
  43. package/dist/components/SlashCommandAutocomplete.cjs +4 -3
  44. package/dist/components/SlashCommandAutocomplete.d.ts.map +1 -1
  45. package/dist/components/SlashCommandAutocomplete.js +4 -3
  46. package/dist/components/StatusBar.cjs +13 -30
  47. package/dist/components/StatusBar.d.ts +1 -3
  48. package/dist/components/StatusBar.d.ts.map +1 -1
  49. package/dist/components/StatusBar.js +13 -30
  50. package/dist/components/TextBufferInput.cjs +13 -12
  51. package/dist/components/TextBufferInput.d.ts.map +1 -1
  52. package/dist/components/TextBufferInput.js +13 -12
  53. package/dist/components/TodoPanel.cjs +23 -16
  54. package/dist/components/TodoPanel.d.ts.map +1 -1
  55. package/dist/components/TodoPanel.js +23 -16
  56. package/dist/components/base/BaseAutocomplete.cjs +7 -6
  57. package/dist/components/base/BaseAutocomplete.d.ts.map +1 -1
  58. package/dist/components/base/BaseAutocomplete.js +7 -6
  59. package/dist/components/base/BaseSelector.cjs +5 -4
  60. package/dist/components/base/BaseSelector.d.ts.map +1 -1
  61. package/dist/components/base/BaseSelector.js +5 -4
  62. package/dist/components/chat/Footer.cjs +2 -1
  63. package/dist/components/chat/Footer.d.ts.map +1 -1
  64. package/dist/components/chat/Footer.js +2 -1
  65. package/dist/components/chat/Header.cjs +20 -16
  66. package/dist/components/chat/Header.d.ts.map +1 -1
  67. package/dist/components/chat/Header.js +20 -16
  68. package/dist/components/chat/MessageItem.cjs +47 -30
  69. package/dist/components/chat/MessageItem.d.ts.map +1 -1
  70. package/dist/components/chat/MessageItem.js +52 -29
  71. package/dist/components/chat/MessageList.cjs +3 -2
  72. package/dist/components/chat/MessageList.d.ts.map +1 -1
  73. package/dist/components/chat/MessageList.js +3 -2
  74. package/dist/components/chat/QueuedMessagesDisplay.cjs +17 -5
  75. package/dist/components/chat/QueuedMessagesDisplay.d.ts.map +1 -1
  76. package/dist/components/chat/QueuedMessagesDisplay.js +18 -6
  77. package/dist/components/chat/SignalMessage.cjs +116 -0
  78. package/dist/components/chat/SignalMessage.d.ts +18 -0
  79. package/dist/components/chat/SignalMessage.d.ts.map +1 -0
  80. package/dist/components/chat/SignalMessage.js +96 -0
  81. package/dist/components/chat/SignalMessage.test.cjs +112 -0
  82. package/dist/components/chat/SignalMessage.test.d.ts +2 -0
  83. package/dist/components/chat/SignalMessage.test.d.ts.map +1 -0
  84. package/dist/components/chat/SignalMessage.test.js +116 -0
  85. package/dist/components/chat/ToolIcon.cjs +6 -5
  86. package/dist/components/chat/ToolIcon.d.ts.map +1 -1
  87. package/dist/components/chat/ToolIcon.js +6 -5
  88. package/dist/components/chat/styled-boxes/ConfigBox.cjs +8 -7
  89. package/dist/components/chat/styled-boxes/ConfigBox.d.ts.map +1 -1
  90. package/dist/components/chat/styled-boxes/ConfigBox.js +8 -7
  91. package/dist/components/chat/styled-boxes/HelpBox.cjs +4 -3
  92. package/dist/components/chat/styled-boxes/HelpBox.d.ts.map +1 -1
  93. package/dist/components/chat/styled-boxes/HelpBox.js +4 -3
  94. package/dist/components/chat/styled-boxes/LogConfigBox.cjs +11 -3
  95. package/dist/components/chat/styled-boxes/LogConfigBox.d.ts.map +1 -1
  96. package/dist/components/chat/styled-boxes/LogConfigBox.js +11 -3
  97. package/dist/components/chat/styled-boxes/SessionHistoryBox.cjs +8 -7
  98. package/dist/components/chat/styled-boxes/SessionHistoryBox.d.ts.map +1 -1
  99. package/dist/components/chat/styled-boxes/SessionHistoryBox.js +8 -7
  100. package/dist/components/chat/styled-boxes/SessionListBox.cjs +19 -11
  101. package/dist/components/chat/styled-boxes/SessionListBox.d.ts.map +1 -1
  102. package/dist/components/chat/styled-boxes/SessionListBox.js +19 -11
  103. package/dist/components/chat/styled-boxes/ShortcutsBox.cjs +4 -3
  104. package/dist/components/chat/styled-boxes/ShortcutsBox.d.ts.map +1 -1
  105. package/dist/components/chat/styled-boxes/ShortcutsBox.js +4 -3
  106. package/dist/components/chat/styled-boxes/StatsBox.cjs +13 -5
  107. package/dist/components/chat/styled-boxes/StatsBox.d.ts.map +1 -1
  108. package/dist/components/chat/styled-boxes/StatsBox.js +13 -5
  109. package/dist/components/chat/styled-boxes/StyledBox.cjs +7 -6
  110. package/dist/components/chat/styled-boxes/StyledBox.d.ts.map +1 -1
  111. package/dist/components/chat/styled-boxes/StyledBox.js +7 -6
  112. package/dist/components/chat/styled-boxes/SyspromptBox.cjs +2 -1
  113. package/dist/components/chat/styled-boxes/SyspromptBox.d.ts.map +1 -1
  114. package/dist/components/chat/styled-boxes/SyspromptBox.js +2 -1
  115. package/dist/components/modes/AlternateBufferCLI.cjs +53 -43
  116. package/dist/components/modes/AlternateBufferCLI.d.ts.map +1 -1
  117. package/dist/components/modes/AlternateBufferCLI.js +53 -43
  118. package/dist/components/modes/StaticCLI.cjs +53 -42
  119. package/dist/components/modes/StaticCLI.d.ts.map +1 -1
  120. package/dist/components/modes/StaticCLI.js +53 -42
  121. package/dist/components/overlays/ApiKeyInput.cjs +12 -11
  122. package/dist/components/overlays/ApiKeyInput.d.ts.map +1 -1
  123. package/dist/components/overlays/ApiKeyInput.js +12 -11
  124. package/dist/components/overlays/ChatGPTUsageCapOverlay.cjs +7 -6
  125. package/dist/components/overlays/ChatGPTUsageCapOverlay.d.ts.map +1 -1
  126. package/dist/components/overlays/ChatGPTUsageCapOverlay.js +7 -6
  127. package/dist/components/overlays/CommandOutputOverlay.cjs +2 -1
  128. package/dist/components/overlays/CommandOutputOverlay.d.ts.map +1 -1
  129. package/dist/components/overlays/CommandOutputOverlay.js +2 -1
  130. package/dist/components/overlays/ConnectOverlay.cjs +10 -9
  131. package/dist/components/overlays/ConnectOverlay.d.ts.map +1 -1
  132. package/dist/components/overlays/ConnectOverlay.js +10 -9
  133. package/dist/components/overlays/ContextStatsOverlay.cjs +48 -37
  134. package/dist/components/overlays/ContextStatsOverlay.d.ts.map +1 -1
  135. package/dist/components/overlays/ContextStatsOverlay.js +48 -37
  136. package/dist/components/overlays/CustomModelWizard.cjs +5 -4
  137. package/dist/components/overlays/CustomModelWizard.d.ts.map +1 -1
  138. package/dist/components/overlays/CustomModelWizard.js +5 -4
  139. package/dist/components/overlays/ExportWizard.cjs +28 -27
  140. package/dist/components/overlays/ExportWizard.d.ts.map +1 -1
  141. package/dist/components/overlays/ExportWizard.js +28 -27
  142. package/dist/components/overlays/InsufficientCreditsOverlay.cjs +25 -9
  143. package/dist/components/overlays/InsufficientCreditsOverlay.d.ts +2 -0
  144. package/dist/components/overlays/InsufficientCreditsOverlay.d.ts.map +1 -1
  145. package/dist/components/overlays/InsufficientCreditsOverlay.js +25 -9
  146. package/dist/components/overlays/LogLevelSelector.cjs +6 -5
  147. package/dist/components/overlays/LogLevelSelector.d.ts.map +1 -1
  148. package/dist/components/overlays/LogLevelSelector.js +6 -5
  149. package/dist/components/overlays/LoginOverlay.cjs +31 -66
  150. package/dist/components/overlays/LoginOverlay.d.ts +1 -3
  151. package/dist/components/overlays/LoginOverlay.d.ts.map +1 -1
  152. package/dist/components/overlays/LoginOverlay.js +32 -71
  153. package/dist/components/overlays/LogoutOverlay.cjs +16 -24
  154. package/dist/components/overlays/LogoutOverlay.d.ts +1 -0
  155. package/dist/components/overlays/LogoutOverlay.d.ts.map +1 -1
  156. package/dist/components/overlays/LogoutOverlay.js +18 -38
  157. package/dist/components/overlays/MarketplaceAddPrompt.cjs +12 -11
  158. package/dist/components/overlays/MarketplaceAddPrompt.d.ts.map +1 -1
  159. package/dist/components/overlays/MarketplaceAddPrompt.js +12 -11
  160. package/dist/components/overlays/MarketplaceBrowser.cjs +27 -26
  161. package/dist/components/overlays/MarketplaceBrowser.d.ts.map +1 -1
  162. package/dist/components/overlays/MarketplaceBrowser.js +27 -26
  163. package/dist/components/overlays/McpAddChoice.cjs +4 -3
  164. package/dist/components/overlays/McpAddChoice.d.ts.map +1 -1
  165. package/dist/components/overlays/McpAddChoice.js +4 -3
  166. package/dist/components/overlays/McpAddSelector.cjs +4 -3
  167. package/dist/components/overlays/McpAddSelector.d.ts.map +1 -1
  168. package/dist/components/overlays/McpAddSelector.js +4 -3
  169. package/dist/components/overlays/McpCustomTypeSelector.cjs +4 -3
  170. package/dist/components/overlays/McpCustomTypeSelector.d.ts.map +1 -1
  171. package/dist/components/overlays/McpCustomTypeSelector.js +4 -3
  172. package/dist/components/overlays/McpCustomWizard.cjs +9 -8
  173. package/dist/components/overlays/McpCustomWizard.d.ts.map +1 -1
  174. package/dist/components/overlays/McpCustomWizard.js +9 -8
  175. package/dist/components/overlays/McpRemoveSelector.cjs +5 -4
  176. package/dist/components/overlays/McpRemoveSelector.d.ts.map +1 -1
  177. package/dist/components/overlays/McpRemoveSelector.js +5 -4
  178. package/dist/components/overlays/McpSelector.cjs +4 -3
  179. package/dist/components/overlays/McpSelector.d.ts.map +1 -1
  180. package/dist/components/overlays/McpSelector.js +4 -3
  181. package/dist/components/overlays/McpServerActions.cjs +7 -6
  182. package/dist/components/overlays/McpServerActions.d.ts.map +1 -1
  183. package/dist/components/overlays/McpServerActions.js +7 -6
  184. package/dist/components/overlays/McpServerList.cjs +6 -5
  185. package/dist/components/overlays/McpServerList.d.ts.map +1 -1
  186. package/dist/components/overlays/McpServerList.js +6 -5
  187. package/dist/components/overlays/ModelSelectorRefactored.cjs +32 -17
  188. package/dist/components/overlays/ModelSelectorRefactored.d.ts.map +1 -1
  189. package/dist/components/overlays/ModelSelectorRefactored.js +32 -17
  190. package/dist/components/overlays/PermissionsSelector.cjs +6 -5
  191. package/dist/components/overlays/PermissionsSelector.d.ts.map +1 -1
  192. package/dist/components/overlays/PermissionsSelector.js +6 -5
  193. package/dist/components/overlays/PluginActions.cjs +7 -6
  194. package/dist/components/overlays/PluginActions.d.ts.map +1 -1
  195. package/dist/components/overlays/PluginActions.js +7 -6
  196. package/dist/components/overlays/PluginList.cjs +12 -11
  197. package/dist/components/overlays/PluginList.d.ts.map +1 -1
  198. package/dist/components/overlays/PluginList.js +12 -11
  199. package/dist/components/overlays/PluginManager.cjs +13 -5
  200. package/dist/components/overlays/PluginManager.d.ts.map +1 -1
  201. package/dist/components/overlays/PluginManager.js +13 -5
  202. package/dist/components/overlays/PromptAddChoice.cjs +5 -4
  203. package/dist/components/overlays/PromptAddChoice.d.ts.map +1 -1
  204. package/dist/components/overlays/PromptAddChoice.js +5 -4
  205. package/dist/components/overlays/PromptAddWizard.cjs +10 -9
  206. package/dist/components/overlays/PromptAddWizard.d.ts.map +1 -1
  207. package/dist/components/overlays/PromptAddWizard.js +10 -9
  208. package/dist/components/overlays/PromptDeleteSelector.cjs +6 -5
  209. package/dist/components/overlays/PromptDeleteSelector.d.ts.map +1 -1
  210. package/dist/components/overlays/PromptDeleteSelector.js +6 -5
  211. package/dist/components/overlays/PromptList.cjs +10 -9
  212. package/dist/components/overlays/PromptList.d.ts.map +1 -1
  213. package/dist/components/overlays/PromptList.js +10 -9
  214. package/dist/components/overlays/ReasoningOverlay.cjs +30 -23
  215. package/dist/components/overlays/ReasoningOverlay.d.ts.map +1 -1
  216. package/dist/components/overlays/ReasoningOverlay.js +30 -23
  217. package/dist/components/overlays/SearchOverlay.cjs +15 -14
  218. package/dist/components/overlays/SearchOverlay.d.ts.map +1 -1
  219. package/dist/components/overlays/SearchOverlay.js +15 -14
  220. package/dist/components/overlays/SessionRenameOverlay.cjs +9 -8
  221. package/dist/components/overlays/SessionRenameOverlay.d.ts.map +1 -1
  222. package/dist/components/overlays/SessionRenameOverlay.js +9 -8
  223. package/dist/components/overlays/SessionSelectorRefactored.cjs +4 -3
  224. package/dist/components/overlays/SessionSelectorRefactored.d.ts.map +1 -1
  225. package/dist/components/overlays/SessionSelectorRefactored.js +4 -3
  226. package/dist/components/overlays/SessionSubcommandSelector.cjs +4 -3
  227. package/dist/components/overlays/SessionSubcommandSelector.d.ts.map +1 -1
  228. package/dist/components/overlays/SessionSubcommandSelector.js +4 -3
  229. package/dist/components/overlays/SoundsSelector.cjs +15 -7
  230. package/dist/components/overlays/SoundsSelector.d.ts.map +1 -1
  231. package/dist/components/overlays/SoundsSelector.js +15 -7
  232. package/dist/components/overlays/StreamSelector.cjs +5 -4
  233. package/dist/components/overlays/StreamSelector.d.ts.map +1 -1
  234. package/dist/components/overlays/StreamSelector.js +5 -4
  235. package/dist/components/overlays/ToolBrowser.cjs +73 -56
  236. package/dist/components/overlays/ToolBrowser.d.ts.map +1 -1
  237. package/dist/components/overlays/ToolBrowser.js +73 -56
  238. package/dist/components/overlays/custom-model-wizard/LocalModelWizard.cjs +103 -69
  239. package/dist/components/overlays/custom-model-wizard/LocalModelWizard.d.ts.map +1 -1
  240. package/dist/components/overlays/custom-model-wizard/LocalModelWizard.js +103 -69
  241. package/dist/components/overlays/custom-model-wizard/provider-config.cjs +4 -4
  242. package/dist/components/overlays/custom-model-wizard/provider-config.js +4 -4
  243. package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.cjs +3 -2
  244. package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts.map +1 -1
  245. package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.js +3 -2
  246. package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.cjs +5 -4
  247. package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map +1 -1
  248. package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.js +5 -4
  249. package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.cjs +4 -3
  250. package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts.map +1 -1
  251. package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.js +4 -3
  252. package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.cjs +7 -6
  253. package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts.map +1 -1
  254. package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.js +7 -6
  255. package/dist/components/renderers/DiffRenderer.cjs +5 -4
  256. package/dist/components/renderers/DiffRenderer.d.ts.map +1 -1
  257. package/dist/components/renderers/DiffRenderer.js +5 -4
  258. package/dist/components/renderers/FilePreviewRenderer.cjs +23 -13
  259. package/dist/components/renderers/FilePreviewRenderer.d.ts.map +1 -1
  260. package/dist/components/renderers/FilePreviewRenderer.js +23 -13
  261. package/dist/components/renderers/FileRenderer.cjs +9 -8
  262. package/dist/components/renderers/FileRenderer.d.ts.map +1 -1
  263. package/dist/components/renderers/FileRenderer.js +9 -8
  264. package/dist/components/renderers/GenericRenderer.cjs +5 -4
  265. package/dist/components/renderers/GenericRenderer.d.ts.map +1 -1
  266. package/dist/components/renderers/GenericRenderer.js +5 -4
  267. package/dist/components/renderers/SearchRenderer.cjs +4 -3
  268. package/dist/components/renderers/SearchRenderer.d.ts.map +1 -1
  269. package/dist/components/renderers/SearchRenderer.js +4 -3
  270. package/dist/components/renderers/ShellRenderer.cjs +6 -5
  271. package/dist/components/renderers/ShellRenderer.d.ts.map +1 -1
  272. package/dist/components/renderers/ShellRenderer.js +6 -5
  273. package/dist/components/renderers/SignalDiff.cjs +139 -0
  274. package/dist/components/renderers/SignalDiff.d.ts +21 -0
  275. package/dist/components/renderers/SignalDiff.d.ts.map +1 -0
  276. package/dist/components/renderers/SignalDiff.js +106 -0
  277. package/dist/components/renderers/SignalDiff.test.cjs +78 -0
  278. package/dist/components/renderers/SignalDiff.test.d.ts +2 -0
  279. package/dist/components/renderers/SignalDiff.test.d.ts.map +1 -0
  280. package/dist/components/renderers/SignalDiff.test.js +77 -0
  281. package/dist/components/renderers/diff-shared.cjs +13 -7
  282. package/dist/components/renderers/diff-shared.d.ts +5 -0
  283. package/dist/components/renderers/diff-shared.d.ts.map +1 -1
  284. package/dist/components/renderers/diff-shared.js +12 -7
  285. package/dist/components/shared/FocusOverlayFrame.cjs +3 -2
  286. package/dist/components/shared/FocusOverlayFrame.d.ts.map +1 -1
  287. package/dist/components/shared/FocusOverlayFrame.js +3 -2
  288. package/dist/components/shared/HintBar.cjs +2 -1
  289. package/dist/components/shared/HintBar.d.ts.map +1 -1
  290. package/dist/components/shared/HintBar.js +2 -1
  291. package/dist/components/shared/MarkdownText.cjs +36 -53
  292. package/dist/components/shared/MarkdownText.d.ts +2 -0
  293. package/dist/components/shared/MarkdownText.d.ts.map +1 -1
  294. package/dist/components/shared/MarkdownText.js +36 -54
  295. package/dist/components/shared/VirtualizedList.cjs +2 -1
  296. package/dist/components/shared/VirtualizedList.d.ts.map +1 -1
  297. package/dist/components/shared/VirtualizedList.js +2 -1
  298. package/dist/containers/OverlayContainer.cjs +32 -44
  299. package/dist/containers/OverlayContainer.d.ts.map +1 -1
  300. package/dist/containers/OverlayContainer.js +32 -44
  301. package/dist/contexts/KeypressContext.cjs +7 -1
  302. package/dist/contexts/KeypressContext.d.ts.map +1 -1
  303. package/dist/contexts/KeypressContext.js +7 -1
  304. package/dist/contexts/KeypressContext.test.cjs +82 -0
  305. package/dist/contexts/KeypressContext.test.d.ts +2 -0
  306. package/dist/contexts/KeypressContext.test.d.ts.map +1 -0
  307. package/dist/contexts/KeypressContext.test.js +81 -0
  308. package/dist/hooks/useAgentEvents.cjs +1 -74
  309. package/dist/hooks/useAgentEvents.d.ts.map +1 -1
  310. package/dist/hooks/useAgentEvents.js +1 -74
  311. package/dist/hooks/useCLIState.cjs +0 -3
  312. package/dist/hooks/useCLIState.d.ts.map +1 -1
  313. package/dist/hooks/useCLIState.js +0 -3
  314. package/dist/hooks/useContextStats.cjs +91 -0
  315. package/dist/hooks/useContextStats.d.ts +13 -0
  316. package/dist/hooks/useContextStats.d.ts.map +1 -0
  317. package/dist/hooks/useContextStats.js +67 -0
  318. package/dist/hooks/useDeckState.cjs +140 -0
  319. package/dist/hooks/useDeckState.d.ts +20 -0
  320. package/dist/hooks/useDeckState.d.ts.map +1 -0
  321. package/dist/hooks/useDeckState.js +123 -0
  322. package/dist/hooks/useDextoCredits.cjs +81 -0
  323. package/dist/hooks/useDextoCredits.d.ts +14 -0
  324. package/dist/hooks/useDextoCredits.d.ts.map +1 -0
  325. package/dist/hooks/useDextoCredits.js +56 -0
  326. package/dist/hooks/useDextoCredits.test.cjs +73 -0
  327. package/dist/hooks/useDextoCredits.test.d.ts +2 -0
  328. package/dist/hooks/useDextoCredits.test.d.ts.map +1 -0
  329. package/dist/hooks/useDextoCredits.test.js +72 -0
  330. package/dist/hooks/useElapsedTime.cjs +13 -24
  331. package/dist/hooks/useElapsedTime.d.ts +3 -1
  332. package/dist/hooks/useElapsedTime.d.ts.map +1 -1
  333. package/dist/hooks/useElapsedTime.js +13 -24
  334. package/dist/hooks/useElapsedTime.test.cjs +35 -0
  335. package/dist/hooks/useElapsedTime.test.d.ts +2 -0
  336. package/dist/hooks/useElapsedTime.test.d.ts.map +1 -0
  337. package/dist/hooks/useElapsedTime.test.js +34 -0
  338. package/dist/hooks/useGitDirtyFiles.cjs +59 -0
  339. package/dist/hooks/useGitDirtyFiles.d.ts +5 -0
  340. package/dist/hooks/useGitDirtyFiles.d.ts.map +1 -0
  341. package/dist/hooks/useGitDirtyFiles.js +34 -0
  342. package/dist/hooks/useGitDirtyFiles.test.cjs +9 -0
  343. package/dist/hooks/useGitDirtyFiles.test.d.ts +2 -0
  344. package/dist/hooks/useGitDirtyFiles.test.d.ts.map +1 -0
  345. package/dist/hooks/useGitDirtyFiles.test.js +8 -0
  346. package/dist/hooks/useHeldValue.cjs +33 -0
  347. package/dist/hooks/useHeldValue.d.ts +3 -0
  348. package/dist/hooks/useHeldValue.d.ts.map +1 -0
  349. package/dist/hooks/useHeldValue.js +9 -0
  350. package/dist/hooks/useHeldValue.test.cjs +31 -0
  351. package/dist/hooks/useHeldValue.test.d.ts +2 -0
  352. package/dist/hooks/useHeldValue.test.d.ts.map +1 -0
  353. package/dist/hooks/useHeldValue.test.js +30 -0
  354. package/dist/hooks/useInputOrchestrator.cjs +22 -30
  355. package/dist/hooks/useInputOrchestrator.d.ts +2 -0
  356. package/dist/hooks/useInputOrchestrator.d.ts.map +1 -1
  357. package/dist/hooks/useInputOrchestrator.js +21 -30
  358. package/dist/hooks/useInputOrchestrator.test.cjs +24 -0
  359. package/dist/hooks/useInputOrchestrator.test.d.ts +2 -0
  360. package/dist/hooks/useInputOrchestrator.test.d.ts.map +1 -0
  361. package/dist/hooks/useInputOrchestrator.test.js +23 -0
  362. package/dist/host/index.cjs +22 -49
  363. package/dist/host/index.d.ts +18 -72
  364. package/dist/host/index.d.ts.map +1 -1
  365. package/dist/host/index.js +18 -42
  366. package/dist/host/index.test.cjs +21 -35
  367. package/dist/host/index.test.js +22 -40
  368. package/dist/index.d.cts +13 -52
  369. package/dist/interactive-commands/command-parser.cjs +13 -21
  370. package/dist/interactive-commands/command-parser.d.ts.map +1 -1
  371. package/dist/interactive-commands/command-parser.js +13 -11
  372. package/dist/interactive-commands/general-commands.cjs +8 -7
  373. package/dist/interactive-commands/general-commands.d.ts.map +1 -1
  374. package/dist/interactive-commands/general-commands.js +8 -7
  375. package/dist/services/processStream.cjs +33 -21
  376. package/dist/services/processStream.d.ts.map +1 -1
  377. package/dist/services/processStream.js +34 -22
  378. package/dist/services/processStream.test.cjs +52 -4
  379. package/dist/services/processStream.test.js +52 -4
  380. package/dist/signal/background.cjs +154 -0
  381. package/dist/signal/background.d.ts +43 -0
  382. package/dist/signal/background.d.ts.map +1 -0
  383. package/dist/signal/background.js +124 -0
  384. package/dist/signal/background.test.cjs +186 -0
  385. package/dist/signal/background.test.d.ts +2 -0
  386. package/dist/signal/background.test.d.ts.map +1 -0
  387. package/dist/signal/background.test.js +192 -0
  388. package/dist/signal/caps.cjs +100 -0
  389. package/dist/signal/caps.d.ts +23 -0
  390. package/dist/signal/caps.d.ts.map +1 -0
  391. package/dist/signal/caps.js +73 -0
  392. package/dist/signal/caps.test.cjs +56 -0
  393. package/dist/signal/caps.test.d.ts +2 -0
  394. package/dist/signal/caps.test.d.ts.map +1 -0
  395. package/dist/signal/caps.test.js +55 -0
  396. package/dist/signal/components.cjs +257 -0
  397. package/dist/signal/components.d.ts +120 -0
  398. package/dist/signal/components.d.ts.map +1 -0
  399. package/dist/signal/components.js +226 -0
  400. package/dist/signal/components.test.cjs +156 -0
  401. package/dist/signal/components.test.d.ts +2 -0
  402. package/dist/signal/components.test.d.ts.map +1 -0
  403. package/dist/signal/components.test.js +133 -0
  404. package/dist/signal/cut.cjs +103 -0
  405. package/dist/signal/cut.d.ts +11 -0
  406. package/dist/signal/cut.d.ts.map +1 -0
  407. package/dist/signal/cut.js +77 -0
  408. package/dist/signal/cut.test.cjs +20 -0
  409. package/dist/signal/cut.test.d.ts +2 -0
  410. package/dist/signal/cut.test.d.ts.map +1 -0
  411. package/dist/signal/cut.test.js +19 -0
  412. package/dist/signal/deck-layout.cjs +57 -0
  413. package/dist/signal/deck-layout.d.ts +29 -0
  414. package/dist/signal/deck-layout.d.ts.map +1 -0
  415. package/dist/signal/deck-layout.js +30 -0
  416. package/dist/signal/deck-parts.cjs +243 -0
  417. package/dist/signal/deck-parts.d.ts +55 -0
  418. package/dist/signal/deck-parts.d.ts.map +1 -0
  419. package/dist/signal/deck-parts.js +205 -0
  420. package/dist/signal/deck.test.cjs +311 -0
  421. package/dist/signal/deck.test.d.ts +2 -0
  422. package/dist/signal/deck.test.d.ts.map +1 -0
  423. package/dist/signal/deck.test.js +288 -0
  424. package/dist/signal/glyphs.cjs +195 -0
  425. package/dist/signal/glyphs.d.ts +8 -0
  426. package/dist/signal/glyphs.d.ts.map +1 -0
  427. package/dist/signal/glyphs.js +171 -0
  428. package/dist/signal/glyphs.test.cjs +17 -0
  429. package/dist/signal/glyphs.test.d.ts +2 -0
  430. package/dist/signal/glyphs.test.d.ts.map +1 -0
  431. package/dist/signal/glyphs.test.js +16 -0
  432. package/dist/signal/harness.cjs +103 -0
  433. package/dist/signal/harness.d.ts +70 -0
  434. package/dist/signal/harness.d.ts.map +1 -0
  435. package/dist/signal/harness.js +67 -0
  436. package/dist/signal/harness.test.cjs +84 -0
  437. package/dist/signal/harness.test.d.ts +2 -0
  438. package/dist/signal/harness.test.d.ts.map +1 -0
  439. package/dist/signal/harness.test.js +61 -0
  440. package/dist/signal/index.cjs +76 -0
  441. package/dist/signal/index.d.ts +8 -0
  442. package/dist/signal/index.d.ts.map +1 -0
  443. package/dist/signal/index.js +45 -0
  444. package/dist/signal/kit.snapshot.test.cjs +56 -0
  445. package/dist/signal/kit.snapshot.test.d.ts +2 -0
  446. package/dist/signal/kit.snapshot.test.d.ts.map +1 -0
  447. package/dist/signal/kit.snapshot.test.js +55 -0
  448. package/dist/signal/no-raw-colours.test.cjs +32 -0
  449. package/dist/signal/no-raw-colours.test.d.ts +2 -0
  450. package/dist/signal/no-raw-colours.test.d.ts.map +1 -0
  451. package/dist/signal/no-raw-colours.test.js +30 -0
  452. package/dist/signal/paint.cjs +76 -0
  453. package/dist/signal/paint.d.ts +15 -0
  454. package/dist/signal/paint.d.ts.map +1 -0
  455. package/dist/signal/paint.js +41 -0
  456. package/dist/signal/paint.test.cjs +98 -0
  457. package/dist/signal/paint.test.d.ts +2 -0
  458. package/dist/signal/paint.test.d.ts.map +1 -0
  459. package/dist/signal/paint.test.js +75 -0
  460. package/dist/signal/tone.cjs +109 -0
  461. package/dist/signal/tone.d.ts +17 -0
  462. package/dist/signal/tone.d.ts.map +1 -0
  463. package/dist/signal/tone.js +83 -0
  464. package/dist/signal/tone.test.cjs +70 -0
  465. package/dist/signal/tone.test.d.ts +2 -0
  466. package/dist/signal/tone.test.d.ts.map +1 -0
  467. package/dist/signal/tone.test.js +69 -0
  468. package/dist/signal/trace.cjs +142 -0
  469. package/dist/signal/trace.d.ts +41 -0
  470. package/dist/signal/trace.d.ts.map +1 -0
  471. package/dist/signal/trace.js +113 -0
  472. package/dist/signal/trace.test.cjs +50 -0
  473. package/dist/signal/trace.test.d.ts +2 -0
  474. package/dist/signal/trace.test.d.ts.map +1 -0
  475. package/dist/signal/trace.test.js +49 -0
  476. package/dist/signal/use-trace.cjs +73 -0
  477. package/dist/signal/use-trace.d.ts +5 -0
  478. package/dist/signal/use-trace.d.ts.map +1 -0
  479. package/dist/signal/use-trace.js +48 -0
  480. package/dist/signal/wordmark-art.generated.cjs +375 -0
  481. package/dist/signal/wordmark-art.generated.d.ts +3 -0
  482. package/dist/signal/wordmark-art.generated.d.ts.map +1 -0
  483. package/dist/signal/wordmark-art.generated.js +351 -0
  484. package/dist/signal/wordmark.cjs +60 -0
  485. package/dist/signal/wordmark.d.ts +23 -0
  486. package/dist/signal/wordmark.d.ts.map +1 -0
  487. package/dist/signal/wordmark.js +34 -0
  488. package/dist/signal/wordmark.test.cjs +71 -0
  489. package/dist/signal/wordmark.test.d.ts +2 -0
  490. package/dist/signal/wordmark.test.d.ts.map +1 -0
  491. package/dist/signal/wordmark.test.js +70 -0
  492. package/dist/state/initialState.cjs +0 -3
  493. package/dist/state/initialState.d.ts.map +1 -1
  494. package/dist/state/initialState.js +0 -3
  495. package/dist/state/types.d.ts +13 -7
  496. package/dist/state/types.d.ts.map +1 -1
  497. package/dist/utils/approval-response.cjs +45 -0
  498. package/dist/utils/approval-response.d.ts +14 -0
  499. package/dist/utils/approval-response.d.ts.map +1 -0
  500. package/dist/utils/approval-response.js +21 -0
  501. package/dist/utils/approval-response.test.cjs +49 -0
  502. package/dist/utils/approval-response.test.d.ts +2 -0
  503. package/dist/utils/approval-response.test.d.ts.map +1 -0
  504. package/dist/utils/approval-response.test.js +55 -0
  505. package/dist/utils/approvalScope.cjs +12 -0
  506. package/dist/utils/approvalScope.d.ts.map +1 -1
  507. package/dist/utils/approvalScope.js +12 -0
  508. package/dist/utils/approvalScope.test.cjs +23 -0
  509. package/dist/utils/approvalScope.test.d.ts +2 -0
  510. package/dist/utils/approvalScope.test.d.ts.map +1 -0
  511. package/dist/utils/approvalScope.test.js +22 -0
  512. package/dist/utils/background-failure.cjs +51 -0
  513. package/dist/utils/background-failure.d.ts +12 -0
  514. package/dist/utils/background-failure.d.ts.map +1 -0
  515. package/dist/utils/background-failure.js +26 -0
  516. package/dist/utils/chatgpt-rate-limit.cjs +10 -0
  517. package/dist/utils/chatgpt-rate-limit.d.ts +9 -0
  518. package/dist/utils/chatgpt-rate-limit.d.ts.map +1 -1
  519. package/dist/utils/chatgpt-rate-limit.js +9 -0
  520. package/dist/utils/chatgpt-rate-limit.test.cjs +10 -0
  521. package/dist/utils/chatgpt-rate-limit.test.js +11 -0
  522. package/dist/utils/deck-state.cjs +107 -0
  523. package/dist/utils/deck-state.d.ts +79 -0
  524. package/dist/utils/deck-state.d.ts.map +1 -0
  525. package/dist/utils/deck-state.js +76 -0
  526. package/dist/utils/deck-state.test.cjs +208 -0
  527. package/dist/utils/deck-state.test.d.ts +2 -0
  528. package/dist/utils/deck-state.test.d.ts.map +1 -0
  529. package/dist/utils/deck-state.test.js +216 -0
  530. package/dist/utils/fault-block.cjs +37 -0
  531. package/dist/utils/fault-block.d.ts +13 -0
  532. package/dist/utils/fault-block.d.ts.map +1 -0
  533. package/dist/utils/fault-block.js +13 -0
  534. package/dist/utils/fault-block.test.cjs +23 -0
  535. package/dist/utils/fault-block.test.d.ts +2 -0
  536. package/dist/utils/fault-block.test.d.ts.map +1 -0
  537. package/dist/utils/fault-block.test.js +22 -0
  538. package/dist/utils/llm-provider-display.cjs +1 -1
  539. package/dist/utils/llm-provider-display.js +1 -1
  540. package/dist/utils/messageFormatting.cjs +26 -23
  541. package/dist/utils/messageFormatting.d.ts +5 -2
  542. package/dist/utils/messageFormatting.d.ts.map +1 -1
  543. package/dist/utils/messageFormatting.js +25 -21
  544. package/dist/utils/messageFormatting.test.cjs +34 -0
  545. package/dist/utils/messageFormatting.test.js +35 -1
  546. package/dist/utils/reasoning-variant.cjs +35 -0
  547. package/dist/utils/reasoning-variant.d.ts +13 -0
  548. package/dist/utils/reasoning-variant.d.ts.map +1 -0
  549. package/dist/utils/reasoning-variant.js +11 -0
  550. package/dist/utils/resize-reflow.cjs +119 -0
  551. package/dist/utils/resize-reflow.d.ts +18 -0
  552. package/dist/utils/resize-reflow.d.ts.map +1 -0
  553. package/dist/utils/resize-reflow.js +83 -0
  554. package/dist/utils/resize-reflow.test.cjs +100 -0
  555. package/dist/utils/resize-reflow.test.d.ts +2 -0
  556. package/dist/utils/resize-reflow.test.d.ts.map +1 -0
  557. package/dist/utils/resize-reflow.test.js +99 -0
  558. package/dist/utils/tool-step.cjs +183 -0
  559. package/dist/utils/tool-step.d.ts +28 -0
  560. package/dist/utils/tool-step.d.ts.map +1 -0
  561. package/dist/utils/tool-step.js +156 -0
  562. package/dist/utils/tool-step.test.cjs +263 -0
  563. package/dist/utils/tool-step.test.d.ts +2 -0
  564. package/dist/utils/tool-step.test.d.ts.map +1 -0
  565. package/dist/utils/tool-step.test.js +262 -0
  566. package/package.json +9 -5
  567. package/dist/components/BackgroundTasksPanel.cjs +0 -117
  568. package/dist/components/BackgroundTasksPanel.d.ts +0 -18
  569. package/dist/components/BackgroundTasksPanel.d.ts.map +0 -1
  570. package/dist/components/BackgroundTasksPanel.js +0 -93
@@ -1,6 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useEffect, forwardRef, useImperativeHandle } from "react";
3
3
  import { Box, Text } from "ink";
4
+ import { tone } from "../../signal/index.js";
4
5
  const BREAKDOWN_ITEMS = [
5
6
  "systemPrompt",
6
7
  "tools",
@@ -8,12 +9,12 @@ const BREAKDOWN_ITEMS = [
8
9
  "freeSpace",
9
10
  "autoCompactBuffer"
10
11
  ];
11
- const ITEM_COLORS = {
12
- systemPrompt: "cyan",
13
- tools: "yellow",
14
- messages: "blue",
15
- freeSpace: "gray",
16
- autoCompactBuffer: "magenta"
12
+ const ITEM_ROLES = {
13
+ systemPrompt: "teal",
14
+ tools: "amberDim",
15
+ messages: "fg",
16
+ freeSpace: "dim",
17
+ autoCompactBuffer: "faint"
17
18
  };
18
19
  function formatTokens(tokens) {
19
20
  if (tokens >= 1e3) {
@@ -43,29 +44,39 @@ function createStackedBar(breakdown, maxContextTokens, thresholdPercent, totalWi
43
44
  if (sysWidth > 0) {
44
45
  segments.push({
45
46
  char: "\u2588",
46
- color: ITEM_COLORS.systemPrompt,
47
+ color: tone(ITEM_ROLES.systemPrompt),
47
48
  width: sysWidth,
48
49
  item: "systemPrompt"
49
50
  });
50
51
  }
51
52
  if (toolsWidth > 0) {
52
- segments.push({ char: "\u2588", color: ITEM_COLORS.tools, width: toolsWidth, item: "tools" });
53
+ segments.push({
54
+ char: "\u2588",
55
+ color: tone(ITEM_ROLES.tools),
56
+ width: toolsWidth,
57
+ item: "tools"
58
+ });
53
59
  }
54
60
  if (msgsWidth > 0) {
55
61
  segments.push({
56
62
  char: "\u2588",
57
- color: ITEM_COLORS.messages,
63
+ color: tone(ITEM_ROLES.messages),
58
64
  width: msgsWidth,
59
65
  item: "messages"
60
66
  });
61
67
  }
62
68
  if (adjustedFreeWidth > 0) {
63
- segments.push({ char: "\u2591", color: "gray", width: adjustedFreeWidth, item: "freeSpace" });
69
+ segments.push({
70
+ char: "\u2591",
71
+ color: tone("dim"),
72
+ width: adjustedFreeWidth,
73
+ item: "freeSpace"
74
+ });
64
75
  }
65
76
  if (reservedWidth > 0) {
66
77
  segments.push({
67
78
  char: "\u2592",
68
- color: ITEM_COLORS.autoCompactBuffer,
79
+ color: tone(ITEM_ROLES.autoCompactBuffer),
69
80
  width: reservedWidth,
70
81
  item: "autoCompactBuffer"
71
82
  });
@@ -152,12 +163,12 @@ const ContextStatsOverlay = forwardRef(
152
163
  {
153
164
  flexDirection: "column",
154
165
  borderStyle: "round",
155
- borderColor: "cyan",
166
+ borderColor: tone("teal"),
156
167
  paddingX: 2,
157
168
  paddingY: 1,
158
169
  children: [
159
- /* @__PURE__ */ jsx(Text, { color: "cyan", bold: true, children: "\u{1F4CA} Context Usage" }),
160
- /* @__PURE__ */ jsx(Text, { color: "gray", children: "Loading..." })
170
+ /* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: "\u{1F4CA} Context Usage" }),
171
+ /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Loading..." })
161
172
  ]
162
173
  }
163
174
  );
@@ -168,13 +179,13 @@ const ContextStatsOverlay = forwardRef(
168
179
  {
169
180
  flexDirection: "column",
170
181
  borderStyle: "round",
171
- borderColor: "red",
182
+ borderColor: tone("red"),
172
183
  paddingX: 2,
173
184
  paddingY: 1,
174
185
  children: [
175
- /* @__PURE__ */ jsx(Text, { color: "red", bold: true, children: "Error" }),
176
- /* @__PURE__ */ jsx(Text, { color: "gray", children: error }),
177
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "gray", dimColor: true, children: "Press Esc to close" }) })
186
+ /* @__PURE__ */ jsx(Text, { color: tone("red"), bold: true, children: "Error" }),
187
+ /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: error }),
188
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), dimColor: true, children: "Press Esc to close" }) })
178
189
  ]
179
190
  }
180
191
  );
@@ -200,15 +211,15 @@ const ContextStatsOverlay = forwardRef(
200
211
  const isSelected = selectedIndex === index;
201
212
  const prefix = isLast ? "\u2514\u2500" : "\u251C\u2500";
202
213
  const expandIcon = expandable ? isToolsExpanded ? "\u25BC" : "\u25B6" : " ";
203
- const itemColor = ITEM_COLORS[item];
214
+ const itemColor = tone(ITEM_ROLES[item]);
204
215
  const indicator = item === "freeSpace" ? "\u2591" : item === "autoCompactBuffer" ? "\u2592" : "\u2588";
205
216
  return /* @__PURE__ */ jsxs(Box, { children: [
206
- /* @__PURE__ */ jsxs(Text, { color: isSelected ? "white" : "gray", children: [
217
+ /* @__PURE__ */ jsxs(Text, { color: isSelected ? tone("hi") : tone("dim"), children: [
207
218
  prefix,
208
219
  " "
209
220
  ] }),
210
221
  /* @__PURE__ */ jsx(Text, { color: itemColor, bold: isSelected, children: indicator }),
211
- /* @__PURE__ */ jsxs(Text, { color: isSelected ? "white" : "gray", bold: isSelected, children: [
222
+ /* @__PURE__ */ jsxs(Text, { color: isSelected ? tone("hi") : tone("dim"), bold: isSelected, children: [
212
223
  " ",
213
224
  expandIcon,
214
225
  " ",
@@ -219,7 +230,7 @@ const ContextStatsOverlay = forwardRef(
219
230
  pct(tokens),
220
231
  ")"
221
232
  ] }),
222
- isSelected && expandable && /* @__PURE__ */ jsxs(Text, { color: "gray", dimColor: true, children: [
233
+ isSelected && expandable && /* @__PURE__ */ jsxs(Text, { color: tone("dim"), dimColor: true, children: [
223
234
  " ",
224
235
  "(Enter to ",
225
236
  isToolsExpanded ? "collapse" : "expand",
@@ -234,34 +245,34 @@ const ContextStatsOverlay = forwardRef(
234
245
  {
235
246
  flexDirection: "column",
236
247
  borderStyle: "round",
237
- borderColor: "cyan",
248
+ borderColor: tone("teal"),
238
249
  paddingX: 2,
239
250
  paddingY: 1,
240
251
  children: [
241
252
  /* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
242
- /* @__PURE__ */ jsx(Text, { color: "cyan", bold: true, children: "\u{1F4CA} Context Usage" }),
243
- /* @__PURE__ */ jsxs(Text, { color: "gray", children: [
253
+ /* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: "\u{1F4CA} Context Usage" }),
254
+ /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
244
255
  " - ",
245
256
  stats.modelDisplayName
246
257
  ] })
247
258
  ] }),
248
259
  /* @__PURE__ */ jsx(Box, { children: barSegments.map((segment, idx) => {
249
260
  const isHighlighted = BREAKDOWN_ITEMS[selectedIndex] === segment.item;
250
- return /* @__PURE__ */ jsx(Text, { color: "white", children: isHighlighted ? "\u25BC".repeat(segment.width) : " ".repeat(segment.width) }, idx);
261
+ return /* @__PURE__ */ jsx(Text, { color: tone("hi"), children: isHighlighted ? "\u25BC".repeat(segment.width) : " ".repeat(segment.width) }, idx);
251
262
  }) }),
252
263
  /* @__PURE__ */ jsx(Box, { children: barSegments.map((segment, idx) => /* @__PURE__ */ jsx(Text, { color: segment.color, children: segment.char.repeat(segment.width) }, idx)) }),
253
264
  /* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
254
- /* @__PURE__ */ jsxs(Text, { color: "gray", children: [
265
+ /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
255
266
  tokenDisplay,
256
267
  " / ",
257
268
  formatTokens(totalTokenSpace),
258
269
  " tokens"
259
270
  ] }),
260
- /* @__PURE__ */ jsx(Text, { color: "gray", children: " \u2022 " }),
271
+ /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: " \u2022 " }),
261
272
  /* @__PURE__ */ jsxs(
262
273
  Text,
263
274
  {
264
- color: stats.usagePercent > 80 ? "red" : stats.usagePercent > 60 ? "yellow" : "green",
275
+ color: stats.usagePercent > 80 ? tone("red") : stats.usagePercent > 60 ? tone("amberDim") : tone("add"),
265
276
  children: [
266
277
  stats.usagePercent,
267
278
  "% used"
@@ -270,7 +281,7 @@ const ContextStatsOverlay = forwardRef(
270
281
  )
271
282
  ] }),
272
283
  /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
273
- /* @__PURE__ */ jsx(Text, { color: "white", children: "Breakdown:" }),
284
+ /* @__PURE__ */ jsx(Text, { color: tone("hi"), children: "Breakdown:" }),
274
285
  renderRow(
275
286
  0,
276
287
  "systemPrompt",
@@ -286,10 +297,10 @@ const ContextStatsOverlay = forwardRef(
286
297
  false,
287
298
  true
288
299
  ),
289
- isToolsExpanded && /* @__PURE__ */ jsx(Box, { flexDirection: "column", marginLeft: 4, children: stats.breakdown.tools.perTool.length === 0 ? /* @__PURE__ */ jsx(Text, { color: "gray", dimColor: true, children: "No tools registered" }) : [...stats.breakdown.tools.perTool].sort((a, b) => b.tokens - a.tokens).map((tool, idx, arr) => /* @__PURE__ */ jsxs(Text, { color: "gray", dimColor: true, children: [
300
+ isToolsExpanded && /* @__PURE__ */ jsx(Box, { flexDirection: "column", marginLeft: 4, children: stats.breakdown.tools.perTool.length === 0 ? /* @__PURE__ */ jsx(Text, { color: tone("dim"), dimColor: true, children: "No tools registered" }) : [...stats.breakdown.tools.perTool].sort((a, b) => b.tokens - a.tokens).map((tool, idx, arr) => /* @__PURE__ */ jsxs(Text, { color: tone("dim"), dimColor: true, children: [
290
301
  idx === arr.length - 1 ? "\u2514\u2500" : "\u251C\u2500",
291
302
  " ",
292
- /* @__PURE__ */ jsx(Text, { color: "yellow", dimColor: true, children: tool.name }),
303
+ /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), dimColor: true, children: tool.name }),
293
304
  ": ",
294
305
  formatTokens(tool.tokens),
295
306
  " (",
@@ -307,22 +318,22 @@ const ContextStatsOverlay = forwardRef(
307
318
  )
308
319
  ] }),
309
320
  /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
310
- /* @__PURE__ */ jsxs(Text, { color: "gray", children: [
321
+ /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
311
322
  "Messages: ",
312
323
  stats.filteredMessageCount,
313
324
  " visible (",
314
325
  stats.messageCount,
315
326
  " total)"
316
327
  ] }),
317
- stats.prunedToolCount > 0 && /* @__PURE__ */ jsxs(Text, { color: "yellow", children: [
328
+ stats.prunedToolCount > 0 && /* @__PURE__ */ jsxs(Text, { color: tone("amberDim"), children: [
318
329
  "\u{1F5D1}\uFE0F ",
319
330
  stats.prunedToolCount,
320
331
  " tool output(s) pruned"
321
332
  ] }),
322
- stats.hasSummary && /* @__PURE__ */ jsx(Text, { color: "blue", children: "\u{1F4E6} Context has been compacted (summary present)" }),
323
- stats.usagePercent > 100 && /* @__PURE__ */ jsx(Text, { color: "yellow", children: "\u{1F4A1} Use /compact to manually compact, or send a message to trigger auto-compaction" })
333
+ stats.hasSummary && /* @__PURE__ */ jsx(Text, { color: tone("fg"), children: "\u{1F4E6} Context has been compacted (summary present)" }),
334
+ stats.usagePercent > 100 && /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: "\u{1F4A1} Use /compact to manually compact, or send a message to trigger auto-compaction" })
324
335
  ] }),
325
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "gray", dimColor: true, children: "\u2191\u2193: navigate | Enter: expand/collapse | Esc: close" }) })
336
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), dimColor: true, children: "\u2191\u2193: navigate | Enter: expand/collapse | Esc: close" }) })
326
337
  ]
327
338
  }
328
339
  );
@@ -39,6 +39,7 @@ var import_core = require("@dexto/core");
39
39
  var import_provider_config = require("./custom-model-wizard/provider-config.js");
40
40
  var import_shared = require("./custom-model-wizard/shared/index.js");
41
41
  var import_LocalModelWizard = __toESM(require("./custom-model-wizard/LocalModelWizard.js"), 1);
42
+ var import_signal = require("../../signal/index.js");
42
43
  const CustomModelWizard = (0, import_react.forwardRef)(
43
44
  function CustomModelWizard2({ isVisible, onComplete, onClose, initialModel }, ref) {
44
45
  const [selectedProvider, setSelectedProvider] = (0, import_react.useState)(null);
@@ -314,13 +315,13 @@ const CustomModelWizard = (0, import_react.forwardRef)(
314
315
  {
315
316
  flexDirection: "column",
316
317
  borderStyle: "round",
317
- borderColor: "green",
318
+ borderColor: (0, import_signal.tone)("add"),
318
319
  paddingX: 1,
319
320
  marginTop: 1,
320
321
  children: [
321
322
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginBottom: 1, children: [
322
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: "green", children: isEditing ? "Edit Custom Model" : "Add Custom Model" }),
323
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "gray", children: [
323
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: (0, import_signal.tone)("add"), children: isEditing ? "Edit Custom Model" : "Add Custom Model" }),
324
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
324
325
  " ",
325
326
  "(",
326
327
  providerConfig.displayName,
@@ -349,7 +350,7 @@ const CustomModelWizard = (0, import_react.forwardRef)(
349
350
  additionalContent: currentStepConfig.field === "apiKey" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shared.ApiKeyStep, { provider: selectedProvider }) : void 0
350
351
  }
351
352
  ),
352
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "gray", children: [
353
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
353
354
  "Enter to continue \u2022 Esc to",
354
355
  " ",
355
356
  currentStep > 0 ? "go back" : "back to provider"
@@ -1 +1 @@
1
- {"version":3,"file":"CustomModelWizard.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/CustomModelWizard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAGH,KAAK,WAAW,EAMnB,MAAM,yBAAyB,CAAC;AAqBjC,UAAU,sBAAsB;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uEAAuE;IACvE,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAED;;;GAGG;AACH,QAAA,MAAM,iBAAiB,wGA4YtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"CustomModelWizard.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/CustomModelWizard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAGH,KAAK,WAAW,EAMnB,MAAM,yBAAyB,CAAC;AAsBjC,UAAU,sBAAsB;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uEAAuE;IACvE,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAED;;;GAGG;AACH,QAAA,MAAM,iBAAiB,wGA4YtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -30,6 +30,7 @@ import {
30
30
  ApiKeyStep
31
31
  } from "./custom-model-wizard/shared/index.js";
32
32
  import LocalModelWizard from "./custom-model-wizard/LocalModelWizard.js";
33
+ import { tone } from "../../signal/index.js";
33
34
  const CustomModelWizard = forwardRef(
34
35
  function CustomModelWizard2({ isVisible, onComplete, onClose, initialModel }, ref) {
35
36
  const [selectedProvider, setSelectedProvider] = useState(null);
@@ -305,13 +306,13 @@ const CustomModelWizard = forwardRef(
305
306
  {
306
307
  flexDirection: "column",
307
308
  borderStyle: "round",
308
- borderColor: "green",
309
+ borderColor: tone("add"),
309
310
  paddingX: 1,
310
311
  marginTop: 1,
311
312
  children: [
312
313
  /* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
313
- /* @__PURE__ */ jsx(Text, { bold: true, color: "green", children: isEditing ? "Edit Custom Model" : "Add Custom Model" }),
314
- /* @__PURE__ */ jsxs(Text, { color: "gray", children: [
314
+ /* @__PURE__ */ jsx(Text, { bold: true, color: tone("add"), children: isEditing ? "Edit Custom Model" : "Add Custom Model" }),
315
+ /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
315
316
  " ",
316
317
  "(",
317
318
  providerConfig.displayName,
@@ -340,7 +341,7 @@ const CustomModelWizard = forwardRef(
340
341
  additionalContent: currentStepConfig.field === "apiKey" ? /* @__PURE__ */ jsx(ApiKeyStep, { provider: selectedProvider }) : void 0
341
342
  }
342
343
  ),
343
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsxs(Text, { color: "gray", children: [
344
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
344
345
  "Enter to continue \u2022 Esc to",
345
346
  " ",
346
347
  currentStep > 0 ? "go back" : "back to provider"
@@ -36,6 +36,7 @@ var import_react = require("react");
36
36
  var import_ink = require("ink");
37
37
  var import_promises = __toESM(require("fs/promises"), 1);
38
38
  var import_path = __toESM(require("path"), 1);
39
+ var import_signal = require("../../signal/index.js");
39
40
  function generateDefaultFilename(sessionId, format) {
40
41
  const date = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
41
42
  const shortId = sessionId ? sessionId.slice(0, 6) : "unknown";
@@ -289,91 +290,91 @@ const ExportWizard = (0, import_react.forwardRef)(function ExportWizard2({ isVis
289
290
  {
290
291
  flexDirection: "column",
291
292
  borderStyle: "round",
292
- borderColor: "cyan",
293
+ borderColor: (0, import_signal.tone)("teal"),
293
294
  paddingX: 1,
294
295
  marginTop: 1,
295
296
  children: [
296
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginBottom: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: "cyan", children: "\u{1F4E4} Export Conversation" }) }),
297
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginBottom: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: (0, import_signal.tone)("teal"), children: "\u{1F4E4} Export Conversation" }) }),
297
298
  step === "format" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
298
299
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: "Select export format:" }),
299
300
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, flexDirection: "column", children: [
300
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: "cyan" } : {}, children: [
301
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: (0, import_signal.tone)("teal") } : {}, children: [
301
302
  selectedIndex === 0 ? "\u276F " : " ",
302
303
  "Markdown (.md) - Human readable"
303
304
  ] }),
304
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: "cyan" } : {}, children: [
305
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: (0, import_signal.tone)("teal") } : {}, children: [
305
306
  selectedIndex === 1 ? "\u276F " : " ",
306
307
  "JSON (.json) - Structured data"
307
308
  ] })
308
309
  ] }),
309
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "gray", children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
310
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
310
311
  ] }),
311
312
  step === "toolCalls" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
312
313
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: "Include tool calls and results?" }),
313
314
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, flexDirection: "column", children: [
314
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: "cyan" } : {}, children: [
315
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: (0, import_signal.tone)("teal") } : {}, children: [
315
316
  selectedIndex === 0 ? "\u276F " : " ",
316
317
  "Yes - Include all tool interactions"
317
318
  ] }),
318
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: "cyan" } : {}, children: [
319
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: (0, import_signal.tone)("teal") } : {}, children: [
319
320
  selectedIndex === 1 ? "\u276F " : " ",
320
321
  "No - Only user and assistant messages"
321
322
  ] })
322
323
  ] }),
323
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "gray", children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
324
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
324
325
  ] }),
325
326
  step === "filename" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
326
327
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: "Filename:" }),
327
328
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, children: [
328
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "cyan", children: "> " }),
329
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), children: "> " }),
329
330
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: filenameInput }),
330
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "cyan", children: "_" })
331
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), children: "_" })
331
332
  ] }),
332
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "gray", children: "Enter to continue \u2022 Esc to cancel" }) })
333
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Enter to continue \u2022 Esc to cancel" }) })
333
334
  ] }),
334
335
  step === "confirm" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
335
336
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: "Export with these settings?" }),
336
337
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, flexDirection: "column", marginLeft: 2, children: [
337
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "gray", children: [
338
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
338
339
  "Format:",
339
340
  " ",
340
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "white", children: options.format === "markdown" ? "Markdown" : "JSON" })
341
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("hi"), children: options.format === "markdown" ? "Markdown" : "JSON" })
341
342
  ] }),
342
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "gray", children: [
343
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
343
344
  "Tool calls:",
344
345
  " ",
345
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "white", children: options.includeToolCalls ? "Yes" : "No" })
346
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("hi"), children: options.includeToolCalls ? "Yes" : "No" })
346
347
  ] }),
347
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "gray", children: [
348
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
348
349
  "File: ",
349
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "white", children: filenameInput })
350
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("hi"), children: filenameInput })
350
351
  ] })
351
352
  ] }),
352
353
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, flexDirection: "column", children: [
353
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: "green" } : {}, children: [
354
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: (0, import_signal.tone)("add") } : {}, children: [
354
355
  selectedIndex === 0 ? "\u276F " : " ",
355
356
  "Export"
356
357
  ] }),
357
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: "red" } : {}, children: [
358
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: (0, import_signal.tone)("red") } : {}, children: [
358
359
  selectedIndex === 1 ? "\u276F " : " ",
359
360
  "Cancel"
360
361
  ] })
361
362
  ] }),
362
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "gray", children: "\u2191\u2193 to select \u2022 Enter to confirm" }) })
363
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 to select \u2022 Enter to confirm" }) })
363
364
  ] }),
364
- step === "exporting" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { flexDirection: "column", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "yellow", children: "Exporting..." }) }),
365
+ step === "exporting" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { flexDirection: "column", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("amberDim"), children: "Exporting..." }) }),
365
366
  step === "done" && exportResult?.success && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
366
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "green", children: "\u2713 Exported successfully!" }),
367
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("add"), children: "\u2713 Exported successfully!" }),
367
368
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, children: [
368
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "gray", children: "Saved to: " }),
369
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Saved to: " }),
369
370
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: exportResult.path })
370
371
  ] }),
371
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "gray", children: "Press Enter or Esc to close" }) })
372
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Press Enter or Esc to close" }) })
372
373
  ] }),
373
374
  step === "error" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
374
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "red", children: "\u2717 Export failed" }),
375
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "red", children: exportResult?.error }) }),
376
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "gray", children: "Press Enter or Esc to close" }) })
375
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("red"), children: "\u2717 Export failed" }),
376
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("red"), children: exportResult?.error }) }),
377
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Press Enter or Esc to close" }) })
377
378
  ] })
378
379
  ]
379
380
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ExportWizard.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/ExportWizard.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA4E,MAAM,OAAO,CAAC;AAIjG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAY9D,UAAU,iBAAiB;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AA4JD;;GAEG;AACH,QAAA,MAAM,YAAY,8FA+UhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ExportWizard.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/ExportWizard.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA4E,MAAM,OAAO,CAAC;AAIjG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAa9D,UAAU,iBAAiB;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AA4JD;;GAEG;AACH,QAAA,MAAM,YAAY,8FAqVhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
@@ -3,6 +3,7 @@ import { useState, useEffect, forwardRef, useImperativeHandle, useCallback } fro
3
3
  import { Box, Text } from "ink";
4
4
  import fs from "fs/promises";
5
5
  import path from "path";
6
+ import { tone } from "../../signal/index.js";
6
7
  function generateDefaultFilename(sessionId, format) {
7
8
  const date = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
8
9
  const shortId = sessionId ? sessionId.slice(0, 6) : "unknown";
@@ -256,91 +257,91 @@ const ExportWizard = forwardRef(function ExportWizard2({ isVisible, agent, sessi
256
257
  {
257
258
  flexDirection: "column",
258
259
  borderStyle: "round",
259
- borderColor: "cyan",
260
+ borderColor: tone("teal"),
260
261
  paddingX: 1,
261
262
  marginTop: 1,
262
263
  children: [
263
- /* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: "cyan", children: "\u{1F4E4} Export Conversation" }) }),
264
+ /* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: tone("teal"), children: "\u{1F4E4} Export Conversation" }) }),
264
265
  step === "format" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
265
266
  /* @__PURE__ */ jsx(Text, { children: "Select export format:" }),
266
267
  /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
267
- /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: "cyan" } : {}, children: [
268
+ /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: tone("teal") } : {}, children: [
268
269
  selectedIndex === 0 ? "\u276F " : " ",
269
270
  "Markdown (.md) - Human readable"
270
271
  ] }),
271
- /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: "cyan" } : {}, children: [
272
+ /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: tone("teal") } : {}, children: [
272
273
  selectedIndex === 1 ? "\u276F " : " ",
273
274
  "JSON (.json) - Structured data"
274
275
  ] })
275
276
  ] }),
276
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
277
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
277
278
  ] }),
278
279
  step === "toolCalls" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
279
280
  /* @__PURE__ */ jsx(Text, { children: "Include tool calls and results?" }),
280
281
  /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
281
- /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: "cyan" } : {}, children: [
282
+ /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: tone("teal") } : {}, children: [
282
283
  selectedIndex === 0 ? "\u276F " : " ",
283
284
  "Yes - Include all tool interactions"
284
285
  ] }),
285
- /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: "cyan" } : {}, children: [
286
+ /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: tone("teal") } : {}, children: [
286
287
  selectedIndex === 1 ? "\u276F " : " ",
287
288
  "No - Only user and assistant messages"
288
289
  ] })
289
290
  ] }),
290
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
291
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
291
292
  ] }),
292
293
  step === "filename" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
293
294
  /* @__PURE__ */ jsx(Text, { children: "Filename:" }),
294
295
  /* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
295
- /* @__PURE__ */ jsx(Text, { color: "cyan", children: "> " }),
296
+ /* @__PURE__ */ jsx(Text, { color: tone("teal"), children: "> " }),
296
297
  /* @__PURE__ */ jsx(Text, { children: filenameInput }),
297
- /* @__PURE__ */ jsx(Text, { color: "cyan", children: "_" })
298
+ /* @__PURE__ */ jsx(Text, { color: tone("teal"), children: "_" })
298
299
  ] }),
299
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Enter to continue \u2022 Esc to cancel" }) })
300
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Enter to continue \u2022 Esc to cancel" }) })
300
301
  ] }),
301
302
  step === "confirm" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
302
303
  /* @__PURE__ */ jsx(Text, { children: "Export with these settings?" }),
303
304
  /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", marginLeft: 2, children: [
304
- /* @__PURE__ */ jsxs(Text, { color: "gray", children: [
305
+ /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
305
306
  "Format:",
306
307
  " ",
307
- /* @__PURE__ */ jsx(Text, { color: "white", children: options.format === "markdown" ? "Markdown" : "JSON" })
308
+ /* @__PURE__ */ jsx(Text, { color: tone("hi"), children: options.format === "markdown" ? "Markdown" : "JSON" })
308
309
  ] }),
309
- /* @__PURE__ */ jsxs(Text, { color: "gray", children: [
310
+ /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
310
311
  "Tool calls:",
311
312
  " ",
312
- /* @__PURE__ */ jsx(Text, { color: "white", children: options.includeToolCalls ? "Yes" : "No" })
313
+ /* @__PURE__ */ jsx(Text, { color: tone("hi"), children: options.includeToolCalls ? "Yes" : "No" })
313
314
  ] }),
314
- /* @__PURE__ */ jsxs(Text, { color: "gray", children: [
315
+ /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
315
316
  "File: ",
316
- /* @__PURE__ */ jsx(Text, { color: "white", children: filenameInput })
317
+ /* @__PURE__ */ jsx(Text, { color: tone("hi"), children: filenameInput })
317
318
  ] })
318
319
  ] }),
319
320
  /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
320
- /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: "green" } : {}, children: [
321
+ /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: tone("add") } : {}, children: [
321
322
  selectedIndex === 0 ? "\u276F " : " ",
322
323
  "Export"
323
324
  ] }),
324
- /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: "red" } : {}, children: [
325
+ /* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: tone("red") } : {}, children: [
325
326
  selectedIndex === 1 ? "\u276F " : " ",
326
327
  "Cancel"
327
328
  ] })
328
329
  ] }),
329
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "\u2191\u2193 to select \u2022 Enter to confirm" }) })
330
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 to select \u2022 Enter to confirm" }) })
330
331
  ] }),
331
- step === "exporting" && /* @__PURE__ */ jsx(Box, { flexDirection: "column", children: /* @__PURE__ */ jsx(Text, { color: "yellow", children: "Exporting..." }) }),
332
+ step === "exporting" && /* @__PURE__ */ jsx(Box, { flexDirection: "column", children: /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: "Exporting..." }) }),
332
333
  step === "done" && exportResult?.success && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
333
- /* @__PURE__ */ jsx(Text, { color: "green", children: "\u2713 Exported successfully!" }),
334
+ /* @__PURE__ */ jsx(Text, { color: tone("add"), children: "\u2713 Exported successfully!" }),
334
335
  /* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
335
- /* @__PURE__ */ jsx(Text, { color: "gray", children: "Saved to: " }),
336
+ /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Saved to: " }),
336
337
  /* @__PURE__ */ jsx(Text, { children: exportResult.path })
337
338
  ] }),
338
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Press Enter or Esc to close" }) })
339
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Press Enter or Esc to close" }) })
339
340
  ] }),
340
341
  step === "error" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
341
- /* @__PURE__ */ jsx(Text, { color: "red", children: "\u2717 Export failed" }),
342
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "red", children: exportResult?.error }) }),
343
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Press Enter or Esc to close" }) })
342
+ /* @__PURE__ */ jsx(Text, { color: tone("red"), children: "\u2717 Export failed" }),
343
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("red"), children: exportResult?.error }) }),
344
+ /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Press Enter or Esc to close" }) })
344
345
  ] })
345
346
  ]
346
347
  }