@machina.ai/cell-cli 0.1.13-rc2

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 (475) hide show
  1. package/dist/.last_build +0 -0
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.js +20 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/package.json +79 -0
  6. package/dist/src/acp/acp.d.ts +208 -0
  7. package/dist/src/acp/acp.js +193 -0
  8. package/dist/src/acp/acp.js.map +1 -0
  9. package/dist/src/acp/acpPeer.d.ts +8 -0
  10. package/dist/src/acp/acpPeer.js +537 -0
  11. package/dist/src/acp/acpPeer.js.map +1 -0
  12. package/dist/src/config/auth.d.ts +6 -0
  13. package/dist/src/config/auth.js +15 -0
  14. package/dist/src/config/auth.js.map +1 -0
  15. package/dist/src/config/config.d.ts +39 -0
  16. package/dist/src/config/config.js +359 -0
  17. package/dist/src/config/config.js.map +1 -0
  18. package/dist/src/config/extension.d.ts +21 -0
  19. package/dist/src/config/extension.js +114 -0
  20. package/dist/src/config/extension.js.map +1 -0
  21. package/dist/src/config/sandboxConfig.d.ts +13 -0
  22. package/dist/src/config/sandboxConfig.js +75 -0
  23. package/dist/src/config/sandboxConfig.js.map +1 -0
  24. package/dist/src/config/settings.d.ts +91 -0
  25. package/dist/src/config/settings.js +282 -0
  26. package/dist/src/config/settings.js.map +1 -0
  27. package/dist/src/gemini.d.ts +6 -0
  28. package/dist/src/gemini.js +242 -0
  29. package/dist/src/gemini.js.map +1 -0
  30. package/dist/src/generated/git-commit.d.ts +6 -0
  31. package/dist/src/generated/git-commit.js +9 -0
  32. package/dist/src/generated/git-commit.js.map +1 -0
  33. package/dist/src/nonInteractiveCli.d.ts +7 -0
  34. package/dist/src/nonInteractiveCli.js +124 -0
  35. package/dist/src/nonInteractiveCli.js.map +1 -0
  36. package/dist/src/services/BuiltinCommandLoader.d.ts +24 -0
  37. package/dist/src/services/BuiltinCommandLoader.js +70 -0
  38. package/dist/src/services/BuiltinCommandLoader.js.map +1 -0
  39. package/dist/src/services/CommandService.d.ts +51 -0
  40. package/dist/src/services/CommandService.js +74 -0
  41. package/dist/src/services/CommandService.js.map +1 -0
  42. package/dist/src/services/FileCommandLoader.d.ts +37 -0
  43. package/dist/src/services/FileCommandLoader.js +133 -0
  44. package/dist/src/services/FileCommandLoader.js.map +1 -0
  45. package/dist/src/services/types.d.ts +22 -0
  46. package/dist/src/services/types.js +7 -0
  47. package/dist/src/services/types.js.map +1 -0
  48. package/dist/src/ui/App.d.ts +15 -0
  49. package/dist/src/ui/App.js +488 -0
  50. package/dist/src/ui/App.js.map +1 -0
  51. package/dist/src/ui/colors.d.ts +7 -0
  52. package/dist/src/ui/colors.js +48 -0
  53. package/dist/src/ui/colors.js.map +1 -0
  54. package/dist/src/ui/commands/aboutCommand.d.ts +7 -0
  55. package/dist/src/ui/commands/aboutCommand.js +39 -0
  56. package/dist/src/ui/commands/aboutCommand.js.map +1 -0
  57. package/dist/src/ui/commands/authCommand.d.ts +7 -0
  58. package/dist/src/ui/commands/authCommand.js +16 -0
  59. package/dist/src/ui/commands/authCommand.js.map +1 -0
  60. package/dist/src/ui/commands/bugCommand.d.ts +7 -0
  61. package/dist/src/ui/commands/bugCommand.js +63 -0
  62. package/dist/src/ui/commands/bugCommand.js.map +1 -0
  63. package/dist/src/ui/commands/chatCommand.d.ts +7 -0
  64. package/dist/src/ui/commands/chatCommand.js +174 -0
  65. package/dist/src/ui/commands/chatCommand.js.map +1 -0
  66. package/dist/src/ui/commands/clearCommand.d.ts +7 -0
  67. package/dist/src/ui/commands/clearCommand.js +27 -0
  68. package/dist/src/ui/commands/clearCommand.js.map +1 -0
  69. package/dist/src/ui/commands/compressCommand.d.ts +7 -0
  70. package/dist/src/ui/commands/compressCommand.js +64 -0
  71. package/dist/src/ui/commands/compressCommand.js.map +1 -0
  72. package/dist/src/ui/commands/copyCommand.d.ts +7 -0
  73. package/dist/src/ui/commands/copyCommand.js +59 -0
  74. package/dist/src/ui/commands/copyCommand.js.map +1 -0
  75. package/dist/src/ui/commands/corgiCommand.d.ts +7 -0
  76. package/dist/src/ui/commands/corgiCommand.js +15 -0
  77. package/dist/src/ui/commands/corgiCommand.js.map +1 -0
  78. package/dist/src/ui/commands/docsCommand.d.ts +7 -0
  79. package/dist/src/ui/commands/docsCommand.js +31 -0
  80. package/dist/src/ui/commands/docsCommand.js.map +1 -0
  81. package/dist/src/ui/commands/editorCommand.d.ts +7 -0
  82. package/dist/src/ui/commands/editorCommand.js +16 -0
  83. package/dist/src/ui/commands/editorCommand.js.map +1 -0
  84. package/dist/src/ui/commands/extensionsCommand.d.ts +7 -0
  85. package/dist/src/ui/commands/extensionsCommand.js +31 -0
  86. package/dist/src/ui/commands/extensionsCommand.js.map +1 -0
  87. package/dist/src/ui/commands/helpCommand.d.ts +7 -0
  88. package/dist/src/ui/commands/helpCommand.js +20 -0
  89. package/dist/src/ui/commands/helpCommand.js.map +1 -0
  90. package/dist/src/ui/commands/ideCommand.d.ts +8 -0
  91. package/dist/src/ui/commands/ideCommand.js +127 -0
  92. package/dist/src/ui/commands/ideCommand.js.map +1 -0
  93. package/dist/src/ui/commands/mcpCommand.d.ts +7 -0
  94. package/dist/src/ui/commands/mcpCommand.js +206 -0
  95. package/dist/src/ui/commands/mcpCommand.js.map +1 -0
  96. package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
  97. package/dist/src/ui/commands/memoryCommand.js +86 -0
  98. package/dist/src/ui/commands/memoryCommand.js.map +1 -0
  99. package/dist/src/ui/commands/privacyCommand.d.ts +7 -0
  100. package/dist/src/ui/commands/privacyCommand.js +16 -0
  101. package/dist/src/ui/commands/privacyCommand.js.map +1 -0
  102. package/dist/src/ui/commands/quitCommand.d.ts +7 -0
  103. package/dist/src/ui/commands/quitCommand.js +34 -0
  104. package/dist/src/ui/commands/quitCommand.js.map +1 -0
  105. package/dist/src/ui/commands/restoreCommand.d.ts +8 -0
  106. package/dist/src/ui/commands/restoreCommand.js +128 -0
  107. package/dist/src/ui/commands/restoreCommand.js.map +1 -0
  108. package/dist/src/ui/commands/statsCommand.d.ts +7 -0
  109. package/dist/src/ui/commands/statsCommand.js +54 -0
  110. package/dist/src/ui/commands/statsCommand.js.map +1 -0
  111. package/dist/src/ui/commands/themeCommand.d.ts +7 -0
  112. package/dist/src/ui/commands/themeCommand.js +16 -0
  113. package/dist/src/ui/commands/themeCommand.js.map +1 -0
  114. package/dist/src/ui/commands/toolsCommand.d.ts +7 -0
  115. package/dist/src/ui/commands/toolsCommand.js +56 -0
  116. package/dist/src/ui/commands/toolsCommand.js.map +1 -0
  117. package/dist/src/ui/commands/types.d.ts +110 -0
  118. package/dist/src/ui/commands/types.js +11 -0
  119. package/dist/src/ui/commands/types.js.map +1 -0
  120. package/dist/src/ui/components/AboutBox.d.ts +16 -0
  121. package/dist/src/ui/components/AboutBox.js +6 -0
  122. package/dist/src/ui/components/AboutBox.js.map +1 -0
  123. package/dist/src/ui/components/AsciiArt.d.ts +7 -0
  124. package/dist/src/ui/components/AsciiArt.js +32 -0
  125. package/dist/src/ui/components/AsciiArt.js.map +1 -0
  126. package/dist/src/ui/components/AuthDialog.d.ts +15 -0
  127. package/dist/src/ui/components/AuthDialog.js +50 -0
  128. package/dist/src/ui/components/AuthDialog.js.map +1 -0
  129. package/dist/src/ui/components/AuthInProgress.d.ts +11 -0
  130. package/dist/src/ui/components/AuthInProgress.js +27 -0
  131. package/dist/src/ui/components/AuthInProgress.js.map +1 -0
  132. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +12 -0
  133. package/dist/src/ui/components/AutoAcceptIndicator.js +26 -0
  134. package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -0
  135. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +11 -0
  136. package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
  137. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
  138. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +20 -0
  139. package/dist/src/ui/components/ContextSummaryDisplay.js +68 -0
  140. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
  141. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +14 -0
  142. package/dist/src/ui/components/DetailedMessagesDisplay.js +34 -0
  143. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
  144. package/dist/src/ui/components/EditorSettingsDialog.d.ts +15 -0
  145. package/dist/src/ui/components/EditorSettingsDialog.js +73 -0
  146. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
  147. package/dist/src/ui/components/Footer.d.ts +21 -0
  148. package/dist/src/ui/components/Footer.js +14 -0
  149. package/dist/src/ui/components/Footer.js.map +1 -0
  150. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +17 -0
  151. package/dist/src/ui/components/GeminiRespondingSpinner.js +16 -0
  152. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
  153. package/dist/src/ui/components/Header.d.ts +14 -0
  154. package/dist/src/ui/components/Header.js +20 -0
  155. package/dist/src/ui/components/Header.js.map +1 -0
  156. package/dist/src/ui/components/Help.d.ts +12 -0
  157. package/dist/src/ui/components/Help.js +10 -0
  158. package/dist/src/ui/components/Help.js.map +1 -0
  159. package/dist/src/ui/components/HistoryItemDisplay.d.ts +18 -0
  160. package/dist/src/ui/components/HistoryItemDisplay.js +17 -0
  161. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
  162. package/dist/src/ui/components/InputPrompt.d.ts +25 -0
  163. package/dist/src/ui/components/InputPrompt.js +387 -0
  164. package/dist/src/ui/components/InputPrompt.js.map +1 -0
  165. package/dist/src/ui/components/LoadingIndicator.d.ts +15 -0
  166. package/dist/src/ui/components/LoadingIndicator.js +20 -0
  167. package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
  168. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +7 -0
  169. package/dist/src/ui/components/MemoryUsageDisplay.js +27 -0
  170. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
  171. package/dist/src/ui/components/ModelStatsDisplay.d.ts +7 -0
  172. package/dist/src/ui/components/ModelStatsDisplay.js +33 -0
  173. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
  174. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +11 -0
  175. package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
  176. package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
  177. package/dist/src/ui/components/ShellModeIndicator.d.ts +7 -0
  178. package/dist/src/ui/components/ShellModeIndicator.js +5 -0
  179. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
  180. package/dist/src/ui/components/ShowMoreLines.d.ts +10 -0
  181. package/dist/src/ui/components/ShowMoreLines.js +24 -0
  182. package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
  183. package/dist/src/ui/components/StatsDisplay.d.ts +12 -0
  184. package/dist/src/ui/components/StatsDisplay.js +42 -0
  185. package/dist/src/ui/components/StatsDisplay.js.map +1 -0
  186. package/dist/src/ui/components/SuggestionsDisplay.d.ts +21 -0
  187. package/dist/src/ui/components/SuggestionsDisplay.js +32 -0
  188. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
  189. package/dist/src/ui/components/ThemeDialog.d.ts +19 -0
  190. package/dist/src/ui/components/ThemeDialog.js +148 -0
  191. package/dist/src/ui/components/ThemeDialog.js.map +1 -0
  192. package/dist/src/ui/components/Tips.d.ts +12 -0
  193. package/dist/src/ui/components/Tips.js +8 -0
  194. package/dist/src/ui/components/Tips.js.map +1 -0
  195. package/dist/src/ui/components/ToolStatsDisplay.d.ts +7 -0
  196. package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
  197. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
  198. package/dist/src/ui/components/UpdateNotification.d.ts +10 -0
  199. package/dist/src/ui/components/UpdateNotification.js +10 -0
  200. package/dist/src/ui/components/UpdateNotification.js.map +1 -0
  201. package/dist/src/ui/components/messages/CompressionMessage.d.ts +11 -0
  202. package/dist/src/ui/components/messages/CompressionMessage.js +16 -0
  203. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
  204. package/dist/src/ui/components/messages/DiffRenderer.d.ts +16 -0
  205. package/dist/src/ui/components/messages/DiffRenderer.js +212 -0
  206. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
  207. package/dist/src/ui/components/messages/ErrorMessage.d.ts +11 -0
  208. package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
  209. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
  210. package/dist/src/ui/components/messages/GeminiMessage.d.ts +14 -0
  211. package/dist/src/ui/components/messages/GeminiMessage.js +10 -0
  212. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
  213. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +14 -0
  214. package/dist/src/ui/components/messages/GeminiMessageContent.js +15 -0
  215. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
  216. package/dist/src/ui/components/messages/InfoMessage.d.ts +11 -0
  217. package/dist/src/ui/components/messages/InfoMessage.js +9 -0
  218. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
  219. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +15 -0
  220. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +111 -0
  221. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
  222. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +18 -0
  223. package/dist/src/ui/components/messages/ToolGroupMessage.js +55 -0
  224. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
  225. package/dist/src/ui/components/messages/ToolMessage.d.ts +15 -0
  226. package/dist/src/ui/components/messages/ToolMessage.js +61 -0
  227. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
  228. package/dist/src/ui/components/messages/UserMessage.d.ts +11 -0
  229. package/dist/src/ui/components/messages/UserMessage.js +9 -0
  230. package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
  231. package/dist/src/ui/components/messages/UserShellMessage.d.ts +11 -0
  232. package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
  233. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
  234. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +61 -0
  235. package/dist/src/ui/components/shared/MaxSizedBox.js +451 -0
  236. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
  237. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +46 -0
  238. package/dist/src/ui/components/shared/RadioButtonSelect.js +119 -0
  239. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
  240. package/dist/src/ui/components/shared/text-buffer.d.ts +184 -0
  241. package/dist/src/ui/components/shared/text-buffer.js +1010 -0
  242. package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
  243. package/dist/src/ui/constants.d.ts +9 -0
  244. package/dist/src/ui/constants.js +13 -0
  245. package/dist/src/ui/constants.js.map +1 -0
  246. package/dist/src/ui/contexts/OverflowContext.d.ts +19 -0
  247. package/dist/src/ui/contexts/OverflowContext.js +43 -0
  248. package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
  249. package/dist/src/ui/contexts/SessionContext.d.ts +36 -0
  250. package/dist/src/ui/contexts/SessionContext.js +59 -0
  251. package/dist/src/ui/contexts/SessionContext.js.map +1 -0
  252. package/dist/src/ui/contexts/StreamingContext.d.ts +9 -0
  253. package/dist/src/ui/contexts/StreamingContext.js +15 -0
  254. package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
  255. package/dist/src/ui/editors/editorSettingsManager.d.ts +19 -0
  256. package/dist/src/ui/editors/editorSettingsManager.js +54 -0
  257. package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
  258. package/dist/src/ui/hooks/atCommandProcessor.d.ts +31 -0
  259. package/dist/src/ui/hooks/atCommandProcessor.js +347 -0
  260. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
  261. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +16 -0
  262. package/dist/src/ui/hooks/shellCommandProcessor.js +295 -0
  263. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
  264. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +20 -0
  265. package/dist/src/ui/hooks/slashCommandProcessor.js +294 -0
  266. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
  267. package/dist/src/ui/hooks/useAuthCommand.d.ts +14 -0
  268. package/dist/src/ui/hooks/useAuthCommand.js +65 -0
  269. package/dist/src/ui/hooks/useAuthCommand.js.map +1 -0
  270. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +10 -0
  271. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +37 -0
  272. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -0
  273. package/dist/src/ui/hooks/useBracketedPaste.d.ts +12 -0
  274. package/dist/src/ui/hooks/useBracketedPaste.js +32 -0
  275. package/dist/src/ui/hooks/useBracketedPaste.js.map +1 -0
  276. package/dist/src/ui/hooks/useCompletion.d.ts +22 -0
  277. package/dist/src/ui/hooks/useCompletion.js +393 -0
  278. package/dist/src/ui/hooks/useCompletion.js.map +1 -0
  279. package/dist/src/ui/hooks/useConsoleMessages.d.ts +12 -0
  280. package/dist/src/ui/hooks/useConsoleMessages.js +60 -0
  281. package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
  282. package/dist/src/ui/hooks/useEditorSettings.d.ts +16 -0
  283. package/dist/src/ui/hooks/useEditorSettings.js +43 -0
  284. package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
  285. package/dist/src/ui/hooks/useFocus.d.ts +6 -0
  286. package/dist/src/ui/hooks/useFocus.js +41 -0
  287. package/dist/src/ui/hooks/useFocus.js.map +1 -0
  288. package/dist/src/ui/hooks/useGeminiStream.d.ts +23 -0
  289. package/dist/src/ui/hooks/useGeminiStream.js +613 -0
  290. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
  291. package/dist/src/ui/hooks/useGitBranchName.d.ts +6 -0
  292. package/dist/src/ui/hooks/useGitBranchName.js +61 -0
  293. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
  294. package/dist/src/ui/hooks/useHistoryManager.d.ts +22 -0
  295. package/dist/src/ui/hooks/useHistoryManager.js +72 -0
  296. package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
  297. package/dist/src/ui/hooks/useInputHistory.d.ts +19 -0
  298. package/dist/src/ui/hooks/useInputHistory.js +84 -0
  299. package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
  300. package/dist/src/ui/hooks/useKeypress.d.ts +29 -0
  301. package/dist/src/ui/hooks/useKeypress.js +156 -0
  302. package/dist/src/ui/hooks/useKeypress.js.map +1 -0
  303. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +10 -0
  304. package/dist/src/ui/hooks/useLoadingIndicator.js +44 -0
  305. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
  306. package/dist/src/ui/hooks/useLogger.d.ts +10 -0
  307. package/dist/src/ui/hooks/useLogger.js +29 -0
  308. package/dist/src/ui/hooks/useLogger.js.map +1 -0
  309. package/dist/src/ui/hooks/usePhraseCycler.d.ts +14 -0
  310. package/dist/src/ui/hooks/usePhraseCycler.js +189 -0
  311. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
  312. package/dist/src/ui/hooks/usePrivacySettings.d.ts +16 -0
  313. package/dist/src/ui/hooks/usePrivacySettings.js +115 -0
  314. package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
  315. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +33 -0
  316. package/dist/src/ui/hooks/useReactToolScheduler.js +186 -0
  317. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
  318. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +6 -0
  319. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +7 -0
  320. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
  321. package/dist/src/ui/hooks/useShellHistory.d.ts +11 -0
  322. package/dist/src/ui/hooks/useShellHistory.js +89 -0
  323. package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
  324. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +9 -0
  325. package/dist/src/ui/hooks/useShowMemoryCommand.js +58 -0
  326. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
  327. package/dist/src/ui/hooks/useStateAndRef.d.ts +7 -0
  328. package/dist/src/ui/hooks/useStateAndRef.js +26 -0
  329. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
  330. package/dist/src/ui/hooks/useTerminalSize.d.ts +9 -0
  331. package/dist/src/ui/hooks/useTerminalSize.js +27 -0
  332. package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
  333. package/dist/src/ui/hooks/useThemeCommand.d.ts +15 -0
  334. package/dist/src/ui/hooks/useThemeCommand.js +79 -0
  335. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
  336. package/dist/src/ui/hooks/useTimer.d.ts +12 -0
  337. package/dist/src/ui/hooks/useTimer.js +58 -0
  338. package/dist/src/ui/hooks/useTimer.js.map +1 -0
  339. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +12 -0
  340. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +40 -0
  341. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
  342. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +10 -0
  343. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +17 -0
  344. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
  345. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +10 -0
  346. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +17 -0
  347. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
  348. package/dist/src/ui/privacy/PrivacyNotice.d.ts +12 -0
  349. package/dist/src/ui/privacy/PrivacyNotice.js +25 -0
  350. package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
  351. package/dist/src/ui/themes/ansi-light.d.ts +7 -0
  352. package/dist/src/ui/themes/ansi-light.js +139 -0
  353. package/dist/src/ui/themes/ansi-light.js.map +1 -0
  354. package/dist/src/ui/themes/ansi.d.ts +7 -0
  355. package/dist/src/ui/themes/ansi.js +149 -0
  356. package/dist/src/ui/themes/ansi.js.map +1 -0
  357. package/dist/src/ui/themes/atom-one-dark.d.ts +7 -0
  358. package/dist/src/ui/themes/atom-one-dark.js +136 -0
  359. package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
  360. package/dist/src/ui/themes/ayu-light.d.ts +7 -0
  361. package/dist/src/ui/themes/ayu-light.js +128 -0
  362. package/dist/src/ui/themes/ayu-light.js.map +1 -0
  363. package/dist/src/ui/themes/ayu.d.ts +7 -0
  364. package/dist/src/ui/themes/ayu.js +102 -0
  365. package/dist/src/ui/themes/ayu.js.map +1 -0
  366. package/dist/src/ui/themes/color-utils.d.ts +21 -0
  367. package/dist/src/ui/themes/color-utils.js +221 -0
  368. package/dist/src/ui/themes/color-utils.js.map +1 -0
  369. package/dist/src/ui/themes/default-light.d.ts +7 -0
  370. package/dist/src/ui/themes/default-light.js +100 -0
  371. package/dist/src/ui/themes/default-light.js.map +1 -0
  372. package/dist/src/ui/themes/default.d.ts +7 -0
  373. package/dist/src/ui/themes/default.js +143 -0
  374. package/dist/src/ui/themes/default.js.map +1 -0
  375. package/dist/src/ui/themes/dracula.d.ts +7 -0
  376. package/dist/src/ui/themes/dracula.js +113 -0
  377. package/dist/src/ui/themes/dracula.js.map +1 -0
  378. package/dist/src/ui/themes/github-dark.d.ts +7 -0
  379. package/dist/src/ui/themes/github-dark.js +136 -0
  380. package/dist/src/ui/themes/github-dark.js.map +1 -0
  381. package/dist/src/ui/themes/github-light.d.ts +7 -0
  382. package/dist/src/ui/themes/github-light.js +138 -0
  383. package/dist/src/ui/themes/github-light.js.map +1 -0
  384. package/dist/src/ui/themes/googlecode.d.ts +7 -0
  385. package/dist/src/ui/themes/googlecode.js +135 -0
  386. package/dist/src/ui/themes/googlecode.js.map +1 -0
  387. package/dist/src/ui/themes/no-color.d.ts +7 -0
  388. package/dist/src/ui/themes/no-color.js +84 -0
  389. package/dist/src/ui/themes/no-color.js.map +1 -0
  390. package/dist/src/ui/themes/shades-of-purple.d.ts +11 -0
  391. package/dist/src/ui/themes/shades-of-purple.js +302 -0
  392. package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
  393. package/dist/src/ui/themes/theme-manager.d.ts +58 -0
  394. package/dist/src/ui/themes/theme-manager.js +179 -0
  395. package/dist/src/ui/themes/theme-manager.js.map +1 -0
  396. package/dist/src/ui/themes/theme.d.ts +84 -0
  397. package/dist/src/ui/themes/theme.js +341 -0
  398. package/dist/src/ui/themes/theme.js.map +1 -0
  399. package/dist/src/ui/themes/xcode.d.ts +7 -0
  400. package/dist/src/ui/themes/xcode.js +143 -0
  401. package/dist/src/ui/themes/xcode.js.map +1 -0
  402. package/dist/src/ui/types.d.ts +180 -0
  403. package/dist/src/ui/types.js +43 -0
  404. package/dist/src/ui/types.js.map +1 -0
  405. package/dist/src/ui/utils/CodeColorizer.d.ts +15 -0
  406. package/dist/src/ui/utils/CodeColorizer.js +97 -0
  407. package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
  408. package/dist/src/ui/utils/ConsolePatcher.d.ts +23 -0
  409. package/dist/src/ui/utils/ConsolePatcher.js +42 -0
  410. package/dist/src/ui/utils/ConsolePatcher.js.map +1 -0
  411. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +16 -0
  412. package/dist/src/ui/utils/InlineMarkdownRenderer.js +104 -0
  413. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
  414. package/dist/src/ui/utils/MarkdownDisplay.d.ts +14 -0
  415. package/dist/src/ui/utils/MarkdownDisplay.js +205 -0
  416. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
  417. package/dist/src/ui/utils/TableRenderer.d.ts +17 -0
  418. package/dist/src/ui/utils/TableRenderer.js +84 -0
  419. package/dist/src/ui/utils/TableRenderer.js.map +1 -0
  420. package/dist/src/ui/utils/clipboardUtils.d.ts +22 -0
  421. package/dist/src/ui/utils/clipboardUtils.js +127 -0
  422. package/dist/src/ui/utils/clipboardUtils.js.map +1 -0
  423. package/dist/src/ui/utils/commandUtils.d.ts +23 -0
  424. package/dist/src/ui/utils/commandUtils.js +72 -0
  425. package/dist/src/ui/utils/commandUtils.js.map +1 -0
  426. package/dist/src/ui/utils/computeStats.d.ts +10 -0
  427. package/dist/src/ui/utils/computeStats.js +55 -0
  428. package/dist/src/ui/utils/computeStats.js.map +1 -0
  429. package/dist/src/ui/utils/displayUtils.d.ts +17 -0
  430. package/dist/src/ui/utils/displayUtils.js +24 -0
  431. package/dist/src/ui/utils/displayUtils.js.map +1 -0
  432. package/dist/src/ui/utils/errorParsing.d.ts +7 -0
  433. package/dist/src/ui/utils/errorParsing.js +90 -0
  434. package/dist/src/ui/utils/errorParsing.js.map +1 -0
  435. package/dist/src/ui/utils/formatters.d.ts +13 -0
  436. package/dist/src/ui/utils/formatters.js +56 -0
  437. package/dist/src/ui/utils/formatters.js.map +1 -0
  438. package/dist/src/ui/utils/markdownUtilities.d.ts +6 -0
  439. package/dist/src/ui/utils/markdownUtilities.js +110 -0
  440. package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
  441. package/dist/src/ui/utils/textUtils.d.ts +22 -0
  442. package/dist/src/ui/utils/textUtils.js +58 -0
  443. package/dist/src/ui/utils/textUtils.js.map +1 -0
  444. package/dist/src/ui/utils/updateCheck.d.ts +6 -0
  445. package/dist/src/ui/utils/updateCheck.js +40 -0
  446. package/dist/src/ui/utils/updateCheck.js.map +1 -0
  447. package/dist/src/utils/cleanup.d.ts +8 -0
  448. package/dist/src/utils/cleanup.js +34 -0
  449. package/dist/src/utils/cleanup.js.map +1 -0
  450. package/dist/src/utils/package.d.ts +12 -0
  451. package/dist/src/utils/package.js +24 -0
  452. package/dist/src/utils/package.js.map +1 -0
  453. package/dist/src/utils/readStdin.d.ts +6 -0
  454. package/dist/src/utils/readStdin.js +34 -0
  455. package/dist/src/utils/readStdin.js.map +1 -0
  456. package/dist/src/utils/sandbox-macos-permissive-closed.sb +26 -0
  457. package/dist/src/utils/sandbox-macos-permissive-open.sb +19 -0
  458. package/dist/src/utils/sandbox-macos-permissive-proxied.sb +31 -0
  459. package/dist/src/utils/sandbox-macos-restrictive-closed.sb +87 -0
  460. package/dist/src/utils/sandbox-macos-restrictive-open.sb +90 -0
  461. package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +92 -0
  462. package/dist/src/utils/sandbox.d.ts +7 -0
  463. package/dist/src/utils/sandbox.js +680 -0
  464. package/dist/src/utils/sandbox.js.map +1 -0
  465. package/dist/src/utils/startupWarnings.d.ts +6 -0
  466. package/dist/src/utils/startupWarnings.js +40 -0
  467. package/dist/src/utils/startupWarnings.js.map +1 -0
  468. package/dist/src/utils/userStartupWarnings.d.ts +6 -0
  469. package/dist/src/utils/userStartupWarnings.js +54 -0
  470. package/dist/src/utils/userStartupWarnings.js.map +1 -0
  471. package/dist/src/utils/version.d.ts +6 -0
  472. package/dist/src/utils/version.js +11 -0
  473. package/dist/src/utils/version.js.map +1 -0
  474. package/dist/tsconfig.tsbuildinfo +1 -0
  475. package/package.json +79 -0
