@google/gemini-cli 0.1.9-rc.1 → 0.1.10-dev.0

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 (430) hide show
  1. package/package.json +4 -8
  2. package/LICENSE +0 -202
  3. package/README.md +0 -142
  4. package/dist/.last_build +0 -0
  5. package/dist/google-gemini-cli-0.1.9-rc.1.tgz +0 -0
  6. package/dist/index.d.ts +0 -7
  7. package/dist/index.js +0 -20
  8. package/dist/index.js.map +0 -1
  9. package/dist/package.json +0 -81
  10. package/dist/src/config/auth.d.ts +0 -6
  11. package/dist/src/config/auth.js +0 -32
  12. package/dist/src/config/auth.js.map +0 -1
  13. package/dist/src/config/config.d.ts +0 -14
  14. package/dist/src/config/config.js +0 -235
  15. package/dist/src/config/config.js.map +0 -1
  16. package/dist/src/config/extension.d.ts +0 -20
  17. package/dist/src/config/extension.js +0 -81
  18. package/dist/src/config/extension.js.map +0 -1
  19. package/dist/src/config/sandboxConfig.d.ts +0 -13
  20. package/dist/src/config/sandboxConfig.js +0 -75
  21. package/dist/src/config/sandboxConfig.js.map +0 -1
  22. package/dist/src/config/settings.d.ts +0 -70
  23. package/dist/src/config/settings.js +0 -165
  24. package/dist/src/config/settings.js.map +0 -1
  25. package/dist/src/gemini.d.ts +0 -6
  26. package/dist/src/gemini.js +0 -217
  27. package/dist/src/gemini.js.map +0 -1
  28. package/dist/src/gemini.test.d.ts +0 -6
  29. package/dist/src/gemini.test.js +0 -122
  30. package/dist/src/gemini.test.js.map +0 -1
  31. package/dist/src/generated/git-commit.d.ts +0 -6
  32. package/dist/src/generated/git-commit.js +0 -9
  33. package/dist/src/generated/git-commit.js.map +0 -1
  34. package/dist/src/nonInteractiveCli.d.ts +0 -7
  35. package/dist/src/nonInteractiveCli.js +0 -115
  36. package/dist/src/nonInteractiveCli.js.map +0 -1
  37. package/dist/src/ui/App.d.ts +0 -14
  38. package/dist/src/ui/App.js +0 -387
  39. package/dist/src/ui/App.js.map +0 -1
  40. package/dist/src/ui/App.test.d.ts +0 -6
  41. package/dist/src/ui/App.test.js +0 -299
  42. package/dist/src/ui/App.test.js.map +0 -1
  43. package/dist/src/ui/colors.d.ts +0 -7
  44. package/dist/src/ui/colors.js +0 -48
  45. package/dist/src/ui/colors.js.map +0 -1
  46. package/dist/src/ui/components/AboutBox.d.ts +0 -16
  47. package/dist/src/ui/components/AboutBox.js +0 -6
  48. package/dist/src/ui/components/AboutBox.js.map +0 -1
  49. package/dist/src/ui/components/AsciiArt.d.ts +0 -7
  50. package/dist/src/ui/components/AsciiArt.js +0 -26
  51. package/dist/src/ui/components/AsciiArt.js.map +0 -1
  52. package/dist/src/ui/components/AuthDialog.d.ts +0 -15
  53. package/dist/src/ui/components/AuthDialog.js +0 -47
  54. package/dist/src/ui/components/AuthDialog.js.map +0 -1
  55. package/dist/src/ui/components/AuthDialog.test.d.ts +0 -6
  56. package/dist/src/ui/components/AuthDialog.test.js +0 -69
  57. package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
  58. package/dist/src/ui/components/AuthInProgress.d.ts +0 -11
  59. package/dist/src/ui/components/AuthInProgress.js +0 -27
  60. package/dist/src/ui/components/AuthInProgress.js.map +0 -1
  61. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
  62. package/dist/src/ui/components/AutoAcceptIndicator.js +0 -26
  63. package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
  64. package/dist/src/ui/components/ConsolePatcher.d.ts +0 -12
  65. package/dist/src/ui/components/ConsolePatcher.js +0 -40
  66. package/dist/src/ui/components/ConsolePatcher.js.map +0 -1
  67. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
  68. package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
  69. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
  70. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -15
  71. package/dist/src/ui/components/ContextSummaryDisplay.js +0 -41
  72. package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
  73. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
  74. package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
  75. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
  76. package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -15
  77. package/dist/src/ui/components/EditorSettingsDialog.js +0 -73
  78. package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
  79. package/dist/src/ui/components/Footer.d.ts +0 -20
  80. package/dist/src/ui/components/Footer.js +0 -13
  81. package/dist/src/ui/components/Footer.js.map +0 -1
  82. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -17
  83. package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -16
  84. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
  85. package/dist/src/ui/components/Header.d.ts +0 -12
  86. package/dist/src/ui/components/Header.js +0 -20
  87. package/dist/src/ui/components/Header.js.map +0 -1
  88. package/dist/src/ui/components/Help.d.ts +0 -12
  89. package/dist/src/ui/components/Help.js +0 -9
  90. package/dist/src/ui/components/Help.js.map +0 -1
  91. package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -18
  92. package/dist/src/ui/components/HistoryItemDisplay.js +0 -17
  93. package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
  94. package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
  95. package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -81
  96. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
  97. package/dist/src/ui/components/InputPrompt.d.ts +0 -24
  98. package/dist/src/ui/components/InputPrompt.js +0 -331
  99. package/dist/src/ui/components/InputPrompt.js.map +0 -1
  100. package/dist/src/ui/components/InputPrompt.test.d.ts +0 -6
  101. package/dist/src/ui/components/InputPrompt.test.js +0 -154
  102. package/dist/src/ui/components/InputPrompt.test.js.map +0 -1
  103. package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
  104. package/dist/src/ui/components/LoadingIndicator.js +0 -19
  105. package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
  106. package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
  107. package/dist/src/ui/components/LoadingIndicator.test.js +0 -141
  108. package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
  109. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
  110. package/dist/src/ui/components/MemoryUsageDisplay.js +0 -27
  111. package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
  112. package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
  113. package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
  114. package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
  115. package/dist/src/ui/components/ModelStatsDisplay.test.d.ts +0 -6
  116. package/dist/src/ui/components/ModelStatsDisplay.test.js +0 -217
  117. package/dist/src/ui/components/ModelStatsDisplay.test.js.map +0 -1
  118. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
  119. package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
  120. package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
  121. package/dist/src/ui/components/SessionSummaryDisplay.test.d.ts +0 -6
  122. package/dist/src/ui/components/SessionSummaryDisplay.test.js +0 -60
  123. package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +0 -1
  124. package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
  125. package/dist/src/ui/components/ShellModeIndicator.js +0 -5
  126. package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
  127. package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
  128. package/dist/src/ui/components/ShowMoreLines.js +0 -24
  129. package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
  130. package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
  131. package/dist/src/ui/components/StatsDisplay.js +0 -42
  132. package/dist/src/ui/components/StatsDisplay.js.map +0 -1
  133. package/dist/src/ui/components/StatsDisplay.test.d.ts +0 -6
  134. package/dist/src/ui/components/StatsDisplay.test.js +0 -275
  135. package/dist/src/ui/components/StatsDisplay.test.js.map +0 -1
  136. package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -21
  137. package/dist/src/ui/components/SuggestionsDisplay.js +0 -32
  138. package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
  139. package/dist/src/ui/components/ThemeDialog.d.ts +0 -19
  140. package/dist/src/ui/components/ThemeDialog.js +0 -126
  141. package/dist/src/ui/components/ThemeDialog.js.map +0 -1
  142. package/dist/src/ui/components/Tips.d.ts +0 -12
  143. package/dist/src/ui/components/Tips.js +0 -8
  144. package/dist/src/ui/components/Tips.js.map +0 -1
  145. package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
  146. package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
  147. package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
  148. package/dist/src/ui/components/ToolStatsDisplay.test.d.ts +0 -6
  149. package/dist/src/ui/components/ToolStatsDisplay.test.js +0 -160
  150. package/dist/src/ui/components/ToolStatsDisplay.test.js.map +0 -1
  151. package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
  152. package/dist/src/ui/components/UpdateNotification.js +0 -10
  153. package/dist/src/ui/components/UpdateNotification.js.map +0 -1
  154. package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
  155. package/dist/src/ui/components/messages/CompressionMessage.js +0 -16
  156. package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
  157. package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -15
  158. package/dist/src/ui/components/messages/DiffRenderer.js +0 -212
  159. package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
  160. package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
  161. package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -239
  162. package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
  163. package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
  164. package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
  165. package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
  166. package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
  167. package/dist/src/ui/components/messages/GeminiMessage.js +0 -10
  168. package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
  169. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
  170. package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -15
  171. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
  172. package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
  173. package/dist/src/ui/components/messages/InfoMessage.js +0 -9
  174. package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
  175. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -15
  176. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -111
  177. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
  178. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
  179. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -37
  180. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
  181. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -18
  182. package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -53
  183. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
  184. package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -15
  185. package/dist/src/ui/components/messages/ToolMessage.js +0 -61
  186. package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
  187. package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
  188. package/dist/src/ui/components/messages/ToolMessage.test.js +0 -116
  189. package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
  190. package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
  191. package/dist/src/ui/components/messages/UserMessage.js +0 -9
  192. package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
  193. package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
  194. package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
  195. package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
  196. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
  197. package/dist/src/ui/components/shared/MaxSizedBox.js +0 -384
  198. package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
  199. package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
  200. package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -134
  201. package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
  202. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -41
  203. package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -52
  204. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
  205. package/dist/src/ui/components/shared/text-buffer.d.ts +0 -128
  206. package/dist/src/ui/components/shared/text-buffer.js +0 -1122
  207. package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
  208. package/dist/src/ui/constants.d.ts +0 -8
  209. package/dist/src/ui/constants.js +0 -12
  210. package/dist/src/ui/constants.js.map +0 -1
  211. package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
  212. package/dist/src/ui/contexts/OverflowContext.js +0 -43
  213. package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
  214. package/dist/src/ui/contexts/SessionContext.d.ts +0 -33
  215. package/dist/src/ui/contexts/SessionContext.js +0 -49
  216. package/dist/src/ui/contexts/SessionContext.js.map +0 -1
  217. package/dist/src/ui/contexts/SessionContext.test.d.ts +0 -6
  218. package/dist/src/ui/contexts/SessionContext.test.js +0 -96
  219. package/dist/src/ui/contexts/SessionContext.test.js.map +0 -1
  220. package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
  221. package/dist/src/ui/contexts/StreamingContext.js +0 -15
  222. package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
  223. package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
  224. package/dist/src/ui/editors/editorSettingsManager.js +0 -54
  225. package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
  226. package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
  227. package/dist/src/ui/hooks/atCommandProcessor.js +0 -312
  228. package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
  229. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -16
  230. package/dist/src/ui/hooks/shellCommandProcessor.js +0 -261
  231. package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
  232. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -31
  233. package/dist/src/ui/hooks/slashCommandProcessor.js +0 -965
  234. package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
  235. package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
  236. package/dist/src/ui/hooks/useAuthCommand.js +0 -54
  237. package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
  238. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -10
  239. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -37
  240. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
  241. package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
  242. package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
  243. package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
  244. package/dist/src/ui/hooks/useCompletion.d.ts +0 -21
  245. package/dist/src/ui/hooks/useCompletion.js +0 -322
  246. package/dist/src/ui/hooks/useCompletion.js.map +0 -1
  247. package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
  248. package/dist/src/ui/hooks/useConsoleMessages.js +0 -60
  249. package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
  250. package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
  251. package/dist/src/ui/hooks/useEditorSettings.js +0 -43
  252. package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
  253. package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -23
  254. package/dist/src/ui/hooks/useGeminiStream.js +0 -524
  255. package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
  256. package/dist/src/ui/hooks/useGeminiStream.test.d.ts +0 -6
  257. package/dist/src/ui/hooks/useGeminiStream.test.js +0 -775
  258. package/dist/src/ui/hooks/useGeminiStream.test.js.map +0 -1
  259. package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
  260. package/dist/src/ui/hooks/useGitBranchName.js +0 -61
  261. package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
  262. package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
  263. package/dist/src/ui/hooks/useHistoryManager.js +0 -72
  264. package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
  265. package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
  266. package/dist/src/ui/hooks/useInputHistory.js +0 -84
  267. package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
  268. package/dist/src/ui/hooks/useKeypress.d.ts +0 -29
  269. package/dist/src/ui/hooks/useKeypress.js +0 -86
  270. package/dist/src/ui/hooks/useKeypress.js.map +0 -1
  271. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
  272. package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
  273. package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
  274. package/dist/src/ui/hooks/useLogger.d.ts +0 -10
  275. package/dist/src/ui/hooks/useLogger.js +0 -29
  276. package/dist/src/ui/hooks/useLogger.js.map +0 -1
  277. package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
  278. package/dist/src/ui/hooks/usePhraseCycler.js +0 -189
  279. package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
  280. package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
  281. package/dist/src/ui/hooks/usePrivacySettings.js +0 -115
  282. package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
  283. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -33
  284. package/dist/src/ui/hooks/useReactToolScheduler.js +0 -186
  285. package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
  286. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
  287. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
  288. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
  289. package/dist/src/ui/hooks/useShellHistory.d.ts +0 -11
  290. package/dist/src/ui/hooks/useShellHistory.js +0 -89
  291. package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
  292. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
  293. package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
  294. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
  295. package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
  296. package/dist/src/ui/hooks/useStateAndRef.js +0 -26
  297. package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
  298. package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
  299. package/dist/src/ui/hooks/useTerminalSize.js +0 -27
  300. package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
  301. package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
  302. package/dist/src/ui/hooks/useThemeCommand.js +0 -78
  303. package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
  304. package/dist/src/ui/hooks/useTimer.d.ts +0 -12
  305. package/dist/src/ui/hooks/useTimer.js +0 -58
  306. package/dist/src/ui/hooks/useTimer.js.map +0 -1
  307. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
  308. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -40
  309. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
  310. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
  311. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -17
  312. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
  313. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
  314. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -17
  315. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
  316. package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
  317. package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
  318. package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
  319. package/dist/src/ui/themes/ansi-light.d.ts +0 -7
  320. package/dist/src/ui/themes/ansi-light.js +0 -139
  321. package/dist/src/ui/themes/ansi-light.js.map +0 -1
  322. package/dist/src/ui/themes/ansi.d.ts +0 -7
  323. package/dist/src/ui/themes/ansi.js +0 -149
  324. package/dist/src/ui/themes/ansi.js.map +0 -1
  325. package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
  326. package/dist/src/ui/themes/atom-one-dark.js +0 -136
  327. package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
  328. package/dist/src/ui/themes/ayu-light.d.ts +0 -7
  329. package/dist/src/ui/themes/ayu-light.js +0 -128
  330. package/dist/src/ui/themes/ayu-light.js.map +0 -1
  331. package/dist/src/ui/themes/ayu.d.ts +0 -7
  332. package/dist/src/ui/themes/ayu.js +0 -102
  333. package/dist/src/ui/themes/ayu.js.map +0 -1
  334. package/dist/src/ui/themes/default-light.d.ts +0 -7
  335. package/dist/src/ui/themes/default-light.js +0 -100
  336. package/dist/src/ui/themes/default-light.js.map +0 -1
  337. package/dist/src/ui/themes/default.d.ts +0 -7
  338. package/dist/src/ui/themes/default.js +0 -143
  339. package/dist/src/ui/themes/default.js.map +0 -1
  340. package/dist/src/ui/themes/dracula.d.ts +0 -7
  341. package/dist/src/ui/themes/dracula.js +0 -113
  342. package/dist/src/ui/themes/dracula.js.map +0 -1
  343. package/dist/src/ui/themes/github-dark.d.ts +0 -7
  344. package/dist/src/ui/themes/github-dark.js +0 -136
  345. package/dist/src/ui/themes/github-dark.js.map +0 -1
  346. package/dist/src/ui/themes/github-light.d.ts +0 -7
  347. package/dist/src/ui/themes/github-light.js +0 -138
  348. package/dist/src/ui/themes/github-light.js.map +0 -1
  349. package/dist/src/ui/themes/googlecode.d.ts +0 -7
  350. package/dist/src/ui/themes/googlecode.js +0 -135
  351. package/dist/src/ui/themes/googlecode.js.map +0 -1
  352. package/dist/src/ui/themes/no-color.d.ts +0 -7
  353. package/dist/src/ui/themes/no-color.js +0 -84
  354. package/dist/src/ui/themes/no-color.js.map +0 -1
  355. package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
  356. package/dist/src/ui/themes/shades-of-purple.js +0 -302
  357. package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
  358. package/dist/src/ui/themes/theme-manager.d.ts +0 -33
  359. package/dist/src/ui/themes/theme-manager.js +0 -109
  360. package/dist/src/ui/themes/theme-manager.js.map +0 -1
  361. package/dist/src/ui/themes/theme.d.ts +0 -67
  362. package/dist/src/ui/themes/theme.js +0 -304
  363. package/dist/src/ui/themes/theme.js.map +0 -1
  364. package/dist/src/ui/themes/xcode.d.ts +0 -7
  365. package/dist/src/ui/themes/xcode.js +0 -143
  366. package/dist/src/ui/themes/xcode.js.map +0 -1
  367. package/dist/src/ui/types.d.ts +0 -162
  368. package/dist/src/ui/types.js +0 -43
  369. package/dist/src/ui/types.js.map +0 -1
  370. package/dist/src/ui/utils/CodeColorizer.d.ts +0 -14
  371. package/dist/src/ui/utils/CodeColorizer.js +0 -97
  372. package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
  373. package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
  374. package/dist/src/ui/utils/MarkdownDisplay.js +0 -276
  375. package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
  376. package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
  377. package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -176
  378. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
  379. package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
  380. package/dist/src/ui/utils/TableRenderer.js +0 -66
  381. package/dist/src/ui/utils/TableRenderer.js.map +0 -1
  382. package/dist/src/ui/utils/commandUtils.d.ts +0 -22
  383. package/dist/src/ui/utils/commandUtils.js +0 -25
  384. package/dist/src/ui/utils/commandUtils.js.map +0 -1
  385. package/dist/src/ui/utils/computeStats.d.ts +0 -10
  386. package/dist/src/ui/utils/computeStats.js +0 -55
  387. package/dist/src/ui/utils/computeStats.js.map +0 -1
  388. package/dist/src/ui/utils/displayUtils.d.ts +0 -17
  389. package/dist/src/ui/utils/displayUtils.js +0 -24
  390. package/dist/src/ui/utils/displayUtils.js.map +0 -1
  391. package/dist/src/ui/utils/errorParsing.d.ts +0 -15
  392. package/dist/src/ui/utils/errorParsing.js +0 -79
  393. package/dist/src/ui/utils/errorParsing.js.map +0 -1
  394. package/dist/src/ui/utils/formatters.d.ts +0 -13
  395. package/dist/src/ui/utils/formatters.js +0 -56
  396. package/dist/src/ui/utils/formatters.js.map +0 -1
  397. package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
  398. package/dist/src/ui/utils/markdownUtilities.js +0 -110
  399. package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
  400. package/dist/src/ui/utils/textUtils.d.ts +0 -22
  401. package/dist/src/ui/utils/textUtils.js +0 -58
  402. package/dist/src/ui/utils/textUtils.js.map +0 -1
  403. package/dist/src/ui/utils/updateCheck.d.ts +0 -6
  404. package/dist/src/ui/utils/updateCheck.js +0 -36
  405. package/dist/src/ui/utils/updateCheck.js.map +0 -1
  406. package/dist/src/utils/cleanup.d.ts +0 -6
  407. package/dist/src/utils/cleanup.js +0 -19
  408. package/dist/src/utils/cleanup.js.map +0 -1
  409. package/dist/src/utils/package.d.ts +0 -12
  410. package/dist/src/utils/package.js +0 -24
  411. package/dist/src/utils/package.js.map +0 -1
  412. package/dist/src/utils/readStdin.d.ts +0 -6
  413. package/dist/src/utils/readStdin.js +0 -34
  414. package/dist/src/utils/readStdin.js.map +0 -1
  415. package/dist/src/utils/sandbox-macos-permissive-closed.sb +0 -26
  416. package/dist/src/utils/sandbox-macos-permissive-open.sb +0 -19
  417. package/dist/src/utils/sandbox-macos-permissive-proxied.sb +0 -31
  418. package/dist/src/utils/sandbox-macos-restrictive-closed.sb +0 -87
  419. package/dist/src/utils/sandbox-macos-restrictive-open.sb +0 -90
  420. package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +0 -92
  421. package/dist/src/utils/sandbox.d.ts +0 -7
  422. package/dist/src/utils/sandbox.js +0 -680
  423. package/dist/src/utils/sandbox.js.map +0 -1
  424. package/dist/src/utils/startupWarnings.d.ts +0 -6
  425. package/dist/src/utils/startupWarnings.js +0 -40
  426. package/dist/src/utils/startupWarnings.js.map +0 -1
  427. package/dist/src/utils/version.d.ts +0 -6
  428. package/dist/src/utils/version.js +0 -11
  429. package/dist/src/utils/version.js.map +0 -1
  430. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,189 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { useState, useEffect, useRef } from 'react';
