dexto 1.6.0 → 1.6.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 (510) hide show
  1. package/dist/agents/coding-agent/coding-agent.yml +3 -1
  2. package/dist/analytics/wrapper.js +1 -1
  3. package/dist/cli/auth/dexto-api-key.d.ts +34 -0
  4. package/dist/cli/auth/dexto-api-key.d.ts.map +1 -0
  5. package/dist/cli/auth/dexto-api-key.js +161 -0
  6. package/dist/cli/auth/index.d.ts +2 -1
  7. package/dist/cli/auth/index.d.ts.map +1 -1
  8. package/dist/cli/auth/index.js +2 -1
  9. package/dist/cli/auth/oauth.d.ts +10 -0
  10. package/dist/cli/auth/oauth.d.ts.map +1 -1
  11. package/dist/cli/auth/oauth.js +113 -36
  12. package/dist/cli/auth/service.d.ts +1 -0
  13. package/dist/cli/auth/service.d.ts.map +1 -1
  14. package/dist/cli/auth/service.js +1 -0
  15. package/dist/cli/commands/auth/login.d.ts.map +1 -1
  16. package/dist/cli/commands/auth/login.js +40 -105
  17. package/dist/cli/commands/setup.d.ts.map +1 -1
  18. package/dist/cli/commands/setup.js +157 -120
  19. package/dist/cli/utils/config-validation.js +3 -3
  20. package/dist/cli/utils/options.d.ts.map +1 -1
  21. package/dist/cli/utils/options.js +6 -0
  22. package/dist/index-main.js +36 -2
  23. package/dist/utils/session-logger-factory.d.ts.map +1 -1
  24. package/dist/utils/session-logger-factory.js +17 -2
  25. package/dist/webui/assets/index-BPlk2Wbt.css +1 -0
  26. package/dist/webui/assets/index-BZvrpxyh.js +2059 -0
  27. package/dist/webui/index.html +2 -2
  28. package/package.json +13 -23
  29. package/dist/cli/commands/interactive-commands/auth/index.d.ts +0 -12
  30. package/dist/cli/commands/interactive-commands/auth/index.d.ts.map +0 -1
  31. package/dist/cli/commands/interactive-commands/auth/index.js +0 -20
  32. package/dist/cli/commands/interactive-commands/command-parser.d.ts +0 -56
  33. package/dist/cli/commands/interactive-commands/command-parser.d.ts.map +0 -1
  34. package/dist/cli/commands/interactive-commands/command-parser.js +0 -173
  35. package/dist/cli/commands/interactive-commands/commands.d.ts +0 -52
  36. package/dist/cli/commands/interactive-commands/commands.d.ts.map +0 -1
  37. package/dist/cli/commands/interactive-commands/commands.js +0 -142
  38. package/dist/cli/commands/interactive-commands/documentation-commands.d.ts +0 -15
  39. package/dist/cli/commands/interactive-commands/documentation-commands.d.ts.map +0 -1
  40. package/dist/cli/commands/interactive-commands/documentation-commands.js +0 -39
  41. package/dist/cli/commands/interactive-commands/export/index.d.ts +0 -13
  42. package/dist/cli/commands/interactive-commands/export/index.d.ts.map +0 -1
  43. package/dist/cli/commands/interactive-commands/export/index.js +0 -21
  44. package/dist/cli/commands/interactive-commands/general-commands.d.ts +0 -22
  45. package/dist/cli/commands/interactive-commands/general-commands.d.ts.map +0 -1
  46. package/dist/cli/commands/interactive-commands/general-commands.js +0 -458
  47. package/dist/cli/commands/interactive-commands/mcp/index.d.ts +0 -13
  48. package/dist/cli/commands/interactive-commands/mcp/index.d.ts.map +0 -1
  49. package/dist/cli/commands/interactive-commands/mcp/index.js +0 -18
  50. package/dist/cli/commands/interactive-commands/model/index.d.ts +0 -13
  51. package/dist/cli/commands/interactive-commands/model/index.d.ts.map +0 -1
  52. package/dist/cli/commands/interactive-commands/model/index.js +0 -19
  53. package/dist/cli/commands/interactive-commands/plugin/index.d.ts +0 -13
  54. package/dist/cli/commands/interactive-commands/plugin/index.d.ts.map +0 -1
  55. package/dist/cli/commands/interactive-commands/plugin/index.js +0 -18
  56. package/dist/cli/commands/interactive-commands/prompt-commands.d.ts +0 -25
  57. package/dist/cli/commands/interactive-commands/prompt-commands.d.ts.map +0 -1
  58. package/dist/cli/commands/interactive-commands/prompt-commands.js +0 -339
  59. package/dist/cli/commands/interactive-commands/session/index.d.ts +0 -16
  60. package/dist/cli/commands/interactive-commands/session/index.d.ts.map +0 -1
  61. package/dist/cli/commands/interactive-commands/session/index.js +0 -15
  62. package/dist/cli/commands/interactive-commands/session/session-commands.d.ts +0 -32
  63. package/dist/cli/commands/interactive-commands/session/session-commands.d.ts.map +0 -1
  64. package/dist/cli/commands/interactive-commands/session/session-commands.js +0 -67
  65. package/dist/cli/commands/interactive-commands/system/index.d.ts +0 -13
  66. package/dist/cli/commands/interactive-commands/system/index.d.ts.map +0 -1
  67. package/dist/cli/commands/interactive-commands/system/index.js +0 -12
  68. package/dist/cli/commands/interactive-commands/system/system-commands.d.ts +0 -18
  69. package/dist/cli/commands/interactive-commands/system/system-commands.d.ts.map +0 -1
  70. package/dist/cli/commands/interactive-commands/system/system-commands.js +0 -197
  71. package/dist/cli/commands/interactive-commands/tool-commands.d.ts +0 -15
  72. package/dist/cli/commands/interactive-commands/tool-commands.d.ts.map +0 -1
  73. package/dist/cli/commands/interactive-commands/tool-commands.js +0 -24
  74. package/dist/cli/commands/interactive-commands/utils/arg-parser.d.ts +0 -57
  75. package/dist/cli/commands/interactive-commands/utils/arg-parser.d.ts.map +0 -1
  76. package/dist/cli/commands/interactive-commands/utils/arg-parser.js +0 -81
  77. package/dist/cli/commands/interactive-commands/utils/command-output.d.ts +0 -40
  78. package/dist/cli/commands/interactive-commands/utils/command-output.d.ts.map +0 -1
  79. package/dist/cli/commands/interactive-commands/utils/command-output.js +0 -56
  80. package/dist/cli/commands/interactive-commands/utils/format-output.d.ts +0 -14
  81. package/dist/cli/commands/interactive-commands/utils/format-output.d.ts.map +0 -1
  82. package/dist/cli/commands/interactive-commands/utils/format-output.js +0 -18
  83. package/dist/cli/ink-cli/InkCLIRefactored.d.ts +0 -52
  84. package/dist/cli/ink-cli/InkCLIRefactored.d.ts.map +0 -1
  85. package/dist/cli/ink-cli/InkCLIRefactored.js +0 -120
  86. package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts +0 -44
  87. package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts.map +0 -1
  88. package/dist/cli/ink-cli/components/ApprovalPrompt.js +0 -269
  89. package/dist/cli/ink-cli/components/BackgroundTasksPanel.d.ts +0 -18
  90. package/dist/cli/ink-cli/components/BackgroundTasksPanel.d.ts.map +0 -1
  91. package/dist/cli/ink-cli/components/BackgroundTasksPanel.js +0 -48
  92. package/dist/cli/ink-cli/components/CustomInput.d.ts +0 -17
  93. package/dist/cli/ink-cli/components/CustomInput.d.ts.map +0 -1
  94. package/dist/cli/ink-cli/components/CustomInput.js +0 -51
  95. package/dist/cli/ink-cli/components/CustomTextInput.d.ts +0 -16
  96. package/dist/cli/ink-cli/components/CustomTextInput.d.ts.map +0 -1
  97. package/dist/cli/ink-cli/components/CustomTextInput.js +0 -36
  98. package/dist/cli/ink-cli/components/EditableMultiLineInput.d.ts +0 -19
  99. package/dist/cli/ink-cli/components/EditableMultiLineInput.d.ts.map +0 -1
  100. package/dist/cli/ink-cli/components/EditableMultiLineInput.js +0 -120
  101. package/dist/cli/ink-cli/components/ElicitationForm.d.ts +0 -22
  102. package/dist/cli/ink-cli/components/ElicitationForm.d.ts.map +0 -1
  103. package/dist/cli/ink-cli/components/ElicitationForm.js +0 -358
  104. package/dist/cli/ink-cli/components/ErrorBoundary.d.ts +0 -20
  105. package/dist/cli/ink-cli/components/ErrorBoundary.d.ts.map +0 -1
  106. package/dist/cli/ink-cli/components/ErrorBoundary.js +0 -29
  107. package/dist/cli/ink-cli/components/Footer.d.ts +0 -22
  108. package/dist/cli/ink-cli/components/Footer.d.ts.map +0 -1
  109. package/dist/cli/ink-cli/components/Footer.js +0 -76
  110. package/dist/cli/ink-cli/components/HistorySearchBar.d.ts +0 -17
  111. package/dist/cli/ink-cli/components/HistorySearchBar.d.ts.map +0 -1
  112. package/dist/cli/ink-cli/components/HistorySearchBar.js +0 -8
  113. package/dist/cli/ink-cli/components/MultiLineInput.d.ts +0 -12
  114. package/dist/cli/ink-cli/components/MultiLineInput.d.ts.map +0 -1
  115. package/dist/cli/ink-cli/components/MultiLineInput.js +0 -27
  116. package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts +0 -26
  117. package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts.map +0 -1
  118. package/dist/cli/ink-cli/components/ResourceAutocomplete.js +0 -376
  119. package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts +0 -28
  120. package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts.map +0 -1
  121. package/dist/cli/ink-cli/components/SlashCommandAutocomplete.js +0 -432
  122. package/dist/cli/ink-cli/components/StatusBar.d.ts +0 -41
  123. package/dist/cli/ink-cli/components/StatusBar.d.ts.map +0 -1
  124. package/dist/cli/ink-cli/components/StatusBar.js +0 -110
  125. package/dist/cli/ink-cli/components/TextBufferInput.d.ts +0 -52
  126. package/dist/cli/ink-cli/components/TextBufferInput.d.ts.map +0 -1
  127. package/dist/cli/ink-cli/components/TextBufferInput.js +0 -490
  128. package/dist/cli/ink-cli/components/TodoPanel.d.ts +0 -26
  129. package/dist/cli/ink-cli/components/TodoPanel.d.ts.map +0 -1
  130. package/dist/cli/ink-cli/components/TodoPanel.js +0 -62
  131. package/dist/cli/ink-cli/components/base/BaseAutocomplete.d.ts +0 -29
  132. package/dist/cli/ink-cli/components/base/BaseAutocomplete.d.ts.map +0 -1
  133. package/dist/cli/ink-cli/components/base/BaseAutocomplete.js +0 -98
  134. package/dist/cli/ink-cli/components/base/BaseSelector.d.ts +0 -36
  135. package/dist/cli/ink-cli/components/base/BaseSelector.d.ts.map +0 -1
  136. package/dist/cli/ink-cli/components/base/BaseSelector.js +0 -118
  137. package/dist/cli/ink-cli/components/base/index.d.ts +0 -6
  138. package/dist/cli/ink-cli/components/base/index.d.ts.map +0 -1
  139. package/dist/cli/ink-cli/components/base/index.js +0 -5
  140. package/dist/cli/ink-cli/components/chat/ChatView.d.ts +0 -19
  141. package/dist/cli/ink-cli/components/chat/ChatView.d.ts.map +0 -1
  142. package/dist/cli/ink-cli/components/chat/ChatView.js +0 -11
  143. package/dist/cli/ink-cli/components/chat/Footer.d.ts +0 -9
  144. package/dist/cli/ink-cli/components/chat/Footer.d.ts.map +0 -1
  145. package/dist/cli/ink-cli/components/chat/Footer.js +0 -8
  146. package/dist/cli/ink-cli/components/chat/Header.d.ts +0 -18
  147. package/dist/cli/ink-cli/components/chat/Header.d.ts.map +0 -1
  148. package/dist/cli/ink-cli/components/chat/Header.js +0 -16
  149. package/dist/cli/ink-cli/components/chat/MessageItem.d.ts +0 -21
  150. package/dist/cli/ink-cli/components/chat/MessageItem.d.ts.map +0 -1
  151. package/dist/cli/ink-cli/components/chat/MessageItem.js +0 -180
  152. package/dist/cli/ink-cli/components/chat/MessageList.d.ts +0 -16
  153. package/dist/cli/ink-cli/components/chat/MessageList.d.ts.map +0 -1
  154. package/dist/cli/ink-cli/components/chat/MessageList.js +0 -20
  155. package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts +0 -16
  156. package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts.map +0 -1
  157. package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.js +0 -27
  158. package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts +0 -18
  159. package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts.map +0 -1
  160. package/dist/cli/ink-cli/components/chat/ToolIcon.js +0 -46
  161. package/dist/cli/ink-cli/components/chat/index.d.ts +0 -10
  162. package/dist/cli/ink-cli/components/chat/index.d.ts.map +0 -1
  163. package/dist/cli/ink-cli/components/chat/index.js +0 -9
  164. package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts +0 -10
  165. package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts.map +0 -1
  166. package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.js +0 -6
  167. package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts +0 -10
  168. package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts.map +0 -1
  169. package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.js +0 -15
  170. package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts +0 -10
  171. package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts.map +0 -1
  172. package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.js +0 -9
  173. package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts +0 -10
  174. package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts.map +0 -1
  175. package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.js +0 -37
  176. package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts +0 -10
  177. package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts.map +0 -1
  178. package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.js +0 -9
  179. package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts +0 -10
  180. package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts.map +0 -1
  181. package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.js +0 -6
  182. package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts +0 -10
  183. package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts.map +0 -1
  184. package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.js +0 -29
  185. package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts +0 -45
  186. package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts.map +0 -1
  187. package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.js +0 -38
  188. package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts +0 -10
  189. package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts.map +0 -1
  190. package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.js +0 -6
  191. package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts +0 -13
  192. package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts.map +0 -1
  193. package/dist/cli/ink-cli/components/chat/styled-boxes/index.js +0 -12
  194. package/dist/cli/ink-cli/components/input/InputArea.d.ts +0 -46
  195. package/dist/cli/ink-cli/components/input/InputArea.d.ts.map +0 -1
  196. package/dist/cli/ink-cli/components/input/InputArea.js +0 -6
  197. package/dist/cli/ink-cli/components/input/index.d.ts +0 -5
  198. package/dist/cli/ink-cli/components/input/index.d.ts.map +0 -1
  199. package/dist/cli/ink-cli/components/input/index.js +0 -4
  200. package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts +0 -27
  201. package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts.map +0 -1
  202. package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.js +0 -180
  203. package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts +0 -29
  204. package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts.map +0 -1
  205. package/dist/cli/ink-cli/components/modes/StaticCLI.js +0 -107
  206. package/dist/cli/ink-cli/components/modes/index.d.ts +0 -10
  207. package/dist/cli/ink-cli/components/modes/index.d.ts.map +0 -1
  208. package/dist/cli/ink-cli/components/modes/index.js +0 -9
  209. package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts +0 -26
  210. package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts.map +0 -1
  211. package/dist/cli/ink-cli/components/overlays/ApiKeyInput.js +0 -92
  212. package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.d.ts +0 -26
  213. package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.d.ts.map +0 -1
  214. package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.js +0 -241
  215. package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts +0 -29
  216. package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts.map +0 -1
  217. package/dist/cli/ink-cli/components/overlays/CustomModelWizard.js +0 -301
  218. package/dist/cli/ink-cli/components/overlays/ExportWizard.d.ts +0 -22
  219. package/dist/cli/ink-cli/components/overlays/ExportWizard.d.ts.map +0 -1
  220. package/dist/cli/ink-cli/components/overlays/ExportWizard.js +0 -308
  221. package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts +0 -23
  222. package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts.map +0 -1
  223. package/dist/cli/ink-cli/components/overlays/LogLevelSelector.js +0 -70
  224. package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.d.ts +0 -20
  225. package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.d.ts.map +0 -1
  226. package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.js +0 -81
  227. package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.d.ts +0 -31
  228. package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.d.ts.map +0 -1
  229. package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.js +0 -297
  230. package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts +0 -22
  231. package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts.map +0 -1
  232. package/dist/cli/ink-cli/components/overlays/McpAddChoice.js +0 -59
  233. package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts +0 -26
  234. package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts.map +0 -1
  235. package/dist/cli/ink-cli/components/overlays/McpAddSelector.js +0 -73
  236. package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts +0 -21
  237. package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts.map +0 -1
  238. package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.js +0 -51
  239. package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts +0 -29
  240. package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts.map +0 -1
  241. package/dist/cli/ink-cli/components/overlays/McpCustomWizard.js +0 -215
  242. package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts +0 -22
  243. package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts.map +0 -1
  244. package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.js +0 -80
  245. package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts +0 -21
  246. package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts.map +0 -1
  247. package/dist/cli/ink-cli/components/overlays/McpSelector.js +0 -52
  248. package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts +0 -28
  249. package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts.map +0 -1
  250. package/dist/cli/ink-cli/components/overlays/McpServerActions.js +0 -93
  251. package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts +0 -29
  252. package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts.map +0 -1
  253. package/dist/cli/ink-cli/components/overlays/McpServerList.js +0 -116
  254. package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts +0 -28
  255. package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts.map +0 -1
  256. package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.js +0 -630
  257. package/dist/cli/ink-cli/components/overlays/PluginActions.d.ts +0 -27
  258. package/dist/cli/ink-cli/components/overlays/PluginActions.d.ts.map +0 -1
  259. package/dist/cli/ink-cli/components/overlays/PluginActions.js +0 -66
  260. package/dist/cli/ink-cli/components/overlays/PluginList.d.ts +0 -21
  261. package/dist/cli/ink-cli/components/overlays/PluginList.d.ts.map +0 -1
  262. package/dist/cli/ink-cli/components/overlays/PluginList.js +0 -70
  263. package/dist/cli/ink-cli/components/overlays/PluginManager.d.ts +0 -21
  264. package/dist/cli/ink-cli/components/overlays/PluginManager.d.ts.map +0 -1
  265. package/dist/cli/ink-cli/components/overlays/PluginManager.js +0 -63
  266. package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts +0 -22
  267. package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts.map +0 -1
  268. package/dist/cli/ink-cli/components/overlays/PromptAddChoice.js +0 -52
  269. package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts +0 -29
  270. package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts.map +0 -1
  271. package/dist/cli/ink-cli/components/overlays/PromptAddWizard.js +0 -166
  272. package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts +0 -27
  273. package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts.map +0 -1
  274. package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.js +0 -119
  275. package/dist/cli/ink-cli/components/overlays/PromptList.d.ts +0 -33
  276. package/dist/cli/ink-cli/components/overlays/PromptList.d.ts.map +0 -1
  277. package/dist/cli/ink-cli/components/overlays/PromptList.js +0 -147
  278. package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts +0 -23
  279. package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts.map +0 -1
  280. package/dist/cli/ink-cli/components/overlays/SearchOverlay.js +0 -189
  281. package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.d.ts +0 -21
  282. package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.d.ts.map +0 -1
  283. package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.js +0 -63
  284. package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts +0 -26
  285. package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts.map +0 -1
  286. package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.js +0 -126
  287. package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts +0 -21
  288. package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts.map +0 -1
  289. package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.js +0 -42
  290. package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts +0 -20
  291. package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts.map +0 -1
  292. package/dist/cli/ink-cli/components/overlays/StreamSelector.js +0 -58
  293. package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts +0 -26
  294. package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts.map +0 -1
  295. package/dist/cli/ink-cli/components/overlays/ToolBrowser.js +0 -642
  296. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts +0 -25
  297. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts.map +0 -1
  298. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.js +0 -609
  299. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts +0 -15
  300. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts.map +0 -1
  301. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.js +0 -14
  302. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts +0 -42
  303. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts.map +0 -1
  304. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.js +0 -547
  305. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts +0 -25
  306. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts.map +0 -1
  307. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.js +0 -29
  308. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts +0 -17
  309. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map +0 -1
  310. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.js +0 -11
  311. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts +0 -20
  312. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts.map +0 -1
  313. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.js +0 -10
  314. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts +0 -30
  315. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts.map +0 -1
  316. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.js +0 -13
  317. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts +0 -8
  318. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts.map +0 -1
  319. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.js +0 -7
  320. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts +0 -85
  321. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts.map +0 -1
  322. package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.js +0 -38
  323. package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts +0 -21
  324. package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts.map +0 -1
  325. package/dist/cli/ink-cli/components/renderers/DiffRenderer.js +0 -65
  326. package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts +0 -30
  327. package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts.map +0 -1
  328. package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.js +0 -66
  329. package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts +0 -19
  330. package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts.map +0 -1
  331. package/dist/cli/ink-cli/components/renderers/FileRenderer.js +0 -26
  332. package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts +0 -21
  333. package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts.map +0 -1
  334. package/dist/cli/ink-cli/components/renderers/GenericRenderer.js +0 -26
  335. package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts +0 -20
  336. package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts.map +0 -1
  337. package/dist/cli/ink-cli/components/renderers/SearchRenderer.js +0 -26
  338. package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts +0 -21
  339. package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts.map +0 -1
  340. package/dist/cli/ink-cli/components/renderers/ShellRenderer.js +0 -25
  341. package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts +0 -61
  342. package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts.map +0 -1
  343. package/dist/cli/ink-cli/components/renderers/diff-shared.js +0 -158
  344. package/dist/cli/ink-cli/components/renderers/index.d.ts +0 -28
  345. package/dist/cli/ink-cli/components/renderers/index.d.ts.map +0 -1
  346. package/dist/cli/ink-cli/components/renderers/index.js +0 -36
  347. package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts +0 -38
  348. package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts.map +0 -1
  349. package/dist/cli/ink-cli/components/shared/MarkdownText.js +0 -389
  350. package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts +0 -44
  351. package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts.map +0 -1
  352. package/dist/cli/ink-cli/components/shared/VirtualizedList.js +0 -300
  353. package/dist/cli/ink-cli/components/shared/text-buffer.d.ts +0 -185
  354. package/dist/cli/ink-cli/components/shared/text-buffer.d.ts.map +0 -1
  355. package/dist/cli/ink-cli/components/shared/text-buffer.js +0 -1338
  356. package/dist/cli/ink-cli/constants/processingPhrases.d.ts +0 -10
  357. package/dist/cli/ink-cli/constants/processingPhrases.d.ts.map +0 -1
  358. package/dist/cli/ink-cli/constants/processingPhrases.js +0 -92
  359. package/dist/cli/ink-cli/constants/tips.d.ts +0 -15
  360. package/dist/cli/ink-cli/constants/tips.d.ts.map +0 -1
  361. package/dist/cli/ink-cli/constants/tips.js +0 -57
  362. package/dist/cli/ink-cli/containers/InputContainer.d.ts +0 -62
  363. package/dist/cli/ink-cli/containers/InputContainer.d.ts.map +0 -1
  364. package/dist/cli/ink-cli/containers/InputContainer.js +0 -639
  365. package/dist/cli/ink-cli/containers/OverlayContainer.d.ts +0 -42
  366. package/dist/cli/ink-cli/containers/OverlayContainer.d.ts.map +0 -1
  367. package/dist/cli/ink-cli/containers/OverlayContainer.js +0 -1824
  368. package/dist/cli/ink-cli/containers/index.d.ts +0 -6
  369. package/dist/cli/ink-cli/containers/index.d.ts.map +0 -1
  370. package/dist/cli/ink-cli/containers/index.js +0 -5
  371. package/dist/cli/ink-cli/contexts/KeypressContext.d.ts +0 -36
  372. package/dist/cli/ink-cli/contexts/KeypressContext.d.ts.map +0 -1
  373. package/dist/cli/ink-cli/contexts/KeypressContext.js +0 -461
  374. package/dist/cli/ink-cli/contexts/MouseContext.d.ts +0 -27
  375. package/dist/cli/ink-cli/contexts/MouseContext.d.ts.map +0 -1
  376. package/dist/cli/ink-cli/contexts/MouseContext.js +0 -102
  377. package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts +0 -33
  378. package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts.map +0 -1
  379. package/dist/cli/ink-cli/contexts/ScrollProvider.js +0 -170
  380. package/dist/cli/ink-cli/contexts/SoundContext.d.ts +0 -23
  381. package/dist/cli/ink-cli/contexts/SoundContext.d.ts.map +0 -1
  382. package/dist/cli/ink-cli/contexts/SoundContext.js +0 -22
  383. package/dist/cli/ink-cli/contexts/index.d.ts +0 -8
  384. package/dist/cli/ink-cli/contexts/index.d.ts.map +0 -1
  385. package/dist/cli/ink-cli/contexts/index.js +0 -7
  386. package/dist/cli/ink-cli/hooks/index.d.ts +0 -12
  387. package/dist/cli/ink-cli/hooks/index.d.ts.map +0 -1
  388. package/dist/cli/ink-cli/hooks/index.js +0 -14
  389. package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts +0 -49
  390. package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts.map +0 -1
  391. package/dist/cli/ink-cli/hooks/useAgentEvents.js +0 -369
  392. package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts +0 -14
  393. package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts.map +0 -1
  394. package/dist/cli/ink-cli/hooks/useBatchedScroll.js +0 -25
  395. package/dist/cli/ink-cli/hooks/useCLIState.d.ts +0 -52
  396. package/dist/cli/ink-cli/hooks/useCLIState.d.ts.map +0 -1
  397. package/dist/cli/ink-cli/hooks/useCLIState.js +0 -223
  398. package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts +0 -24
  399. package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts.map +0 -1
  400. package/dist/cli/ink-cli/hooks/useElapsedTime.js +0 -69
  401. package/dist/cli/ink-cli/hooks/useGitBranch.d.ts +0 -13
  402. package/dist/cli/ink-cli/hooks/useGitBranch.d.ts.map +0 -1
  403. package/dist/cli/ink-cli/hooks/useGitBranch.js +0 -35
  404. package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts +0 -61
  405. package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts.map +0 -1
  406. package/dist/cli/ink-cli/hooks/useHistorySearch.js +0 -210
  407. package/dist/cli/ink-cli/hooks/useInputHistory.d.ts +0 -18
  408. package/dist/cli/ink-cli/hooks/useInputHistory.d.ts.map +0 -1
  409. package/dist/cli/ink-cli/hooks/useInputHistory.js +0 -26
  410. package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts +0 -136
  411. package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts.map +0 -1
  412. package/dist/cli/ink-cli/hooks/useInputOrchestrator.js +0 -715
  413. package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts +0 -21
  414. package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts.map +0 -1
  415. package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.js +0 -80
  416. package/dist/cli/ink-cli/hooks/useKeypress.d.ts +0 -18
  417. package/dist/cli/ink-cli/hooks/useKeypress.d.ts.map +0 -1
  418. package/dist/cli/ink-cli/hooks/useKeypress.js +0 -26
  419. package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts +0 -30
  420. package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts.map +0 -1
  421. package/dist/cli/ink-cli/hooks/usePhraseCycler.js +0 -68
  422. package/dist/cli/ink-cli/hooks/useStreaming.d.ts +0 -19
  423. package/dist/cli/ink-cli/hooks/useStreaming.d.ts.map +0 -1
  424. package/dist/cli/ink-cli/hooks/useStreaming.js +0 -26
  425. package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts +0 -14
  426. package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts.map +0 -1
  427. package/dist/cli/ink-cli/hooks/useTerminalSize.js +0 -31
  428. package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts +0 -46
  429. package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts.map +0 -1
  430. package/dist/cli/ink-cli/hooks/useTokenCounter.js +0 -122
  431. package/dist/cli/ink-cli/services/CommandService.d.ts +0 -58
  432. package/dist/cli/ink-cli/services/CommandService.d.ts.map +0 -1
  433. package/dist/cli/ink-cli/services/CommandService.js +0 -64
  434. package/dist/cli/ink-cli/services/InputService.d.ts +0 -40
  435. package/dist/cli/ink-cli/services/InputService.d.ts.map +0 -1
  436. package/dist/cli/ink-cli/services/InputService.js +0 -87
  437. package/dist/cli/ink-cli/services/MessageService.d.ts +0 -35
  438. package/dist/cli/ink-cli/services/MessageService.d.ts.map +0 -1
  439. package/dist/cli/ink-cli/services/MessageService.js +0 -49
  440. package/dist/cli/ink-cli/services/index.d.ts +0 -8
  441. package/dist/cli/ink-cli/services/index.d.ts.map +0 -1
  442. package/dist/cli/ink-cli/services/index.js +0 -7
  443. package/dist/cli/ink-cli/services/processStream.d.ts +0 -75
  444. package/dist/cli/ink-cli/services/processStream.d.ts.map +0 -1
  445. package/dist/cli/ink-cli/services/processStream.js +0 -942
  446. package/dist/cli/ink-cli/state/actions.d.ts +0 -124
  447. package/dist/cli/ink-cli/state/actions.d.ts.map +0 -1
  448. package/dist/cli/ink-cli/state/actions.js +0 -8
  449. package/dist/cli/ink-cli/state/index.d.ts +0 -10
  450. package/dist/cli/ink-cli/state/index.d.ts.map +0 -1
  451. package/dist/cli/ink-cli/state/index.js +0 -8
  452. package/dist/cli/ink-cli/state/initialState.d.ts +0 -12
  453. package/dist/cli/ink-cli/state/initialState.d.ts.map +0 -1
  454. package/dist/cli/ink-cli/state/initialState.js +0 -57
  455. package/dist/cli/ink-cli/state/reducer.d.ts +0 -15
  456. package/dist/cli/ink-cli/state/reducer.d.ts.map +0 -1
  457. package/dist/cli/ink-cli/state/reducer.js +0 -341
  458. package/dist/cli/ink-cli/state/streaming-state.d.ts +0 -27
  459. package/dist/cli/ink-cli/state/streaming-state.d.ts.map +0 -1
  460. package/dist/cli/ink-cli/state/streaming-state.js +0 -39
  461. package/dist/cli/ink-cli/state/types.d.ts +0 -366
  462. package/dist/cli/ink-cli/state/types.d.ts.map +0 -1
  463. package/dist/cli/ink-cli/state/types.js +0 -5
  464. package/dist/cli/ink-cli/utils/bracketedPaste.d.ts +0 -22
  465. package/dist/cli/ink-cli/utils/bracketedPaste.d.ts.map +0 -1
  466. package/dist/cli/ink-cli/utils/bracketedPaste.js +0 -27
  467. package/dist/cli/ink-cli/utils/clipboardUtils.d.ts +0 -49
  468. package/dist/cli/ink-cli/utils/clipboardUtils.d.ts.map +0 -1
  469. package/dist/cli/ink-cli/utils/clipboardUtils.js +0 -356
  470. package/dist/cli/ink-cli/utils/commandOverlays.d.ts +0 -33
  471. package/dist/cli/ink-cli/utils/commandOverlays.d.ts.map +0 -1
  472. package/dist/cli/ink-cli/utils/commandOverlays.js +0 -84
  473. package/dist/cli/ink-cli/utils/debugLog.d.ts +0 -38
  474. package/dist/cli/ink-cli/utils/debugLog.d.ts.map +0 -1
  475. package/dist/cli/ink-cli/utils/debugLog.js +0 -66
  476. package/dist/cli/ink-cli/utils/idGenerator.d.ts +0 -10
  477. package/dist/cli/ink-cli/utils/idGenerator.d.ts.map +0 -1
  478. package/dist/cli/ink-cli/utils/idGenerator.js +0 -12
  479. package/dist/cli/ink-cli/utils/index.d.ts +0 -9
  480. package/dist/cli/ink-cli/utils/index.d.ts.map +0 -1
  481. package/dist/cli/ink-cli/utils/index.js +0 -13
  482. package/dist/cli/ink-cli/utils/input.d.ts +0 -25
  483. package/dist/cli/ink-cli/utils/input.d.ts.map +0 -1
  484. package/dist/cli/ink-cli/utils/input.js +0 -56
  485. package/dist/cli/ink-cli/utils/inputParsing.d.ts +0 -31
  486. package/dist/cli/ink-cli/utils/inputParsing.d.ts.map +0 -1
  487. package/dist/cli/ink-cli/utils/inputParsing.js +0 -70
  488. package/dist/cli/ink-cli/utils/llm-provider-display.d.ts +0 -3
  489. package/dist/cli/ink-cli/utils/llm-provider-display.d.ts.map +0 -1
  490. package/dist/cli/ink-cli/utils/llm-provider-display.js +0 -22
  491. package/dist/cli/ink-cli/utils/messageFormatting.d.ts +0 -140
  492. package/dist/cli/ink-cli/utils/messageFormatting.d.ts.map +0 -1
  493. package/dist/cli/ink-cli/utils/messageFormatting.js +0 -591
  494. package/dist/cli/ink-cli/utils/mouse.d.ts +0 -61
  495. package/dist/cli/ink-cli/utils/mouse.d.ts.map +0 -1
  496. package/dist/cli/ink-cli/utils/mouse.js +0 -209
  497. package/dist/cli/ink-cli/utils/soundNotification.d.ts +0 -71
  498. package/dist/cli/ink-cli/utils/soundNotification.d.ts.map +0 -1
  499. package/dist/cli/ink-cli/utils/soundNotification.js +0 -203
  500. package/dist/cli/ink-cli/utils/streamSplitter.d.ts +0 -44
  501. package/dist/cli/ink-cli/utils/streamSplitter.d.ts.map +0 -1
  502. package/dist/cli/ink-cli/utils/streamSplitter.js +0 -154
  503. package/dist/cli/ink-cli/utils/textUtils.d.ts +0 -63
  504. package/dist/cli/ink-cli/utils/textUtils.d.ts.map +0 -1
  505. package/dist/cli/ink-cli/utils/textUtils.js +0 -248
  506. package/dist/cli/ink-cli/utils/toolUtils.d.ts +0 -20
  507. package/dist/cli/ink-cli/utils/toolUtils.d.ts.map +0 -1
  508. package/dist/cli/ink-cli/utils/toolUtils.js +0 -25
  509. package/dist/webui/assets/index-C9JXwpvo.css +0 -1
  510. package/dist/webui/assets/index-DwtueA8l.js +0 -2059
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScrollProvider.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/contexts/ScrollProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAGtD,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IACxC,cAAc,EAAE,MAAM,WAAW,CAAC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,MAAM,OAAO,CAAC;CAC3B;AA8CD,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC;AAgCD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkGxD,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,EAAE,UAAU,OAAO,SAmClF,CAAC"}
@@ -1,170 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from 'react';
3
- import { getBoundingBox } from 'ink';
4
- import { useMouse } from './MouseContext.js';
5
- const ScrollContext = createContext(null);
6
- /**
7
- * Find scrollable components under the mouse cursor
8
- */
9
- const findScrollableCandidates = (mouseEvent, scrollables) => {
10
- const candidates = [];
11
- for (const entry of scrollables.values()) {
12
- if (!entry.ref.current || !entry.hasFocus()) {
13
- continue;
14
- }
15
- const boundingBox = getBoundingBox(entry.ref.current);
16
- if (!boundingBox)
17
- continue;
18
- const { x, y, width, height } = boundingBox;
19
- // Check if mouse is inside this component
20
- // Add 1 to width to include scrollbar column
21
- const isInside = mouseEvent.col >= x &&
22
- mouseEvent.col < x + width + 1 &&
23
- mouseEvent.row >= y &&
24
- mouseEvent.row < y + height;
25
- if (isInside) {
26
- candidates.push({ ...entry, area: width * height });
27
- }
28
- }
29
- // Sort by smallest area first (innermost component)
30
- candidates.sort((a, b) => a.area - b.area);
31
- return candidates;
32
- };
33
- /**
34
- * Hook to detect text selection attempts (click + drag)
35
- * Returns a handler to process mouse events for drag detection
36
- */
37
- function useDragDetection(onSelectionAttempt) {
38
- const isLeftButtonDownRef = useRef(false);
39
- const selectionHintShownRef = useRef(false);
40
- const handleDragDetection = useCallback((event) => {
41
- if (event.name === 'left-press') {
42
- isLeftButtonDownRef.current = true;
43
- selectionHintShownRef.current = false;
44
- }
45
- else if (event.name === 'left-release') {
46
- isLeftButtonDownRef.current = false;
47
- }
48
- else if (event.name === 'move' && isLeftButtonDownRef.current) {
49
- // User is dragging (trying to select text)
50
- // Only show hint once per drag operation
51
- if (!selectionHintShownRef.current && onSelectionAttempt) {
52
- selectionHintShownRef.current = true;
53
- onSelectionAttempt();
54
- }
55
- }
56
- }, [onSelectionAttempt]);
57
- return handleDragDetection;
58
- }
59
- export const ScrollProvider = ({ children, onSelectionAttempt }) => {
60
- const [scrollables, setScrollables] = useState(new Map());
61
- // Drag detection for selection hint
62
- const handleDragDetection = useDragDetection(onSelectionAttempt);
63
- const register = useCallback((entry) => {
64
- setScrollables((prev) => new Map(prev).set(entry.id, entry));
65
- }, []);
66
- const unregister = useCallback((id) => {
67
- setScrollables((prev) => {
68
- const next = new Map(prev);
69
- next.delete(id);
70
- return next;
71
- });
72
- }, []);
73
- const scrollablesRef = useRef(scrollables);
74
- useEffect(() => {
75
- scrollablesRef.current = scrollables;
76
- }, [scrollables]);
77
- // Batch scroll events to prevent jitter
78
- const pendingScrollsRef = useRef(new Map());
79
- const flushScheduledRef = useRef(false);
80
- const scheduleFlush = useCallback(() => {
81
- if (!flushScheduledRef.current) {
82
- flushScheduledRef.current = true;
83
- setTimeout(() => {
84
- flushScheduledRef.current = false;
85
- for (const [id, delta] of pendingScrollsRef.current.entries()) {
86
- const entry = scrollablesRef.current.get(id);
87
- if (entry) {
88
- entry.scrollBy(delta);
89
- }
90
- }
91
- pendingScrollsRef.current.clear();
92
- }, 0);
93
- }
94
- }, []);
95
- const handleScroll = useCallback((direction, mouseEvent) => {
96
- const delta = direction === 'up' ? -1 : 1;
97
- const candidates = findScrollableCandidates(mouseEvent, scrollablesRef.current);
98
- for (const candidate of candidates) {
99
- const { scrollTop, scrollHeight, innerHeight } = candidate.getScrollState();
100
- const pendingDelta = pendingScrollsRef.current.get(candidate.id) || 0;
101
- const effectiveScrollTop = scrollTop + pendingDelta;
102
- // Epsilon for floating point comparison
103
- const canScrollUp = effectiveScrollTop > 0.001;
104
- const canScrollDown = effectiveScrollTop < scrollHeight - innerHeight - 0.001;
105
- if (direction === 'up' && canScrollUp) {
106
- pendingScrollsRef.current.set(candidate.id, pendingDelta + delta);
107
- scheduleFlush();
108
- return true;
109
- }
110
- if (direction === 'down' && canScrollDown) {
111
- pendingScrollsRef.current.set(candidate.id, pendingDelta + delta);
112
- scheduleFlush();
113
- return true;
114
- }
115
- }
116
- return false;
117
- }, [scheduleFlush]);
118
- // Subscribe to mouse events
119
- useMouse(useCallback((event) => {
120
- // Handle scroll events
121
- if (event.name === 'scroll-up') {
122
- return handleScroll('up', event);
123
- }
124
- else if (event.name === 'scroll-down') {
125
- return handleScroll('down', event);
126
- }
127
- // Detect selection attempts (click + drag)
128
- handleDragDetection(event);
129
- return false;
130
- }, [handleScroll, handleDragDetection]), { isActive: true });
131
- const contextValue = useMemo(() => ({ register, unregister }), [register, unregister]);
132
- return _jsx(ScrollContext.Provider, { value: contextValue, children: children });
133
- };
134
- let nextId = 0;
135
- /**
136
- * Hook to register a component as scrollable
137
- */
138
- export const useScrollable = (entry, isActive) => {
139
- const context = useContext(ScrollContext);
140
- if (!context) {
141
- throw new Error('useScrollable must be used within a ScrollProvider');
142
- }
143
- const [id] = useState(() => `scrollable-${nextId++}`);
144
- // Store entry in ref to avoid re-registration on every render
145
- // when callers don't memoize the entry object
146
- const entryRef = useRef(entry);
147
- entryRef.current = entry;
148
- useEffect(() => {
149
- if (isActive) {
150
- // Build entry object, conditionally including scrollTo to satisfy exactOptionalPropertyTypes
151
- const registrationEntry = {
152
- id,
153
- ref: entryRef.current.ref,
154
- getScrollState: () => entryRef.current.getScrollState(),
155
- scrollBy: (delta) => entryRef.current.scrollBy(delta),
156
- hasFocus: () => entryRef.current.hasFocus(),
157
- };
158
- if (entryRef.current.scrollTo) {
159
- registrationEntry.scrollTo = (scrollTop, duration) => {
160
- entryRef.current.scrollTo?.(scrollTop, duration);
161
- };
162
- }
163
- context.register(registrationEntry);
164
- return () => {
165
- context.unregister(id);
166
- };
167
- }
168
- return;
169
- }, [context, id, isActive]);
170
- };
@@ -1,23 +0,0 @@
1
- /**
2
- * SoundContext - Provides sound notification service to components
3
- *
4
- * Initialized at CLI startup based on user preferences.
5
- * Components can use useSoundService() to access the service.
6
- */
7
- import { type ReactNode } from 'react';
8
- import type { SoundNotificationService } from '../utils/soundNotification.js';
9
- interface SoundProviderProps {
10
- soundService: SoundNotificationService | null;
11
- children: ReactNode;
12
- }
13
- /**
14
- * Provider component for sound notification service
15
- */
16
- export declare function SoundProvider({ soundService, children }: SoundProviderProps): import("react/jsx-runtime").JSX.Element;
17
- /**
18
- * Hook to access the sound notification service
19
- * Returns null if sounds are not configured
20
- */
21
- export declare function useSoundService(): SoundNotificationService | null;
22
- export {};
23
- //# sourceMappingURL=SoundContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SoundContext.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/contexts/SoundContext.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAc,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAI9E,UAAU,kBAAkB;IACxB,YAAY,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAC9C,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAE3E;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,wBAAwB,GAAG,IAAI,CAEjE"}
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * SoundContext - Provides sound notification service to components
4
- *
5
- * Initialized at CLI startup based on user preferences.
6
- * Components can use useSoundService() to access the service.
7
- */
8
- import { createContext, useContext } from 'react';
9
- const SoundContext = createContext(null);
10
- /**
11
- * Provider component for sound notification service
12
- */
13
- export function SoundProvider({ soundService, children }) {
14
- return _jsx(SoundContext.Provider, { value: soundService, children: children });
15
- }
16
- /**
17
- * Hook to access the sound notification service
18
- * Returns null if sounds are not configured
19
- */
20
- export function useSoundService() {
21
- return useContext(SoundContext);
22
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * Context providers for ink-cli
3
- */
4
- export { KeypressProvider, useKeypressContext, type Key, type KeypressHandler, type KeypressProviderProps, } from './KeypressContext.js';
5
- export { MouseProvider, useMouseContext, useMouse, type MouseEvent, type MouseEventName, type MouseHandler, type MouseProviderProps, } from './MouseContext.js';
6
- export { ScrollProvider, useScrollable, type ScrollState, type ScrollableEntry, } from './ScrollProvider.js';
7
- export { SoundProvider, useSoundService } from './SoundContext.js';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/contexts/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACH,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,GAAG,EACR,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,aAAa,EACb,eAAe,EACf,QAAQ,EACR,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,kBAAkB,GAC1B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,cAAc,EACd,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,GACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Context providers for ink-cli
3
- */
4
- export { KeypressProvider, useKeypressContext, } from './KeypressContext.js';
5
- export { MouseProvider, useMouseContext, useMouse, } from './MouseContext.js';
6
- export { ScrollProvider, useScrollable, } from './ScrollProvider.js';
7
- export { SoundProvider, useSoundService } from './SoundContext.js';
@@ -1,12 +0,0 @@
1
- /**
2
- * Custom hooks module exports
3
- */
4
- export { useAgentEvents } from './useAgentEvents.js';
5
- export { useKeyboardShortcuts } from './useKeyboardShortcuts.js';
6
- export { useInputOrchestrator, createApprovalInputHandler, createSelectorInputHandler, createAutocompleteInputHandler, createMainInputHandler, type InputHandler, type InputHandlers, type UseInputOrchestratorProps, type ApprovalHandlerProps, type SelectorHandlerProps, type AutocompleteHandlerProps, type MainInputHandlerProps, } from './useInputOrchestrator.js';
7
- export { useKeypress } from './useKeypress.js';
8
- export { useTerminalSize, type TerminalSize } from './useTerminalSize.js';
9
- export { useGitBranch } from './useGitBranch.js';
10
- export { useCLIState, type UseCLIStateProps, type CLIStateReturn, type UIState, type InputState, type SessionState, } from './useCLIState.js';
11
- export type { Key } from './useInputOrchestrator.js';
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACH,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,sBAAsB,EACtB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACH,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,GACpB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Custom hooks module exports
3
- */
4
- export { useAgentEvents } from './useAgentEvents.js';
5
- export { useKeyboardShortcuts } from './useKeyboardShortcuts.js';
6
- export { useInputOrchestrator, createApprovalInputHandler, createSelectorInputHandler, createAutocompleteInputHandler, createMainInputHandler, } from './useInputOrchestrator.js';
7
- export { useKeypress } from './useKeypress.js';
8
- export { useTerminalSize } from './useTerminalSize.js';
9
- export { useGitBranch } from './useGitBranch.js';
10
- export { useCLIState, } from './useCLIState.js';
11
- // useMouseScroll removed - mouse events now handled by MouseProvider/ScrollProvider
12
- // useInputHistory removed - history navigation now handled by TextBufferInput
13
- // useOverlayManager removed - overlay management now done via dispatch directly
14
- // useSessionSync removed - sessionId now managed in state directly
@@ -1,49 +0,0 @@
1
- /**
2
- * Hook for managing agent event bus subscriptions for NON-STREAMING events.
3
- *
4
- * Streaming events (llm:thinking, llm:chunk, llm:response, llm:tool-call, llm:tool-result,
5
- * llm:error, run:complete, message:dequeued) are handled via agent.stream() iterator in processStream.
6
- *
7
- * This hook handles:
8
- * - approval:request - Tool/command confirmation requests
9
- * - llm:switched - Model change notifications
10
- * - session:reset - Conversation reset
11
- * - session:created - New session creation (e.g., from /clear)
12
- * - context:compacting - Context compaction starting (from /compact or auto)
13
- * - context:compacted - Context compaction finished
14
- * - message:queued - New message added to queue
15
- * - message:removed - Message removed from queue (e.g., up arrow edit)
16
- * - run:invoke - External trigger (scheduler, A2A, API) starting a run
17
- * - run:complete (for external triggers) - External run finished
18
- *
19
- * Uses AbortController pattern for cleanup.
20
- */
21
- import type React from 'react';
22
- import { type DextoAgent, type QueuedMessage } from '@dexto/core';
23
- import type { Message, UIState, SessionState, InputState } from '../state/types.js';
24
- import type { ApprovalRequest } from '../components/ApprovalPrompt.js';
25
- import type { TextBuffer } from '../components/shared/text-buffer.js';
26
- interface UseAgentEventsProps {
27
- agent: DextoAgent;
28
- setMessages: React.Dispatch<React.SetStateAction<Message[]>>;
29
- setPendingMessages: React.Dispatch<React.SetStateAction<Message[]>>;
30
- setUi: React.Dispatch<React.SetStateAction<UIState>>;
31
- setSession: React.Dispatch<React.SetStateAction<SessionState>>;
32
- setInput: React.Dispatch<React.SetStateAction<InputState>>;
33
- setApproval: React.Dispatch<React.SetStateAction<ApprovalRequest | null>>;
34
- setApprovalQueue: React.Dispatch<React.SetStateAction<ApprovalRequest[]>>;
35
- setQueuedMessages: React.Dispatch<React.SetStateAction<QueuedMessage[]>>;
36
- /** Current session ID for filtering events */
37
- currentSessionId: string | null;
38
- /** Text buffer for input (source of truth) - needed to clear on session reset */
39
- buffer: TextBuffer;
40
- }
41
- /**
42
- * Subscribes to agent event bus for non-streaming events only.
43
- * Streaming events are handled via agent.stream() iterator.
44
- *
45
- * Also handles external triggers (run:invoke) from scheduler, A2A, etc.
46
- */
47
- export declare function useAgentEvents({ agent, setMessages, setPendingMessages, setUi, setSession, setInput, setApproval, setApprovalQueue, setQueuedMessages, currentSessionId, buffer, }: UseAgentEventsProps): void;
48
- export {};
49
- //# sourceMappingURL=useAgentEvents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAgentEvents.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/hooks/useAgentEvents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEH,KAAK,UAAU,EACf,KAAK,aAAa,EAErB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEtE,UAAU,mBAAmB;IACzB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAC7D,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACpE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACrD,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/D,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3D,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC;IAC1E,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;IAC1E,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;IACzE,8CAA8C;IAC9C,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,iFAAiF;IACjF,MAAM,EAAE,UAAU,CAAC;CACtB;AAYD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,KAAK,EACL,UAAU,EACV,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,GACT,EAAE,mBAAmB,GAAG,IAAI,CAgd5B"}