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,356 +0,0 @@
1
- /**
2
- * Clipboard utilities for reading images from system clipboard
3
- *
4
- * Supports macOS, Windows/WSL, and Linux (Wayland + X11).
5
- *
6
- */
7
- import { spawn } from 'node:child_process';
8
- import { platform, release } from 'node:os';
9
- import * as fs from 'node:fs/promises';
10
- import * as path from 'node:path';
11
- import * as os from 'node:os';
12
- /**
13
- * Execute a command and return stdout as a buffer
14
- * @param command - The command to execute
15
- * @param args - Command arguments
16
- * @param timeoutMs - Timeout in milliseconds (default: 10000)
17
- */
18
- async function execCommand(command, args, timeoutMs = 10000) {
19
- return new Promise((resolve) => {
20
- let timedOut = false;
21
- const proc = spawn(command, args);
22
- const stdoutChunks = [];
23
- let stderr = '';
24
- const timer = setTimeout(() => {
25
- timedOut = true;
26
- proc.kill();
27
- resolve({
28
- stdout: Buffer.concat(stdoutChunks),
29
- stderr: stderr + '\nCommand timed out',
30
- exitCode: 1,
31
- });
32
- }, timeoutMs);
33
- proc.stdout.on('data', (chunk) => {
34
- stdoutChunks.push(chunk);
35
- });
36
- proc.stderr.on('data', (chunk) => {
37
- stderr += chunk.toString();
38
- });
39
- proc.on('close', (exitCode) => {
40
- if (timedOut)
41
- return;
42
- clearTimeout(timer);
43
- resolve({
44
- stdout: Buffer.concat(stdoutChunks),
45
- stderr,
46
- exitCode: exitCode ?? 1,
47
- });
48
- });
49
- proc.on('error', () => {
50
- if (timedOut)
51
- return;
52
- clearTimeout(timer);
53
- resolve({
54
- stdout: Buffer.concat(stdoutChunks),
55
- stderr,
56
- exitCode: 1,
57
- });
58
- });
59
- });
60
- }
61
- /**
62
- * Execute an osascript command and return stdout as string
63
- */
64
- async function execOsascript(script) {
65
- const result = await execCommand('osascript', ['-e', script]);
66
- return {
67
- stdout: result.stdout.toString().trim(),
68
- success: result.exitCode === 0,
69
- };
70
- }
71
- /**
72
- * Read image from clipboard on macOS
73
- * Uses osascript to save clipboard image to temp file, reads it, then cleans up
74
- */
75
- async function readClipboardImageMacOS() {
76
- const tmpFile = path.join(os.tmpdir(), `dexto-clipboard-${Date.now()}-${process.pid}.png`);
77
- try {
78
- // AppleScript to save clipboard image as PNG to temp file
79
- const script = `
80
- set imageData to the clipboard as "PNGf"
81
- set fileRef to open for access POSIX file "${tmpFile}" with write permission
82
- set eof fileRef to 0
83
- write imageData to fileRef
84
- close access fileRef
85
- `;
86
- const result = await execOsascript(script);
87
- if (!result.success) {
88
- return undefined;
89
- }
90
- // Read the temp file
91
- const buffer = await fs.readFile(tmpFile);
92
- if (buffer.length === 0) {
93
- return undefined;
94
- }
95
- return {
96
- data: buffer.toString('base64'),
97
- mimeType: 'image/png',
98
- };
99
- }
100
- catch {
101
- return undefined;
102
- }
103
- finally {
104
- // Clean up temp file
105
- try {
106
- await fs.unlink(tmpFile);
107
- }
108
- catch {
109
- // Ignore cleanup errors
110
- }
111
- }
112
- }
113
- /**
114
- * Read image from clipboard on Windows (including WSL)
115
- * Uses PowerShell to get clipboard image and convert to base64
116
- */
117
- async function readClipboardImageWindows() {
118
- try {
119
- // PowerShell script to get clipboard image as base64 PNG
120
- const script = `
121
- Add-Type -AssemblyName System.Windows.Forms
122
- $img = [System.Windows.Forms.Clipboard]::GetImage()
123
- if ($img) {
124
- $ms = New-Object System.IO.MemoryStream
125
- $img.Save($ms, [System.Drawing.Imaging.ImageFormat]::Png)
126
- [System.Convert]::ToBase64String($ms.ToArray())
127
- }
128
- `.trim();
129
- // Use powershell.exe for both native Windows and WSL (works on both)
130
- const powershellCmd = 'powershell.exe';
131
- const result = await execCommand(powershellCmd, ['-command', script]);
132
- const base64 = result.stdout.toString().trim();
133
- if (!base64 || result.exitCode !== 0) {
134
- return undefined;
135
- }
136
- // Validate it's actually base64 data
137
- const buffer = Buffer.from(base64, 'base64');
138
- if (buffer.length === 0) {
139
- return undefined;
140
- }
141
- return {
142
- data: base64,
143
- mimeType: 'image/png',
144
- };
145
- }
146
- catch {
147
- return undefined;
148
- }
149
- }
150
- /**
151
- * Check if current environment is WSL (Windows Subsystem for Linux)
152
- * Checks for both 'wsl' (WSL2) and 'microsoft' (WSL1) in kernel release
153
- */
154
- function isWSL() {
155
- if (platform() !== 'linux')
156
- return false;
157
- const rel = release().toLowerCase();
158
- return rel.includes('wsl') || rel.includes('microsoft');
159
- }
160
- /**
161
- * Read image from clipboard on Linux
162
- * Tries Wayland (wl-paste) first, then X11 (xclip)
163
- */
164
- async function readClipboardImageLinux() {
165
- // Try Wayland first (wl-paste)
166
- try {
167
- const result = await execCommand('wl-paste', ['-t', 'image/png']);
168
- if (result.exitCode === 0 && result.stdout.length > 0) {
169
- return {
170
- data: result.stdout.toString('base64'),
171
- mimeType: 'image/png',
172
- };
173
- }
174
- }
175
- catch {
176
- // wl-paste not available or failed, try xclip
177
- }
178
- // Try X11 (xclip)
179
- try {
180
- const result = await execCommand('xclip', [
181
- '-selection',
182
- 'clipboard',
183
- '-t',
184
- 'image/png',
185
- '-o',
186
- ]);
187
- if (result.exitCode === 0 && result.stdout.length > 0) {
188
- return {
189
- data: result.stdout.toString('base64'),
190
- mimeType: 'image/png',
191
- };
192
- }
193
- }
194
- catch {
195
- // xclip not available or failed
196
- }
197
- return undefined;
198
- }
199
- /**
200
- * Read image from system clipboard
201
- *
202
- * @returns ClipboardImageContent if clipboard contains an image, undefined otherwise
203
- *
204
- * @example
205
- * ```typescript
206
- * const image = await readClipboardImage();
207
- * if (image) {
208
- * console.log(`Got ${image.mimeType} image, ${image.data.length} bytes base64`);
209
- * }
210
- * ```
211
- */
212
- export async function readClipboardImage() {
213
- const os = platform();
214
- if (os === 'darwin') {
215
- return readClipboardImageMacOS();
216
- }
217
- if (os === 'win32' || isWSL()) {
218
- return readClipboardImageWindows();
219
- }
220
- if (os === 'linux') {
221
- return readClipboardImageLinux();
222
- }
223
- return undefined;
224
- }
225
- /**
226
- * Write text to system clipboard
227
- *
228
- * @param text - The text to copy to clipboard
229
- * @returns true if successful, false otherwise
230
- *
231
- * @example
232
- * ```typescript
233
- * const success = await writeToClipboard('Hello, World!');
234
- * if (success) {
235
- * console.log('Copied to clipboard');
236
- * }
237
- * ```
238
- */
239
- export async function writeToClipboard(text) {
240
- const os = platform();
241
- try {
242
- if (os === 'darwin') {
243
- // macOS: use pbcopy
244
- const proc = spawn('pbcopy');
245
- proc.stdin.write(text);
246
- proc.stdin.end();
247
- return new Promise((resolve) => {
248
- proc.on('close', (code) => resolve(code === 0));
249
- proc.on('error', () => resolve(false));
250
- });
251
- }
252
- if (os === 'win32' || isWSL()) {
253
- // Windows/WSL: use clip.exe (simpler than PowerShell)
254
- const proc = spawn('clip.exe');
255
- proc.stdin.write(text);
256
- proc.stdin.end();
257
- return new Promise((resolve) => {
258
- proc.on('close', (code) => resolve(code === 0));
259
- proc.on('error', () => resolve(false));
260
- });
261
- }
262
- if (os === 'linux') {
263
- // Try Wayland first (wl-copy), fall back to X11 (xclip)
264
- const tryClipboardTool = (cmd, args = []) => {
265
- return new Promise((resolve) => {
266
- const proc = spawn(cmd, args);
267
- let errorOccurred = false;
268
- proc.on('error', () => {
269
- errorOccurred = true;
270
- resolve(false);
271
- });
272
- proc.stdin.write(text);
273
- proc.stdin.end();
274
- proc.on('close', (code) => {
275
- if (!errorOccurred) {
276
- resolve(code === 0);
277
- }
278
- });
279
- });
280
- };
281
- // Try wl-copy first, then xclip
282
- const wlResult = await tryClipboardTool('wl-copy');
283
- if (wlResult)
284
- return true;
285
- return tryClipboardTool('xclip', ['-selection', 'clipboard']);
286
- }
287
- return false;
288
- }
289
- catch {
290
- return false;
291
- }
292
- }
293
- /**
294
- * Check if clipboard contains an image (without reading it)
295
- * This is a lighter-weight check that doesn't require reading the full image data.
296
- *
297
- * @returns true if clipboard likely contains an image
298
- */
299
- export async function clipboardHasImage() {
300
- const os = platform();
301
- if (os === 'darwin') {
302
- try {
303
- const result = await execOsascript('clipboard info');
304
- // Check for image types in clipboard info
305
- const imageRegex = /«class PNGf»|TIFF picture|JPEG picture|GIF picture|«class JPEG»|«class TIFF»/;
306
- return imageRegex.test(result.stdout);
307
- }
308
- catch {
309
- return false;
310
- }
311
- }
312
- if (os === 'win32' || isWSL()) {
313
- try {
314
- // Quick check if clipboard has an image
315
- const script = `
316
- Add-Type -AssemblyName System.Windows.Forms
317
- [System.Windows.Forms.Clipboard]::ContainsImage()
318
- `.trim();
319
- const powershellCmd = 'powershell.exe';
320
- const result = await execCommand(powershellCmd, ['-command', script]);
321
- return result.stdout.toString().trim().toLowerCase() === 'true';
322
- }
323
- catch {
324
- return false;
325
- }
326
- }
327
- if (os === 'linux') {
328
- // Try Wayland first
329
- try {
330
- const result = await execCommand('wl-paste', ['--list-types']);
331
- if (result.exitCode === 0 && result.stdout.toString().includes('image/')) {
332
- return true;
333
- }
334
- }
335
- catch {
336
- // Try X11
337
- }
338
- // Try X11
339
- try {
340
- const result = await execCommand('xclip', [
341
- '-selection',
342
- 'clipboard',
343
- '-t',
344
- 'TARGETS',
345
- '-o',
346
- ]);
347
- if (result.exitCode === 0 && result.stdout.toString().includes('image/')) {
348
- return true;
349
- }
350
- }
351
- catch {
352
- // xclip not available
353
- }
354
- }
355
- return false;
356
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * Command Overlay Registry
3
- *
4
- * Central source of truth for command-to-overlay mappings.
5
- * When adding a new interactive command, add it here - no other files need changes.
6
- */
7
- import type { OverlayType } from '../state/types.js';
8
- /**
9
- * Get the overlay for a command submission (with parsed args).
10
- * Used by InputContainer.handleSubmit
11
- *
12
- * @param command - The base command name (e.g., 'mcp', 'search')
13
- * @param args - Arguments passed to the command
14
- * @returns Overlay type to show, or null to execute command handler
15
- */
16
- export declare function getCommandOverlay(command: string, args: string[]): OverlayType | null;
17
- /**
18
- * Get the overlay for a command selected from autocomplete.
19
- * Used by OverlayContainer.handleSystemCommandSelect
20
- *
21
- * When selecting from autocomplete, there are never args -
22
- * we just need to know if this command has an overlay.
23
- *
24
- * @param command - The command name selected from autocomplete
25
- * @returns Overlay type to show, or null to execute command
26
- */
27
- export declare function getCommandOverlayForSelect(command: string): OverlayType | null;
28
- /**
29
- * Check if a command has any overlay behavior.
30
- * Useful for determining if a command should be handled specially.
31
- */
32
- export declare function isInteractiveCommand(command: string): boolean;
33
- //# sourceMappingURL=commandOverlays.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commandOverlays.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/commandOverlays.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAiCrD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,WAAW,GAAG,IAAI,CAYrF;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAU9E;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE7D"}
@@ -1,84 +0,0 @@
1
- /**
2
- * Command Overlay Registry
3
- *
4
- * Central source of truth for command-to-overlay mappings.
5
- * When adding a new interactive command, add it here - no other files need changes.
6
- */
7
- /**
8
- * Commands that ALWAYS show an overlay when invoked.
9
- * These commands have no handler logic - the overlay IS the functionality.
10
- */
11
- const ALWAYS_OVERLAY = {
12
- search: 'search',
13
- find: 'search', // alias
14
- model: 'model-selector',
15
- resume: 'session-selector',
16
- switch: 'session-selector',
17
- stream: 'stream-selector',
18
- tools: 'tool-browser',
19
- mcp: 'mcp-server-list',
20
- rename: 'session-rename',
21
- context: 'context-stats',
22
- ctx: 'context-stats', // alias
23
- tokens: 'context-stats', // alias
24
- export: 'export-wizard',
25
- plugin: 'plugin-manager',
26
- };
27
- /**
28
- * Commands that show an overlay ONLY when invoked without arguments.
29
- * With arguments, they execute their handler instead.
30
- */
31
- const NO_ARGS_OVERLAY = {
32
- session: 'session-subcommand-selector',
33
- log: 'log-level-selector',
34
- prompts: 'prompt-list',
35
- };
36
- /**
37
- * Get the overlay for a command submission (with parsed args).
38
- * Used by InputContainer.handleSubmit
39
- *
40
- * @param command - The base command name (e.g., 'mcp', 'search')
41
- * @param args - Arguments passed to the command
42
- * @returns Overlay type to show, or null to execute command handler
43
- */
44
- export function getCommandOverlay(command, args) {
45
- // Commands that always show overlay
46
- const alwaysOverlay = ALWAYS_OVERLAY[command];
47
- if (alwaysOverlay)
48
- return alwaysOverlay;
49
- // Commands that show overlay only when no args
50
- if (args.length === 0) {
51
- const noArgsOverlay = NO_ARGS_OVERLAY[command];
52
- if (noArgsOverlay)
53
- return noArgsOverlay;
54
- }
55
- return null;
56
- }
57
- /**
58
- * Get the overlay for a command selected from autocomplete.
59
- * Used by OverlayContainer.handleSystemCommandSelect
60
- *
61
- * When selecting from autocomplete, there are never args -
62
- * we just need to know if this command has an overlay.
63
- *
64
- * @param command - The command name selected from autocomplete
65
- * @returns Overlay type to show, or null to execute command
66
- */
67
- export function getCommandOverlayForSelect(command) {
68
- // Check "always overlay" commands first
69
- const alwaysOverlay = ALWAYS_OVERLAY[command];
70
- if (alwaysOverlay)
71
- return alwaysOverlay;
72
- // Check "no args overlay" commands (selecting = no args)
73
- const noArgsOverlay = NO_ARGS_OVERLAY[command];
74
- if (noArgsOverlay)
75
- return noArgsOverlay;
76
- return null;
77
- }
78
- /**
79
- * Check if a command has any overlay behavior.
80
- * Useful for determining if a command should be handled specially.
81
- */
82
- export function isInteractiveCommand(command) {
83
- return command in ALWAYS_OVERLAY || command in NO_ARGS_OVERLAY;
84
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Debug Logging Utility
3
- *
4
- * Cross-platform debug logging that writes to temp directory.
5
- * Controlled via environment variables for easy enable/disable.
6
- *
7
- * Usage:
8
- * import { createDebugLogger } from './debugLog.js';
9
- * const debug = createDebugLogger('stream');
10
- * debug.log('EVENT', { foo: 'bar' });
11
- *
12
- * Enable via environment:
13
- * DEXTO_DEBUG_STREAM=true dexto
14
- * DEXTO_DEBUG_ALL=true dexto (enables all debug loggers)
15
- */
16
- export interface DebugLogger {
17
- /** Log a message with optional data */
18
- log: (msg: string, data?: Record<string, unknown>) => void;
19
- /** Check if debug logging is enabled */
20
- isEnabled: () => boolean;
21
- /** Get the log file path */
22
- getLogPath: () => string;
23
- /** Clear the log file and write a header */
24
- reset: (header?: string) => void;
25
- }
26
- /**
27
- * Creates a debug logger for a specific component.
28
- *
29
- * @param name Component name (used in env var and filename)
30
- * @returns Debug logger instance
31
- *
32
- * @example
33
- * const debug = createDebugLogger('stream');
34
- * // Enabled via DEXTO_DEBUG_STREAM=true or DEXTO_DEBUG_ALL=true
35
- * // Writes to: {tmpdir}/dexto-debug-stream.log
36
- */
37
- export declare function createDebugLogger(name: string): DebugLogger;
38
- //# sourceMappingURL=debugLog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debugLog.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/debugLog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,MAAM,WAAW,WAAW;IACxB,uCAAuC;IACvC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAC3D,wCAAwC;IACxC,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,4BAA4B;IAC5B,UAAU,EAAE,MAAM,MAAM,CAAC;IACzB,4CAA4C;IAC5C,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAsC3D"}
@@ -1,66 +0,0 @@
1
- /**
2
- * Debug Logging Utility
3
- *
4
- * Cross-platform debug logging that writes to temp directory.
5
- * Controlled via environment variables for easy enable/disable.
6
- *
7
- * Usage:
8
- * import { createDebugLogger } from './debugLog.js';
9
- * const debug = createDebugLogger('stream');
10
- * debug.log('EVENT', { foo: 'bar' });
11
- *
12
- * Enable via environment:
13
- * DEXTO_DEBUG_STREAM=true dexto
14
- * DEXTO_DEBUG_ALL=true dexto (enables all debug loggers)
15
- */
16
- import { appendFileSync, writeFileSync } from 'fs';
17
- import { tmpdir } from 'os';
18
- import { join } from 'path';
19
- /**
20
- * Creates a debug logger for a specific component.
21
- *
22
- * @param name Component name (used in env var and filename)
23
- * @returns Debug logger instance
24
- *
25
- * @example
26
- * const debug = createDebugLogger('stream');
27
- * // Enabled via DEXTO_DEBUG_STREAM=true or DEXTO_DEBUG_ALL=true
28
- * // Writes to: {tmpdir}/dexto-debug-stream.log
29
- */
30
- export function createDebugLogger(name) {
31
- const envVar = `DEXTO_DEBUG_${name.toUpperCase()}`;
32
- const logPath = join(tmpdir(), `dexto-debug-${name.toLowerCase()}.log`);
33
- const isEnabled = () => {
34
- return process.env[envVar] === 'true' || process.env.DEXTO_DEBUG_ALL === 'true';
35
- };
36
- const log = (msg, data) => {
37
- if (!isEnabled())
38
- return;
39
- try {
40
- const timestamp = new Date().toISOString().split('T')[1];
41
- const dataStr = data ? ` ${JSON.stringify(data)}` : '';
42
- const line = `[${timestamp}] ${msg}${dataStr}\n`;
43
- appendFileSync(logPath, line);
44
- }
45
- catch {
46
- // Silently ignore serialization and write errors in debug logging
47
- }
48
- };
49
- const reset = (header) => {
50
- if (!isEnabled())
51
- return;
52
- const defaultHeader = `=== DEXTO DEBUG [${name.toUpperCase()}] ${new Date().toISOString()} ===`;
53
- try {
54
- writeFileSync(logPath, `${header ?? defaultHeader}\n`);
55
- }
56
- catch {
57
- // Silently ignore write errors in debug logging
58
- }
59
- };
60
- return {
61
- log,
62
- isEnabled,
63
- getLogPath: () => logPath,
64
- reset,
65
- };
66
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Utility for generating unique IDs
3
- */
4
- /**
5
- * Generate a unique message ID with a type prefix
6
- * @param type - The message type (user, system, error, tool, assistant, command)
7
- * @returns A unique ID string
8
- */
9
- export declare function generateMessageId(type: string): string;
10
- //# sourceMappingURL=idGenerator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"idGenerator.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/idGenerator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Utility for generating unique IDs
3
- */
4
- import { randomUUID } from 'crypto';
5
- /**
6
- * Generate a unique message ID with a type prefix
7
- * @param type - The message type (user, system, error, tool, assistant, command)
8
- * @returns A unique ID string
9
- */
10
- export function generateMessageId(type) {
11
- return `${type}-${randomUUID()}`;
12
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Utils module exports
3
- */
4
- export { type AutocompleteType, detectAutocompleteType, extractSlashQuery, extractResourceQuery, findActiveAtIndex, } from './inputParsing.js';
5
- export { getCommandOverlay, getCommandOverlayForSelect, isInteractiveCommand, } from './commandOverlays.js';
6
- export { createUserMessage, createSystemMessage, createErrorMessage, createToolMessage, createStreamingMessage, convertHistoryToUIMessages, getStartupInfo, } from './messageFormatting.js';
7
- export { generateMessageId } from './idGenerator.js';
8
- export { playNotificationSound, SoundNotificationService, initializeSoundService, getSoundService, type SoundType, type SoundConfig, } from './soundNotification.js';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACH,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,GACpB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACH,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,GACvB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,cAAc,GACjB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EACH,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,KAAK,SAAS,EACd,KAAK,WAAW,GACnB,MAAM,wBAAwB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Utils module exports
3
- */
4
- // Input parsing
5
- export { detectAutocompleteType, extractSlashQuery, extractResourceQuery, findActiveAtIndex, } from './inputParsing.js';
6
- // Command overlays (central registry)
7
- export { getCommandOverlay, getCommandOverlayForSelect, isInteractiveCommand, } from './commandOverlays.js';
8
- // Message formatting
9
- export { createUserMessage, createSystemMessage, createErrorMessage, createToolMessage, createStreamingMessage, convertHistoryToUIMessages, getStartupInfo, } from './messageFormatting.js';
10
- // ID generation
11
- export { generateMessageId } from './idGenerator.js';
12
- // Sound notifications
13
- export { playNotificationSound, SoundNotificationService, initializeSoundService, getSoundService, } from './soundNotification.js';
@@ -1,25 +0,0 @@
1
- /**
2
- * Input Utilities
3
- * Constants and helpers for parsing terminal input sequences.
4
- */
5
- export declare const ESC = "\u001B";
6
- export declare const SGR_EVENT_PREFIX = "\u001B[<";
7
- export declare const X11_EVENT_PREFIX = "\u001B[M";
8
- export declare const FOCUS_IN = "\u001B[I";
9
- export declare const FOCUS_OUT = "\u001B[O";
10
- export declare const SGR_MOUSE_REGEX: RegExp;
11
- export declare const X11_MOUSE_REGEX: RegExp;
12
- /**
13
- * Check if buffer could be a SGR mouse sequence (or prefix thereof)
14
- */
15
- export declare function couldBeSGRMouseSequence(buffer: string): boolean;
16
- /**
17
- * Check if buffer could be any mouse sequence (or prefix thereof)
18
- */
19
- export declare function couldBeMouseSequence(buffer: string): boolean;
20
- /**
21
- * Get the length of a complete mouse sequence at the start of buffer.
22
- * Returns 0 if no complete sequence found.
23
- */
24
- export declare function getMouseSequenceLength(buffer: string): number;
25
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/input.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,GAAG,WAAW,CAAC;AAC5B,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAC3C,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAG3C,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,SAAS,aAAa,CAAC;AAKpC,eAAO,MAAM,eAAe,QAA2D,CAAC;AACxF,eAAO,MAAM,eAAe,QAA8C,CAAC;AAE3E;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAO/D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAS5D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAQ7D"}