7
- export const WITTY_LOADING_PHRASES = [
8
- "I'm Feeling Lucky",
9
- 'Shipping awesomeness... ',
10
- 'Painting the serifs back on...',
11
- 'Navigating the slime mold...',
12
- 'Consulting the digital spirits...',
13
- 'Reticulating splines...',
14
- 'Warming up the AI hamsters...',
15
- 'Asking the magic conch shell...',
16
- 'Generating witty retort...',
17
- 'Polishing the algorithms...',
18
- "Don't rush perfection (or my code)...",
19
- 'Brewing fresh bytes...',
20
- 'Counting electrons...',
21
- 'Engaging cognitive processors...',
22
- 'Checking for syntax errors in the universe...',
23
- 'One moment, optimizing humor...',
24
- 'Shuffling punchlines...',
25
- 'Untangling neural nets...',
26
- 'Compiling brilliance...',
27
- 'Loading wit.exe...',
28
- 'Summoning the cloud of wisdom...',
29
- 'Preparing a witty response...',
30
- "Just a sec, I'm debugging reality...",
31
- 'Confuzzling the options...',
32
- 'Tuning the cosmic frequencies...',
33
- 'Crafting a response worthy of your patience...',
34
- 'Compiling the 1s and 0s...',
35
- 'Resolving dependencies... and existential crises...',
36
- 'Defragmenting memories... both RAM and personal...',
37
- 'Rebooting the humor module...',
38
- 'Caching the essentials (mostly cat memes)...',
39
- 'Running sudo make me a sandwich...',
40
- 'Optimizing for ludicrous speed',
41
- "Swapping bits... don't tell the bytes...",
42
- 'Garbage collecting... be right back...',
43
- 'Assembling the interwebs...',
44
- 'Converting coffee into code...',
45
- 'Pushing to production (and hoping for the best)...',
46
- 'Updating the syntax for reality...',
47
- 'Rewiring the synapses...',
48
- 'Looking for a misplaced semicolon...',
49
- "Greasin' the cogs of the machine...",
50
- 'Pre-heating the servers...',
51
- 'Calibrating the flux capacitor...',
52
- 'Engaging the improbability drive...',
53
- 'Channeling the Force...',
54
- 'Aligning the stars for optimal response...',
55
- 'So say we all...',
56
- 'Loading the next great idea...',
57
- "Just a moment, I'm in the zone...",
58
- 'Preparing to dazzle you with brilliance...',
59
- "Just a tick, I'm polishing my wit...",
60
- "Hold tight, I'm crafting a masterpiece...",
61
- "Just a jiffy, I'm debugging the universe...",
62
- "Just a moment, I'm aligning the pixels...",
63
- "Just a sec, I'm optimizing the humor...",
64
- "Just a moment, I'm tuning the algorithms...",
65
- 'Warp speed engaged...',
66
- 'Mining for more Dilithium crystals...',
67
- "I'm Giving Her all she's got Captain!",
68
- "Don't panic...",
69
- 'Following the white rabbit...',
70
- 'The truth is in here... somewhere...',
71
- 'Blowing on the cartridge...',
72
- 'Looking for the princess in another castle...',
73
- 'Loading... Do a barrel roll!',
74
- 'Waiting for the respawn...',
75
- 'Finishing the Kessel Run in less than 12 parsecs...',
76
- "The cake is not a lie, it's just still loading...",
77
- 'Fiddling with the character creation screen...',
78
- "Just a moment, I'm finding the right meme...",
79
- "Pressing 'A' to continue...",
80
- 'Herding digital cats...',
81
- 'Polishing the pixels...',
82
- 'Finding a suitable loading screen pun...',
83
- 'Distracting you with this witty phrase...',
84
- 'Almost there... probably...',
85
- 'Our hamsters are working as fast as they can...',
86
- 'Giving Cloudy a pat on the head...',
87
- 'Petting the cat...',
88
- 'Rickrolling my boss...',
89
- 'Never gonna give you up, never gonna let you down...',
90
- 'Slapping the bass...',
91
- 'Tasting the snozberries...',
92
- "I'm going the distance, I'm going for speed...",
93
- 'Is this the real life? Is this just fantasy?...',
94
- "I've got a good feeling about this...",
95
- 'Poking the bear...',
96
- 'Doing research on the latest memes...',
97
- 'Figuring out how to make this more witty...',
98
- 'Hmmm... let me think...',
99
- 'What do you call a fish with no eyes? A fsh...',
100
- 'Why did the computer go to therapy? It had too many bytes...',
101
- "Why don't programmers like nature? It has too many bugs...",
102
- 'Why do programmers prefer dark mode? Because light attracts bugs...',
103
- 'Why did the developer go broke? Because he used up all his cache...',
104
- "What can you do with a broken pencil? Nothing, it's pointless...",
105
- 'Applying percussive maintenance...',
106
- 'Searching for the correct USB orientation...',
107
- 'Ensuring the magic smoke stays inside the wires...',
108
- 'Rewriting in Rust for no particular reason...',
109
- 'Trying to exit Vim...',
110
- 'Spinning up the hamster wheel...',
111
- "That's not a bug, it's an undocumented feature...",
112
- 'Engage.',
113
- "I'll be back... with an answer.",
114
- 'My other process is a TARDIS...',
115
- 'Communing with the machine spirit...',
116
- 'Letting the thoughts marinate...',
117
- 'Just remembered where I put my keys...',
118
- 'Pondering the orb...',
119
- "I've seen things you people wouldn't believe... like a user who reads loading messages.",
120
- 'Initiating thoughtful gaze...',
121
- "What's a computer's favorite snack? Microchips.",
122
- "Why do Java developers wear glasses? Because they don't C#.",
123
- 'Charging the laser... pew pew!',
124
- 'Dividing by zero... just kidding!',
125
- 'Looking for an adult superviso... I mean, processing.',
126
- 'Making it go beep boop.',
127
- 'Buffering... because even AIs need a moment.',
128
- 'Entangling quantum particles for a faster response...',
129
- 'Polishing the chrome... on the algorithms.',
130
- 'Are you not entertained? (Working on it!)',
131
- 'Summoning the code gremlins... to help, of course.',
132
- 'Just waiting for the dial-up tone to finish...',
133
- 'Recalibrating the humor-o-meter.',
134
- 'My other loading screen is even funnier.',
135
- "Pretty sure there's a cat walking on the keyboard somewhere...",
136
- 'Enhancing... Enhancing... Still loading.',
137
- "It's not a bug, it's a feature... of this loading screen.",
138
- 'Have you tried turning it off and on again? (The loading screen, not me.)',
139
- ];
140
- export const PHRASE_CHANGE_INTERVAL_MS = 15000;
141
- /**
142
- * Custom hook to manage cycling through loading phrases.
143
- * @param isActive Whether the phrase cycling should be active.
144
- * @param isWaiting Whether to show a specific waiting phrase.
145
- * @returns The current loading phrase.
146
- */
147
- export const usePhraseCycler = (isActive, isWaiting) => {
148
- const [currentLoadingPhrase, setCurrentLoadingPhrase] = useState(WITTY_LOADING_PHRASES[0]);
149
- const phraseIntervalRef = useRef(null);
150
- useEffect(() => {
151
- if (isWaiting) {
152
- setCurrentLoadingPhrase('Waiting for user confirmation...');
153
- if (phraseIntervalRef.current) {
154
- clearInterval(phraseIntervalRef.current);
155
- phraseIntervalRef.current = null;
156
- }
157
- }
158
- else if (isActive) {
159
- if (phraseIntervalRef.current) {
160
- clearInterval(phraseIntervalRef.current);
161
- }
162
- // Select an initial random phrase
163
- const initialRandomIndex = Math.floor(Math.random() * WITTY_LOADING_PHRASES.length);
164
- setCurrentLoadingPhrase(WITTY_LOADING_PHRASES[initialRandomIndex]);
165
- phraseIntervalRef.current = setInterval(() => {
166
- // Select a new random phrase
167
- const randomIndex = Math.floor(Math.random() * WITTY_LOADING_PHRASES.length);
168
- setCurrentLoadingPhrase(WITTY_LOADING_PHRASES[randomIndex]);
169
- }, PHRASE_CHANGE_INTERVAL_MS);
170
- }
171
- else {
172
- // Idle or other states, clear the phrase interval
173
- // and reset to the first phrase for next active state.
174
- if (phraseIntervalRef.current) {
175
- clearInterval(phraseIntervalRef.current);
176
- phraseIntervalRef.current = null;
177
- }
178
- setCurrentLoadingPhrase(WITTY_LOADING_PHRASES[0]);
179
- }
180
- return () => {
181
- if (phraseIntervalRef.current) {
182
- clearInterval(phraseIntervalRef.current);
183
- phraseIntervalRef.current = null;
184
- }
185
- };
186
- }, [isActive, isWaiting]);
187
- return currentLoadingPhrase;
188
- };
189
- //# sourceMappingURL=usePhraseCycler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePhraseCycler.js","sourceRoot":"","sources":["../../../../src/ui/hooks/usePhraseCycler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,mBAAmB;IACnB,0BAA0B;IAC1B,gCAAgC;IAChC,8BAA8B;IAC9B,mCAAmC;IACnC,yBAAyB;IACzB,+BAA+B;IAC/B,iCAAiC;IACjC,4BAA4B;IAC5B,6BAA6B;IAC7B,uCAAuC;IACvC,wBAAwB;IACxB,uBAAuB;IACvB,kCAAkC;IAClC,+CAA+C;IAC/C,iCAAiC;IACjC,yBAAyB;IACzB,2BAA2B;IAC3B,yBAAyB;IACzB,oBAAoB;IACpB,kCAAkC;IAClC,+BAA+B;IAC/B,sCAAsC;IACtC,4BAA4B;IAC5B,kCAAkC;IAClC,gDAAgD;IAChD,4BAA4B;IAC5B,qDAAqD;IACrD,oDAAoD;IACpD,+BAA+B;IAC/B,8CAA8C;IAC9C,oCAAoC;IACpC,gCAAgC;IAChC,0CAA0C;IAC1C,wCAAwC;IACxC,6BAA6B;IAC7B,gCAAgC;IAChC,oDAAoD;IACpD,oCAAoC;IACpC,0BAA0B;IAC1B,sCAAsC;IACtC,qCAAqC;IACrC,4BAA4B;IAC5B,mCAAmC;IACnC,qCAAqC;IACrC,yBAAyB;IACzB,4CAA4C;IAC5C,kBAAkB;IAClB,gCAAgC;IAChC,mCAAmC;IACnC,4CAA4C;IAC5C,sCAAsC;IACtC,2CAA2C;IAC3C,6CAA6C;IAC7C,2CAA2C;I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CAAC,CAAC;gBACzC,iBAAiB,CAAC,OAAO,GAAG,IAAI,CAAC;YACnC,CAAC;YACD,uBAAuB,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;QAED,OAAO,GAAG,EAAE;YACV,IAAI,iBAAiB,CAAC,OAAO,EAAE,CAAC;gBAC9B,aAAa,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBACzC,iBAAiB,CAAC,OAAO,GAAG,IAAI,CAAC;YACnC,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;IAE1B,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { Config } from '@google/gemini-cli-core';
7
- export interface PrivacyState {
8
- isLoading: boolean;
9
- error?: string;
10
- isFreeTier?: boolean;
11
- dataCollectionOptIn?: boolean;
12
- }
13
- export declare const usePrivacySettings: (config: Config) => {
14
- privacyState: PrivacyState;
15
- updateDataCollectionOptIn: (optIn: boolean) => Promise<void>;
16
- };
@@ -1,115 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { GaxiosError } from 'gaxios';
7
- import { useState, useEffect, useCallback } from 'react';
8
- import { CodeAssistServer, UserTierId } from '@google/gemini-cli-core';
9
- export const usePrivacySettings = (config) => {
10
- const [privacyState, setPrivacyState] = useState({
11
- isLoading: true,
12
- });
13
- useEffect(() => {
14
- const fetchInitialState = async () => {
15
- setPrivacyState({
16
- isLoading: true,
17
- });
18
- try {
19
- const server = getCodeAssistServer(config);
20
- const tier = await getTier(server);
21
- if (tier !== UserTierId.FREE) {
22
- // We don't need to fetch opt-out info since non-free tier
23
- // data gathering is already worked out some other way.
24
- setPrivacyState({
25
- isLoading: false,
26
- isFreeTier: false,
27
- });
28
- return;
29
- }
30
- const optIn = await getRemoteDataCollectionOptIn(server);
31
- setPrivacyState({
32
- isLoading: false,
33
- isFreeTier: true,
34
- dataCollectionOptIn: optIn,
35
- });
36
- }
37
- catch (e) {
38
- setPrivacyState({
39
- isLoading: false,
40
- error: e instanceof Error ? e.message : String(e),
41
- });
42
- }
43
- };
44
- fetchInitialState();
45
- }, [config]);
46
- const updateDataCollectionOptIn = useCallback(async (optIn) => {
47
- try {
48
- const server = getCodeAssistServer(config);
49
- const updatedOptIn = await setRemoteDataCollectionOptIn(server, optIn);
50
- setPrivacyState({
51
- isLoading: false,
52
- isFreeTier: true,
53
- dataCollectionOptIn: updatedOptIn,
54
- });
55
- }
56
- catch (e) {
57
- setPrivacyState({
58
- isLoading: false,
59
- error: e instanceof Error ? e.message : String(e),
60
- });
61
- }
62
- }, [config]);
63
- return {
64
- privacyState,
65
- updateDataCollectionOptIn,
66
- };
67
- };
68
- function getCodeAssistServer(config) {
69
- const server = config.getGeminiClient().getContentGenerator();
70
- // Neither of these cases should ever happen.
71
- if (!(server instanceof CodeAssistServer)) {
72
- throw new Error('Oauth not being used');
73
- }
74
- else if (!server.projectId) {
75
- throw new Error('Oauth not being used');
76
- }
77
- return server;
78
- }
79
- async function getTier(server) {
80
- const loadRes = await server.loadCodeAssist({
81
- cloudaicompanionProject: server.projectId,
82
- metadata: {
83
- ideType: 'IDE_UNSPECIFIED',
84
- platform: 'PLATFORM_UNSPECIFIED',
85
- pluginType: 'GEMINI',
86
- duetProject: server.projectId,
87
- },
88
- });
89
- if (!loadRes.currentTier) {
90
- throw new Error('User does not have a current tier');
91
- }
92
- return loadRes.currentTier.id;
93
- }
94
- async function getRemoteDataCollectionOptIn(server) {
95
- try {
96
- const resp = await server.getCodeAssistGlobalUserSetting();
97
- return resp.freeTierDataCollectionOptin;
98
- }
99
- catch (e) {
100
- if (e instanceof GaxiosError) {
101
- if (e.response?.status === 404) {
102
- return true;
103
- }
104
- }
105
- throw e;
106
- }
107
- }
108
- async function setRemoteDataCollectionOptIn(server, optIn) {
109
- const resp = await server.setCodeAssistGlobalUserSetting({
110
- cloudaicompanionProject: server.projectId,
111
- freeTierDataCollectionOptin: optIn,
112
- });
113
- return resp.freeTierDataCollectionOptin;
114
- }
115
- //# sourceMappingURL=usePrivacySettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePrivacySettings.js","sourceRoot":"","sources":["../../../../src/ui/hooks/usePrivacySettings.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAU,gBAAgB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAS/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,EAAE;IACnD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAe;QAC7D,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,iBAAiB,GAAG,KAAK,IAAI,EAAE;YACnC,eAAe,CAAC;gBACd,SAAS,EAAE,IAAI;aAChB,CAAC,CAAC;YACH,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;gBAC3C,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;gBACnC,IAAI,IAAI,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC;oBAC7B,0DAA0D;oBAC1D,uDAAuD;oBACvD,eAAe,CAAC;wBACd,SAAS,EAAE,KAAK;wBAChB,UAAU,EAAE,KAAK;qBAClB,CAAC,CAAC;oBACH,OAAO;gBACT,CAAC;gBAED,MAAM,KAAK,GAAG,MAAM,4BAA4B,CAAC,MAAM,CAAC,CAAC;gBACzD,eAAe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ACvD,uBAAuB,EAAE,MAAM,CAAC,SAAS;QACzC,2BAA2B,EAAE,KAAK;KACnC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,2BAA2B,CAAC;AAC1C,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { Config, ToolCallRequestInfo, ExecutingToolCall, ScheduledToolCall, ValidatingToolCall, WaitingToolCall, CompletedToolCall, CancelledToolCall, EditorType } from '@google/gemini-cli-core';
7
- import { HistoryItemToolGroup, HistoryItemWithoutId } from '../types.js';
8
- export type ScheduleFn = (request: ToolCallRequestInfo | ToolCallRequestInfo[], signal: AbortSignal) => void;
9
- export type MarkToolsAsSubmittedFn = (callIds: string[]) => void;
10
- export type TrackedScheduledToolCall = ScheduledToolCall & {
11
- responseSubmittedToGemini?: boolean;
12
- };
13
- export type TrackedValidatingToolCall = ValidatingToolCall & {
14
- responseSubmittedToGemini?: boolean;
15
- };
16
- export type TrackedWaitingToolCall = WaitingToolCall & {
17
- responseSubmittedToGemini?: boolean;
18
- };
19
- export type TrackedExecutingToolCall = ExecutingToolCall & {
20
- responseSubmittedToGemini?: boolean;
21
- };
22
- export type TrackedCompletedToolCall = CompletedToolCall & {
23
- responseSubmittedToGemini?: boolean;
24
- };
25
- export type TrackedCancelledToolCall = CancelledToolCall & {
26
- responseSubmittedToGemini?: boolean;
27
- };
28
- export type TrackedToolCall = TrackedScheduledToolCall | TrackedValidatingToolCall | TrackedWaitingToolCall | TrackedExecutingToolCall | TrackedCompletedToolCall | TrackedCancelledToolCall;
29
- export declare function useReactToolScheduler(onComplete: (tools: CompletedToolCall[]) => void, config: Config, setPendingHistoryItem: React.Dispatch<React.SetStateAction<HistoryItemWithoutId | null>>, getPreferredEditor: () => EditorType | undefined): [TrackedToolCall[], ScheduleFn, MarkToolsAsSubmittedFn];
30
- /**
31
- * Transforms `TrackedToolCall` objects into `HistoryItemToolGroup` objects for UI display.
32
- */
33
- export declare function mapToDisplay(toolOrTools: TrackedToolCall[] | TrackedToolCall): HistoryItemToolGroup;
@@ -1,186 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { CoreToolScheduler, } from '@google/gemini-cli-core';
7
- import { useCallback, useState, useMemo } from 'react';
8
- import { ToolCallStatus, } from '../types.js';
9
- export function useReactToolScheduler(onComplete, config, setPendingHistoryItem, getPreferredEditor) {
10
- const [toolCallsForDisplay, setToolCallsForDisplay] = useState([]);
11
- const outputUpdateHandler = useCallback((toolCallId, outputChunk) => {
12
- setPendingHistoryItem((prevItem) => {
13
- if (prevItem?.type === 'tool_group') {
14
- return {
15
- ...prevItem,
16
- tools: prevItem.tools.map((toolDisplay) => toolDisplay.callId === toolCallId &&
17
- toolDisplay.status === ToolCallStatus.Executing
18
- ? { ...toolDisplay, resultDisplay: outputChunk }
19
- : toolDisplay),
20
- };
21
- }
22
- return prevItem;
23
- });
24
- setToolCallsForDisplay((prevCalls) => prevCalls.map((tc) => {
25
- if (tc.request.callId === toolCallId && tc.status === 'executing') {
26
- const executingTc = tc;
27
- return { ...executingTc, liveOutput: outputChunk };
28
- }
29
- return tc;
30
- }));
31
- }, [setPendingHistoryItem]);
32
- const allToolCallsCompleteHandler = useCallback((completedToolCalls) => {
33
- onComplete(completedToolCalls);
34
- }, [onComplete]);
35
- const toolCallsUpdateHandler = useCallback((updatedCoreToolCalls) => {
36
- setToolCallsForDisplay((prevTrackedCalls) => updatedCoreToolCalls.map((coreTc) => {
37
- const existingTrackedCall = prevTrackedCalls.find((ptc) => ptc.request.callId === coreTc.request.callId);
38
- const newTrackedCall = {
39
- ...coreTc,
40
- responseSubmittedToGemini: existingTrackedCall?.responseSubmittedToGemini ?? false,
41
- };
42
- return newTrackedCall;
43
- }));
44
- }, [setToolCallsForDisplay]);
45
- const scheduler = useMemo(() => new CoreToolScheduler({
46
- toolRegistry: config.getToolRegistry(),
47
- outputUpdateHandler,
48
- onAllToolCallsComplete: allToolCallsCompleteHandler,
49
- onToolCallsUpdate: toolCallsUpdateHandler,
50
- approvalMode: config.getApprovalMode(),
51
- getPreferredEditor,
52
- config,
53
- }), [
54
- config,
55
- outputUpdateHandler,
56
- allToolCallsCompleteHandler,
57
- toolCallsUpdateHandler,
58
- getPreferredEditor,
59
- ]);
60
- const schedule = useCallback((request, signal) => {
61
- scheduler.schedule(request, signal);
62
- }, [scheduler]);
63
- const markToolsAsSubmitted = useCallback((callIdsToMark) => {
64
- setToolCallsForDisplay((prevCalls) => prevCalls.map((tc) => callIdsToMark.includes(tc.request.callId)
65
- ? { ...tc, responseSubmittedToGemini: true }
66
- : tc));
67
- }, []);
68
- return [toolCallsForDisplay, schedule, markToolsAsSubmitted];
69
- }
70
- /**
71
- * Maps a CoreToolScheduler status to the UI's ToolCallStatus enum.
72
- */
73
- function mapCoreStatusToDisplayStatus(coreStatus) {
74
- switch (coreStatus) {
75
- case 'validating':
76
- return ToolCallStatus.Executing;
77
- case 'awaiting_approval':
78
- return ToolCallStatus.Confirming;
79
- case 'executing':
80
- return ToolCallStatus.Executing;
81
- case 'success':
82
- return ToolCallStatus.Success;
83
- case 'cancelled':
84
- return ToolCallStatus.Canceled;
85
- case 'error':
86
- return ToolCallStatus.Error;
87
- case 'scheduled':
88
- return ToolCallStatus.Pending;
89
- default: {
90
- const exhaustiveCheck = coreStatus;
91
- console.warn(`Unknown core status encountered: ${exhaustiveCheck}`);
92
- return ToolCallStatus.Error;
93
- }
94
- }
95
- }
96
- /**
97
- * Transforms `TrackedToolCall` objects into `HistoryItemToolGroup` objects for UI display.
98
- */
99
- export function mapToDisplay(toolOrTools) {
100
- const toolCalls = Array.isArray(toolOrTools) ? toolOrTools : [toolOrTools];
101
- const toolDisplays = toolCalls.map((trackedCall) => {
102
- let displayName = trackedCall.request.name;
103
- let description = '';
104
- let renderOutputAsMarkdown = false;
105
- const currentToolInstance = 'tool' in trackedCall && trackedCall.tool
106
- ? trackedCall.tool
107
- : undefined;
108
- if (currentToolInstance) {
109
- displayName = currentToolInstance.displayName;
110
- description = currentToolInstance.getDescription(trackedCall.request.args);
111
- renderOutputAsMarkdown = currentToolInstance.isOutputMarkdown;
112
- }
113
- else if ('request' in trackedCall && 'args' in trackedCall.request) {
114
- description = JSON.stringify(trackedCall.request.args);
115
- }
116
- const baseDisplayProperties = {
117
- callId: trackedCall.request.callId,
118
- name: displayName,
119
- description,
120
- renderOutputAsMarkdown,
121
- };
122
- switch (trackedCall.status) {
123
- case 'success':
124
- return {
125
- ...baseDisplayProperties,
126
- status: mapCoreStatusToDisplayStatus(trackedCall.status),
127
- resultDisplay: trackedCall.response.resultDisplay,
128
- confirmationDetails: undefined,
129
- };
130
- case 'error':
131
- return {
132
- ...baseDisplayProperties,
133
- name: currentToolInstance?.displayName ?? trackedCall.request.name,
134
- status: mapCoreStatusToDisplayStatus(trackedCall.status),
135
- resultDisplay: trackedCall.response.resultDisplay,
136
- confirmationDetails: undefined,
137
- };
138
- case 'cancelled':
139
- return {
140
- ...baseDisplayProperties,
141
- status: mapCoreStatusToDisplayStatus(trackedCall.status),
142
- resultDisplay: trackedCall.response.resultDisplay,
143
- confirmationDetails: undefined,
144
- };
145
- case 'awaiting_approval':
146
- return {
147
- ...baseDisplayProperties,
148
- status: mapCoreStatusToDisplayStatus(trackedCall.status),
149
- resultDisplay: undefined,
150
- confirmationDetails: trackedCall.confirmationDetails,
151
- };
152
- case 'executing':
153
- return {
154
- ...baseDisplayProperties,
155
- status: mapCoreStatusToDisplayStatus(trackedCall.status),
156
- resultDisplay: trackedCall.liveOutput ?? undefined,
157
- confirmationDetails: undefined,
158
- };
159
- case 'validating': // Fallthrough
160
- case 'scheduled':
161
- return {
162
- ...baseDisplayProperties,
163
- status: mapCoreStatusToDisplayStatus(trackedCall.status),
164
- resultDisplay: undefined,
165
- confirmationDetails: undefined,
166
- };
167
- default: {
168
- const exhaustiveCheck = trackedCall;
169
- return {
170
- callId: exhaustiveCheck.request.callId,
171
- name: 'Unknown Tool',
172
- description: 'Encountered an unknown tool call state.',
173
- status: ToolCallStatus.Error,
174
- resultDisplay: 'Unknown tool call state',
175
- confirmationDetails: undefined,
176
- renderOutputAsMarkdown: false,
177
- };
178
- }
179
- }
180
- });
181
- return {
182
- type: 'tool_group',
183
- tools: toolDisplays,
184
- };
185
- }
186
- //# sourceMappingURL=useReactToolScheduler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useReactToolScheduler.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useReactToolScheduler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EASL,iBAAiB,GAQlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAGL,cAAc,GAEf,MAAM,aAAa,CAAC;AAmCrB,MAAM,UAAU,qBAAqB,CACnC,UAAgD,EAChD,MAAc,EACd,qBAEC,EACD,kBAAgD;IAEhD,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAE5D,EAAE,CAAC,CAAC;IAEN,MAAM,mBAAmB,GAAwB,WAAW,CAC1D,CAAC,UAAU,EAAE,WAAW,EAAE,EAAE;QAC1B,qBAAqB,CAAC,CAAC,QAAQ,EAAE,EAAE;YACjC,IAAI,QAAQ,EAAE,IAAI,KAAK,YAAY,EAAE,CAAC;gBACpC,OAAO;oBACL,GAAG,QAAQ;oBACX,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CACxC,WAAW,CAAC,MAAM,KAAK,UAAU;wBACjC,WAAW,CAAC,MAAM,KAAK,cAAc,CAAC,SAAS;wBAC7C,CAAC,CAAC,EAAE,GAAG,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE;wBAChD,CAAC,CAAC,WAAW,CAChB;iBACF,CAAC;YACJ,CAAC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,CAAC,UAAU,IAAI,SAAS;oBACnE,mBAAmB,EAAE,SAAS;iBAC/B,CAAC;YACJ,KAAK,YAAY,CAAC,CAAC,cAAc;YACjC,KAAK,WAAW;gBACd,OAAO;oBACL,GAAG,qBAAqB;oBACxB,MAAM,EAAE,4BAA4B,CAAC,WAAW,CAAC,MAAM,CAAC;oBACxD,aAAa,EAAE,SAAS;oBACxB,mBAAmB,EAAE,SAAS;iBAC/B,CAAC;YACJ,OAAO,CAAC,CAAC,CAAC;gBACR,MAAM,eAAe,GAAU,WAAW,CAAC;gBAC3C,OAAO;oBACL,MAAM,EAAG,eAAmC,CAAC,OAAO,CAAC,MAAM;oBAC3D,IAAI,EAAE,cAAc;oBACpB,WAAW,EAAE,yCAAyC;oBACtD,MAAM,EAAE,cAAc,CAAC,KAAK;oBAC5B,aAAa,EAAE,yBAAyB;oBACxC,mBAAmB,EAAE,SAAS;oBAC9B,sBAAsB,EAAE,KAAK;iBAC9B,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC,CACF,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,YAAY;KACpB,CAAC;AACJ,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export declare const REFRESH_MEMORY_COMMAND_NAME = "/refreshmemory";
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export const REFRESH_MEMORY_COMMAND_NAME = '/refreshmemory';
7
- //# sourceMappingURL=useRefreshMemoryCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRefreshMemoryCommand.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useRefreshMemoryCommand.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export declare function useShellHistory(projectRoot: string): {
7
- addCommandToHistory: (command: string) => void;
8
- getPreviousCommand: () => string | null;
9
- getNextCommand: () => string | null;
10
- resetHistoryPosition: () => void;
11
- };