@marizmelo/llm-cli 0.0.2 → 0.0.3

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 (910) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +27 -11
  3. package/bundle/gemini.js +317072 -0
  4. package/package.json +91 -89
  5. package/dist/.last_build +0 -0
  6. package/dist/index.d.ts +0 -7
  7. package/dist/index.js +0 -29
  8. package/dist/index.js.map +0 -1
  9. package/dist/package.json +0 -107
  10. package/dist/src/commands/extensions/disable.d.ts +0 -14
  11. package/dist/src/commands/extensions/disable.js +0 -42
  12. package/dist/src/commands/extensions/disable.js.map +0 -1
  13. package/dist/src/commands/extensions/enable.d.ts +0 -14
  14. package/dist/src/commands/extensions/enable.js +0 -48
  15. package/dist/src/commands/extensions/enable.js.map +0 -1
  16. package/dist/src/commands/extensions/install.d.ts +0 -13
  17. package/dist/src/commands/extensions/install.js +0 -48
  18. package/dist/src/commands/extensions/install.js.map +0 -1
  19. package/dist/src/commands/extensions/install.test.d.ts +0 -6
  20. package/dist/src/commands/extensions/install.test.js +0 -19
  21. package/dist/src/commands/extensions/install.test.js.map +0 -1
  22. package/dist/src/commands/extensions/list.d.ts +0 -8
  23. package/dist/src/commands/extensions/list.js +0 -32
  24. package/dist/src/commands/extensions/list.js.map +0 -1
  25. package/dist/src/commands/extensions/uninstall.d.ts +0 -12
  26. package/dist/src/commands/extensions/uninstall.js +0 -38
  27. package/dist/src/commands/extensions/uninstall.js.map +0 -1
  28. package/dist/src/commands/extensions/uninstall.test.d.ts +0 -6
  29. package/dist/src/commands/extensions/uninstall.test.js +0 -15
  30. package/dist/src/commands/extensions/uninstall.test.js.map +0 -1
  31. package/dist/src/commands/extensions/update.d.ts +0 -13
  32. package/dist/src/commands/extensions/update.js +0 -60
  33. package/dist/src/commands/extensions/update.js.map +0 -1
  34. package/dist/src/commands/extensions.d.ts +0 -7
  35. package/dist/src/commands/extensions.js +0 -29
  36. package/dist/src/commands/extensions.js.map +0 -1
  37. package/dist/src/commands/mcp/add.d.ts +0 -7
  38. package/dist/src/commands/mcp/add.js +0 -166
  39. package/dist/src/commands/mcp/add.js.map +0 -1
  40. package/dist/src/commands/mcp/list.d.ts +0 -8
  41. package/dist/src/commands/mcp/list.js +0 -110
  42. package/dist/src/commands/mcp/list.js.map +0 -1
  43. package/dist/src/commands/mcp/remove.d.ts +0 -7
  44. package/dist/src/commands/mcp/remove.js +0 -44
  45. package/dist/src/commands/mcp/remove.js.map +0 -1
  46. package/dist/src/commands/mcp.d.ts +0 -7
  47. package/dist/src/commands/mcp.js +0 -23
  48. package/dist/src/commands/mcp.js.map +0 -1
  49. package/dist/src/config/auth.d.ts +0 -6
  50. package/dist/src/config/auth.js +0 -51
  51. package/dist/src/config/auth.js.map +0 -1
  52. package/dist/src/config/auth.test.d.ts +0 -6
  53. package/dist/src/config/auth.test.js +0 -59
  54. package/dist/src/config/auth.test.js.map +0 -1
  55. package/dist/src/config/config.d.ts +0 -44
  56. package/dist/src/config/config.js +0 -464
  57. package/dist/src/config/config.js.map +0 -1
  58. package/dist/src/config/extension.d.ts +0 -62
  59. package/dist/src/config/extension.js +0 -388
  60. package/dist/src/config/extension.js.map +0 -1
  61. package/dist/src/config/extensions/variableSchema.d.ts +0 -28
  62. package/dist/src/config/extensions/variableSchema.js +0 -18
  63. package/dist/src/config/extensions/variableSchema.js.map +0 -1
  64. package/dist/src/config/extensions/variables.d.ts +0 -17
  65. package/dist/src/config/extensions/variables.js +0 -40
  66. package/dist/src/config/extensions/variables.js.map +0 -1
  67. package/dist/src/config/extensions/variables.test.d.ts +0 -6
  68. package/dist/src/config/extensions/variables.test.js +0 -17
  69. package/dist/src/config/extensions/variables.test.js.map +0 -1
  70. package/dist/src/config/keyBindings.d.ts +0 -66
  71. package/dist/src/config/keyBindings.js +0 -141
  72. package/dist/src/config/keyBindings.js.map +0 -1
  73. package/dist/src/config/keyBindings.test.d.ts +0 -6
  74. package/dist/src/config/keyBindings.test.js +0 -51
  75. package/dist/src/config/keyBindings.test.js.map +0 -1
  76. package/dist/src/config/modelDiscovery.d.ts +0 -65
  77. package/dist/src/config/modelDiscovery.js +0 -290
  78. package/dist/src/config/modelDiscovery.js.map +0 -1
  79. package/dist/src/config/providerManager.d.ts +0 -64
  80. package/dist/src/config/providerManager.js +0 -277
  81. package/dist/src/config/providerManager.js.map +0 -1
  82. package/dist/src/config/sandboxConfig.d.ts +0 -13
  83. package/dist/src/config/sandboxConfig.js +0 -73
  84. package/dist/src/config/sandboxConfig.js.map +0 -1
  85. package/dist/src/config/settings.d.ts +0 -62
  86. package/dist/src/config/settings.js +0 -583
  87. package/dist/src/config/settings.js.map +0 -1
  88. package/dist/src/config/settingsSchema.d.ts +0 -795
  89. package/dist/src/config/settingsSchema.js +0 -768
  90. package/dist/src/config/settingsSchema.js.map +0 -1
  91. package/dist/src/config/settingsSchema.test.d.ts +0 -6
  92. package/dist/src/config/settingsSchema.test.js +0 -193
  93. package/dist/src/config/settingsSchema.test.js.map +0 -1
  94. package/dist/src/config/trustedFolders.d.ts +0 -47
  95. package/dist/src/config/trustedFolders.js +0 -130
  96. package/dist/src/config/trustedFolders.js.map +0 -1
  97. package/dist/src/config/trustedFolders.test.d.ts +0 -6
  98. package/dist/src/config/trustedFolders.test.js +0 -198
  99. package/dist/src/config/trustedFolders.test.js.map +0 -1
  100. package/dist/src/gemini.d.ts +0 -11
  101. package/dist/src/gemini.js +0 -331
  102. package/dist/src/gemini.js.map +0 -1
  103. package/dist/src/gemini.test.d.ts +0 -6
  104. package/dist/src/gemini.test.js +0 -247
  105. package/dist/src/gemini.test.js.map +0 -1
  106. package/dist/src/generated/git-commit.d.ts +0 -7
  107. package/dist/src/generated/git-commit.js +0 -10
  108. package/dist/src/generated/git-commit.js.map +0 -1
  109. package/dist/src/nonInteractiveCli.d.ts +0 -7
  110. package/dist/src/nonInteractiveCli.js +0 -92
  111. package/dist/src/nonInteractiveCli.js.map +0 -1
  112. package/dist/src/patches/is-in-ci.d.ts +0 -7
  113. package/dist/src/patches/is-in-ci.js +0 -15
  114. package/dist/src/patches/is-in-ci.js.map +0 -1
  115. package/dist/src/services/BuiltinCommandLoader.d.ts +0 -24
  116. package/dist/src/services/BuiltinCommandLoader.js +0 -84
  117. package/dist/src/services/BuiltinCommandLoader.js.map +0 -1
  118. package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
  119. package/dist/src/services/BuiltinCommandLoader.test.js +0 -108
  120. package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
  121. package/dist/src/services/CommandService.d.ts +0 -55
  122. package/dist/src/services/CommandService.js +0 -90
  123. package/dist/src/services/CommandService.js.map +0 -1
  124. package/dist/src/services/CommandService.test.d.ts +0 -6
  125. package/dist/src/services/CommandService.test.js +0 -233
  126. package/dist/src/services/CommandService.test.js.map +0 -1
  127. package/dist/src/services/FileCommandLoader.d.ts +0 -51
  128. package/dist/src/services/FileCommandLoader.js +0 -227
  129. package/dist/src/services/FileCommandLoader.js.map +0 -1
  130. package/dist/src/services/McpPromptLoader.d.ts +0 -35
  131. package/dist/src/services/McpPromptLoader.js +0 -218
  132. package/dist/src/services/McpPromptLoader.js.map +0 -1
  133. package/dist/src/services/McpPromptLoader.test.d.ts +0 -6
  134. package/dist/src/services/McpPromptLoader.test.js +0 -114
  135. package/dist/src/services/McpPromptLoader.test.js.map +0 -1
  136. package/dist/src/services/prompt-processors/argumentProcessor.d.ts +0 -16
  137. package/dist/src/services/prompt-processors/argumentProcessor.js +0 -21
  138. package/dist/src/services/prompt-processors/argumentProcessor.js.map +0 -1
  139. package/dist/src/services/prompt-processors/atFileProcessor.d.ts +0 -12
  140. package/dist/src/services/prompt-processors/atFileProcessor.js +0 -62
  141. package/dist/src/services/prompt-processors/atFileProcessor.js.map +0 -1
  142. package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +0 -6
  143. package/dist/src/services/prompt-processors/atFileProcessor.test.js +0 -174
  144. package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +0 -1
  145. package/dist/src/services/prompt-processors/injectionParser.d.ts +0 -29
  146. package/dist/src/services/prompt-processors/injectionParser.js +0 -60
  147. package/dist/src/services/prompt-processors/injectionParser.js.map +0 -1
  148. package/dist/src/services/prompt-processors/injectionParser.test.d.ts +0 -6
  149. package/dist/src/services/prompt-processors/injectionParser.test.js +0 -189
  150. package/dist/src/services/prompt-processors/injectionParser.test.js.map +0 -1
  151. package/dist/src/services/prompt-processors/shellProcessor.d.ts +0 -27
  152. package/dist/src/services/prompt-processors/shellProcessor.js +0 -121
  153. package/dist/src/services/prompt-processors/shellProcessor.js.map +0 -1
  154. package/dist/src/services/prompt-processors/types.d.ts +0 -45
  155. package/dist/src/services/prompt-processors/types.js +0 -20
  156. package/dist/src/services/prompt-processors/types.js.map +0 -1
  157. package/dist/src/services/types.d.ts +0 -22
  158. package/dist/src/services/types.js +0 -7
  159. package/dist/src/services/types.js.map +0 -1
  160. package/dist/src/test-utils/customMatchers.d.ts +0 -14
  161. package/dist/src/test-utils/customMatchers.js +0 -40
  162. package/dist/src/test-utils/customMatchers.js.map +0 -1
  163. package/dist/src/test-utils/mockCommandContext.d.ts +0 -18
  164. package/dist/src/test-utils/mockCommandContext.js +0 -86
  165. package/dist/src/test-utils/mockCommandContext.js.map +0 -1
  166. package/dist/src/test-utils/mockCommandContext.test.d.ts +0 -6
  167. package/dist/src/test-utils/mockCommandContext.test.js +0 -51
  168. package/dist/src/test-utils/mockCommandContext.test.js.map +0 -1
  169. package/dist/src/test-utils/render.d.ts +0 -8
  170. package/dist/src/test-utils/render.js +0 -10
  171. package/dist/src/test-utils/render.js.map +0 -1
  172. package/dist/src/ui/App.d.ts +0 -15
  173. package/dist/src/ui/App.js +0 -708
  174. package/dist/src/ui/App.js.map +0 -1
  175. package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -16
  176. package/dist/src/ui/IdeIntegrationNudge.js +0 -47
  177. package/dist/src/ui/IdeIntegrationNudge.js.map +0 -1
  178. package/dist/src/ui/colors.d.ts +0 -7
  179. package/dist/src/ui/colors.js +0 -54
  180. package/dist/src/ui/colors.js.map +0 -1
  181. package/dist/src/ui/commands/aboutCommand.d.ts +0 -7
  182. package/dist/src/ui/commands/aboutCommand.js +0 -43
  183. package/dist/src/ui/commands/aboutCommand.js.map +0 -1
  184. package/dist/src/ui/commands/authCommand.d.ts +0 -7
  185. package/dist/src/ui/commands/authCommand.js +0 -16
  186. package/dist/src/ui/commands/authCommand.js.map +0 -1
  187. package/dist/src/ui/commands/bugCommand.d.ts +0 -7
  188. package/dist/src/ui/commands/bugCommand.js +0 -71
  189. package/dist/src/ui/commands/bugCommand.js.map +0 -1
  190. package/dist/src/ui/commands/chatCommand.d.ts +0 -7
  191. package/dist/src/ui/commands/chatCommand.js +0 -235
  192. package/dist/src/ui/commands/chatCommand.js.map +0 -1
  193. package/dist/src/ui/commands/clearCommand.d.ts +0 -7
  194. package/dist/src/ui/commands/clearCommand.js +0 -27
  195. package/dist/src/ui/commands/clearCommand.js.map +0 -1
  196. package/dist/src/ui/commands/compressCommand.d.ts +0 -7
  197. package/dist/src/ui/commands/compressCommand.js +0 -66
  198. package/dist/src/ui/commands/compressCommand.js.map +0 -1
  199. package/dist/src/ui/commands/copyCommand.d.ts +0 -7
  200. package/dist/src/ui/commands/copyCommand.js +0 -59
  201. package/dist/src/ui/commands/copyCommand.js.map +0 -1
  202. package/dist/src/ui/commands/corgiCommand.d.ts +0 -7
  203. package/dist/src/ui/commands/corgiCommand.js +0 -15
  204. package/dist/src/ui/commands/corgiCommand.js.map +0 -1
  205. package/dist/src/ui/commands/directoryCommand.d.ts +0 -8
  206. package/dist/src/ui/commands/directoryCommand.js +0 -135
  207. package/dist/src/ui/commands/directoryCommand.js.map +0 -1
  208. package/dist/src/ui/commands/docsCommand.d.ts +0 -7
  209. package/dist/src/ui/commands/docsCommand.js +0 -31
  210. package/dist/src/ui/commands/docsCommand.js.map +0 -1
  211. package/dist/src/ui/commands/editorCommand.d.ts +0 -7
  212. package/dist/src/ui/commands/editorCommand.js +0 -16
  213. package/dist/src/ui/commands/editorCommand.js.map +0 -1
  214. package/dist/src/ui/commands/extensionsCommand.d.ts +0 -7
  215. package/dist/src/ui/commands/extensionsCommand.js +0 -31
  216. package/dist/src/ui/commands/extensionsCommand.js.map +0 -1
  217. package/dist/src/ui/commands/helpCommand.d.ts +0 -7
  218. package/dist/src/ui/commands/helpCommand.js +0 -21
  219. package/dist/src/ui/commands/helpCommand.js.map +0 -1
  220. package/dist/src/ui/commands/ideCommand.d.ts +0 -8
  221. package/dist/src/ui/commands/ideCommand.js +0 -216
  222. package/dist/src/ui/commands/ideCommand.js.map +0 -1
  223. package/dist/src/ui/commands/initCommand.d.ts +0 -7
  224. package/dist/src/ui/commands/initCommand.js +0 -76
  225. package/dist/src/ui/commands/initCommand.js.map +0 -1
  226. package/dist/src/ui/commands/mcpCommand.d.ts +0 -7
  227. package/dist/src/ui/commands/mcpCommand.js +0 -424
  228. package/dist/src/ui/commands/mcpCommand.js.map +0 -1
  229. package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
  230. package/dist/src/ui/commands/memoryCommand.js +0 -92
  231. package/dist/src/ui/commands/memoryCommand.js.map +0 -1
  232. package/dist/src/ui/commands/privacyCommand.d.ts +0 -7
  233. package/dist/src/ui/commands/privacyCommand.js +0 -16
  234. package/dist/src/ui/commands/privacyCommand.js.map +0 -1
  235. package/dist/src/ui/commands/providerCommand.d.ts +0 -7
  236. package/dist/src/ui/commands/providerCommand.js +0 -599
  237. package/dist/src/ui/commands/providerCommand.js.map +0 -1
  238. package/dist/src/ui/commands/quitCommand.d.ts +0 -7
  239. package/dist/src/ui/commands/quitCommand.js +0 -34
  240. package/dist/src/ui/commands/quitCommand.js.map +0 -1
  241. package/dist/src/ui/commands/restoreCommand.d.ts +0 -8
  242. package/dist/src/ui/commands/restoreCommand.js +0 -124
  243. package/dist/src/ui/commands/restoreCommand.js.map +0 -1
  244. package/dist/src/ui/commands/settingsCommand.d.ts +0 -7
  245. package/dist/src/ui/commands/settingsCommand.js +0 -16
  246. package/dist/src/ui/commands/settingsCommand.js.map +0 -1
  247. package/dist/src/ui/commands/setupGithubCommand.d.ts +0 -9
  248. package/dist/src/ui/commands/setupGithubCommand.js +0 -154
  249. package/dist/src/ui/commands/setupGithubCommand.js.map +0 -1
  250. package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
  251. package/dist/src/ui/commands/setupGithubCommand.test.js +0 -167
  252. package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
  253. package/dist/src/ui/commands/statsCommand.d.ts +0 -7
  254. package/dist/src/ui/commands/statsCommand.js +0 -54
  255. package/dist/src/ui/commands/statsCommand.js.map +0 -1
  256. package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
  257. package/dist/src/ui/commands/terminalSetupCommand.js +0 -41
  258. package/dist/src/ui/commands/terminalSetupCommand.js.map +0 -1
  259. package/dist/src/ui/commands/themeCommand.d.ts +0 -7
  260. package/dist/src/ui/commands/themeCommand.js +0 -16
  261. package/dist/src/ui/commands/themeCommand.js.map +0 -1
  262. package/dist/src/ui/commands/toolsCommand.d.ts +0 -7
  263. package/dist/src/ui/commands/toolsCommand.js +0 -56
  264. package/dist/src/ui/commands/toolsCommand.js.map +0 -1
  265. package/dist/src/ui/commands/types.d.ts +0 -148
  266. package/dist/src/ui/commands/types.js +0 -13
  267. package/dist/src/ui/commands/types.js.map +0 -1
  268. package/dist/src/ui/commands/vimCommand.d.ts +0 -7
  269. package/dist/src/ui/commands/vimCommand.js +0 -23
  270. package/dist/src/ui/commands/vimCommand.js.map +0 -1
  271. package/dist/src/ui/components/AboutBox.d.ts +0 -17
  272. package/dist/src/ui/components/AboutBox.js +0 -6
  273. package/dist/src/ui/components/AboutBox.js.map +0 -1
  274. package/dist/src/ui/components/AsciiArt.d.ts +0 -8
  275. package/dist/src/ui/components/AsciiArt.js +0 -33
  276. package/dist/src/ui/components/AsciiArt.js.map +0 -1
  277. package/dist/src/ui/components/AuthDialog.d.ts +0 -16
  278. package/dist/src/ui/components/AuthDialog.js +0 -104
  279. package/dist/src/ui/components/AuthDialog.js.map +0 -1
  280. package/dist/src/ui/components/AuthDialog.test.d.ts +0 -6
  281. package/dist/src/ui/components/AuthDialog.test.js +0 -276
  282. package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
  283. package/dist/src/ui/components/AuthInProgress.d.ts +0 -11
  284. package/dist/src/ui/components/AuthInProgress.js +0 -23
  285. package/dist/src/ui/components/AuthInProgress.js.map +0 -1
  286. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
  287. package/dist/src/ui/components/AutoAcceptIndicator.js +0 -26
  288. package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
  289. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
  290. package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
  291. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
  292. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -20
  293. package/dist/src/ui/components/ContextSummaryDisplay.js +0 -66
  294. package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
  295. package/dist/src/ui/components/ContextUsageDisplay.d.ts +0 -9
  296. package/dist/src/ui/components/ContextUsageDisplay.js +0 -14
  297. package/dist/src/ui/components/ContextUsageDisplay.js.map +0 -1
  298. package/dist/src/ui/components/DebugProfiler.d.ts +0 -6
  299. package/dist/src/ui/components/DebugProfiler.js +0 -27
  300. package/dist/src/ui/components/DebugProfiler.js.map +0 -1
  301. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
  302. package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
  303. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
  304. package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -16
  305. package/dist/src/ui/components/EditorSettingsDialog.js +0 -71
  306. package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
  307. package/dist/src/ui/components/FolderTrustDialog.d.ts +0 -17
  308. package/dist/src/ui/components/FolderTrustDialog.js +0 -47
  309. package/dist/src/ui/components/FolderTrustDialog.js.map +0 -1
  310. package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
  311. package/dist/src/ui/components/FolderTrustDialog.test.js +0 -78
  312. package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
  313. package/dist/src/ui/components/Footer.d.ts +0 -23
  314. package/dist/src/ui/components/Footer.js +0 -25
  315. package/dist/src/ui/components/Footer.js.map +0 -1
  316. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -17
  317. package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -18
  318. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
  319. package/dist/src/ui/components/Header.d.ts +0 -13
  320. package/dist/src/ui/components/Header.js +0 -28
  321. package/dist/src/ui/components/Header.js.map +0 -1
  322. package/dist/src/ui/components/Header.test.d.ts +0 -6
  323. package/dist/src/ui/components/Header.test.js +0 -37
  324. package/dist/src/ui/components/Header.test.js.map +0 -1
  325. package/dist/src/ui/components/Help.d.ts +0 -12
  326. package/dist/src/ui/components/Help.js +0 -10
  327. package/dist/src/ui/components/Help.js.map +0 -1
  328. package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -20
  329. package/dist/src/ui/components/HistoryItemDisplay.js +0 -18
  330. package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
  331. package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
  332. package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -93
  333. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
  334. package/dist/src/ui/components/InputPrompt.d.ts +0 -28
  335. package/dist/src/ui/components/InputPrompt.js +0 -562
  336. package/dist/src/ui/components/InputPrompt.js.map +0 -1
  337. package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
  338. package/dist/src/ui/components/LoadingIndicator.js +0 -25
  339. package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
  340. package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
  341. package/dist/src/ui/components/LoadingIndicator.test.js +0 -190
  342. package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
  343. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
  344. package/dist/src/ui/components/MemoryUsageDisplay.js +0 -22
  345. package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
  346. package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
  347. package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
  348. package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
  349. package/dist/src/ui/components/PrepareLabel.d.ts +0 -15
  350. package/dist/src/ui/components/PrepareLabel.js +0 -16
  351. package/dist/src/ui/components/PrepareLabel.js.map +0 -1
  352. package/dist/src/ui/components/ProQuotaDialog.d.ts +0 -13
  353. package/dist/src/ui/components/ProQuotaDialog.js +0 -21
  354. package/dist/src/ui/components/ProQuotaDialog.js.map +0 -1
  355. package/dist/src/ui/components/ProQuotaDialog.test.d.ts +0 -6
  356. package/dist/src/ui/components/ProQuotaDialog.test.js +0 -56
  357. package/dist/src/ui/components/ProQuotaDialog.test.js.map +0 -1
  358. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
  359. package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
  360. package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
  361. package/dist/src/ui/components/SettingsDialog.d.ts +0 -15
  362. package/dist/src/ui/components/SettingsDialog.js +0 -550
  363. package/dist/src/ui/components/SettingsDialog.js.map +0 -1
  364. package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
  365. package/dist/src/ui/components/SettingsDialog.test.js +0 -646
  366. package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
  367. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +0 -15
  368. package/dist/src/ui/components/ShellConfirmationDialog.js +0 -46
  369. package/dist/src/ui/components/ShellConfirmationDialog.js.map +0 -1
  370. package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +0 -6
  371. package/dist/src/ui/components/ShellConfirmationDialog.test.js +0 -40
  372. package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +0 -1
  373. package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
  374. package/dist/src/ui/components/ShellModeIndicator.js +0 -5
  375. package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
  376. package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
  377. package/dist/src/ui/components/ShowMoreLines.js +0 -24
  378. package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
  379. package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
  380. package/dist/src/ui/components/StatsDisplay.js +0 -43
  381. package/dist/src/ui/components/StatsDisplay.js.map +0 -1
  382. package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -22
  383. package/dist/src/ui/components/SuggestionsDisplay.js +0 -40
  384. package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
  385. package/dist/src/ui/components/ThemeDialog.d.ts +0 -20
  386. package/dist/src/ui/components/ThemeDialog.js +0 -138
  387. package/dist/src/ui/components/ThemeDialog.js.map +0 -1
  388. package/dist/src/ui/components/Tips.d.ts +0 -12
  389. package/dist/src/ui/components/Tips.js +0 -9
  390. package/dist/src/ui/components/Tips.js.map +0 -1
  391. package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
  392. package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
  393. package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
  394. package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
  395. package/dist/src/ui/components/UpdateNotification.js +0 -10
  396. package/dist/src/ui/components/UpdateNotification.js.map +0 -1
  397. package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +0 -11
  398. package/dist/src/ui/components/WorkspaceMigrationDialog.js +0 -42
  399. package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +0 -1
  400. package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
  401. package/dist/src/ui/components/messages/CompressionMessage.js +0 -17
  402. package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
  403. package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -16
  404. package/dist/src/ui/components/messages/DiffRenderer.js +0 -226
  405. package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
  406. package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
  407. package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -239
  408. package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
  409. package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
  410. package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
  411. package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
  412. package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
  413. package/dist/src/ui/components/messages/GeminiMessage.js +0 -11
  414. package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
  415. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
  416. package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -15
  417. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
  418. package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
  419. package/dist/src/ui/components/messages/InfoMessage.js +0 -10
  420. package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
  421. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -15
  422. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -162
  423. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
  424. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
  425. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -114
  426. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
  427. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -18
  428. package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -50
  429. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
  430. package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +0 -6
  431. package/dist/src/ui/components/messages/ToolGroupMessage.test.js +0 -259
  432. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +0 -1
  433. package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -15
  434. package/dist/src/ui/components/messages/ToolMessage.js +0 -62
  435. package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
  436. package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
  437. package/dist/src/ui/components/messages/ToolMessage.test.js +0 -118
  438. package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
  439. package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
  440. package/dist/src/ui/components/messages/UserMessage.js +0 -14
  441. package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
  442. package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
  443. package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
  444. package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
  445. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
  446. package/dist/src/ui/components/shared/MaxSizedBox.js +0 -451
  447. package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
  448. package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
  449. package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -154
  450. package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
  451. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -46
  452. package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -116
  453. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
  454. package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +0 -6
  455. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +0 -111
  456. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
  457. package/dist/src/ui/components/shared/text-buffer.d.ts +0 -467
  458. package/dist/src/ui/components/shared/text-buffer.js +0 -1489
  459. package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
  460. package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +0 -72
  461. package/dist/src/ui/components/shared/vim-buffer-actions.js +0 -552
  462. package/dist/src/ui/components/shared/vim-buffer-actions.js.map +0 -1
  463. package/dist/src/ui/constants.d.ts +0 -17
  464. package/dist/src/ui/constants.js +0 -22
  465. package/dist/src/ui/constants.js.map +0 -1
  466. package/dist/src/ui/contexts/KeypressContext.d.ts +0 -31
  467. package/dist/src/ui/contexts/KeypressContext.js +0 -318
  468. package/dist/src/ui/contexts/KeypressContext.js.map +0 -1
  469. package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
  470. package/dist/src/ui/contexts/KeypressContext.test.js +0 -385
  471. package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
  472. package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
  473. package/dist/src/ui/contexts/OverflowContext.js +0 -38
  474. package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
  475. package/dist/src/ui/contexts/SessionContext.d.ts +0 -39
  476. package/dist/src/ui/contexts/SessionContext.js +0 -55
  477. package/dist/src/ui/contexts/SessionContext.js.map +0 -1
  478. package/dist/src/ui/contexts/SettingsContext.d.ts +0 -9
  479. package/dist/src/ui/contexts/SettingsContext.js +0 -15
  480. package/dist/src/ui/contexts/SettingsContext.js.map +0 -1
  481. package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
  482. package/dist/src/ui/contexts/StreamingContext.js +0 -15
  483. package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
  484. package/dist/src/ui/contexts/VimModeContext.d.ts +0 -19
  485. package/dist/src/ui/contexts/VimModeContext.js +0 -48
  486. package/dist/src/ui/contexts/VimModeContext.js.map +0 -1
  487. package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
  488. package/dist/src/ui/editors/editorSettingsManager.js +0 -47
  489. package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
  490. package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
  491. package/dist/src/ui/hooks/atCommandProcessor.js +0 -364
  492. package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
  493. package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
  494. package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -832
  495. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
  496. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -17
  497. package/dist/src/ui/hooks/shellCommandProcessor.js +0 -234
  498. package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
  499. package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
  500. package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -325
  501. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
  502. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -29
  503. package/dist/src/ui/hooks/slashCommandProcessor.js +0 -443
  504. package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
  505. package/dist/src/ui/hooks/useAtCompletion.d.ts +0 -23
  506. package/dist/src/ui/hooks/useAtCompletion.js +0 -179
  507. package/dist/src/ui/hooks/useAtCompletion.js.map +0 -1
  508. package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -15
  509. package/dist/src/ui/hooks/useAuthCommand.js +0 -66
  510. package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
  511. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -12
  512. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -46
  513. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
  514. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +0 -6
  515. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +0 -311
  516. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +0 -1
  517. package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
  518. package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
  519. package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
  520. package/dist/src/ui/hooks/useCommandCompletion.d.ts +0 -32
  521. package/dist/src/ui/hooks/useCommandCompletion.js +0 -186
  522. package/dist/src/ui/hooks/useCommandCompletion.js.map +0 -1
  523. package/dist/src/ui/hooks/useCompletion.d.ts +0 -24
  524. package/dist/src/ui/hooks/useCompletion.js +0 -88
  525. package/dist/src/ui/hooks/useCompletion.js.map +0 -1
  526. package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
  527. package/dist/src/ui/hooks/useConsoleMessages.js +0 -76
  528. package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
  529. package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
  530. package/dist/src/ui/hooks/useEditorSettings.js +0 -43
  531. package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
  532. package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
  533. package/dist/src/ui/hooks/useEditorSettings.test.js +0 -164
  534. package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
  535. package/dist/src/ui/hooks/useFocus.d.ts +0 -10
  536. package/dist/src/ui/hooks/useFocus.js +0 -41
  537. package/dist/src/ui/hooks/useFocus.js.map +0 -1
  538. package/dist/src/ui/hooks/useFolderTrust.d.ts +0 -13
  539. package/dist/src/ui/hooks/useFolderTrust.js +0 -68
  540. package/dist/src/ui/hooks/useFolderTrust.js.map +0 -1
  541. package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -25
  542. package/dist/src/ui/hooks/useGeminiStream.js +0 -648
  543. package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
  544. package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
  545. package/dist/src/ui/hooks/useGitBranchName.js +0 -61
  546. package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
  547. package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
  548. package/dist/src/ui/hooks/useGitBranchName.test.js +0 -175
  549. package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
  550. package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
  551. package/dist/src/ui/hooks/useHistoryManager.js +0 -72
  552. package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
  553. package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
  554. package/dist/src/ui/hooks/useHistoryManager.test.js +0 -171
  555. package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
  556. package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
  557. package/dist/src/ui/hooks/useInputHistory.js +0 -84
  558. package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
  559. package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
  560. package/dist/src/ui/hooks/useInputHistory.test.js +0 -207
  561. package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
  562. package/dist/src/ui/hooks/useInputHistoryStore.d.ts +0 -19
  563. package/dist/src/ui/hooks/useInputHistoryStore.js +0 -81
  564. package/dist/src/ui/hooks/useInputHistoryStore.js.map +0 -1
  565. package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +0 -6
  566. package/dist/src/ui/hooks/useInputHistoryStore.test.js +0 -234
  567. package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +0 -1
  568. package/dist/src/ui/hooks/useKeypress.d.ts +0 -17
  569. package/dist/src/ui/hooks/useKeypress.js +0 -27
  570. package/dist/src/ui/hooks/useKeypress.js.map +0 -1
  571. package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +0 -15
  572. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +0 -20
  573. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +0 -1
  574. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
  575. package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
  576. package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
  577. package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
  578. package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -91
  579. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
  580. package/dist/src/ui/hooks/useLogger.d.ts +0 -11
  581. package/dist/src/ui/hooks/useLogger.js +0 -29
  582. package/dist/src/ui/hooks/useLogger.js.map +0 -1
  583. package/dist/src/ui/hooks/useMessageQueue.d.ts +0 -22
  584. package/dist/src/ui/hooks/useMessageQueue.js +0 -49
  585. package/dist/src/ui/hooks/useMessageQueue.js.map +0 -1
  586. package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
  587. package/dist/src/ui/hooks/useMessageQueue.test.js +0 -158
  588. package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
  589. package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
  590. package/dist/src/ui/hooks/usePhraseCycler.js +0 -187
  591. package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
  592. package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
  593. package/dist/src/ui/hooks/usePrivacySettings.js +0 -119
  594. package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
  595. package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +0 -6
  596. package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -154
  597. package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
  598. package/dist/src/ui/hooks/usePromptCompletion.d.ts +0 -23
  599. package/dist/src/ui/hooks/usePromptCompletion.js +0 -177
  600. package/dist/src/ui/hooks/usePromptCompletion.js.map +0 -1
  601. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -33
  602. package/dist/src/ui/hooks/useReactToolScheduler.js +0 -186
  603. package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
  604. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
  605. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
  606. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
  607. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +0 -19
  608. package/dist/src/ui/hooks/useReverseSearchCompletion.js +0 -56
  609. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +0 -1
  610. package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
  611. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -163
  612. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +0 -1
  613. package/dist/src/ui/hooks/useSettingsCommand.d.ts +0 -10
  614. package/dist/src/ui/hooks/useSettingsCommand.js +0 -21
  615. package/dist/src/ui/hooks/useSettingsCommand.js.map +0 -1
  616. package/dist/src/ui/hooks/useShellHistory.d.ts +0 -14
  617. package/dist/src/ui/hooks/useShellHistory.js +0 -111
  618. package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
  619. package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
  620. package/dist/src/ui/hooks/useShellHistory.test.js +0 -187
  621. package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
  622. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
  623. package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
  624. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
  625. package/dist/src/ui/hooks/useSlashCompletion.d.ts +0 -20
  626. package/dist/src/ui/hooks/useSlashCompletion.js +0 -331
  627. package/dist/src/ui/hooks/useSlashCompletion.js.map +0 -1
  628. package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -9
  629. package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -665
  630. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
  631. package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
  632. package/dist/src/ui/hooks/useStateAndRef.js +0 -26
  633. package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
  634. package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
  635. package/dist/src/ui/hooks/useTerminalSize.js +0 -27
  636. package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
  637. package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
  638. package/dist/src/ui/hooks/useThemeCommand.js +0 -79
  639. package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
  640. package/dist/src/ui/hooks/useTimer.d.ts +0 -12
  641. package/dist/src/ui/hooks/useTimer.js +0 -58
  642. package/dist/src/ui/hooks/useTimer.js.map +0 -1
  643. package/dist/src/ui/hooks/useTimer.test.d.ts +0 -6
  644. package/dist/src/ui/hooks/useTimer.test.js +0 -90
  645. package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
  646. package/dist/src/ui/hooks/useToolScheduler.test.d.ts +0 -6
  647. package/dist/src/ui/hooks/useToolScheduler.test.js +0 -846
  648. package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
  649. package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +0 -13
  650. package/dist/src/ui/hooks/useWorkspaceMigration.js +0 -53
  651. package/dist/src/ui/hooks/useWorkspaceMigration.js.map +0 -1
  652. package/dist/src/ui/hooks/vim.d.ts +0 -28
  653. package/dist/src/ui/hooks/vim.js +0 -639
  654. package/dist/src/ui/hooks/vim.js.map +0 -1
  655. package/dist/src/ui/keyMatchers.d.ts +0 -27
  656. package/dist/src/ui/keyMatchers.js +0 -68
  657. package/dist/src/ui/keyMatchers.js.map +0 -1
  658. package/dist/src/ui/keyMatchers.test.d.ts +0 -6
  659. package/dist/src/ui/keyMatchers.test.js +0 -276
  660. package/dist/src/ui/keyMatchers.test.js.map +0 -1
  661. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
  662. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -41
  663. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
  664. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
  665. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -18
  666. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
  667. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
  668. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -18
  669. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
  670. package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
  671. package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
  672. package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
  673. package/dist/src/ui/semantic-colors.d.ts +0 -7
  674. package/dist/src/ui/semantic-colors.js +0 -24
  675. package/dist/src/ui/semantic-colors.js.map +0 -1
  676. package/dist/src/ui/textConstants.d.ts +0 -9
  677. package/dist/src/ui/textConstants.js +0 -10
  678. package/dist/src/ui/textConstants.js.map +0 -1
  679. package/dist/src/ui/themes/ansi-light.d.ts +0 -7
  680. package/dist/src/ui/themes/ansi-light.js +0 -142
  681. package/dist/src/ui/themes/ansi-light.js.map +0 -1
  682. package/dist/src/ui/themes/ansi.d.ts +0 -7
  683. package/dist/src/ui/themes/ansi.js +0 -152
  684. package/dist/src/ui/themes/ansi.js.map +0 -1
  685. package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
  686. package/dist/src/ui/themes/atom-one-dark.js +0 -138
  687. package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
  688. package/dist/src/ui/themes/ayu-light.d.ts +0 -7
  689. package/dist/src/ui/themes/ayu-light.js +0 -130
  690. package/dist/src/ui/themes/ayu-light.js.map +0 -1
  691. package/dist/src/ui/themes/ayu.d.ts +0 -7
  692. package/dist/src/ui/themes/ayu.js +0 -104
  693. package/dist/src/ui/themes/ayu.js.map +0 -1
  694. package/dist/src/ui/themes/color-utils.d.ts +0 -21
  695. package/dist/src/ui/themes/color-utils.js +0 -221
  696. package/dist/src/ui/themes/color-utils.js.map +0 -1
  697. package/dist/src/ui/themes/color-utils.test.d.ts +0 -6
  698. package/dist/src/ui/themes/color-utils.test.js +0 -197
  699. package/dist/src/ui/themes/color-utils.test.js.map +0 -1
  700. package/dist/src/ui/themes/default-light.d.ts +0 -7
  701. package/dist/src/ui/themes/default-light.js +0 -100
  702. package/dist/src/ui/themes/default-light.js.map +0 -1
  703. package/dist/src/ui/themes/default.d.ts +0 -7
  704. package/dist/src/ui/themes/default.js +0 -143
  705. package/dist/src/ui/themes/default.js.map +0 -1
  706. package/dist/src/ui/themes/dracula.d.ts +0 -7
  707. package/dist/src/ui/themes/dracula.js +0 -115
  708. package/dist/src/ui/themes/dracula.js.map +0 -1
  709. package/dist/src/ui/themes/github-dark.d.ts +0 -7
  710. package/dist/src/ui/themes/github-dark.js +0 -138
  711. package/dist/src/ui/themes/github-dark.js.map +0 -1
  712. package/dist/src/ui/themes/github-light.d.ts +0 -7
  713. package/dist/src/ui/themes/github-light.js +0 -140
  714. package/dist/src/ui/themes/github-light.js.map +0 -1
  715. package/dist/src/ui/themes/googlecode.d.ts +0 -7
  716. package/dist/src/ui/themes/googlecode.js +0 -137
  717. package/dist/src/ui/themes/googlecode.js.map +0 -1
  718. package/dist/src/ui/themes/no-color.d.ts +0 -7
  719. package/dist/src/ui/themes/no-color.js +0 -115
  720. package/dist/src/ui/themes/no-color.js.map +0 -1
  721. package/dist/src/ui/themes/semantic-tokens.d.ts +0 -37
  722. package/dist/src/ui/themes/semantic-tokens.js +0 -94
  723. package/dist/src/ui/themes/semantic-tokens.js.map +0 -1
  724. package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
  725. package/dist/src/ui/themes/shades-of-purple.js +0 -304
  726. package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
  727. package/dist/src/ui/themes/theme-manager.d.ts +0 -66
  728. package/dist/src/ui/themes/theme-manager.js +0 -262
  729. package/dist/src/ui/themes/theme-manager.js.map +0 -1
  730. package/dist/src/ui/themes/theme-manager.test.d.ts +0 -6
  731. package/dist/src/ui/themes/theme-manager.test.js +0 -142
  732. package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
  733. package/dist/src/ui/themes/theme.d.ts +0 -130
  734. package/dist/src/ui/themes/theme.js +0 -379
  735. package/dist/src/ui/themes/theme.js.map +0 -1
  736. package/dist/src/ui/themes/xcode.d.ts +0 -7
  737. package/dist/src/ui/themes/xcode.js +0 -145
  738. package/dist/src/ui/themes/xcode.js.map +0 -1
  739. package/dist/src/ui/types.d.ts +0 -193
  740. package/dist/src/ui/types.js +0 -44
  741. package/dist/src/ui/types.js.map +0 -1
  742. package/dist/src/ui/utils/CodeColorizer.d.ts +0 -17
  743. package/dist/src/ui/utils/CodeColorizer.js +0 -110
  744. package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
  745. package/dist/src/ui/utils/ConsolePatcher.d.ts +0 -25
  746. package/dist/src/ui/utils/ConsolePatcher.js +0 -52
  747. package/dist/src/ui/utils/ConsolePatcher.js.map +0 -1
  748. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
  749. package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -111
  750. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
  751. package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
  752. package/dist/src/ui/utils/MarkdownDisplay.js +0 -208
  753. package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
  754. package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
  755. package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -152
  756. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
  757. package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
  758. package/dist/src/ui/utils/TableRenderer.js +0 -84
  759. package/dist/src/ui/utils/TableRenderer.js.map +0 -1
  760. package/dist/src/ui/utils/clipboardUtils.d.ts +0 -22
  761. package/dist/src/ui/utils/clipboardUtils.js +0 -127
  762. package/dist/src/ui/utils/clipboardUtils.js.map +0 -1
  763. package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
  764. package/dist/src/ui/utils/clipboardUtils.test.js +0 -65
  765. package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
  766. package/dist/src/ui/utils/commandUtils.d.ts +0 -24
  767. package/dist/src/ui/utils/commandUtils.js +0 -131
  768. package/dist/src/ui/utils/commandUtils.js.map +0 -1
  769. package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
  770. package/dist/src/ui/utils/commandUtils.test.js +0 -349
  771. package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
  772. package/dist/src/ui/utils/computeStats.d.ts +0 -10
  773. package/dist/src/ui/utils/computeStats.js +0 -57
  774. package/dist/src/ui/utils/computeStats.js.map +0 -1
  775. package/dist/src/ui/utils/displayUtils.d.ts +0 -17
  776. package/dist/src/ui/utils/displayUtils.js +0 -24
  777. package/dist/src/ui/utils/displayUtils.js.map +0 -1
  778. package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
  779. package/dist/src/ui/utils/displayUtils.test.js +0 -42
  780. package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
  781. package/dist/src/ui/utils/formatters.d.ts +0 -13
  782. package/dist/src/ui/utils/formatters.js +0 -56
  783. package/dist/src/ui/utils/formatters.js.map +0 -1
  784. package/dist/src/ui/utils/formatters.test.d.ts +0 -6
  785. package/dist/src/ui/utils/formatters.test.js +0 -56
  786. package/dist/src/ui/utils/formatters.test.js.map +0 -1
  787. package/dist/src/ui/utils/isNarrowWidth.d.ts +0 -6
  788. package/dist/src/ui/utils/isNarrowWidth.js +0 -9
  789. package/dist/src/ui/utils/isNarrowWidth.js.map +0 -1
  790. package/dist/src/ui/utils/kittyProtocolDetector.d.ts +0 -13
  791. package/dist/src/ui/utils/kittyProtocolDetector.js +0 -88
  792. package/dist/src/ui/utils/kittyProtocolDetector.js.map +0 -1
  793. package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
  794. package/dist/src/ui/utils/markdownUtilities.js +0 -110
  795. package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
  796. package/dist/src/ui/utils/markdownUtilities.test.d.ts +0 -6
  797. package/dist/src/ui/utils/markdownUtilities.test.js +0 -42
  798. package/dist/src/ui/utils/markdownUtilities.test.js.map +0 -1
  799. package/dist/src/ui/utils/platformConstants.d.ts +0 -52
  800. package/dist/src/ui/utils/platformConstants.js +0 -53
  801. package/dist/src/ui/utils/platformConstants.js.map +0 -1
  802. package/dist/src/ui/utils/terminalSetup.d.ts +0 -30
  803. package/dist/src/ui/utils/terminalSetup.js +0 -281
  804. package/dist/src/ui/utils/terminalSetup.js.map +0 -1
  805. package/dist/src/ui/utils/textUtils.d.ts +0 -32
  806. package/dist/src/ui/utils/textUtils.js +0 -80
  807. package/dist/src/ui/utils/textUtils.js.map +0 -1
  808. package/dist/src/ui/utils/updateCheck.d.ts +0 -12
  809. package/dist/src/ui/utils/updateCheck.js +0 -78
  810. package/dist/src/ui/utils/updateCheck.js.map +0 -1
  811. package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
  812. package/dist/src/ui/utils/updateCheck.test.js +0 -145
  813. package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
  814. package/dist/src/utils/checks.d.ts +0 -19
  815. package/dist/src/utils/checks.js +0 -24
  816. package/dist/src/utils/checks.js.map +0 -1
  817. package/dist/src/utils/cleanup.d.ts +0 -8
  818. package/dist/src/utils/cleanup.js +0 -35
  819. package/dist/src/utils/cleanup.js.map +0 -1
  820. package/dist/src/utils/dialogScopeUtils.d.ts +0 -32
  821. package/dist/src/utils/dialogScopeUtils.js +0 -48
  822. package/dist/src/utils/dialogScopeUtils.js.map +0 -1
  823. package/dist/src/utils/envVarResolver.d.ts +0 -39
  824. package/dist/src/utils/envVarResolver.js +0 -97
  825. package/dist/src/utils/envVarResolver.js.map +0 -1
  826. package/dist/src/utils/envVarResolver.test.d.ts +0 -6
  827. package/dist/src/utils/envVarResolver.test.js +0 -221
  828. package/dist/src/utils/envVarResolver.test.js.map +0 -1
  829. package/dist/src/utils/errors.d.ts +0 -6
  830. package/dist/src/utils/errors.js +0 -12
  831. package/dist/src/utils/errors.js.map +0 -1
  832. package/dist/src/utils/events.d.ts +0 -11
  833. package/dist/src/utils/events.js +0 -13
  834. package/dist/src/utils/events.js.map +0 -1
  835. package/dist/src/utils/gitUtils.d.ts +0 -30
  836. package/dist/src/utils/gitUtils.js +0 -89
  837. package/dist/src/utils/gitUtils.js.map +0 -1
  838. package/dist/src/utils/gitUtils.test.d.ts +0 -6
  839. package/dist/src/utils/gitUtils.test.js +0 -113
  840. package/dist/src/utils/gitUtils.test.js.map +0 -1
  841. package/dist/src/utils/handleAutoUpdate.d.ts +0 -11
  842. package/dist/src/utils/handleAutoUpdate.js +0 -102
  843. package/dist/src/utils/handleAutoUpdate.js.map +0 -1
  844. package/dist/src/utils/installationInfo.d.ts +0 -23
  845. package/dist/src/utils/installationInfo.js +0 -154
  846. package/dist/src/utils/installationInfo.js.map +0 -1
  847. package/dist/src/utils/installationInfo.test.d.ts +0 -6
  848. package/dist/src/utils/installationInfo.test.js +0 -242
  849. package/dist/src/utils/installationInfo.test.js.map +0 -1
  850. package/dist/src/utils/package.d.ts +0 -12
  851. package/dist/src/utils/package.js +0 -24
  852. package/dist/src/utils/package.js.map +0 -1
  853. package/dist/src/utils/readStdin.d.ts +0 -6
  854. package/dist/src/utils/readStdin.js +0 -59
  855. package/dist/src/utils/readStdin.js.map +0 -1
  856. package/dist/src/utils/readStdin.test.d.ts +0 -6
  857. package/dist/src/utils/readStdin.test.js +0 -88
  858. package/dist/src/utils/readStdin.test.js.map +0 -1
  859. package/dist/src/utils/resolvePath.d.ts +0 -6
  860. package/dist/src/utils/resolvePath.js +0 -21
  861. package/dist/src/utils/resolvePath.js.map +0 -1
  862. package/dist/src/utils/sandbox.d.ts +0 -7
  863. package/dist/src/utils/sandbox.js +0 -724
  864. package/dist/src/utils/sandbox.js.map +0 -1
  865. package/dist/src/utils/settingsUtils.d.ts +0 -134
  866. package/dist/src/utils/settingsUtils.js +0 -330
  867. package/dist/src/utils/settingsUtils.js.map +0 -1
  868. package/dist/src/utils/settingsUtils.test.d.ts +0 -6
  869. package/dist/src/utils/settingsUtils.test.js +0 -511
  870. package/dist/src/utils/settingsUtils.test.js.map +0 -1
  871. package/dist/src/utils/spawnWrapper.d.ts +0 -7
  872. package/dist/src/utils/spawnWrapper.js +0 -8
  873. package/dist/src/utils/spawnWrapper.js.map +0 -1
  874. package/dist/src/utils/startupWarnings.d.ts +0 -6
  875. package/dist/src/utils/startupWarnings.js +0 -40
  876. package/dist/src/utils/startupWarnings.js.map +0 -1
  877. package/dist/src/utils/updateEventEmitter.d.ts +0 -11
  878. package/dist/src/utils/updateEventEmitter.js +0 -12
  879. package/dist/src/utils/updateEventEmitter.js.map +0 -1
  880. package/dist/src/utils/userStartupWarnings.d.ts +0 -6
  881. package/dist/src/utils/userStartupWarnings.js +0 -54
  882. package/dist/src/utils/userStartupWarnings.js.map +0 -1
  883. package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
  884. package/dist/src/utils/userStartupWarnings.test.js +0 -67
  885. package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
  886. package/dist/src/utils/version.d.ts +0 -6
  887. package/dist/src/utils/version.js +0 -11
  888. package/dist/src/utils/version.js.map +0 -1
  889. package/dist/src/validateNonInterActiveAuth.d.ts +0 -8
  890. package/dist/src/validateNonInterActiveAuth.js +0 -37
  891. package/dist/src/validateNonInterActiveAuth.js.map +0 -1
  892. package/dist/src/zed-integration/acp.d.ts +0 -63
  893. package/dist/src/zed-integration/acp.js +0 -226
  894. package/dist/src/zed-integration/acp.js.map +0 -1
  895. package/dist/src/zed-integration/fileSystemService.d.ts +0 -19
  896. package/dist/src/zed-integration/fileSystemService.js +0 -43
  897. package/dist/src/zed-integration/fileSystemService.js.map +0 -1
  898. package/dist/src/zed-integration/schema.d.ts +0 -11782
  899. package/dist/src/zed-integration/schema.js +0 -311
  900. package/dist/src/zed-integration/schema.js.map +0 -1
  901. package/dist/src/zed-integration/zedIntegration.d.ts +0 -10
  902. package/dist/src/zed-integration/zedIntegration.js +0 -740
  903. package/dist/src/zed-integration/zedIntegration.js.map +0 -1
  904. package/dist/tsconfig.tsbuildinfo +0 -1
  905. /package/{dist/src/utils → bundle}/sandbox-macos-permissive-closed.sb +0 -0
  906. /package/{dist/src/utils → bundle}/sandbox-macos-permissive-open.sb +0 -0
  907. /package/{dist/src/utils → bundle}/sandbox-macos-permissive-proxied.sb +0 -0
  908. /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-closed.sb +0 -0
  909. /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-open.sb +0 -0
  910. /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-proxied.sb +0 -0