@@ -0,0 +1,341 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { isValidColor, resolveColor } from './color-utils.js';
7
+ export const lightTheme = {
8
+ type: 'light',
9
+ Background: '#FAFAFA',
10
+ Foreground: '#3C3C43',
11
+ LightBlue: '#89BDCD',
12
+ AccentBlue: '#3B82F6',
13
+ AccentPurple: '#8B5CF6',
14
+ AccentCyan: '#06B6D4',
15
+ AccentGreen: '#3CA84B',
16
+ AccentYellow: '#D5A40A',
17
+ AccentRed: '#DD4C4C',
18
+ Comment: '#008000',
19
+ Gray: '#B7BECC',
20
+ GradientColors: ['#4796E4', '#847ACE', '#C3677F'],
21
+ };
22
+ export const darkTheme = {
23
+ type: 'dark',
24
+ Background: '#1E1E2E',
25
+ Foreground: '#CDD6F4',
26
+ LightBlue: '#ADD8E6',
27
+ AccentBlue: '#89B4FA',
28
+ AccentPurple: '#CBA6F7',
29
+ AccentCyan: '#89DCEB',
30
+ AccentGreen: '#A6E3A1',
31
+ AccentYellow: '#F9E2AF',
32
+ AccentRed: '#F38BA8',
33
+ Comment: '#6C7086',
34
+ Gray: '#6C7086',
35
+ GradientColors: ['#4796E4', '#847ACE', '#C3677F'],
36
+ };
37
+ export const ansiTheme = {
38
+ type: 'ansi',
39
+ Background: 'black',
40
+ Foreground: 'white',
41
+ LightBlue: 'blue',
42
+ AccentBlue: 'blue',
43
+ AccentPurple: 'magenta',
44
+ AccentCyan: 'cyan',
45
+ AccentGreen: 'green',
46
+ AccentYellow: 'yellow',
47
+ AccentRed: 'red',
48
+ Comment: 'gray',
49
+ Gray: 'gray',
50
+ };
51
+ export class Theme {
52
+ name;
53
+ type;
54
+ colors;
55
+ /**
56
+ * The default foreground color for text when no specific highlight rule applies.
57
+ * This is an Ink-compatible color string (hex or name).
58
+ */
59
+ defaultColor;
60
+ /**
61
+ * Stores the mapping from highlight.js class names (e.g., 'hljs-keyword')
62
+ * to Ink-compatible color strings (hex or name).
63
+ */
64
+ _colorMap;
65
+ /**
66
+ * Creates a new Theme instance.
67
+ * @param name The name of the theme.
68
+ * @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
69
+ */
70
+ constructor(name, type, rawMappings, colors) {
71
+ this.name = name;
72
+ this.type = type;
73
+ this.colors = colors;
74
+ this._colorMap = Object.freeze(this._buildColorMap(rawMappings)); // Build and freeze the map
75
+ // Determine the default foreground color
76
+ const rawDefaultColor = rawMappings['hljs']?.color;
77
+ this.defaultColor =
78
+ (rawDefaultColor ? Theme._resolveColor(rawDefaultColor) : undefined) ??
79
+ ''; // Default to empty string if not found or resolvable
80
+ }
81
+ /**
82
+ * Gets the Ink-compatible color string for a given highlight.js class name.
83
+ * @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string').
84
+ * @returns The corresponding Ink color string (hex or name) if it exists.
85
+ */
86
+ getInkColor(hljsClass) {
87
+ return this._colorMap[hljsClass];
88
+ }
89
+ /**
90
+ * Resolves a CSS color value (name or hex) into an Ink-compatible color string.
91
+ * @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
92
+ * @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
93
+ */
94
+ static _resolveColor(colorValue) {
95
+ return resolveColor(colorValue);
96
+ }
97
+ /**
98
+ * Builds the internal map from highlight.js class names to Ink-compatible color strings.
99
+ * This method is protected and primarily intended for use by the constructor.
100
+ * @param hljsTheme The raw CSSProperties mappings from a react-syntax-highlighter theme object.
101
+ * @returns An Ink-compatible theme map (Record<string, string>).
102
+ */
103
+ _buildColorMap(hljsTheme) {
104
+ const inkTheme = {};
105
+ for (const key in hljsTheme) {
106
+ // Ensure the key starts with 'hljs-' or is 'hljs' for the base style
107
+ if (!key.startsWith('hljs-') && key !== 'hljs') {
108
+ continue; // Skip keys not related to highlighting classes
109
+ }
110
+ const style = hljsTheme[key];
111
+ if (style?.color) {
112
+ const resolvedColor = Theme._resolveColor(style.color);
113
+ if (resolvedColor !== undefined) {
114
+ // Use the original key from the hljsTheme (e.g., 'hljs-keyword')
115
+ inkTheme[key] = resolvedColor;
116
+ }
117
+ // If color is not resolvable, it's omitted from the map,
118
+ // this enables falling back to the default foreground color.
119
+ }
120
+ // We currently only care about the 'color' property for Ink rendering.
121
+ // Other properties like background, fontStyle, etc., are ignored.
122
+ }
123
+ return inkTheme;
124
+ }
125
+ }
126
+ /**
127
+ * Creates a Theme instance from a custom theme configuration.
128
+ * @param customTheme The custom theme configuration.
129
+ * @returns A new Theme instance.
130
+ */
131
+ export function createCustomTheme(customTheme) {
132
+ // Generate CSS properties mappings based on the custom theme colors
133
+ const rawMappings = {
134
+ hljs: {
135
+ display: 'block',
136
+ overflowX: 'auto',
137
+ padding: '0.5em',
138
+ background: customTheme.Background,
139
+ color: customTheme.Foreground,
140
+ },
141
+ 'hljs-keyword': {
142
+ color: customTheme.AccentBlue,
143
+ },
144
+ 'hljs-literal': {
145
+ color: customTheme.AccentBlue,
146
+ },
147
+ 'hljs-symbol': {
148
+ color: customTheme.AccentBlue,
149
+ },
150
+ 'hljs-name': {
151
+ color: customTheme.AccentBlue,
152
+ },
153
+ 'hljs-link': {
154
+ color: customTheme.AccentBlue,
155
+ textDecoration: 'underline',
156
+ },
157
+ 'hljs-built_in': {
158
+ color: customTheme.AccentCyan,
159
+ },
160
+ 'hljs-type': {
161
+ color: customTheme.AccentCyan,
162
+ },
163
+ 'hljs-number': {
164
+ color: customTheme.AccentGreen,
165
+ },
166
+ 'hljs-class': {
167
+ color: customTheme.AccentGreen,
168
+ },
169
+ 'hljs-string': {
170
+ color: customTheme.AccentYellow,
171
+ },
172
+ 'hljs-meta-string': {
173
+ color: customTheme.AccentYellow,
174
+ },
175
+ 'hljs-regexp': {
176
+ color: customTheme.AccentRed,
177
+ },
178
+ 'hljs-template-tag': {
179
+ color: customTheme.AccentRed,
180
+ },
181
+ 'hljs-subst': {
182
+ color: customTheme.Foreground,
183
+ },
184
+ 'hljs-function': {
185
+ color: customTheme.Foreground,
186
+ },
187
+ 'hljs-title': {
188
+ color: customTheme.Foreground,
189
+ },
190
+ 'hljs-params': {
191
+ color: customTheme.Foreground,
192
+ },
193
+ 'hljs-formula': {
194
+ color: customTheme.Foreground,
195
+ },
196
+ 'hljs-comment': {
197
+ color: customTheme.Comment,
198
+ fontStyle: 'italic',
199
+ },
200
+ 'hljs-quote': {
201
+ color: customTheme.Comment,
202
+ fontStyle: 'italic',
203
+ },
204
+ 'hljs-doctag': {
205
+ color: customTheme.Comment,
206
+ },
207
+ 'hljs-meta': {
208
+ color: customTheme.Gray,
209
+ },
210
+ 'hljs-meta-keyword': {
211
+ color: customTheme.Gray,
212
+ },
213
+ 'hljs-tag': {
214
+ color: customTheme.Gray,
215
+ },
216
+ 'hljs-variable': {
217
+ color: customTheme.AccentPurple,
218
+ },
219
+ 'hljs-template-variable': {
220
+ color: customTheme.AccentPurple,
221
+ },
222
+ 'hljs-attr': {
223
+ color: customTheme.LightBlue,
224
+ },
225
+ 'hljs-attribute': {
226
+ color: customTheme.LightBlue,
227
+ },
228
+ 'hljs-builtin-name': {
229
+ color: customTheme.LightBlue,
230
+ },
231
+ 'hljs-section': {
232
+ color: customTheme.AccentYellow,
233
+ },
234
+ 'hljs-emphasis': {
235
+ fontStyle: 'italic',
236
+ },
237
+ 'hljs-strong': {
238
+ fontWeight: 'bold',
239
+ },
240
+ 'hljs-bullet': {
241
+ color: customTheme.AccentYellow,
242
+ },
243
+ 'hljs-selector-tag': {
244
+ color: customTheme.AccentYellow,
245
+ },
246
+ 'hljs-selector-id': {
247
+ color: customTheme.AccentYellow,
248
+ },
249
+ 'hljs-selector-class': {
250
+ color: customTheme.AccentYellow,
251
+ },
252
+ 'hljs-selector-attr': {
253
+ color: customTheme.AccentYellow,
254
+ },
255
+ 'hljs-selector-pseudo': {
256
+ color: customTheme.AccentYellow,
257
+ },
258
+ 'hljs-addition': {
259
+ backgroundColor: customTheme.AccentGreen,
260
+ display: 'inline-block',
261
+ width: '100%',
262
+ },
263
+ 'hljs-deletion': {
264
+ backgroundColor: customTheme.AccentRed,
265
+ display: 'inline-block',
266
+ width: '100%',
267
+ },
268
+ };
269
+ return new Theme(customTheme.name, 'custom', rawMappings, customTheme);
270
+ }
271
+ /**
272
+ * Validates a custom theme configuration.
273
+ * @param customTheme The custom theme to validate.
274
+ * @returns An object with isValid boolean and error message if invalid.
275
+ */
276
+ export function validateCustomTheme(customTheme) {
277
+ // Check required fields
278
+ const requiredFields = [
279
+ 'name',
280
+ 'Background',
281
+ 'Foreground',
282
+ 'LightBlue',
283
+ 'AccentBlue',
284
+ 'AccentPurple',
285
+ 'AccentCyan',
286
+ 'AccentGreen',
287
+ 'AccentYellow',
288
+ 'AccentRed',
289
+ 'Comment',
290
+ 'Gray',
291
+ ];
292
+ for (const field of requiredFields) {
293
+ if (!customTheme[field]) {
294
+ return {
295
+ isValid: false,
296
+ error: `Missing required field: ${field}`,
297
+ };
298
+ }
299
+ }
300
+ // Validate color format (basic hex validation)
301
+ const colorFields = [
302
+ 'Background',
303
+ 'Foreground',
304
+ 'LightBlue',
305
+ 'AccentBlue',
306
+ 'AccentPurple',
307
+ 'AccentCyan',
308
+ 'AccentGreen',
309
+ 'AccentYellow',
310
+ 'AccentRed',
311
+ 'Comment',
312
+ 'Gray',
313
+ ];
314
+ for (const field of colorFields) {
315
+ const color = customTheme[field];
316
+ if (!isValidColor(color)) {
317
+ return {
318
+ isValid: false,
319
+ error: `Invalid color format for ${field}: ${color}`,
320
+ };
321
+ }
322
+ }
323
+ // Validate theme name
324
+ if (customTheme.name && !isValidThemeName(customTheme.name)) {
325
+ return {
326
+ isValid: false,
327
+ error: `Invalid theme name: ${customTheme.name}`,
328
+ };
329
+ }
330
+ return { isValid: true };
331
+ }
332
+ /**
333
+ * Checks if a theme name is valid.
334
+ * @param name The theme name to validate.
335
+ * @returns True if the theme name is valid.
336
+ */
337
+ function isValidThemeName(name) {
338
+ // Theme name should be non-empty and not contain invalid characters
339
+ return name.trim().length > 0 && name.trim().length <= 50;
340
+ }
341
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/ui/themes/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAyB9D,MAAM,CAAC,MAAM,UAAU,GAAgB;IACrC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,SAAS;IACvB,UAAU,EA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AAC,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,4BAA4B,KAAK,KAAK,KAAK,EAAE;aACrD,CAAC;QACJ,CAAC;IACH,CAAC;IAED,sBAAsB;IACtB,IAAI,WAAW,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5D,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,uBAAuB,WAAW,CAAC,IAAI,EAAE;SACjD,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC3B,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CAAC,IAAY;IACpC,oEAAoE;IACpE,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,IAAI,EAAE,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { Theme } from './theme.js';
7
+ export declare const XCode: Theme;
@@ -0,0 +1,143 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { Theme } from './theme.js';
7
+ const xcodeColors = {
8
+ type: 'light',
9
+ Background: '#fff',
10
+ Foreground: '#444',
11
+ LightBlue: '#0E0EFF',
12
+ AccentBlue: '#1c00cf',
13
+ AccentPurple: '#aa0d91',
14
+ AccentCyan: '#3F6E74',
15
+ AccentGreen: '#007400',
16
+ AccentYellow: '#836C28',
17
+ AccentRed: '#c41a16',
18
+ Comment: '#007400',
19
+ Gray: '#c0c0c0',
20
+ GradientColors: ['#1c00cf', '#007400'],
21
+ };
22
+ export const XCode = new Theme('Xcode', 'light', {
23
+ hljs: {
24
+ display: 'block',
25
+ overflowX: 'auto',
26
+ padding: '0.5em',
27
+ background: xcodeColors.Background,
28
+ color: xcodeColors.Foreground,
29
+ },
30
+ 'xml .hljs-meta': {
31
+ color: xcodeColors.Gray,
32
+ },
33
+ 'hljs-comment': {
34
+ color: xcodeColors.Comment,
35
+ },
36
+ 'hljs-quote': {
37
+ color: xcodeColors.Comment,
38
+ },
39
+ 'hljs-tag': {
40
+ color: xcodeColors.AccentPurple,
41
+ },
42
+ 'hljs-attribute': {
43
+ color: xcodeColors.AccentPurple,
44
+ },
45
+ 'hljs-keyword': {
46
+ color: xcodeColors.AccentPurple,
47
+ },
48
+ 'hljs-selector-tag': {
49
+ color: xcodeColors.AccentPurple,
50
+ },
51
+ 'hljs-literal': {
52
+ color: xcodeColors.AccentPurple,
53
+ },
54
+ 'hljs-name': {
55
+ color: xcodeColors.AccentPurple,
56
+ },
57
+ 'hljs-variable': {
58
+ color: xcodeColors.AccentCyan,
59
+ },
60
+ 'hljs-template-variable': {
61
+ color: xcodeColors.AccentCyan,
62
+ },
63
+ 'hljs-code': {
64
+ color: xcodeColors.AccentRed,
65
+ },
66
+ 'hljs-string': {
67
+ color: xcodeColors.AccentRed,
68
+ },
69
+ 'hljs-meta-string': {
70
+ color: xcodeColors.AccentRed,
71
+ },
72
+ 'hljs-regexp': {
73
+ color: xcodeColors.LightBlue,
74
+ },
75
+ 'hljs-link': {
76
+ color: xcodeColors.LightBlue,
77
+ },
78
+ 'hljs-title': {
79
+ color: xcodeColors.AccentBlue,
80
+ },
81
+ 'hljs-symbol': {
82
+ color: xcodeColors.AccentBlue,
83
+ },
84
+ 'hljs-bullet': {
85
+ color: xcodeColors.AccentBlue,
86
+ },
87
+ 'hljs-number': {
88
+ color: xcodeColors.AccentBlue,
89
+ },
90
+ 'hljs-section': {
91
+ color: xcodeColors.AccentYellow,
92
+ },
93
+ 'hljs-meta': {
94
+ color: xcodeColors.AccentYellow,
95
+ },
96
+ 'hljs-class .hljs-title': {
97
+ color: xcodeColors.AccentPurple,
98
+ },
99
+ 'hljs-type': {
100
+ color: xcodeColors.AccentPurple,
101
+ },
102
+ 'hljs-built_in': {
103
+ color: xcodeColors.AccentPurple,
104
+ },
105
+ 'hljs-builtin-name': {
106
+ color: xcodeColors.AccentPurple,
107
+ },
108
+ 'hljs-params': {
109
+ color: xcodeColors.AccentPurple,
110
+ },
111
+ 'hljs-attr': {
112
+ color: xcodeColors.AccentYellow,
113
+ },
114
+ 'hljs-subst': {
115
+ color: xcodeColors.Foreground,
116
+ },
117
+ 'hljs-formula': {
118
+ backgroundColor: '#eee',
119
+ fontStyle: 'italic',
120
+ },
121
+ 'hljs-addition': {
122
+ backgroundColor: '#baeeba',
123
+ },
124
+ 'hljs-deletion': {
125
+ backgroundColor: '#ffc8bd',
126
+ },
127
+ 'hljs-selector-id': {
128
+ color: xcodeColors.AccentYellow,
129
+ },
130
+ 'hljs-selector-class': {
131
+ color: xcodeColors.AccentYellow,
132
+ },
133
+ 'hljs-doctag': {
134
+ fontWeight: 'bold',
135
+ },
136
+ 'hljs-strong': {
137
+ fontWeight: 'bold',
138
+ },
139
+ 'hljs-emphasis': {
140
+ fontStyle: 'italic',
141
+ },
142
+ }, xcodeColors);
143
+ //# sourceMappingURL=xcode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xcode.js","sourceRoot":"","sources":["../../../../src/ui/themes/xcode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAoB,KAAK,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,WAAW,GAAgB;IAC/B,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,SAAS;IAClB,IA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;CACF,EACD,WAAW,CACZ,CAAC"}
@@ -0,0 +1,180 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { ToolCallConfirmationDetails, ToolResultDisplay } from '@google/gemini-cli-core';
7
+ export declare enum StreamingState {
8
+ Idle = "idle",
9
+ Responding = "responding",
10
+ WaitingForConfirmation = "waiting_for_confirmation"
11
+ }
12
+ export declare enum GeminiEventType {
13
+ Content = "content",
14
+ ToolCallRequest = "tool_call_request"
15
+ }
16
+ export declare enum ToolCallStatus {
17
+ Pending = "Pending",
18
+ Canceled = "Canceled",
19
+ Confirming = "Confirming",
20
+ Executing = "Executing",
21
+ Success = "Success",
22
+ Error = "Error"
23
+ }
24
+ export interface ToolCallEvent {
25
+ type: 'tool_call';
26
+ status: ToolCallStatus;
27
+ callId: string;
28
+ name: string;
29
+ args: Record<string, never>;
30
+ resultDisplay: ToolResultDisplay | undefined;
31
+ confirmationDetails: ToolCallConfirmationDetails | undefined;
32
+ }
33
+ export interface IndividualToolCallDisplay {
34
+ callId: string;
35
+ name: string;
36
+ description: string;
37
+ resultDisplay: ToolResultDisplay | undefined;
38
+ status: ToolCallStatus;
39
+ confirmationDetails: ToolCallConfirmationDetails | undefined;
40
+ renderOutputAsMarkdown?: boolean;
41
+ }
42
+ export interface CompressionProps {
43
+ isPending: boolean;
44
+ originalTokenCount: number | null;
45
+ newTokenCount: number | null;
46
+ }
47
+ export interface HistoryItemBase {
48
+ text?: string;
49
+ }
50
+ export type HistoryItemUser = HistoryItemBase & {
51
+ type: 'user';
52
+ text: string;
53
+ };
54
+ export type HistoryItemGemini = HistoryItemBase & {
55
+ type: 'gemini';
56
+ text: string;
57
+ };
58
+ export type HistoryItemGeminiContent = HistoryItemBase & {
59
+ type: 'gemini_content';
60
+ text: string;
61
+ };
62
+ export type HistoryItemInfo = HistoryItemBase & {
63
+ type: 'info';
64
+ text: string;
65
+ };
66
+ export type HistoryItemError = HistoryItemBase & {
67
+ type: 'error';
68
+ text: string;
69
+ };
70
+ export type HistoryItemAbout = HistoryItemBase & {
71
+ type: 'about';
72
+ cliVersion: string;
73
+ osVersion: string;
74
+ sandboxEnv: string;
75
+ modelVersion: string;
76
+ selectedAuthType: string;
77
+ gcpProject: string;
78
+ };
79
+ export type HistoryItemStats = HistoryItemBase & {
80
+ type: 'stats';
81
+ duration: string;
82
+ };
83
+ export type HistoryItemModelStats = HistoryItemBase & {
84
+ type: 'model_stats';
85
+ };
86
+ export type HistoryItemToolStats = HistoryItemBase & {
87
+ type: 'tool_stats';
88
+ };
89
+ export type HistoryItemQuit = HistoryItemBase & {
90
+ type: 'quit';
91
+ duration: string;
92
+ };
93
+ export type HistoryItemToolGroup = HistoryItemBase & {
94
+ type: 'tool_group';
95
+ tools: IndividualToolCallDisplay[];
96
+ };
97
+ export type HistoryItemUserShell = HistoryItemBase & {
98
+ type: 'user_shell';
99
+ text: string;
100
+ };
101
+ export type HistoryItemCompression = HistoryItemBase & {
102
+ type: 'compression';
103
+ compression: CompressionProps;
104
+ };
105
+ export type HistoryItemWithoutId = HistoryItemUser | HistoryItemUserShell | HistoryItemGemini | HistoryItemGeminiContent | HistoryItemInfo | HistoryItemError | HistoryItemAbout | HistoryItemToolGroup | HistoryItemStats | HistoryItemModelStats | HistoryItemToolStats | HistoryItemQuit | HistoryItemCompression;
106
+ export type HistoryItem = HistoryItemWithoutId & {
107
+ id: number;
108
+ };
109
+ export declare enum MessageType {
110
+ INFO = "info",
111
+ ERROR = "error",
112
+ USER = "user",
113
+ ABOUT = "about",
114
+ STATS = "stats",
115
+ MODEL_STATS = "model_stats",
116
+ TOOL_STATS = "tool_stats",
117
+ QUIT = "quit",
118
+ GEMINI = "gemini",
119
+ COMPRESSION = "compression"
120
+ }
121
+ export type Message = {
122
+ type: MessageType.INFO | MessageType.ERROR | MessageType.USER;
123
+ content: string;
124
+ timestamp: Date;
125
+ } | {
126
+ type: MessageType.ABOUT;
127
+ timestamp: Date;
128
+ cliVersion: string;
129
+ osVersion: string;
130
+ sandboxEnv: string;
131
+ modelVersion: string;
132
+ selectedAuthType: string;
133
+ gcpProject: string;
134
+ content?: string;
135
+ } | {
136
+ type: MessageType.STATS;
137
+ timestamp: Date;
138
+ duration: string;
139
+ content?: string;
140
+ } | {
141
+ type: MessageType.MODEL_STATS;
142
+ timestamp: Date;
143
+ content?: string;
144
+ } | {
145
+ type: MessageType.TOOL_STATS;
146
+ timestamp: Date;
147
+ content?: string;
148
+ } | {
149
+ type: MessageType.QUIT;
150
+ timestamp: Date;
151
+ duration: string;
152
+ content?: string;
153
+ } | {
154
+ type: MessageType.COMPRESSION;
155
+ compression: CompressionProps;
156
+ timestamp: Date;
157
+ };
158
+ export interface ConsoleMessageItem {
159
+ type: 'log' | 'warn' | 'error' | 'debug';
160
+ content: string;
161
+ count: number;
162
+ }
163
+ /**
164
+ * Result type for a slash command that should immediately result in a prompt
165
+ * being submitted to the Gemini model.
166
+ */
167
+ export interface SubmitPromptResult {
168
+ type: 'submit_prompt';
169
+ content: string;
170
+ }
171
+ /**
172
+ * Defines the result of the slash command processor for its consumer (useGeminiStream).
173
+ */
174
+ export type SlashCommandProcessorResult = {
175
+ type: 'schedule_tool';
176
+ toolName: string;
177
+ toolArgs: Record<string, unknown>;
178
+ } | {
179
+ type: 'handled';
180
+ } | SubmitPromptResult;