@google/gemini-cli 0.1.0-development.2 → 0.1.1

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 (402) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +16 -38
  3. package/bundle/gemini.js +257368 -0
  4. package/{dist/src/utils → bundle}/sandbox-macos-permissive-proxied.sb +1 -1
  5. package/{dist/src/utils → bundle}/sandbox-macos-restrictive-proxied.sb +1 -1
  6. package/bundle/shell.json +18 -0
  7. package/bundle/shell.md +16 -0
  8. package/package.json +72 -67
  9. package/dist/.last_build +0 -0
  10. package/dist/index.d.ts +0 -7
  11. package/dist/index.js +0 -20
  12. package/dist/index.js.map +0 -1
  13. package/dist/package.json +0 -80
  14. package/dist/src/config/auth.d.ts +0 -6
  15. package/dist/src/config/auth.js +0 -33
  16. package/dist/src/config/auth.js.map +0 -1
  17. package/dist/src/config/config.d.ts +0 -13
  18. package/dist/src/config/config.js +0 -211
  19. package/dist/src/config/config.js.map +0 -1
  20. package/dist/src/config/extension.d.ts +0 -20
  21. package/dist/src/config/extension.js +0 -81
  22. package/dist/src/config/extension.js.map +0 -1
  23. package/dist/src/config/sandboxConfig.d.ts +0 -13
  24. package/dist/src/config/sandboxConfig.js +0 -75
  25. package/dist/src/config/sandboxConfig.js.map +0 -1
  26. package/dist/src/config/settings.d.ts +0 -72
  27. package/dist/src/config/settings.js +0 -227
  28. package/dist/src/config/settings.js.map +0 -1
  29. package/dist/src/gemini.d.ts +0 -6
  30. package/dist/src/gemini.js +0 -216
  31. package/dist/src/gemini.js.map +0 -1
  32. package/dist/src/generated/git-commit.d.ts +0 -6
  33. package/dist/src/generated/git-commit.js +0 -9
  34. package/dist/src/generated/git-commit.js.map +0 -1
  35. package/dist/src/nonInteractiveCli.d.ts +0 -7
  36. package/dist/src/nonInteractiveCli.js +0 -115
  37. package/dist/src/nonInteractiveCli.js.map +0 -1
  38. package/dist/src/services/CommandService.d.ts +0 -13
  39. package/dist/src/services/CommandService.js +0 -30
  40. package/dist/src/services/CommandService.js.map +0 -1
  41. package/dist/src/ui/App.d.ts +0 -14
  42. package/dist/src/ui/App.js +0 -391
  43. package/dist/src/ui/App.js.map +0 -1
  44. package/dist/src/ui/colors.d.ts +0 -7
  45. package/dist/src/ui/colors.js +0 -48
  46. package/dist/src/ui/colors.js.map +0 -1
  47. package/dist/src/ui/commands/clearCommand.d.ts +0 -7
  48. package/dist/src/ui/commands/clearCommand.js +0 -15
  49. package/dist/src/ui/commands/clearCommand.js.map +0 -1
  50. package/dist/src/ui/commands/helpCommand.d.ts +0 -7
  51. package/dist/src/ui/commands/helpCommand.js +0 -18
  52. package/dist/src/ui/commands/helpCommand.js.map +0 -1
  53. package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
  54. package/dist/src/ui/commands/memoryCommand.js +0 -81
  55. package/dist/src/ui/commands/memoryCommand.js.map +0 -1
  56. package/dist/src/ui/commands/types.d.ts +0 -63
  57. package/dist/src/ui/commands/types.js +0 -7
  58. package/dist/src/ui/commands/types.js.map +0 -1
  59. package/dist/src/ui/components/AboutBox.d.ts +0 -16
  60. package/dist/src/ui/components/AboutBox.js +0 -6
  61. package/dist/src/ui/components/AboutBox.js.map +0 -1
  62. package/dist/src/ui/components/AsciiArt.d.ts +0 -7
  63. package/dist/src/ui/components/AsciiArt.js +0 -26
  64. package/dist/src/ui/components/AsciiArt.js.map +0 -1
  65. package/dist/src/ui/components/AuthDialog.d.ts +0 -15
  66. package/dist/src/ui/components/AuthDialog.js +0 -66
  67. package/dist/src/ui/components/AuthDialog.js.map +0 -1
  68. package/dist/src/ui/components/AuthInProgress.d.ts +0 -11
  69. package/dist/src/ui/components/AuthInProgress.js +0 -27
  70. package/dist/src/ui/components/AuthInProgress.js.map +0 -1
  71. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
  72. package/dist/src/ui/components/AutoAcceptIndicator.js +0 -26
  73. package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
  74. package/dist/src/ui/components/ConsolePatcher.d.ts +0 -12
  75. package/dist/src/ui/components/ConsolePatcher.js +0 -40
  76. package/dist/src/ui/components/ConsolePatcher.js.map +0 -1
  77. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
  78. package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
  79. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
  80. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -15
  81. package/dist/src/ui/components/ContextSummaryDisplay.js +0 -41
  82. package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
  83. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
  84. package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
  85. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
  86. package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -15
  87. package/dist/src/ui/components/EditorSettingsDialog.js +0 -73
  88. package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
  89. package/dist/src/ui/components/Footer.d.ts +0 -20
  90. package/dist/src/ui/components/Footer.js +0 -13
  91. package/dist/src/ui/components/Footer.js.map +0 -1
  92. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -17
  93. package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -16
  94. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
  95. package/dist/src/ui/components/Header.d.ts +0 -12
  96. package/dist/src/ui/components/Header.js +0 -20
  97. package/dist/src/ui/components/Header.js.map +0 -1
  98. package/dist/src/ui/components/Help.d.ts +0 -12
  99. package/dist/src/ui/components/Help.js +0 -10
  100. package/dist/src/ui/components/Help.js.map +0 -1
  101. package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -18
  102. package/dist/src/ui/components/HistoryItemDisplay.js +0 -17
  103. package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
  104. package/dist/src/ui/components/InputPrompt.d.ts +0 -25
  105. package/dist/src/ui/components/InputPrompt.js +0 -280
  106. package/dist/src/ui/components/InputPrompt.js.map +0 -1
  107. package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
  108. package/dist/src/ui/components/LoadingIndicator.js +0 -19
  109. package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
  110. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
  111. package/dist/src/ui/components/MemoryUsageDisplay.js +0 -27
  112. package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
  113. package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
  114. package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
  115. package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
  116. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
  117. package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
  118. package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
  119. package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
  120. package/dist/src/ui/components/ShellModeIndicator.js +0 -5
  121. package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
  122. package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
  123. package/dist/src/ui/components/ShowMoreLines.js +0 -24
  124. package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
  125. package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
  126. package/dist/src/ui/components/StatsDisplay.js +0 -42
  127. package/dist/src/ui/components/StatsDisplay.js.map +0 -1
  128. package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -21
  129. package/dist/src/ui/components/SuggestionsDisplay.js +0 -32
  130. package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
  131. package/dist/src/ui/components/ThemeDialog.d.ts +0 -19
  132. package/dist/src/ui/components/ThemeDialog.js +0 -126
  133. package/dist/src/ui/components/ThemeDialog.js.map +0 -1
  134. package/dist/src/ui/components/Tips.d.ts +0 -12
  135. package/dist/src/ui/components/Tips.js +0 -8
  136. package/dist/src/ui/components/Tips.js.map +0 -1
  137. package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
  138. package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
  139. package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
  140. package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
  141. package/dist/src/ui/components/UpdateNotification.js +0 -10
  142. package/dist/src/ui/components/UpdateNotification.js.map +0 -1
  143. package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
  144. package/dist/src/ui/components/messages/CompressionMessage.js +0 -16
  145. package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
  146. package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -15
  147. package/dist/src/ui/components/messages/DiffRenderer.js +0 -212
  148. package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
  149. package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
  150. package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
  151. package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
  152. package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
  153. package/dist/src/ui/components/messages/GeminiMessage.js +0 -10
  154. package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
  155. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
  156. package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -15
  157. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
  158. package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
  159. package/dist/src/ui/components/messages/InfoMessage.js +0 -9
  160. package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
  161. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -15
  162. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -111
  163. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
  164. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -18
  165. package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -53
  166. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
  167. package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -15
  168. package/dist/src/ui/components/messages/ToolMessage.js +0 -61
  169. package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
  170. package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
  171. package/dist/src/ui/components/messages/UserMessage.js +0 -9
  172. package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
  173. package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
  174. package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
  175. package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
  176. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
  177. package/dist/src/ui/components/shared/MaxSizedBox.js +0 -384
  178. package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
  179. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -41
  180. package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -52
  181. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
  182. package/dist/src/ui/components/shared/text-buffer.d.ts +0 -184
  183. package/dist/src/ui/components/shared/text-buffer.js +0 -1010
  184. package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
  185. package/dist/src/ui/constants.d.ts +0 -8
  186. package/dist/src/ui/constants.js +0 -12
  187. package/dist/src/ui/constants.js.map +0 -1
  188. package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
  189. package/dist/src/ui/contexts/OverflowContext.js +0 -43
  190. package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
  191. package/dist/src/ui/contexts/SessionContext.d.ts +0 -33
  192. package/dist/src/ui/contexts/SessionContext.js +0 -49
  193. package/dist/src/ui/contexts/SessionContext.js.map +0 -1
  194. package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
  195. package/dist/src/ui/contexts/StreamingContext.js +0 -15
  196. package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
  197. package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
  198. package/dist/src/ui/editors/editorSettingsManager.js +0 -54
  199. package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
  200. package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
  201. package/dist/src/ui/hooks/atCommandProcessor.js +0 -310
  202. package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
  203. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -16
  204. package/dist/src/ui/hooks/shellCommandProcessor.js +0 -261
  205. package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
  206. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -27
  207. package/dist/src/ui/hooks/slashCommandProcessor.js +0 -1050
  208. package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
  209. package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
  210. package/dist/src/ui/hooks/useAuthCommand.js +0 -54
  211. package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
  212. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -10
  213. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -37
  214. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
  215. package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
  216. package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
  217. package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
  218. package/dist/src/ui/hooks/useCompletion.d.ts +0 -21
  219. package/dist/src/ui/hooks/useCompletion.js +0 -372
  220. package/dist/src/ui/hooks/useCompletion.js.map +0 -1
  221. package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
  222. package/dist/src/ui/hooks/useConsoleMessages.js +0 -60
  223. package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
  224. package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
  225. package/dist/src/ui/hooks/useEditorSettings.js +0 -43
  226. package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
  227. package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -23
  228. package/dist/src/ui/hooks/useGeminiStream.js +0 -518
  229. package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
  230. package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
  231. package/dist/src/ui/hooks/useGitBranchName.js +0 -61
  232. package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
  233. package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
  234. package/dist/src/ui/hooks/useHistoryManager.js +0 -72
  235. package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
  236. package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
  237. package/dist/src/ui/hooks/useInputHistory.js +0 -84
  238. package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
  239. package/dist/src/ui/hooks/useKeypress.d.ts +0 -29
  240. package/dist/src/ui/hooks/useKeypress.js +0 -86
  241. package/dist/src/ui/hooks/useKeypress.js.map +0 -1
  242. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
  243. package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
  244. package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
  245. package/dist/src/ui/hooks/useLogger.d.ts +0 -10
  246. package/dist/src/ui/hooks/useLogger.js +0 -29
  247. package/dist/src/ui/hooks/useLogger.js.map +0 -1
  248. package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
  249. package/dist/src/ui/hooks/usePhraseCycler.js +0 -189
  250. package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
  251. package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
  252. package/dist/src/ui/hooks/usePrivacySettings.js +0 -115
  253. package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
  254. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -33
  255. package/dist/src/ui/hooks/useReactToolScheduler.js +0 -186
  256. package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
  257. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
  258. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
  259. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
  260. package/dist/src/ui/hooks/useShellHistory.d.ts +0 -11
  261. package/dist/src/ui/hooks/useShellHistory.js +0 -89
  262. package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
  263. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
  264. package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
  265. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
  266. package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
  267. package/dist/src/ui/hooks/useStateAndRef.js +0 -26
  268. package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
  269. package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
  270. package/dist/src/ui/hooks/useTerminalSize.js +0 -27
  271. package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
  272. package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
  273. package/dist/src/ui/hooks/useThemeCommand.js +0 -78
  274. package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
  275. package/dist/src/ui/hooks/useTimer.d.ts +0 -12
  276. package/dist/src/ui/hooks/useTimer.js +0 -58
  277. package/dist/src/ui/hooks/useTimer.js.map +0 -1
  278. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
  279. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -40
  280. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
  281. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
  282. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -17
  283. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
  284. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
  285. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -17
  286. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
  287. package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
  288. package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
  289. package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
  290. package/dist/src/ui/themes/ansi-light.d.ts +0 -7
  291. package/dist/src/ui/themes/ansi-light.js +0 -139
  292. package/dist/src/ui/themes/ansi-light.js.map +0 -1
  293. package/dist/src/ui/themes/ansi.d.ts +0 -7
  294. package/dist/src/ui/themes/ansi.js +0 -149
  295. package/dist/src/ui/themes/ansi.js.map +0 -1
  296. package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
  297. package/dist/src/ui/themes/atom-one-dark.js +0 -136
  298. package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
  299. package/dist/src/ui/themes/ayu-light.d.ts +0 -7
  300. package/dist/src/ui/themes/ayu-light.js +0 -128
  301. package/dist/src/ui/themes/ayu-light.js.map +0 -1
  302. package/dist/src/ui/themes/ayu.d.ts +0 -7
  303. package/dist/src/ui/themes/ayu.js +0 -102
  304. package/dist/src/ui/themes/ayu.js.map +0 -1
  305. package/dist/src/ui/themes/default-light.d.ts +0 -7
  306. package/dist/src/ui/themes/default-light.js +0 -100
  307. package/dist/src/ui/themes/default-light.js.map +0 -1
  308. package/dist/src/ui/themes/default.d.ts +0 -7
  309. package/dist/src/ui/themes/default.js +0 -143
  310. package/dist/src/ui/themes/default.js.map +0 -1
  311. package/dist/src/ui/themes/dracula.d.ts +0 -7
  312. package/dist/src/ui/themes/dracula.js +0 -113
  313. package/dist/src/ui/themes/dracula.js.map +0 -1
  314. package/dist/src/ui/themes/github-dark.d.ts +0 -7
  315. package/dist/src/ui/themes/github-dark.js +0 -136
  316. package/dist/src/ui/themes/github-dark.js.map +0 -1
  317. package/dist/src/ui/themes/github-light.d.ts +0 -7
  318. package/dist/src/ui/themes/github-light.js +0 -138
  319. package/dist/src/ui/themes/github-light.js.map +0 -1
  320. package/dist/src/ui/themes/googlecode.d.ts +0 -7
  321. package/dist/src/ui/themes/googlecode.js +0 -135
  322. package/dist/src/ui/themes/googlecode.js.map +0 -1
  323. package/dist/src/ui/themes/no-color.d.ts +0 -7
  324. package/dist/src/ui/themes/no-color.js +0 -84
  325. package/dist/src/ui/themes/no-color.js.map +0 -1
  326. package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
  327. package/dist/src/ui/themes/shades-of-purple.js +0 -302
  328. package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
  329. package/dist/src/ui/themes/theme-manager.d.ts +0 -33
  330. package/dist/src/ui/themes/theme-manager.js +0 -109
  331. package/dist/src/ui/themes/theme-manager.js.map +0 -1
  332. package/dist/src/ui/themes/theme.d.ts +0 -67
  333. package/dist/src/ui/themes/theme.js +0 -304
  334. package/dist/src/ui/themes/theme.js.map +0 -1
  335. package/dist/src/ui/themes/xcode.d.ts +0 -7
  336. package/dist/src/ui/themes/xcode.js +0 -143
  337. package/dist/src/ui/themes/xcode.js.map +0 -1
  338. package/dist/src/ui/types.d.ts +0 -172
  339. package/dist/src/ui/types.js +0 -43
  340. package/dist/src/ui/types.js.map +0 -1
  341. package/dist/src/ui/utils/CodeColorizer.d.ts +0 -14
  342. package/dist/src/ui/utils/CodeColorizer.js +0 -97
  343. package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
  344. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
  345. package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -104
  346. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
  347. package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
  348. package/dist/src/ui/utils/MarkdownDisplay.js +0 -197
  349. package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
  350. package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
  351. package/dist/src/ui/utils/TableRenderer.js +0 -84
  352. package/dist/src/ui/utils/TableRenderer.js.map +0 -1
  353. package/dist/src/ui/utils/commandUtils.d.ts +0 -22
  354. package/dist/src/ui/utils/commandUtils.js +0 -25
  355. package/dist/src/ui/utils/commandUtils.js.map +0 -1
  356. package/dist/src/ui/utils/computeStats.d.ts +0 -10
  357. package/dist/src/ui/utils/computeStats.js +0 -55
  358. package/dist/src/ui/utils/computeStats.js.map +0 -1
  359. package/dist/src/ui/utils/displayUtils.d.ts +0 -17
  360. package/dist/src/ui/utils/displayUtils.js +0 -24
  361. package/dist/src/ui/utils/displayUtils.js.map +0 -1
  362. package/dist/src/ui/utils/errorParsing.d.ts +0 -15
  363. package/dist/src/ui/utils/errorParsing.js +0 -79
  364. package/dist/src/ui/utils/errorParsing.js.map +0 -1
  365. package/dist/src/ui/utils/formatters.d.ts +0 -13
  366. package/dist/src/ui/utils/formatters.js +0 -56
  367. package/dist/src/ui/utils/formatters.js.map +0 -1
  368. package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
  369. package/dist/src/ui/utils/markdownUtilities.js +0 -110
  370. package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
  371. package/dist/src/ui/utils/textUtils.d.ts +0 -22
  372. package/dist/src/ui/utils/textUtils.js +0 -58
  373. package/dist/src/ui/utils/textUtils.js.map +0 -1
  374. package/dist/src/ui/utils/updateCheck.d.ts +0 -6
  375. package/dist/src/ui/utils/updateCheck.js +0 -36
  376. package/dist/src/ui/utils/updateCheck.js.map +0 -1
  377. package/dist/src/utils/cleanup.d.ts +0 -6
  378. package/dist/src/utils/cleanup.js +0 -19
  379. package/dist/src/utils/cleanup.js.map +0 -1
  380. package/dist/src/utils/package.d.ts +0 -12
  381. package/dist/src/utils/package.js +0 -24
  382. package/dist/src/utils/package.js.map +0 -1
  383. package/dist/src/utils/readStdin.d.ts +0 -6
  384. package/dist/src/utils/readStdin.js +0 -34
  385. package/dist/src/utils/readStdin.js.map +0 -1
  386. package/dist/src/utils/sandbox.d.ts +0 -7
  387. package/dist/src/utils/sandbox.js +0 -680
  388. package/dist/src/utils/sandbox.js.map +0 -1
  389. package/dist/src/utils/startupWarnings.d.ts +0 -6
  390. package/dist/src/utils/startupWarnings.js +0 -40
  391. package/dist/src/utils/startupWarnings.js.map +0 -1
  392. package/dist/src/utils/userStartupWarnings.d.ts +0 -6
  393. package/dist/src/utils/userStartupWarnings.js +0 -33
  394. package/dist/src/utils/userStartupWarnings.js.map +0 -1
  395. package/dist/src/utils/version.d.ts +0 -6
  396. package/dist/src/utils/version.js +0 -11
  397. package/dist/src/utils/version.js.map +0 -1
  398. package/dist/tsconfig.tsbuildinfo +0 -1
  399. /package/{dist/src/utils → bundle}/sandbox-macos-permissive-closed.sb +0 -0
  400. /package/{dist/src/utils → bundle}/sandbox-macos-permissive-open.sb +0 -0
  401. /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-closed.sb +0 -0
  402. /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-open.sb +0 -0