@@ -1,56 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { describe, it, expect } from 'vitest';
7
- import { formatDuration, formatMemoryUsage } from './formatters.js';
8
- describe('formatters', () => {
9
- describe('formatMemoryUsage', () => {
10
- it('should format bytes into KB', () => {
11
- expect(formatMemoryUsage(12345)).toBe('12.1 KB');
12
- });
13
- it('should format bytes into MB', () => {
14
- expect(formatMemoryUsage(12345678)).toBe('11.8 MB');
15
- });
16
- it('should format bytes into GB', () => {
17
- expect(formatMemoryUsage(12345678901)).toBe('11.50 GB');
18
- });
19
- });
20
- describe('formatDuration', () => {
21
- it('should format milliseconds less than a second', () => {
22
- expect(formatDuration(500)).toBe('500ms');
23
- });
24
- it('should format a duration of 0', () => {
25
- expect(formatDuration(0)).toBe('0s');
26
- });
27
- it('should format an exact number of seconds', () => {
28
- expect(formatDuration(5000)).toBe('5.0s');
29
- });
30
- it('should format a duration in seconds with one decimal place', () => {
31
- expect(formatDuration(12345)).toBe('12.3s');
32
- });
33
- it('should format an exact number of minutes', () => {
34
- expect(formatDuration(120000)).toBe('2m');
35
- });
36
- it('should format a duration in minutes and seconds', () => {
37
- expect(formatDuration(123000)).toBe('2m 3s');
38
- });
39
- it('should format an exact number of hours', () => {
40
- expect(formatDuration(3600000)).toBe('1h');
41
- });
42
- it('should format a duration in hours and seconds', () => {
43
- expect(formatDuration(3605000)).toBe('1h 5s');
44
- });
45
- it('should format a duration in hours, minutes, and seconds', () => {
46
- expect(formatDuration(3723000)).toBe('1h 2m 3s');
47
- });
48
- it('should handle large durations', () => {
49
- expect(formatDuration(86400000 + 3600000 + 120000 + 1000)).toBe('25h 2m 1s');
50
- });
51
- it('should handle negative durations', () => {
52
- expect(formatDuration(-100)).toBe('0s');
53
- });
54
- });
55
- });
56
- //# sourceMappingURL=formatters.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatters.test.js","sourceRoot":"","sources":["../../../../src/ui/utils/formatters.test.ts"],"names":[],"mappings":"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"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export declare function isNarrowWidth(width: number): boolean;
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export function isNarrowWidth(width) {
7
- return width < 80;
8
- }
9
- //# sourceMappingURL=isNarrowWidth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isNarrowWidth.js","sourceRoot":"","sources":["../../../../src/ui/utils/isNarrowWidth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,KAAK,GAAG,EAAE,CAAC;AACpB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * Detects Kitty keyboard protocol support.
8
- * Definitive document about this protocol lives at https://sw.kovidgoyal.net/kitty/keyboard-protocol/
9
- * This function should be called once at app startup.
10
- */
11
- export declare function detectAndEnableKittyProtocol(): Promise<boolean>;
12
- export declare function isKittyProtocolEnabled(): boolean;
13
- export declare function isKittyProtocolSupported(): boolean;
@@ -1,88 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- let detectionComplete = false;
7
- let protocolSupported = false;
8
- let protocolEnabled = false;
9
- /**
10
- * Detects Kitty keyboard protocol support.
11
- * Definitive document about this protocol lives at https://sw.kovidgoyal.net/kitty/keyboard-protocol/
12
- * This function should be called once at app startup.
13
- */
14
- export async function detectAndEnableKittyProtocol() {
15
- if (detectionComplete) {
16
- return protocolSupported;
17
- }
18
- return new Promise((resolve) => {
19
- if (!process.stdin.isTTY || !process.stdout.isTTY) {
20
- detectionComplete = true;
21
- resolve(false);
22
- return;
23
- }
24
- const originalRawMode = process.stdin.isRaw;
25
- if (!originalRawMode) {
26
- process.stdin.setRawMode(true);
27
- }
28
- let responseBuffer = '';
29
- let progressiveEnhancementReceived = false;
30
- let checkFinished = false;
31
- const handleData = (data) => {
32
- responseBuffer += data.toString();
33
- // Check for progressive enhancement response (CSI ? <flags> u)
34
- if (responseBuffer.includes('\x1b[?') && responseBuffer.includes('u')) {
35
- progressiveEnhancementReceived = true;
36
- }
37
- // Check for device attributes response (CSI ? <attrs> c)
38
- if (responseBuffer.includes('\x1b[?') && responseBuffer.includes('c')) {
39
- if (!checkFinished) {
40
- checkFinished = true;
41
- process.stdin.removeListener('data', handleData);
42
- if (!originalRawMode) {
43
- process.stdin.setRawMode(false);
44
- }
45
- if (progressiveEnhancementReceived) {
46
- // Enable the protocol
47
- process.stdout.write('\x1b[>1u');
48
- protocolSupported = true;
49
- protocolEnabled = true;
50
- // Set up cleanup on exit
51
- process.on('exit', disableProtocol);
52
- process.on('SIGTERM', disableProtocol);
53
- }
54
- detectionComplete = true;
55
- resolve(protocolSupported);
56
- }
57
- }
58
- };
59
- process.stdin.on('data', handleData);
60
- // Send queries
61
- process.stdout.write('\x1b[?u'); // Query progressive enhancement
62
- process.stdout.write('\x1b[c'); // Query device attributes
63
- // Timeout after 50ms
64
- setTimeout(() => {
65
- if (!checkFinished) {
66
- process.stdin.removeListener('data', handleData);
67
- if (!originalRawMode) {
68
- process.stdin.setRawMode(false);
69
- }
70
- detectionComplete = true;
71
- resolve(false);
72
- }
73
- }, 50);
74
- });
75
- }
76
- function disableProtocol() {
77
- if (protocolEnabled) {
78
- process.stdout.write('\x1b[<u');
79
- protocolEnabled = false;
80
- }
81
- }
82
- export function isKittyProtocolEnabled() {
83
- return protocolEnabled;
84
- }
85
- export function isKittyProtocolSupported() {
86
- return protocolSupported;
87
- }
88
- //# sourceMappingURL=kittyProtocolDetector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kittyProtocolDetector.js","sourceRoot":"","sources":["../../../../src/ui/utils/kittyProtocolDetector.ts"],"names":[],"mappings":"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"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export declare const findLastSafeSplitPoint: (content: string) => number;
@@ -1,110 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /*
7
- **Background & Purpose:**
8
-
9
- The `findSafeSplitPoint` function is designed to address the challenge of displaying or processing large, potentially streaming, pieces of Markdown text. When content (e.g., from an LLM like Gemini) arrives in chunks or grows too large for a single display unit (like a message bubble), it needs to be split. A naive split (e.g., just at a character limit) can break Markdown formatting, especially critical for multi-line elements like code blocks, lists, or blockquotes, leading to incorrect rendering.
10
-
11
- This function aims to find an *intelligent* or "safe" index within the provided `content` string at which to make such a split, prioritizing the preservation of Markdown integrity.
12
-
13
- **Key Expectations & Behavior (Prioritized):**
14
-
15
- 1. **No Split if Short Enough:**
16
- * If `content.length` is less than or equal to `idealMaxLength`, the function should return `content.length` (indicating no split is necessary for length reasons).
17
-
18
- 2. **Code Block Integrity (Highest Priority for Safety):**
19
- * The function must try to avoid splitting *inside* a fenced code block (i.e., between ` ``` ` and ` ``` `).
20
- * If `idealMaxLength` falls within a code block:
21
- * The function will attempt to return an index that splits the content *before* the start of that code block.
22
- * If a code block starts at the very beginning of the `content` and `idealMaxLength` falls within it (meaning the block itself is too long for the first chunk), the function might return `0`. This effectively makes the first chunk empty, pushing the entire oversized code block to the second part of the split.
23
- * When considering splits near code blocks, the function prefers to keep the entire code block intact in one of the resulting chunks.
24
-
25
- 3. **Markdown-Aware Newline Splitting (If Not Governed by Code Block Logic):**
26
- * If `idealMaxLength` does not fall within a code block (or after code block considerations have been made), the function will look for natural break points by scanning backwards from `idealMaxLength`:
27
- * **Paragraph Breaks:** It prioritizes splitting after a double newline (`\n\n`), as this typically signifies the end of a paragraph or a block-level element.
28
- * **Single Line Breaks:** If no double newline is found in a suitable range, it will look for a single newline (`\n`).
29
- * Any newline chosen as a split point must also not be inside a code block.
30
-
31
- 4. **Fall back to `idealMaxLength`:**
32
- * If no "safer" split point (respecting code blocks or finding suitable newlines) is identified before or at `idealMaxLength`, and `idealMaxLength` itself is not determined to be an unsafe split point (e.g., inside a code block), the function may return a length larger than `idealMaxLength`, again it CANNOT break markdown formatting. This could happen with very long lines of text without Markdown block structures or newlines.
33
-
34
- **In essence, `findSafeSplitPoint` tries to be a good Markdown citizen when forced to divide content, preferring structural boundaries over arbitrary character limits, with a strong emphasis on not corrupting code blocks.**
35
- */
36
- /**
37
- * Checks if a given character index within a string is inside a fenced (```) code block.
38
- * @param content The full string content.
39
- * @param indexToTest The character index to test.
40
- * @returns True if the index is inside a code block's content, false otherwise.
41
- */
42
- const isIndexInsideCodeBlock = (content, indexToTest) => {
43
- let fenceCount = 0;
44
- let searchPos = 0;
45
- while (searchPos < content.length) {
46
- const nextFence = content.indexOf('```', searchPos);
47
- if (nextFence === -1 || nextFence >= indexToTest) {
48
- break;
49
- }
50
- fenceCount++;
51
- searchPos = nextFence + 3;
52
- }
53
- return fenceCount % 2 === 1;
54
- };
55
- /**
56
- * Finds the starting index of the code block that encloses the given index.
57
- * Returns -1 if the index is not inside a code block.
58
- * @param content The markdown content.
59
- * @param index The index to check.
60
- * @returns Start index of the enclosing code block or -1.
61
- */
62
- const findEnclosingCodeBlockStart = (content, index) => {
63
- if (!isIndexInsideCodeBlock(content, index)) {
64
- return -1;
65
- }
66
- let currentSearchPos = 0;
67
- while (currentSearchPos < index) {
68
- const blockStartIndex = content.indexOf('```', currentSearchPos);
69
- if (blockStartIndex === -1 || blockStartIndex >= index) {
70
- break;
71
- }
72
- const blockEndIndex = content.indexOf('```', blockStartIndex + 3);
73
- if (blockStartIndex < index) {
74
- if (blockEndIndex === -1 || index < blockEndIndex + 3) {
75
- return blockStartIndex;
76
- }
77
- }
78
- if (blockEndIndex === -1)
79
- break;
80
- currentSearchPos = blockEndIndex + 3;
81
- }
82
- return -1;
83
- };
84
- export const findLastSafeSplitPoint = (content) => {
85
- const enclosingBlockStart = findEnclosingCodeBlockStart(content, content.length);
86
- if (enclosingBlockStart !== -1) {
87
- // The end of the content is contained in a code block. Split right before.
88
- return enclosingBlockStart;
89
- }
90
- // Search for the last double newline (\n\n) not in a code block.
91
- let searchStartIndex = content.length;
92
- while (searchStartIndex >= 0) {
93
- const dnlIndex = content.lastIndexOf('\n\n', searchStartIndex);
94
- if (dnlIndex === -1) {
95
- // No more double newlines found.
96
- break;
97
- }
98
- const potentialSplitPoint = dnlIndex + 2;
99
- if (!isIndexInsideCodeBlock(content, potentialSplitPoint)) {
100
- return potentialSplitPoint;
101
- }
102
- // If potentialSplitPoint was inside a code block,
103
- // the next search should start *before* the \n\n we just found to ensure progress.
104
- searchStartIndex = dnlIndex - 1;
105
- }
106
- // If no safe double newline is found, return content.length
107
- // to keep the entire content as one piece.
108
- return content.length;
109
- };
110
- //# sourceMappingURL=markdownUtilities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownUtilities.js","sourceRoot":"","sources":["../../../../src/ui/utils/markdownUtilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BE;AAEF;;;;;GAKG;AACH,MAAM,sBAAsB,GAAG,CAC7B,OAAe,EACf,WAAmB,EACV,EAAE;IACX,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,OAAO,SAAS,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;QAClC,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACpD,IAAI,SAAS,KAAK,CAAC,CAAC,IAAI,SAAS,IAAI,WAAW,EAAE,CAAC;YACjD,MAAM;QACR,CAAC;QACD,UAAU,EAAE,CAAC;QACb,SAAS,GAAG,SAAS,GAAG,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,UAAU,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,2BAA2B,GAAG,CAClC,OAAe,EACf,KAAa,EACL,EAAE;IACV,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;QAC5C,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;IACD,IAAI,gBAAgB,GAAG,CAAC,CAAC;IACzB,OAAO,gBAAgB,GAAG,KAAK,EAAE,CAAC;QAChC,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;QACjE,IAAI,eAAe,KAAK,CAAC,CAAC,IAAI,eAAe,IAAI,KAAK,EAAE,CAAC;YACvD,MAAM;QACR,CAAC;QACD,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,CAAC,CAAC,CAAC;QAClE,IAAI,eAAe,GAAG,KAAK,EAAE,CAAC;YAC5B,IAAI,aAAa,KAAK,CAAC,CAAC,IAAI,KAAK,GAAG,aAAa,GAAG,CAAC,EAAE,CAAC;gBACtD,OAAO,eAAe,CAAC;YACzB,CAAC;QACH,CAAC;QACD,IAAI,aAAa,KAAK,CAAC,CAAC;YAAE,MAAM;QAChC,gBAAgB,GAAG,aAAa,GAAG,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAe,EAAE,EAAE;IACxD,MAAM,mBAAmB,GAAG,2BAA2B,CACrD,OAAO,EACP,OAAO,CAAC,MAAM,CACf,CAAC;IACF,IAAI,mBAAmB,KAAK,CAAC,CAAC,EAAE,CAAC;QAC/B,2EAA2E;QAC3E,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED,iEAAiE;IACjE,IAAI,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IACtC,OAAO,gBAAgB,IAAI,CAAC,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;QAC/D,IAAI,QAAQ,KAAK,CAAC,CAAC,EAAE,CAAC;YACpB,iCAAiC;YACjC,MAAM;QACR,CAAC;QAED,MAAM,mBAAmB,GAAG,QAAQ,GAAG,CAAC,CAAC;QACzC,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE,CAAC;YAC1D,OAAO,mBAAmB,CAAC;QAC7B,CAAC;QAED,kDAAkD;QAClD,mFAAmF;QACnF,gBAAgB,GAAG,QAAQ,GAAG,CAAC,CAAC;IAClC,CAAC;IAED,4DAA4D;IAC5D,2CAA2C;IAC3C,OAAO,OAAO,CAAC,MAAM,CAAC;AACxB,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export {};
@@ -1,42 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { describe, it, expect } from 'vitest';
7
- import { findLastSafeSplitPoint } from './markdownUtilities.js';
8
- describe('markdownUtilities', () => {
9
- describe('findLastSafeSplitPoint', () => {
10
- it('should split at the last double newline if not in a code block', () => {
11
- const content = 'paragraph1\n\nparagraph2\n\nparagraph3';
12
- expect(findLastSafeSplitPoint(content)).toBe(24); // After the second \n\n
13
- });
14
- it('should return content.length if no safe split point is found', () => {
15
- const content = 'longstringwithoutanysafesplitpoint';
16
- expect(findLastSafeSplitPoint(content)).toBe(content.length);
17
- });
18
- it('should prioritize splitting at \n\n over being at the very end of the string if the end is not in a code block', () => {
19
- const content = 'Some text here.\n\nAnd more text here.';
20
- expect(findLastSafeSplitPoint(content)).toBe(17); // after the \n\n
21
- });
22
- it('should return content.length if the only \n\n is inside a code block and the end of content is not', () => {
23
- const content = '```\nignore this\n\nnewline\n```KeepThis';
24
- expect(findLastSafeSplitPoint(content)).toBe(content.length);
25
- });
26
- it('should correctly identify the last \n\n even if it is followed by text not in a code block', () => {
27
- const content = 'First part.\n\nSecond part.\n\nThird part, then some more text.';
28
- // Split should be after "Second part.\n\n"
29
- // "First part.\n\n" is 13 chars. "Second part.\n\n" is 14 chars. Total 27.
30
- expect(findLastSafeSplitPoint(content)).toBe(27);
31
- });
32
- it('should return content.length if content is empty', () => {
33
- const content = '';
34
- expect(findLastSafeSplitPoint(content)).toBe(0);
35
- });
36
- it('should return content.length if content has no newlines and no code blocks', () => {
37
- const content = 'Single line of text';
38
- expect(findLastSafeSplitPoint(content)).toBe(content.length);
39
- });
40
- });
41
- });
42
- //# sourceMappingURL=markdownUtilities.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownUtilities.test.js","sourceRoot":"","sources":["../../../../src/ui/utils/markdownUtilities.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;QACtC,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;YACxE,MAAM,OAAO,GAAG,wCAAwC,CAAC;YACzD,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,wBAAwB;QAC5E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,8DAA8D,EAAE,GAAG,EAAE;YACtE,MAAM,OAAO,GAAG,oCAAoC,CAAC;YACrD,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gHAAgH,EAAE,GAAG,EAAE;YACxH,MAAM,OAAO,GAAG,wCAAwC,CAAC;YACzD,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB;QACrE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oGAAoG,EAAE,GAAG,EAAE;YAC5G,MAAM,OAAO,GAAG,0CAA0C,CAAC;YAC3D,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,4FAA4F,EAAE,GAAG,EAAE;YACpG,MAAM,OAAO,GACX,iEAAiE,CAAC;YACpE,2CAA2C;YAC3C,2EAA2E;YAC3E,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;YAC1D,MAAM,OAAO,GAAG,EAAE,CAAC;YACnB,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,4EAA4E,EAAE,GAAG,EAAE;YACpF,MAAM,OAAO,GAAG,qBAAqB,CAAC;YACtC,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,52 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * Terminal Platform Constants
8
- *
9
- * This file contains terminal-related constants used throughout the application,
10
- * specifically for handling keyboard inputs and terminal protocols.
11
- */
12
- /**
13
- * Kitty keyboard protocol sequences for enhanced keyboard input.
14
- * @see https://sw.kovidgoyal.net/kitty/keyboard-protocol/
15
- */
16
- export declare const KITTY_CTRL_C = "[99;5u";
17
- /**
18
- * Kitty keyboard protocol keycodes
19
- */
20
- export declare const KITTY_KEYCODE_ENTER = 13;
21
- export declare const KITTY_KEYCODE_NUMPAD_ENTER = 57414;
22
- export declare const KITTY_KEYCODE_TAB = 9;
23
- export declare const KITTY_KEYCODE_BACKSPACE = 127;
24
- /**
25
- * Timing constants for terminal interactions
26
- */
27
- export declare const CTRL_EXIT_PROMPT_DURATION_MS = 1000;
28
- /**
29
- * VS Code terminal integration constants
30
- */
31
- export declare const VSCODE_SHIFT_ENTER_SEQUENCE = "\\\r\n";
32
- /**
33
- * Backslash + Enter detection window in milliseconds.
34
- * Used to detect Shift+Enter pattern where backslash
35
- * is followed by Enter within this timeframe.
36
- */
37
- export declare const BACKSLASH_ENTER_DETECTION_WINDOW_MS = 5;
38
- /**
39
- * Maximum expected length of a Kitty keyboard protocol sequence.
40
- * Format: ESC [ <keycode> ; <modifiers> u/~
41
- * Example: \x1b[13;2u (Shift+Enter) = 8 chars
42
- * Longest reasonable: \x1b[127;15~ = 11 chars (Del with all modifiers)
43
- * We use 12 to provide a small buffer.
44
- */
45
- export declare const MAX_KITTY_SEQUENCE_LENGTH = 12;
46
- /**
47
- * Character codes for common escape sequences
48
- */
49
- export declare const CHAR_CODE_ESC = 27;
50
- export declare const CHAR_CODE_LEFT_BRACKET = 91;
51
- export declare const CHAR_CODE_1 = 49;
52
- export declare const CHAR_CODE_2 = 50;
@@ -1,53 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * Terminal Platform Constants
8
- *
9
- * This file contains terminal-related constants used throughout the application,
10
- * specifically for handling keyboard inputs and terminal protocols.
11
- */
12
- /**
13
- * Kitty keyboard protocol sequences for enhanced keyboard input.
14
- * @see https://sw.kovidgoyal.net/kitty/keyboard-protocol/
15
- */
16
- export const KITTY_CTRL_C = '[99;5u';
17
- /**
18
- * Kitty keyboard protocol keycodes
19
- */
20
- export const KITTY_KEYCODE_ENTER = 13;
21
- export const KITTY_KEYCODE_NUMPAD_ENTER = 57414;
22
- export const KITTY_KEYCODE_TAB = 9;
23
- export const KITTY_KEYCODE_BACKSPACE = 127;
24
- /**
25
- * Timing constants for terminal interactions
26
- */
27
- export const CTRL_EXIT_PROMPT_DURATION_MS = 1000;
28
- /**
29
- * VS Code terminal integration constants
30
- */
31
- export const VSCODE_SHIFT_ENTER_SEQUENCE = '\\\r\n';
32
- /**
33
- * Backslash + Enter detection window in milliseconds.
34
- * Used to detect Shift+Enter pattern where backslash
35
- * is followed by Enter within this timeframe.
36
- */
37
- export const BACKSLASH_ENTER_DETECTION_WINDOW_MS = 5;
38
- /**
39
- * Maximum expected length of a Kitty keyboard protocol sequence.
40
- * Format: ESC [ <keycode> ; <modifiers> u/~
41
- * Example: \x1b[13;2u (Shift+Enter) = 8 chars
42
- * Longest reasonable: \x1b[127;15~ = 11 chars (Del with all modifiers)
43
- * We use 12 to provide a small buffer.
44
- */
45
- export const MAX_KITTY_SEQUENCE_LENGTH = 12;
46
- /**
47
- * Character codes for common escape sequences
48
- */
49
- export const CHAR_CODE_ESC = 27;
50
- export const CHAR_CODE_LEFT_BRACKET = 91;
51
- export const CHAR_CODE_1 = 49;
52
- export const CHAR_CODE_2 = 50;
53
- //# sourceMappingURL=platformConstants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"platformConstants.js","sourceRoot":"","sources":["../../../../src/ui/utils/platformConstants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AACtC,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AACnC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CAAC;AAEpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AACzC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAC9B,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC"}
@@ -1,30 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export interface TerminalSetupResult {
7
- success: boolean;
8
- message: string;
9
- requiresRestart?: boolean;
10
- }
11
- /**
12
- * Main terminal setup function that detects and configures the current terminal.
13
- *
14
- * This function:
15
- * 1. Detects the current terminal emulator
16
- * 2. Applies appropriate configuration for Shift+Enter and Ctrl+Enter support
17
- * 3. Creates backups of configuration files before modifying them
18
- *
19
- * @returns Promise<TerminalSetupResult> Result object with success status and message
20
- *
21
- * @example
22
- * const result = await terminalSetup();
23
- * if (result.success) {
24
- * console.log(result.message);
25
- * if (result.requiresRestart) {
26
- * console.log('Please restart your terminal');
27
- * }
28
- * }
29
- */
30
- export declare function terminalSetup(): Promise<TerminalSetupResult>;