@google/gemini-cli 0.1.0-development.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +156 -0
  3. package/dist/.last_build +0 -0
  4. package/dist/index.d.ts +7 -0
  5. package/dist/index.js +20 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/package.json +80 -0
  8. package/dist/src/config/auth.d.ts +6 -0
  9. package/dist/src/config/auth.js +33 -0
  10. package/dist/src/config/auth.js.map +1 -0
  11. package/dist/src/config/config.d.ts +13 -0
  12. package/dist/src/config/config.js +211 -0
  13. package/dist/src/config/config.js.map +1 -0
  14. package/dist/src/config/extension.d.ts +20 -0
  15. package/dist/src/config/extension.js +81 -0
  16. package/dist/src/config/extension.js.map +1 -0
  17. package/dist/src/config/sandboxConfig.d.ts +13 -0
  18. package/dist/src/config/sandboxConfig.js +75 -0
  19. package/dist/src/config/sandboxConfig.js.map +1 -0
  20. package/dist/src/config/settings.d.ts +72 -0
  21. package/dist/src/config/settings.js +227 -0
  22. package/dist/src/config/settings.js.map +1 -0
  23. package/dist/src/gemini.d.ts +6 -0
  24. package/dist/src/gemini.js +216 -0
  25. package/dist/src/gemini.js.map +1 -0
  26. package/dist/src/generated/git-commit.d.ts +6 -0
  27. package/dist/src/generated/git-commit.js +9 -0
  28. package/dist/src/generated/git-commit.js.map +1 -0
  29. package/dist/src/nonInteractiveCli.d.ts +7 -0
  30. package/dist/src/nonInteractiveCli.js +115 -0
  31. package/dist/src/nonInteractiveCli.js.map +1 -0
  32. package/dist/src/services/CommandService.d.ts +13 -0
  33. package/dist/src/services/CommandService.js +30 -0
  34. package/dist/src/services/CommandService.js.map +1 -0
  35. package/dist/src/ui/App.d.ts +14 -0
  36. package/dist/src/ui/App.js +391 -0
  37. package/dist/src/ui/App.js.map +1 -0
  38. package/dist/src/ui/colors.d.ts +7 -0
  39. package/dist/src/ui/colors.js +48 -0
  40. package/dist/src/ui/colors.js.map +1 -0
  41. package/dist/src/ui/commands/clearCommand.d.ts +7 -0
  42. package/dist/src/ui/commands/clearCommand.js +15 -0
  43. package/dist/src/ui/commands/clearCommand.js.map +1 -0
  44. package/dist/src/ui/commands/helpCommand.d.ts +7 -0
  45. package/dist/src/ui/commands/helpCommand.js +18 -0
  46. package/dist/src/ui/commands/helpCommand.js.map +1 -0
  47. package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
  48. package/dist/src/ui/commands/memoryCommand.js +81 -0
  49. package/dist/src/ui/commands/memoryCommand.js.map +1 -0
  50. package/dist/src/ui/commands/types.d.ts +63 -0
  51. package/dist/src/ui/commands/types.js +7 -0
  52. package/dist/src/ui/commands/types.js.map +1 -0
  53. package/dist/src/ui/components/AboutBox.d.ts +16 -0
  54. package/dist/src/ui/components/AboutBox.js +6 -0
  55. package/dist/src/ui/components/AboutBox.js.map +1 -0
  56. package/dist/src/ui/components/AsciiArt.d.ts +7 -0
  57. package/dist/src/ui/components/AsciiArt.js +26 -0
  58. package/dist/src/ui/components/AsciiArt.js.map +1 -0
  59. package/dist/src/ui/components/AuthDialog.d.ts +15 -0
  60. package/dist/src/ui/components/AuthDialog.js +66 -0
  61. package/dist/src/ui/components/AuthDialog.js.map +1 -0
  62. package/dist/src/ui/components/AuthInProgress.d.ts +11 -0
  63. package/dist/src/ui/components/AuthInProgress.js +27 -0
  64. package/dist/src/ui/components/AuthInProgress.js.map +1 -0
  65. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +12 -0
  66. package/dist/src/ui/components/AutoAcceptIndicator.js +26 -0
  67. package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -0
  68. package/dist/src/ui/components/ConsolePatcher.d.ts +12 -0
  69. package/dist/src/ui/components/ConsolePatcher.js +40 -0
  70. package/dist/src/ui/components/ConsolePatcher.js.map +1 -0
  71. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +11 -0
  72. package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
  73. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
  74. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +15 -0
  75. package/dist/src/ui/components/ContextSummaryDisplay.js +41 -0
  76. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
  77. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +14 -0
  78. package/dist/src/ui/components/DetailedMessagesDisplay.js +34 -0
  79. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
  80. package/dist/src/ui/components/EditorSettingsDialog.d.ts +15 -0
  81. package/dist/src/ui/components/EditorSettingsDialog.js +73 -0
  82. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
  83. package/dist/src/ui/components/Footer.d.ts +20 -0
  84. package/dist/src/ui/components/Footer.js +13 -0
  85. package/dist/src/ui/components/Footer.js.map +1 -0
  86. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +17 -0
  87. package/dist/src/ui/components/GeminiRespondingSpinner.js +16 -0
  88. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
  89. package/dist/src/ui/components/Header.d.ts +12 -0
  90. package/dist/src/ui/components/Header.js +20 -0
  91. package/dist/src/ui/components/Header.js.map +1 -0
  92. package/dist/src/ui/components/Help.d.ts +12 -0
  93. package/dist/src/ui/components/Help.js +10 -0
  94. package/dist/src/ui/components/Help.js.map +1 -0
  95. package/dist/src/ui/components/HistoryItemDisplay.d.ts +18 -0
  96. package/dist/src/ui/components/HistoryItemDisplay.js +17 -0
  97. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
  98. package/dist/src/ui/components/InputPrompt.d.ts +25 -0
  99. package/dist/src/ui/components/InputPrompt.js +280 -0
  100. package/dist/src/ui/components/InputPrompt.js.map +1 -0
  101. package/dist/src/ui/components/LoadingIndicator.d.ts +15 -0
  102. package/dist/src/ui/components/LoadingIndicator.js +19 -0
  103. package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
  104. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +7 -0
  105. package/dist/src/ui/components/MemoryUsageDisplay.js +27 -0
  106. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
  107. package/dist/src/ui/components/ModelStatsDisplay.d.ts +7 -0
  108. package/dist/src/ui/components/ModelStatsDisplay.js +33 -0
  109. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
  110. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +11 -0
  111. package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
  112. package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
  113. package/dist/src/ui/components/ShellModeIndicator.d.ts +7 -0
  114. package/dist/src/ui/components/ShellModeIndicator.js +5 -0
  115. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
  116. package/dist/src/ui/components/ShowMoreLines.d.ts +10 -0
  117. package/dist/src/ui/components/ShowMoreLines.js +24 -0
  118. package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
  119. package/dist/src/ui/components/StatsDisplay.d.ts +12 -0
  120. package/dist/src/ui/components/StatsDisplay.js +42 -0
  121. package/dist/src/ui/components/StatsDisplay.js.map +1 -0
  122. package/dist/src/ui/components/SuggestionsDisplay.d.ts +21 -0
  123. package/dist/src/ui/components/SuggestionsDisplay.js +32 -0
  124. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
  125. package/dist/src/ui/components/ThemeDialog.d.ts +19 -0
  126. package/dist/src/ui/components/ThemeDialog.js +126 -0
  127. package/dist/src/ui/components/ThemeDialog.js.map +1 -0
  128. package/dist/src/ui/components/Tips.d.ts +12 -0
  129. package/dist/src/ui/components/Tips.js +8 -0
  130. package/dist/src/ui/components/Tips.js.map +1 -0
  131. package/dist/src/ui/components/ToolStatsDisplay.d.ts +7 -0
  132. package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
  133. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
  134. package/dist/src/ui/components/UpdateNotification.d.ts +10 -0
  135. package/dist/src/ui/components/UpdateNotification.js +10 -0
  136. package/dist/src/ui/components/UpdateNotification.js.map +1 -0
  137. package/dist/src/ui/components/messages/CompressionMessage.d.ts +11 -0
  138. package/dist/src/ui/components/messages/CompressionMessage.js +16 -0
  139. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
  140. package/dist/src/ui/components/messages/DiffRenderer.d.ts +15 -0
  141. package/dist/src/ui/components/messages/DiffRenderer.js +212 -0
  142. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
  143. package/dist/src/ui/components/messages/ErrorMessage.d.ts +11 -0
  144. package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
  145. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
  146. package/dist/src/ui/components/messages/GeminiMessage.d.ts +14 -0
  147. package/dist/src/ui/components/messages/GeminiMessage.js +10 -0
  148. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
  149. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +14 -0
  150. package/dist/src/ui/components/messages/GeminiMessageContent.js +15 -0
  151. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
  152. package/dist/src/ui/components/messages/InfoMessage.d.ts +11 -0
  153. package/dist/src/ui/components/messages/InfoMessage.js +9 -0
  154. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
  155. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +15 -0
  156. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +111 -0
  157. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
  158. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +18 -0
  159. package/dist/src/ui/components/messages/ToolGroupMessage.js +53 -0
  160. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
  161. package/dist/src/ui/components/messages/ToolMessage.d.ts +15 -0
  162. package/dist/src/ui/components/messages/ToolMessage.js +61 -0
  163. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
  164. package/dist/src/ui/components/messages/UserMessage.d.ts +11 -0
  165. package/dist/src/ui/components/messages/UserMessage.js +9 -0
  166. package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
  167. package/dist/src/ui/components/messages/UserShellMessage.d.ts +11 -0
  168. package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
  169. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
  170. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +61 -0
  171. package/dist/src/ui/components/shared/MaxSizedBox.js +384 -0
  172. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
  173. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +41 -0
  174. package/dist/src/ui/components/shared/RadioButtonSelect.js +52 -0
  175. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
  176. package/dist/src/ui/components/shared/text-buffer.d.ts +184 -0
  177. package/dist/src/ui/components/shared/text-buffer.js +1010 -0
  178. package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
  179. package/dist/src/ui/constants.d.ts +8 -0
  180. package/dist/src/ui/constants.js +12 -0
  181. package/dist/src/ui/constants.js.map +1 -0
  182. package/dist/src/ui/contexts/OverflowContext.d.ts +19 -0
  183. package/dist/src/ui/contexts/OverflowContext.js +43 -0
  184. package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
  185. package/dist/src/ui/contexts/SessionContext.d.ts +33 -0
  186. package/dist/src/ui/contexts/SessionContext.js +49 -0
  187. package/dist/src/ui/contexts/SessionContext.js.map +1 -0
  188. package/dist/src/ui/contexts/StreamingContext.d.ts +9 -0
  189. package/dist/src/ui/contexts/StreamingContext.js +15 -0
  190. package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
  191. package/dist/src/ui/editors/editorSettingsManager.d.ts +19 -0
  192. package/dist/src/ui/editors/editorSettingsManager.js +54 -0
  193. package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
  194. package/dist/src/ui/hooks/atCommandProcessor.d.ts +31 -0
  195. package/dist/src/ui/hooks/atCommandProcessor.js +310 -0
  196. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
  197. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +16 -0
  198. package/dist/src/ui/hooks/shellCommandProcessor.js +261 -0
  199. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
  200. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +27 -0
  201. package/dist/src/ui/hooks/slashCommandProcessor.js +1050 -0
  202. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
  203. package/dist/src/ui/hooks/useAuthCommand.d.ts +14 -0
  204. package/dist/src/ui/hooks/useAuthCommand.js +54 -0
  205. package/dist/src/ui/hooks/useAuthCommand.js.map +1 -0
  206. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +10 -0
  207. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +37 -0
  208. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -0
  209. package/dist/src/ui/hooks/useBracketedPaste.d.ts +12 -0
  210. package/dist/src/ui/hooks/useBracketedPaste.js +32 -0
  211. package/dist/src/ui/hooks/useBracketedPaste.js.map +1 -0
  212. package/dist/src/ui/hooks/useCompletion.d.ts +21 -0
  213. package/dist/src/ui/hooks/useCompletion.js +372 -0
  214. package/dist/src/ui/hooks/useCompletion.js.map +1 -0
  215. package/dist/src/ui/hooks/useConsoleMessages.d.ts +12 -0
  216. package/dist/src/ui/hooks/useConsoleMessages.js +60 -0
  217. package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
  218. package/dist/src/ui/hooks/useEditorSettings.d.ts +16 -0
  219. package/dist/src/ui/hooks/useEditorSettings.js +43 -0
  220. package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
  221. package/dist/src/ui/hooks/useGeminiStream.d.ts +23 -0
  222. package/dist/src/ui/hooks/useGeminiStream.js +518 -0
  223. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
  224. package/dist/src/ui/hooks/useGitBranchName.d.ts +6 -0
  225. package/dist/src/ui/hooks/useGitBranchName.js +61 -0
  226. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
  227. package/dist/src/ui/hooks/useHistoryManager.d.ts +22 -0
  228. package/dist/src/ui/hooks/useHistoryManager.js +72 -0
  229. package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
  230. package/dist/src/ui/hooks/useInputHistory.d.ts +19 -0
  231. package/dist/src/ui/hooks/useInputHistory.js +84 -0
  232. package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
  233. package/dist/src/ui/hooks/useKeypress.d.ts +29 -0
  234. package/dist/src/ui/hooks/useKeypress.js +86 -0
  235. package/dist/src/ui/hooks/useKeypress.js.map +1 -0
  236. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +10 -0
  237. package/dist/src/ui/hooks/useLoadingIndicator.js +44 -0
  238. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
  239. package/dist/src/ui/hooks/useLogger.d.ts +10 -0
  240. package/dist/src/ui/hooks/useLogger.js +29 -0
  241. package/dist/src/ui/hooks/useLogger.js.map +1 -0
  242. package/dist/src/ui/hooks/usePhraseCycler.d.ts +14 -0
  243. package/dist/src/ui/hooks/usePhraseCycler.js +189 -0
  244. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
  245. package/dist/src/ui/hooks/usePrivacySettings.d.ts +16 -0
  246. package/dist/src/ui/hooks/usePrivacySettings.js +115 -0
  247. package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
  248. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +33 -0
  249. package/dist/src/ui/hooks/useReactToolScheduler.js +186 -0
  250. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
  251. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +6 -0
  252. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +7 -0
  253. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
  254. package/dist/src/ui/hooks/useShellHistory.d.ts +11 -0
  255. package/dist/src/ui/hooks/useShellHistory.js +89 -0
  256. package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
  257. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +9 -0
  258. package/dist/src/ui/hooks/useShowMemoryCommand.js +58 -0
  259. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
  260. package/dist/src/ui/hooks/useStateAndRef.d.ts +7 -0
  261. package/dist/src/ui/hooks/useStateAndRef.js +26 -0
  262. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
  263. package/dist/src/ui/hooks/useTerminalSize.d.ts +9 -0
  264. package/dist/src/ui/hooks/useTerminalSize.js +27 -0
  265. package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
  266. package/dist/src/ui/hooks/useThemeCommand.d.ts +15 -0
  267. package/dist/src/ui/hooks/useThemeCommand.js +78 -0
  268. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
  269. package/dist/src/ui/hooks/useTimer.d.ts +12 -0
  270. package/dist/src/ui/hooks/useTimer.js +58 -0
  271. package/dist/src/ui/hooks/useTimer.js.map +1 -0
  272. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +12 -0
  273. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +40 -0
  274. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
  275. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +10 -0
  276. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +17 -0
  277. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
  278. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +10 -0
  279. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +17 -0
  280. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
  281. package/dist/src/ui/privacy/PrivacyNotice.d.ts +12 -0
  282. package/dist/src/ui/privacy/PrivacyNotice.js +25 -0
  283. package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
  284. package/dist/src/ui/themes/ansi-light.d.ts +7 -0
  285. package/dist/src/ui/themes/ansi-light.js +139 -0
  286. package/dist/src/ui/themes/ansi-light.js.map +1 -0
  287. package/dist/src/ui/themes/ansi.d.ts +7 -0
  288. package/dist/src/ui/themes/ansi.js +149 -0
  289. package/dist/src/ui/themes/ansi.js.map +1 -0
  290. package/dist/src/ui/themes/atom-one-dark.d.ts +7 -0
  291. package/dist/src/ui/themes/atom-one-dark.js +136 -0
  292. package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
  293. package/dist/src/ui/themes/ayu-light.d.ts +7 -0
  294. package/dist/src/ui/themes/ayu-light.js +128 -0
  295. package/dist/src/ui/themes/ayu-light.js.map +1 -0
  296. package/dist/src/ui/themes/ayu.d.ts +7 -0
  297. package/dist/src/ui/themes/ayu.js +102 -0
  298. package/dist/src/ui/themes/ayu.js.map +1 -0
  299. package/dist/src/ui/themes/default-light.d.ts +7 -0
  300. package/dist/src/ui/themes/default-light.js +100 -0
  301. package/dist/src/ui/themes/default-light.js.map +1 -0
  302. package/dist/src/ui/themes/default.d.ts +7 -0
  303. package/dist/src/ui/themes/default.js +143 -0
  304. package/dist/src/ui/themes/default.js.map +1 -0
  305. package/dist/src/ui/themes/dracula.d.ts +7 -0
  306. package/dist/src/ui/themes/dracula.js +113 -0
  307. package/dist/src/ui/themes/dracula.js.map +1 -0
  308. package/dist/src/ui/themes/github-dark.d.ts +7 -0
  309. package/dist/src/ui/themes/github-dark.js +136 -0
  310. package/dist/src/ui/themes/github-dark.js.map +1 -0
  311. package/dist/src/ui/themes/github-light.d.ts +7 -0
  312. package/dist/src/ui/themes/github-light.js +138 -0
  313. package/dist/src/ui/themes/github-light.js.map +1 -0
  314. package/dist/src/ui/themes/googlecode.d.ts +7 -0
  315. package/dist/src/ui/themes/googlecode.js +135 -0
  316. package/dist/src/ui/themes/googlecode.js.map +1 -0
  317. package/dist/src/ui/themes/no-color.d.ts +7 -0
  318. package/dist/src/ui/themes/no-color.js +84 -0
  319. package/dist/src/ui/themes/no-color.js.map +1 -0
  320. package/dist/src/ui/themes/shades-of-purple.d.ts +11 -0
  321. package/dist/src/ui/themes/shades-of-purple.js +302 -0
  322. package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
  323. package/dist/src/ui/themes/theme-manager.d.ts +33 -0
  324. package/dist/src/ui/themes/theme-manager.js +109 -0
  325. package/dist/src/ui/themes/theme-manager.js.map +1 -0
  326. package/dist/src/ui/themes/theme.d.ts +67 -0
  327. package/dist/src/ui/themes/theme.js +304 -0
  328. package/dist/src/ui/themes/theme.js.map +1 -0
  329. package/dist/src/ui/themes/xcode.d.ts +7 -0
  330. package/dist/src/ui/themes/xcode.js +143 -0
  331. package/dist/src/ui/themes/xcode.js.map +1 -0
  332. package/dist/src/ui/types.d.ts +172 -0
  333. package/dist/src/ui/types.js +43 -0
  334. package/dist/src/ui/types.js.map +1 -0
  335. package/dist/src/ui/utils/CodeColorizer.d.ts +14 -0
  336. package/dist/src/ui/utils/CodeColorizer.js +97 -0
  337. package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
  338. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +16 -0
  339. package/dist/src/ui/utils/InlineMarkdownRenderer.js +104 -0
  340. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
  341. package/dist/src/ui/utils/MarkdownDisplay.d.ts +14 -0
  342. package/dist/src/ui/utils/MarkdownDisplay.js +197 -0
  343. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
  344. package/dist/src/ui/utils/TableRenderer.d.ts +17 -0
  345. package/dist/src/ui/utils/TableRenderer.js +84 -0
  346. package/dist/src/ui/utils/TableRenderer.js.map +1 -0
  347. package/dist/src/ui/utils/commandUtils.d.ts +22 -0
  348. package/dist/src/ui/utils/commandUtils.js +25 -0
  349. package/dist/src/ui/utils/commandUtils.js.map +1 -0
  350. package/dist/src/ui/utils/computeStats.d.ts +10 -0
  351. package/dist/src/ui/utils/computeStats.js +55 -0
  352. package/dist/src/ui/utils/computeStats.js.map +1 -0
  353. package/dist/src/ui/utils/displayUtils.d.ts +17 -0
  354. package/dist/src/ui/utils/displayUtils.js +24 -0
  355. package/dist/src/ui/utils/displayUtils.js.map +1 -0
  356. package/dist/src/ui/utils/errorParsing.d.ts +15 -0
  357. package/dist/src/ui/utils/errorParsing.js +79 -0
  358. package/dist/src/ui/utils/errorParsing.js.map +1 -0
  359. package/dist/src/ui/utils/formatters.d.ts +13 -0
  360. package/dist/src/ui/utils/formatters.js +56 -0
  361. package/dist/src/ui/utils/formatters.js.map +1 -0
  362. package/dist/src/ui/utils/markdownUtilities.d.ts +6 -0
  363. package/dist/src/ui/utils/markdownUtilities.js +110 -0
  364. package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
  365. package/dist/src/ui/utils/textUtils.d.ts +22 -0
  366. package/dist/src/ui/utils/textUtils.js +58 -0
  367. package/dist/src/ui/utils/textUtils.js.map +1 -0
  368. package/dist/src/ui/utils/updateCheck.d.ts +6 -0
  369. package/dist/src/ui/utils/updateCheck.js +36 -0
  370. package/dist/src/ui/utils/updateCheck.js.map +1 -0
  371. package/dist/src/utils/cleanup.d.ts +6 -0
  372. package/dist/src/utils/cleanup.js +19 -0
  373. package/dist/src/utils/cleanup.js.map +1 -0
  374. package/dist/src/utils/package.d.ts +12 -0
  375. package/dist/src/utils/package.js +24 -0
  376. package/dist/src/utils/package.js.map +1 -0
  377. package/dist/src/utils/readStdin.d.ts +6 -0
  378. package/dist/src/utils/readStdin.js +34 -0
  379. package/dist/src/utils/readStdin.js.map +1 -0
  380. package/dist/src/utils/sandbox-macos-permissive-closed.sb +26 -0
  381. package/dist/src/utils/sandbox-macos-permissive-open.sb +19 -0
  382. package/dist/src/utils/sandbox-macos-permissive-proxied.sb +31 -0
  383. package/dist/src/utils/sandbox-macos-restrictive-closed.sb +87 -0
  384. package/dist/src/utils/sandbox-macos-restrictive-open.sb +90 -0
  385. package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +92 -0
  386. package/dist/src/utils/sandbox.d.ts +7 -0
  387. package/dist/src/utils/sandbox.js +680 -0
  388. package/dist/src/utils/sandbox.js.map +1 -0
  389. package/dist/src/utils/startupWarnings.d.ts +6 -0
  390. package/dist/src/utils/startupWarnings.js +40 -0
  391. package/dist/src/utils/startupWarnings.js.map +1 -0
  392. package/dist/src/utils/userStartupWarnings.d.ts +6 -0
  393. package/dist/src/utils/userStartupWarnings.js +33 -0
  394. package/dist/src/utils/userStartupWarnings.js.map +1 -0
  395. package/dist/src/utils/version.d.ts +6 -0
  396. package/dist/src/utils/version.js +11 -0
  397. package/dist/src/utils/version.js.map +1 -0
  398. package/dist/tsconfig.tsbuildinfo +1 -0
  399. package/package.json +80 -0