@@ -1,81 +0,0 @@
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
@@ -1 +0,0 @@
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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,WAAW,CAAC,IAAI;oBACtB,IAAI,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"}
@@ -1,63 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export {};
7
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui/commands/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -1,16 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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,KAAC,IAAI,cAAE,UAAU,GAAQ,GACrB,IACF,EACL,eAAe,IAAI,CAAC,CAAC,KAAK,CAAC,CAA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C7D,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"}
@@ -1,7 +0,0 @@
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";
@@ -1,26 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,15 +0,0 @@
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 {};
@@ -1,66 +0,0 @@
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
@@ -1 +0,0 @@
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,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,MAAM,UAAU,UAAU,CAAC,EACzB,QAAQ,EACR,QAAQ,EACR,mBAAmB,GACH;IAChB,MAAM,CAAC,YAAY,EAAE,eAAe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E,CAAC;gBACjB,OAAO;YACT,CAAC;YACD,IAAI,QAAQ,CAAC,MAAM,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;gBACnD,2CAA2C;gBAC3C,eAAe,CACb,wEAAwE,CACzE,CAAC;gBACF,OAAO;YACT,CAAC;YACD,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,MAAC,GAAG,IACF,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,MAAM,CAAC,IAAI,EACxB,aAAa,EAAC,QAAQ,EACtB,OAAO,EAAE,CAAC,EACV,KAAK,EAAC,MAAM,aAEZ,KAAC,IAAI,IAAC,IAAI,yCAA0B,EACpC,KAAC,iBAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,gBAAgB,EAC9B,QAAQ,EAAE,gBAAgB,EAC1B,SAAS,EAAE,IAAI,GACf,EACD,YAAY,IAAI,CACf,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,YAAG,YAAY,GAAQ,GAChD,CACP,EACD,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,sCAA8B,GAClD,EACN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,sEAA2D,GAC5D,EACN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,YAE1B,2EAA2E,GAExE,GACH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,11 +0,0 @@
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 {};
@@ -1,27 +0,0 @@
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
@@ -1 +0,0 @@
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,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAMtC,MAAM,UAAU,cAAc,CAAC,EAC7B,SAAS,GACW;IACpB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhD,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;QAClB,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACf,SAAS,EAAE,CAAC;QACd,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;YAC5B,WAAW,CAAC,IAAI,CAAC,CAAC;YAClB,SAAS,EAAE,CAAC;QACd,CAAC,EAAE,MAAM,CAAC,CAAC;QAEX,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,OAAO,CACL,KAAC,GAAG,IACF,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,MAAM,CAAC,IAAI,EACxB,aAAa,EAAC,QAAQ,EACtB,OAAO,EAAE,CAAC,EACV,KAAK,EAAC,MAAM,YAEX,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,4DAEtB,CACR,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,cACF,MAAC,IAAI,eACH,KAAC,OAAO,IAAC,IAAI,EAAC,MAAM,GAAG,kDAClB,GACH,CACP,GACG,CACP,CAAC;AACJ,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import React from 'react';
7
- import { ApprovalMode } from '@google/gemini-cli-core';
8
- interface AutoAcceptIndicatorProps {
9
- approvalMode: ApprovalMode;
10
- }
11
- export declare const AutoAcceptIndicator: React.FC<AutoAcceptIndicatorProps>;
12
- export {};
@@ -1,26 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
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 {};
@@ -1,40 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,11 +0,0 @@
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 {};
@@ -1,11 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,15 +0,0 @@
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 {};
@@ -1,41 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContextSummaryDisplay.js","sourceRoot":"","sources":["../../../../src/ui/components/ContextSummaryDisplay.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,oBAAoB,GACrB,EAAE,EAAE;IACH,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAE5D,IAAI,iBAAiB,KAAK,CAAC,IAAI,cAAc,KAAK,CAA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CAAC;IACH,CAAC;IAED,OAAO,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,YAAG,WAAW,GAAQ,CAAC;AACxD,CAAC,CAAC"}
@@ -1,14 +0,0 @@
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 {};