@@ -0,0 +1,81 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { getErrorMessage } from '@google/gemini-cli-core';
7
+ import { MessageType } from '../types.js';
8
+ export const memoryCommand = {
9
+ name: 'memory',
10
+ description: 'Commands for interacting with memory.',
11
+ subCommands: [
12
+ {
13
+ name: 'show',
14
+ description: 'Show the current memory contents.',
15
+ action: async (context) => {
16
+ const memoryContent = context.services.config?.getUserMemory() || '';
17
+ const fileCount = context.services.config?.getGeminiMdFileCount() || 0;
18
+ const messageContent = memoryContent.length > 0
19
+ ? `Current memory content from ${fileCount} file(s):\n\n---\n${memoryContent}\n---`
20
+ : 'Memory is currently empty.';
21
+ context.ui.addItem({
22
+ type: MessageType.INFO,
23
+ text: messageContent,
24
+ }, Date.now());
25
+ },
26
+ },
27
+ {
28
+ name: 'add',
29
+ description: 'Add content to the memory.',
30
+ action: (context, args) => {
31
+ if (!args || args.trim() === '') {
32
+ return {
33
+ type: 'message',
34
+ messageType: 'error',
35
+ content: 'Usage: /memory add <text to remember>',
36
+ };
37
+ }
38
+ context.ui.addItem({
39
+ type: MessageType.INFO,
40
+ text: `Attempting to save to memory: "${args.trim()}"`,
41
+ }, Date.now());
42
+ return {
43
+ type: 'tool',
44
+ toolName: 'save_memory',
45
+ toolArgs: { fact: args.trim() },
46
+ };
47
+ },
48
+ },
49
+ {
50
+ name: 'refresh',
51
+ description: 'Refresh the memory from the source.',
52
+ action: async (context) => {
53
+ context.ui.addItem({
54
+ type: MessageType.INFO,
55
+ text: 'Refreshing memory from source files...',
56
+ }, Date.now());
57
+ try {
58
+ const result = await context.services.config?.refreshMemory();
59
+ if (result) {
60
+ const { memoryContent, fileCount } = result;
61
+ const successMessage = memoryContent.length > 0
62
+ ? `Memory refreshed successfully. Loaded ${memoryContent.length} characters from ${fileCount} file(s).`
63
+ : 'Memory refreshed successfully. No memory content found.';
64
+ context.ui.addItem({
65
+ type: MessageType.INFO,
66
+ text: successMessage,
67
+ }, Date.now());
68
+ }
69
+ }
70
+ catch (error) {
71
+ const errorMessage = getErrorMessage(error);
72
+ context.ui.addItem({
73
+ type: MessageType.ERROR,
74
+ text: `Error refreshing memory: ${errorMessage}`,
75
+ }, Date.now());
76
+ }
77
+ },
78
+ },
79
+ ],
80
+ };
81
+ //# sourceMappingURL=memoryCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memoryCommand.js","sourceRoot":"","sources":["../../../../src/ui/commands/memoryCommand.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,CAAC,MAAM,aAAa,GAAiB;IACzC,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,uCAAuC;IACpD,WAAW,EAAE;QACX;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,mCAAmC;YAChD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACxB,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;gBACrE,MAAM,SAA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I,EAAE,wCAAwC;iBAC/C,EACD,IAAI,CAAC,GAAG,EAAE,CACX,CAAC;gBAEF,IAAI,CAAC;oBACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC;oBAE9D,IAAI,MAAM,EAAE,CAAC;wBACX,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;wBAC5C,MAAM,cAAc,GAClB,aAAa,CAAC,MAAM,GAAG,CAAC;4BACtB,CAAC,CAAC,yCAAyC,aAAa,CAAC,MAAM,oBAAoB,SAAS,WAAW;4BACvG,CAAC,CAAC,yDAAyD,CAAC;wBAEhE,OAAO,CAAC,EAAE,CAAC,OAAO,CAChB;4BACE,IAAI,EAAE,WAAW,CAAC,IAAI;4BACtB,IAAI,EAAE,cAAc;yBACrB,EACD,IAAI,CAAC,GAAG,EAAE,CACX,CAAC;oBACJ,CAAC;gBACH,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;oBAC5C,OAAO,CAAC,EAAE,CAAC,OAAO,CAChB;wBACE,IAAI,EAAE,WAAW,CAAC,KAAK;wBACvB,IAAI,EAAE,4BAA4B,YAAY,EAAE;qBACjD,EACD,IAAI,CAAC,GAAG,EAAE,CACX,CAAC;gBACJ,CAAC;YACH,CAAC;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { Config, GitService, Logger } from '@google/gemini-cli-core';
7
+ import { LoadedSettings } from '../../config/settings.js';
8
+ import { UseHistoryManagerReturn } from '../hooks/useHistoryManager.js';
9
+ import { SessionStatsState } from '../contexts/SessionContext.js';
10
+ export interface CommandContext {
11
+ services: {
12
+ config: Config | null;
13
+ settings: LoadedSettings;
14
+ git: GitService | undefined;
15
+ logger: Logger;
16
+ };
17
+ ui: {
18
+ /** Adds a new item to the history display. */
19
+ addItem: UseHistoryManagerReturn['addItem'];
20
+ /** Clears all history items and the console screen. */
21
+ clear: () => void;
22
+ /**
23
+ * Sets the transient debug message displayed in the application footer in debug mode.
24
+ */
25
+ setDebugMessage: (message: string) => void;
26
+ };
27
+ session: {
28
+ stats: SessionStatsState;
29
+ };
30
+ }
31
+ /**
32
+ * The return type for a command action that results in scheduling a tool call.
33
+ */
34
+ export interface ToolActionReturn {
35
+ type: 'tool';
36
+ toolName: string;
37
+ toolArgs: Record<string, unknown>;
38
+ }
39
+ /**
40
+ * The return type for a command action that results in a simple message
41
+ * being displayed to the user.
42
+ */
43
+ export interface MessageActionReturn {
44
+ type: 'message';
45
+ messageType: 'info' | 'error';
46
+ content: string;
47
+ }
48
+ /**
49
+ * The return type for a command action that needs to open a dialog.
50
+ */
51
+ export interface OpenDialogActionReturn {
52
+ type: 'dialog';
53
+ dialog: 'help';
54
+ }
55
+ export type SlashCommandActionReturn = ToolActionReturn | MessageActionReturn | OpenDialogActionReturn;
56
+ export interface SlashCommand {
57
+ name: string;
58
+ altName?: string;
59
+ description?: string;
60
+ action?: (context: CommandContext, args: string) => void | SlashCommandActionReturn | Promise<void | SlashCommandActionReturn>;
61
+ completion?: (context: CommandContext, partialArg: string) => Promise<string[]>;
62
+ subCommands?: SlashCommand[];
63
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui/commands/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ interface AboutBoxProps {
8
+ cliVersion: string;
9
+ osVersion: string;
10
+ sandboxEnv: string;
11
+ modelVersion: string;
12
+ selectedAuthType: string;
13
+ gcpProject: string;
14
+ }
15
+ export declare const AboutBox: React.FC<AboutBoxProps>;
16
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import { Colors } from '../colors.js';
4
+ import { GIT_COMMIT_INFO } from '../../generated/git-commit.js';
5
+ export const AboutBox = ({ cliVersion, osVersion, sandboxEnv, modelVersion, selectedAuthType, gcpProject, }) => (_jsxs(Box, { borderStyle: "round", borderColor: Colors.Gray, flexDirection: "column", padding: 1, marginY: 1, width: "100%", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "About Gemini CLI" }) }), _jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: "35%", children: _jsx(Text, { bold: true, color: Colors.LightBlue, children: "CLI Version" }) }), _jsx(Box, { children: _jsx(Text, { children: cliVersion }) })] }), GIT_COMMIT_INFO && !['N/A'].includes(GIT_COMMIT_INFO) && (_jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: "35%", children: _jsx(Text, { bold: true, color: Colors.LightBlue, children: "Git Commit" }) }), _jsx(Box, { children: _jsx(Text, { children: GIT_COMMIT_INFO }) })] })), _jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: "35%", children: _jsx(Text, { bold: true, color: Colors.LightBlue, children: "Model" }) }), _jsx(Box, { children: _jsx(Text, { children: modelVersion }) })] }), _jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: "35%", children: _jsx(Text, { bold: true, color: Colors.LightBlue, children: "Sandbox" }) }), _jsx(Box, { children: _jsx(Text, { children: sandboxEnv }) })] }), _jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: "35%", children: _jsx(Text, { bold: true, color: Colors.LightBlue, children: "OS" }) }), _jsx(Box, { children: _jsx(Text, { children: osVersion }) })] }), _jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: "35%", children: _jsx(Text, { bold: true, color: Colors.LightBlue, children: "Auth Method" }) }), _jsx(Box, { children: _jsx(Text, { children: selectedAuthType.startsWith('oauth') ? 'OAuth' : selectedAuthType }) })] }), gcpProject && (_jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: "35%", children: _jsx(Text, { bold: true, color: Colors.LightBlue, children: "GCP Project" }) }), _jsx(Box, { children: _jsx(Text, { children: gcpProject }) })] }))] }));
6
+ //# sourceMappingURL=AboutBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AboutBox.js","sourceRoot":"","sources":["../../../../src/ui/components/AboutBox.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAWhE,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,GACX,EAAE,EAAE,CAAC,CACJ,MAAC,GAAG,IACF,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,MAAM,CAAC,IAAI,EACxB,aAAa,EAAC,QAAQ,EACtB,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,CAAC,EACV,KAAK,EAAC,MAAM,aAEZ,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,iCAE9B,GACH,EACN,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,aACtB,KAAC,GAAG,IAAC,KAAK,EAAC,KAAK,YACd,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,SAAS,4BAE3B,GACH,EACN,KAAC,GAAG,cACF,KAA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CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB,GAC7D,GACH,IACF,EACL,UAAU,IAAI,CACb,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,aACtB,KAAC,GAAG,IAAC,KAAK,EAAC,KAAK,YACd,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,SAAS,4BAE3B,GACH,EACN,KAAC,GAAG,cACF,KAAC,IAAI,cAAE,UAAU,GAAQ,GACrB,IACF,CACP,IACG,CACP,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export declare const shortAsciiLogo = "\n \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\n \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\n \u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2588\u2588\u2588 \u2588 \u2591 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\n\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\n\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\n\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591 \u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\n \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\n \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\n";
7
+ export declare const longAsciiLogo = "\n \u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\n\u2591\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\n \u2591\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2588\u2588\u2588 \u2588 \u2591 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\n \u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\n \u2588\u2588\u2588\u2591 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\n \u2588\u2588\u2588\u2591 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591 \u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\n \u2588\u2588\u2588\u2591 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\n\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\n";
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export const shortAsciiLogo = `
7
+ █████████ ██████████ ██████ ██████ █████ ██████ █████ █████
8
+ ███░░░░░███░░███░░░░░█░░██████ ██████ ░░███ ░░██████ ░░███ ░░███
9
+ ███ ░░░ ░███ █ ░ ░███░█████░███ ░███ ░███░███ ░███ ░███
10
+ ░███ ░██████ ░███░░███ ░███ ░███ ░███░░███░███ ░███
11
+ ░███ █████ ░███░░█ ░███ ░░░ ░███ ░███ ░███ ░░██████ ░███
12
+ ░░███ ░░███ ░███ ░ █ ░███ ░███ ░███ ░███ ░░█████ ░███
13
+ ░░█████████ ██████████ █████ █████ █████ █████ ░░█████ █████
14
+ ░░░░░░░░░ ░░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░
15
+ `;
16
+ export const longAsciiLogo = `
17
+ ███ █████████ ██████████ ██████ ██████ █████ ██████ █████ █████
18
+ ░░░███ ███░░░░░███░░███░░░░░█░░██████ ██████ ░░███ ░░██████ ░░███ ░░███
19
+ ░░░███ ███ ░░░ ░███ █ ░ ░███░█████░███ ░███ ░███░███ ░███ ░███
20
+ ░░░███ ░███ ░██████ ░███░░███ ░███ ░███ ░███░░███░███ ░███
21
+ ███░ ░███ █████ ░███░░█ ░███ ░░░ ░███ ░███ ░███ ░░██████ ░███
22
+ ███░ ░░███ ░░███ ░███ ░ █ ░███ ░███ ░███ ░███ ░░█████ ░███
23
+ ███░ ░░█████████ ██████████ █████ █████ █████ █████ ░░█████ █████
24
+ ░░░ ░░░░░░░░░ ░░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░
25
+ `;
26
+ //# sourceMappingURL=AsciiArt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsciiArt.js","sourceRoot":"","sources":["../../../../src/ui/components/AsciiArt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;CAS7B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;CAS5B,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ import { LoadedSettings, SettingScope } from '../../config/settings.js';
8
+ import { AuthType } from '@google/gemini-cli-core';
9
+ interface AuthDialogProps {
10
+ onSelect: (authMethod: AuthType | undefined, scope: SettingScope) => void;
11
+ settings: LoadedSettings;
12
+ initialErrorMessage?: string | null;
13
+ }
14
+ export declare function AuthDialog({ onSelect, settings, initialErrorMessage, }: AuthDialogProps): React.JSX.Element;
15
+ export {};
@@ -0,0 +1,66 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * @license
4
+ * Copyright 2025 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import { useState } from 'react';
8
+ import { Box, Text, useInput } from 'ink';
9
+ import { Colors } from '../colors.js';
10
+ import { RadioButtonSelect } from './shared/RadioButtonSelect.js';
11
+ import { SettingScope } from '../../config/settings.js';
12
+ import { AuthType } from '@google/gemini-cli-core';
13
+ import { validateAuthMethod } from '../../config/auth.js';
14
+ export function AuthDialog({ onSelect, settings, initialErrorMessage, }) {
15
+ const [errorMessage, setErrorMessage] = useState(initialErrorMessage || null);
16
+ const items = [
17
+ {
18
+ label: 'Login with Google',
19
+ value: AuthType.LOGIN_WITH_GOOGLE,
20
+ },
21
+ ...(process.env.CLOUD_SHELL === 'true'
22
+ ? [
23
+ {
24
+ label: 'Use Cloud Shell user credentials',
25
+ value: AuthType.CLOUD_SHELL,
26
+ },
27
+ ]
28
+ : []),
29
+ {
30
+ label: 'Use Gemini API Key',
31
+ value: AuthType.USE_GEMINI,
32
+ },
33
+ { label: 'Vertex AI', value: AuthType.USE_VERTEX_AI },
34
+ ];
35
+ let initialAuthIndex = items.findIndex((item) => item.value === settings.merged.selectedAuthType);
36
+ if (initialAuthIndex === -1) {
37
+ initialAuthIndex = 0;
38
+ }
39
+ const handleAuthSelect = (authMethod) => {
40
+ const error = validateAuthMethod(authMethod);
41
+ if (error) {
42
+ setErrorMessage(error);
43
+ }
44
+ else {
45
+ setErrorMessage(null);
46
+ onSelect(authMethod, SettingScope.User);
47
+ }
48
+ };
49
+ useInput((_input, key) => {
50
+ if (key.escape) {
51
+ // Prevent exit if there is an error message.
52
+ // This means they user is not authenticated yet.
53
+ if (errorMessage) {
54
+ return;
55
+ }
56
+ if (settings.merged.selectedAuthType === undefined) {
57
+ // Prevent exiting if no auth method is set
58
+ setErrorMessage('You must select an auth method to proceed. Press Ctrl+C twice to exit.');
59
+ return;
60
+ }
61
+ onSelect(undefined, SettingScope.User);
62
+ }
63
+ });
64
+ return (_jsxs(Box, { borderStyle: "round", borderColor: Colors.Gray, flexDirection: "column", padding: 1, width: "100%", children: [_jsx(Text, { bold: true, children: "Select Auth Method" }), _jsx(RadioButtonSelect, { items: items, initialIndex: initialAuthIndex, onSelect: handleAuthSelect, isFocused: true }), errorMessage && (_jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.AccentRed, children: errorMessage }) })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.Gray, children: "(Use Enter to select)" }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { children: "Terms of Services and Privacy Notice for Gemini CLI" }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.AccentBlue, children: 'https://github.com/google-gemini/gemini-cli/blob/main/docs/tos-privacy.md' }) })] }));
65
+ }
66
+ //# sourceMappingURL=AuthDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthDialog.js","sourceRoot":"","sources":["../../../../src/ui/components/AuthDialog.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAkB,YAAY,EAAE,MAAM,0BAA0B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AAC,UAAU,YAE1B,2EAA2E,GAExE,GACH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ interface AuthInProgressProps {
8
+ onTimeout: () => void;
9
+ }
10
+ export declare function AuthInProgress({ onTimeout, }: AuthInProgressProps): React.JSX.Element;
11
+ export {};
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * @license
4
+ * Copyright 2025 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import { useState, useEffect } from 'react';
8
+ import { Box, Text, useInput } from 'ink';
9
+ import Spinner from 'ink-spinner';
10
+ import { Colors } from '../colors.js';
11
+ export function AuthInProgress({ onTimeout, }) {
12
+ const [timedOut, setTimedOut] = useState(false);
13
+ useInput((_, key) => {
14
+ if (key.escape) {
15
+ onTimeout();
16
+ }
17
+ });
18
+ useEffect(() => {
19
+ const timer = setTimeout(() => {
20
+ setTimedOut(true);
21
+ onTimeout();
22
+ }, 180000);
23
+ return () => clearTimeout(timer);
24
+ }, [onTimeout]);
25
+ return (_jsx(Box, { borderStyle: "round", borderColor: Colors.Gray, flexDirection: "column", padding: 1, width: "100%", children: timedOut ? (_jsx(Text, { color: Colors.AccentRed, children: "Authentication timed out. Please try again." })) : (_jsx(Box, { children: _jsxs(Text, { children: [_jsx(Spinner, { type: "dots" }), " Waiting for auth... (Press ESC to cancel)"] }) })) }));
26
+ }
27
+ //# sourceMappingURL=AuthInProgress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthInProgress.js","sourceRoot":"","sources":["../../../../src/ui/components/AuthInProgress.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAA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alMode } from '@google/gemini-cli-core';
8
+ interface AutoAcceptIndicatorProps {
9
+ approvalMode: ApprovalMode;
10
+ }
11
+ export declare const AutoAcceptIndicator: React.FC<AutoAcceptIndicatorProps>;
12
+ export {};
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import { Colors } from '../colors.js';
4
+ import { ApprovalMode } from '@google/gemini-cli-core';
5
+ export const AutoAcceptIndicator = ({ approvalMode, }) => {
6
+ let textColor = '';
7
+ let textContent = '';
8
+ let subText = '';
9
+ switch (approvalMode) {
10
+ case ApprovalMode.AUTO_EDIT:
11
+ textColor = Colors.AccentGreen;
12
+ textContent = 'accepting edits';
13
+ subText = ' (shift + tab to toggle)';
14
+ break;
15
+ case ApprovalMode.YOLO:
16
+ textColor = Colors.AccentRed;
17
+ textContent = 'YOLO mode';
18
+ subText = ' (ctrl + y to toggle)';
19
+ break;
20
+ case ApprovalMode.DEFAULT:
21
+ default:
22
+ break;
23
+ }
24
+ return (_jsx(Box, { children: _jsxs(Text, { color: textColor, children: [textContent, subText && _jsx(Text, { color: Colors.Gray, children: subText })] }) }));
25
+ };
26
+ //# sourceMappingURL=AutoAcceptIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoAcceptIndicator.js","sourceRoot":"","sources":["../../../../src/ui/components/AutoAcceptIndicator.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMvD,MAAM,CAAC,MAAM,mBAAmB,GAAuC,CAAC,EACtE,YAAY,GACb,EAAE,EAAE;IACH,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,IAAI,WAAW,GAAG,EAAE,CAAC;IACrB,IAAI,OAAO,GAAG,EAAE,CAAC;IAEjB,QAAQ,YAAY,EAAE,CAAC;QACrB,KAAK,YAAY,CAAC,SAAS;YACzB,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC;YAC/B,WAAW,GAAG,iBAAiB,CAAC;YAChC,OAAO,GAAG,0BAA0B,CAAC;YACrC,MAAM;QACR,KAAK,YAAY,CAAC,IAAI;YACpB,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAC7B,WAAW,GAAG,WAAW,CAAC;YAC1B,OAAO,GAAG,uBAAuB,CAAC;YAClC,MAAM;QACR,KAAK,YAAY,CAAC,OAAO,CAAC;QAC1B;YACE,MAAM;IACV,CAAC;IAED,OAAO,CACL,KAAC,GAAG,cACF,MAAC,IAAI,IAAC,KAAK,EAAE,SAAS,aACnB,WAAW,EACX,OAAO,IAAI,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,YAAG,OAAO,GAAQ,IACjD,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { ConsoleMessageItem } from '../types.js';
7
+ interface UseConsolePatcherParams {
8
+ onNewMessage: (message: Omit<ConsoleMessageItem, 'id'>) => void;
9
+ debugMode: boolean;
10
+ }
11
+ export declare const useConsolePatcher: ({ onNewMessage, debugMode, }: UseConsolePatcherParams) => void;
12
+ export {};
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { useEffect } from 'react';
7
+ import util from 'util';
8
+ export const useConsolePatcher = ({ onNewMessage, debugMode, }) => {
9
+ useEffect(() => {
10
+ const originalConsoleLog = console.log;
11
+ const originalConsoleWarn = console.warn;
12
+ const originalConsoleError = console.error;
13
+ const originalConsoleDebug = console.debug;
14
+ const formatArgs = (args) => util.format(...args);
15
+ const patchConsoleMethod = (type, originalMethod) => (...args) => {
16
+ if (debugMode) {
17
+ originalMethod.apply(console, args);
18
+ }
19
+ // Then, if it's not a debug message or debugMode is on, pass to onNewMessage
20
+ if (type !== 'debug' || debugMode) {
21
+ onNewMessage({
22
+ type,
23
+ content: formatArgs(args),
24
+ count: 1,
25
+ });
26
+ }
27
+ };
28
+ console.log = patchConsoleMethod('log', originalConsoleLog);
29
+ console.warn = patchConsoleMethod('warn', originalConsoleWarn);
30
+ console.error = patchConsoleMethod('error', originalConsoleError);
31
+ console.debug = patchConsoleMethod('debug', originalConsoleDebug);
32
+ return () => {
33
+ console.log = originalConsoleLog;
34
+ console.warn = originalConsoleWarn;
35
+ console.error = originalConsoleError;
36
+ console.debug = originalConsoleDebug;
37
+ };
38
+ }, [onNewMessage, debugMode]);
39
+ };
40
+ //# sourceMappingURL=ConsolePatcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConsolePatcher.js","sourceRoot":"","sources":["../../../../src/ui/components/ConsolePatcher.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,IAAI,MAAM,MAAM,CAAC;AAQxB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,YAAY,EACZ,SAAS,GACe,EAAQ,EAAE;IAClC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC;QACvC,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;QACzC,MAAM,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;QAC3C,MAAM,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;QAE3C,MAAM,UAAU,GAAG,CAAC,IAAe,EAAU,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;QAErE,MAAM,kBAAkB,GACtB,CACE,IAAwC,EACxC,cAA4C,EAC5C,EAAE,CACJ,CAAC,GAAG,IAAe,EAAE,EAAE;YACrB,IAAI,SAAS,EAAE,CAAC;gBACd,cAAc,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACtC,CAAC;YAED,6EAA6E;YAC7E,IAAI,IAAI,KAAK,OAAO,IAAI,SAAS,EAAE,CAAC;gBAClC,YAAY,CAAC;oBACX,IAAI;oBACJ,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC;oBACzB,KAAK,EAAE,CAAC;iBACT,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC;QAEJ,OAAO,CAAC,GAAG,GAAG,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;QAC5D,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;QAC/D,OAAO,CAAC,KAAK,GAAG,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAClE,OAAO,CAAC,KAAK,GAAG,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAElE,OAAO,GAAG,EAAE;YACV,OAAO,CAAC,GAAG,GAAG,kBAAkB,CAAC;YACjC,OAAO,CAAC,IAAI,GAAG,mBAAmB,CAAC;YACnC,OAAO,CAAC,KAAK,GAAG,oBAAoB,CAAC;YACrC,OAAO,CAAC,KAAK,GAAG,oBAAoB,CAAC;QACvC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;AAChC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ interface ConsoleSummaryDisplayProps {
8
+ errorCount: number;
9
+ }
10
+ export declare const ConsoleSummaryDisplay: React.FC<ConsoleSummaryDisplayProps>;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import { Colors } from '../colors.js';
4
+ export const ConsoleSummaryDisplay = ({ errorCount, }) => {
5
+ if (errorCount === 0) {
6
+ return null;
7
+ }
8
+ const errorIcon = '\u2716'; // Heavy multiplication x (✖)
9
+ return (_jsx(Box, { children: errorCount > 0 && (_jsxs(Text, { color: Colors.AccentRed, children: [errorIcon, " ", errorCount, " error", errorCount > 1 ? 's' : '', ' ', _jsx(Text, { color: Colors.Gray, children: "(ctrl+o for details)" })] })) }));
10
+ };
11
+ //# sourceMappingURL=ConsoleSummaryDisplay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConsoleSummaryDisplay.js","sourceRoot":"","sources":["../../../../src/ui/components/ConsoleSummaryDisplay.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAOtC,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,UAAU,GACX,EAAE,EAAE;IACH,IAAI,UAAU,KAAK,CAAC,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,6BAA6B;IAEzD,OAAO,CACL,KAAC,GAAG,cACD,UAAU,GAAG,CAAC,IAAI,CACjB,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,aAC1B,SAAS,OAAG,UAAU,YAAQ,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,EAC7D,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,qCAA6B,IAChD,CACR,GACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ import { type MCPServerConfig } from '@google/gemini-cli-core';
8
+ interface ContextSummaryDisplayProps {
9
+ geminiMdFileCount: number;
10
+ contextFileNames: string[];
11
+ mcpServers?: Record<string, MCPServerConfig>;
12
+ showToolDescriptions?: boolean;
13
+ }
14
+ export declare const ContextSummaryDisplay: React.FC<ContextSummaryDisplayProps>;
15
+ export {};
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Text } from 'ink';
3
+ import { Colors } from '../colors.js';
4
+ export const ContextSummaryDisplay = ({ geminiMdFileCount, contextFileNames, mcpServers, showToolDescriptions, }) => {
5
+ const mcpServerCount = Object.keys(mcpServers || {}).length;
6
+ if (geminiMdFileCount === 0 && mcpServerCount === 0) {
7
+ return _jsx(Text, { children: " " }); // Render an empty space to reserve height
8
+ }
9
+ const geminiMdText = (() => {
10
+ if (geminiMdFileCount === 0) {
11
+ return '';
12
+ }
13
+ const allNamesTheSame = new Set(contextFileNames).size < 2;
14
+ const name = allNamesTheSame ? contextFileNames[0] : 'context';
15
+ return `${geminiMdFileCount} ${name} file${geminiMdFileCount > 1 ? 's' : ''}`;
16
+ })();
17
+ const mcpText = mcpServerCount > 0
18
+ ? `${mcpServerCount} MCP server${mcpServerCount > 1 ? 's' : ''}`
19
+ : '';
20
+ let summaryText = 'Using ';
21
+ if (geminiMdText) {
22
+ summaryText += geminiMdText;
23
+ }
24
+ if (geminiMdText && mcpText) {
25
+ summaryText += ' and ';
26
+ }
27
+ if (mcpText) {
28
+ summaryText += mcpText;
29
+ // Add ctrl+t hint when MCP servers are available
30
+ if (mcpServers && Object.keys(mcpServers).length > 0) {
31
+ if (showToolDescriptions) {
32
+ summaryText += ' (ctrl+t to toggle)';
33
+ }
34
+ else {
35
+ summaryText += ' (ctrl+t to view)';
36
+ }
37
+ }
38
+ }
39
+ return _jsx(Text, { color: Colors.Gray, children: summaryText });
40
+ };
41
+ //# sourceMappingURL=ContextSummaryDisplay.js.map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,CAAC;IAC3B,IAAI,YAAY,EAAE,CAAC;QACjB,WAAW,IAAI,YAAY,CAAC;IAC9B,CAAC;IACD,IAAI,YAAY,IAAI,OAAO,EAAE,CAAC;QAC5B,WAAW,IAAI,OAAO,CAAC;IACzB,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACZ,WAAW,IAAI,OAAO,CAAC;QACvB,iDAAiD;QACjD,IAAI,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrD,IAAI,oBAAoB,EAAE,CAAC;gBACzB,WAAW,IAAI,qBAAqB,CAAC;YACvC,CAAC;iBAAM,CAAC;gBACN,WAAW,IAAI,mBAAmB,CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,YAAG,WAAW,GAAQ,CAAC;AACxD,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ import { ConsoleMessageItem } from '../types.js';
8
+ interface DetailedMessagesDisplayProps {
9
+ messages: ConsoleMessageItem[];
10
+ maxHeight: number | undefined;
11
+ width: number;
12
+ }
13
+ export declare const DetailedMessagesDisplay: React.FC<DetailedMessagesDisplayProps>;
14
+ export {};