@google/gemini-cli 0.0.44-beta.0 → 0.0.77

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 (1067) hide show
  1. package/README.md +4 -10
  2. package/dist/.last_build +0 -0
  3. package/dist/index.d.ts +7 -0
  4. package/dist/index.js +29 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/package.json +84 -0
  7. package/dist/src/commands/extensions/disable.d.ts +14 -0
  8. package/dist/src/commands/extensions/disable.js +42 -0
  9. package/dist/src/commands/extensions/disable.js.map +1 -0
  10. package/dist/src/commands/extensions/enable.d.ts +14 -0
  11. package/dist/src/commands/extensions/enable.js +46 -0
  12. package/dist/src/commands/extensions/enable.js.map +1 -0
  13. package/dist/src/commands/extensions/examples/context/GEMINI.md +8 -0
  14. package/dist/src/commands/extensions/examples/context/gemini-extension.json +5 -0
  15. package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +6 -0
  16. package/dist/src/commands/extensions/examples/custom-commands/gemini-extension.json +4 -0
  17. package/dist/src/commands/extensions/examples/exclude-tools/gemini-extension.json +5 -0
  18. package/dist/src/commands/extensions/examples/mcp-server/example.d.ts +6 -0
  19. package/dist/src/commands/extensions/examples/mcp-server/example.js +46 -0
  20. package/dist/src/commands/extensions/examples/mcp-server/example.js.map +1 -0
  21. package/dist/src/commands/extensions/examples/mcp-server/example.ts +60 -0
  22. package/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +10 -0
  23. package/dist/src/commands/extensions/install.d.ts +14 -0
  24. package/dist/src/commands/extensions/install.js +77 -0
  25. package/dist/src/commands/extensions/install.js.map +1 -0
  26. package/dist/src/commands/extensions/install.test.d.ts +6 -0
  27. package/dist/src/commands/extensions/install.test.js +95 -0
  28. package/dist/src/commands/extensions/install.test.js.map +1 -0
  29. package/dist/src/commands/extensions/link.d.ts +12 -0
  30. package/dist/src/commands/extensions/link.js +37 -0
  31. package/dist/src/commands/extensions/link.js.map +1 -0
  32. package/dist/src/commands/extensions/list.d.ts +8 -0
  33. package/dist/src/commands/extensions/list.js +32 -0
  34. package/dist/src/commands/extensions/list.js.map +1 -0
  35. package/dist/src/commands/extensions/new.d.ts +7 -0
  36. package/dist/src/commands/extensions/new.js +70 -0
  37. package/dist/src/commands/extensions/new.js.map +1 -0
  38. package/dist/src/commands/extensions/new.test.d.ts +6 -0
  39. package/dist/src/commands/extensions/new.test.js +50 -0
  40. package/dist/src/commands/extensions/new.test.js.map +1 -0
  41. package/dist/src/commands/extensions/uninstall.d.ts +12 -0
  42. package/dist/src/commands/extensions/uninstall.js +38 -0
  43. package/dist/src/commands/extensions/uninstall.js.map +1 -0
  44. package/dist/src/commands/extensions/uninstall.test.d.ts +6 -0
  45. package/dist/src/commands/extensions/uninstall.test.js +15 -0
  46. package/dist/src/commands/extensions/uninstall.test.js.map +1 -0
  47. package/dist/src/commands/extensions/update.d.ts +13 -0
  48. package/dist/src/commands/extensions/update.js +69 -0
  49. package/dist/src/commands/extensions/update.js.map +1 -0
  50. package/dist/src/commands/extensions.d.ts +7 -0
  51. package/dist/src/commands/extensions.js +33 -0
  52. package/dist/src/commands/extensions.js.map +1 -0
  53. package/dist/src/commands/mcp/add.d.ts +7 -0
  54. package/dist/src/commands/mcp/add.js +166 -0
  55. package/dist/src/commands/mcp/add.js.map +1 -0
  56. package/dist/src/commands/mcp/list.d.ts +8 -0
  57. package/dist/src/commands/mcp/list.js +110 -0
  58. package/dist/src/commands/mcp/list.js.map +1 -0
  59. package/dist/src/commands/mcp/remove.d.ts +7 -0
  60. package/dist/src/commands/mcp/remove.js +44 -0
  61. package/dist/src/commands/mcp/remove.js.map +1 -0
  62. package/dist/src/commands/mcp.d.ts +7 -0
  63. package/dist/src/commands/mcp.js +23 -0
  64. package/dist/src/commands/mcp.js.map +1 -0
  65. package/dist/src/config/auth.d.ts +6 -0
  66. package/dist/src/config/auth.js +34 -0
  67. package/dist/src/config/auth.js.map +1 -0
  68. package/dist/src/config/auth.test.d.ts +6 -0
  69. package/dist/src/config/auth.test.js +65 -0
  70. package/dist/src/config/auth.test.js.map +1 -0
  71. package/dist/src/config/config.d.ts +45 -0
  72. package/dist/src/config/config.js +477 -0
  73. package/dist/src/config/config.js.map +1 -0
  74. package/dist/src/config/extension.d.ts +72 -0
  75. package/dist/src/config/extension.js +568 -0
  76. package/dist/src/config/extension.js.map +1 -0
  77. package/dist/src/config/extensions/extensionEnablement.d.ts +30 -0
  78. package/dist/src/config/extensions/extensionEnablement.js +113 -0
  79. package/dist/src/config/extensions/extensionEnablement.js.map +1 -0
  80. package/dist/src/config/extensions/extensionEnablement.test.d.ts +6 -0
  81. package/dist/src/config/extensions/extensionEnablement.test.js +116 -0
  82. package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -0
  83. package/dist/src/config/extensions/variableSchema.d.ts +36 -0
  84. package/dist/src/config/extensions/variableSchema.js +22 -0
  85. package/dist/src/config/extensions/variableSchema.js.map +1 -0
  86. package/dist/src/config/extensions/variables.d.ts +17 -0
  87. package/dist/src/config/extensions/variables.js +40 -0
  88. package/dist/src/config/extensions/variables.js.map +1 -0
  89. package/dist/src/config/extensions/variables.test.d.ts +6 -0
  90. package/dist/src/config/extensions/variables.test.js +17 -0
  91. package/dist/src/config/extensions/variables.test.js.map +1 -0
  92. package/dist/src/config/keyBindings.d.ts +70 -0
  93. package/dist/src/config/keyBindings.js +130 -0
  94. package/dist/src/config/keyBindings.js.map +1 -0
  95. package/dist/src/config/keyBindings.test.d.ts +6 -0
  96. package/dist/src/config/keyBindings.test.js +51 -0
  97. package/dist/src/config/keyBindings.test.js.map +1 -0
  98. package/dist/src/config/sandboxConfig.d.ts +13 -0
  99. package/dist/src/config/sandboxConfig.js +73 -0
  100. package/dist/src/config/sandboxConfig.js.map +1 -0
  101. package/dist/src/config/settings.d.ts +65 -0
  102. package/dist/src/config/settings.js +553 -0
  103. package/dist/src/config/settings.js.map +1 -0
  104. package/dist/src/config/settingsSchema.d.ts +959 -0
  105. package/dist/src/config/settingsSchema.js +925 -0
  106. package/dist/src/config/settingsSchema.js.map +1 -0
  107. package/dist/src/config/settingsSchema.test.d.ts +6 -0
  108. package/dist/src/config/settingsSchema.test.js +206 -0
  109. package/dist/src/config/settingsSchema.test.js.map +1 -0
  110. package/dist/src/config/trustedFolders.d.ts +47 -0
  111. package/dist/src/config/trustedFolders.js +142 -0
  112. package/dist/src/config/trustedFolders.js.map +1 -0
  113. package/dist/src/config/trustedFolders.test.d.ts +6 -0
  114. package/dist/src/config/trustedFolders.test.js +259 -0
  115. package/dist/src/config/trustedFolders.test.js.map +1 -0
  116. package/dist/src/core/auth.d.ts +13 -0
  117. package/dist/src/core/auth.js +27 -0
  118. package/dist/src/core/auth.js.map +1 -0
  119. package/dist/src/core/initializer.d.ts +21 -0
  120. package/dist/src/core/initializer.js +33 -0
  121. package/dist/src/core/initializer.js.map +1 -0
  122. package/dist/src/core/theme.d.ts +12 -0
  123. package/dist/src/core/theme.js +20 -0
  124. package/dist/src/core/theme.js.map +1 -0
  125. package/dist/src/gemini.d.ts +12 -0
  126. package/dist/src/gemini.js +333 -0
  127. package/dist/src/gemini.js.map +1 -0
  128. package/dist/src/gemini.test.d.ts +6 -0
  129. package/dist/src/gemini.test.js +318 -0
  130. package/dist/src/gemini.test.js.map +1 -0
  131. package/dist/src/generated/git-commit.d.ts +7 -0
  132. package/dist/src/generated/git-commit.js +10 -0
  133. package/dist/src/generated/git-commit.js.map +1 -0
  134. package/dist/src/nonInteractiveCli.d.ts +7 -0
  135. package/dist/src/nonInteractiveCli.js +108 -0
  136. package/dist/src/nonInteractiveCli.js.map +1 -0
  137. package/dist/src/patches/is-in-ci.d.ts +7 -0
  138. package/dist/src/patches/is-in-ci.js +15 -0
  139. package/dist/src/patches/is-in-ci.js.map +1 -0
  140. package/dist/src/services/BuiltinCommandLoader.d.ts +24 -0
  141. package/dist/src/services/BuiltinCommandLoader.js +82 -0
  142. package/dist/src/services/BuiltinCommandLoader.js.map +1 -0
  143. package/dist/src/services/BuiltinCommandLoader.test.d.ts +6 -0
  144. package/dist/src/services/BuiltinCommandLoader.test.js +107 -0
  145. package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -0
  146. package/dist/src/services/CommandService.d.ts +55 -0
  147. package/dist/src/services/CommandService.js +90 -0
  148. package/dist/src/services/CommandService.js.map +1 -0
  149. package/dist/src/services/CommandService.test.d.ts +6 -0
  150. package/dist/src/services/CommandService.test.js +233 -0
  151. package/dist/src/services/CommandService.test.js.map +1 -0
  152. package/dist/src/services/FileCommandLoader.d.ts +51 -0
  153. package/dist/src/services/FileCommandLoader.js +227 -0
  154. package/dist/src/services/FileCommandLoader.js.map +1 -0
  155. package/dist/src/services/McpPromptLoader.d.ts +35 -0
  156. package/dist/src/services/McpPromptLoader.js +253 -0
  157. package/dist/src/services/McpPromptLoader.js.map +1 -0
  158. package/dist/src/services/McpPromptLoader.test.d.ts +6 -0
  159. package/dist/src/services/McpPromptLoader.test.js +341 -0
  160. package/dist/src/services/McpPromptLoader.test.js.map +1 -0
  161. package/dist/src/services/prompt-processors/argumentProcessor.d.ts +16 -0
  162. package/dist/src/services/prompt-processors/argumentProcessor.js +21 -0
  163. package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -0
  164. package/dist/src/services/prompt-processors/atFileProcessor.d.ts +12 -0
  165. package/dist/src/services/prompt-processors/atFileProcessor.js +62 -0
  166. package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -0
  167. package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +6 -0
  168. package/dist/src/services/prompt-processors/atFileProcessor.test.js +174 -0
  169. package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +1 -0
  170. package/dist/src/services/prompt-processors/injectionParser.d.ts +29 -0
  171. package/dist/src/services/prompt-processors/injectionParser.js +60 -0
  172. package/dist/src/services/prompt-processors/injectionParser.js.map +1 -0
  173. package/dist/src/services/prompt-processors/injectionParser.test.d.ts +6 -0
  174. package/dist/src/services/prompt-processors/injectionParser.test.js +189 -0
  175. package/dist/src/services/prompt-processors/injectionParser.test.js.map +1 -0
  176. package/dist/src/services/prompt-processors/shellProcessor.d.ts +27 -0
  177. package/dist/src/services/prompt-processors/shellProcessor.js +128 -0
  178. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -0
  179. package/dist/src/services/prompt-processors/types.d.ts +45 -0
  180. package/dist/src/services/prompt-processors/types.js +20 -0
  181. package/dist/src/services/prompt-processors/types.js.map +1 -0
  182. package/dist/src/services/types.d.ts +22 -0
  183. package/dist/src/services/types.js +7 -0
  184. package/dist/src/services/types.js.map +1 -0
  185. package/dist/src/test-utils/customMatchers.d.ts +14 -0
  186. package/dist/src/test-utils/customMatchers.js +40 -0
  187. package/dist/src/test-utils/customMatchers.js.map +1 -0
  188. package/dist/src/test-utils/mockCommandContext.d.ts +18 -0
  189. package/dist/src/test-utils/mockCommandContext.js +86 -0
  190. package/dist/src/test-utils/mockCommandContext.js.map +1 -0
  191. package/dist/src/test-utils/mockCommandContext.test.d.ts +6 -0
  192. package/dist/src/test-utils/mockCommandContext.test.js +51 -0
  193. package/dist/src/test-utils/mockCommandContext.test.js.map +1 -0
  194. package/dist/src/test-utils/render.d.ts +8 -0
  195. package/dist/src/test-utils/render.js +10 -0
  196. package/dist/src/test-utils/render.js.map +1 -0
  197. package/dist/src/ui/App.d.ts +6 -0
  198. package/dist/src/ui/App.js +22 -0
  199. package/dist/src/ui/App.js.map +1 -0
  200. package/dist/src/ui/AppContainer.d.ts +17 -0
  201. package/dist/src/ui/AppContainer.js +873 -0
  202. package/dist/src/ui/AppContainer.js.map +1 -0
  203. package/dist/src/ui/AppContainer.test.d.ts +6 -0
  204. package/dist/src/ui/AppContainer.test.js +414 -0
  205. package/dist/src/ui/AppContainer.test.js.map +1 -0
  206. package/dist/src/ui/IdeIntegrationNudge.d.ts +16 -0
  207. package/dist/src/ui/IdeIntegrationNudge.js +48 -0
  208. package/dist/src/ui/IdeIntegrationNudge.js.map +1 -0
  209. package/dist/src/ui/auth/AuthDialog.d.ts +18 -0
  210. package/dist/src/ui/auth/AuthDialog.js +99 -0
  211. package/dist/src/ui/auth/AuthDialog.js.map +1 -0
  212. package/dist/src/ui/auth/AuthDialog.test.d.ts +6 -0
  213. package/dist/src/ui/auth/AuthDialog.test.js +184 -0
  214. package/dist/src/ui/auth/AuthDialog.test.js.map +1 -0
  215. package/dist/src/ui/auth/AuthInProgress.d.ts +11 -0
  216. package/dist/src/ui/auth/AuthInProgress.js +23 -0
  217. package/dist/src/ui/auth/AuthInProgress.js.map +1 -0
  218. package/dist/src/ui/auth/useAuth.d.ts +15 -0
  219. package/dist/src/ui/auth/useAuth.js +73 -0
  220. package/dist/src/ui/auth/useAuth.js.map +1 -0
  221. package/dist/src/ui/colors.d.ts +7 -0
  222. package/dist/src/ui/colors.js +54 -0
  223. package/dist/src/ui/colors.js.map +1 -0
  224. package/dist/src/ui/commands/aboutCommand.d.ts +7 -0
  225. package/dist/src/ui/commands/aboutCommand.js +49 -0
  226. package/dist/src/ui/commands/aboutCommand.js.map +1 -0
  227. package/dist/src/ui/commands/authCommand.d.ts +7 -0
  228. package/dist/src/ui/commands/authCommand.js +16 -0
  229. package/dist/src/ui/commands/authCommand.js.map +1 -0
  230. package/dist/src/ui/commands/bugCommand.d.ts +7 -0
  231. package/dist/src/ui/commands/bugCommand.js +76 -0
  232. package/dist/src/ui/commands/bugCommand.js.map +1 -0
  233. package/dist/src/ui/commands/chatCommand.d.ts +9 -0
  234. package/dist/src/ui/commands/chatCommand.js +314 -0
  235. package/dist/src/ui/commands/chatCommand.js.map +1 -0
  236. package/dist/src/ui/commands/clearCommand.d.ts +7 -0
  237. package/dist/src/ui/commands/clearCommand.js +27 -0
  238. package/dist/src/ui/commands/clearCommand.js.map +1 -0
  239. package/dist/src/ui/commands/compressCommand.d.ts +7 -0
  240. package/dist/src/ui/commands/compressCommand.js +66 -0
  241. package/dist/src/ui/commands/compressCommand.js.map +1 -0
  242. package/dist/src/ui/commands/copyCommand.d.ts +7 -0
  243. package/dist/src/ui/commands/copyCommand.js +59 -0
  244. package/dist/src/ui/commands/copyCommand.js.map +1 -0
  245. package/dist/src/ui/commands/corgiCommand.d.ts +7 -0
  246. package/dist/src/ui/commands/corgiCommand.js +16 -0
  247. package/dist/src/ui/commands/corgiCommand.js.map +1 -0
  248. package/dist/src/ui/commands/directoryCommand.d.ts +8 -0
  249. package/dist/src/ui/commands/directoryCommand.js +135 -0
  250. package/dist/src/ui/commands/directoryCommand.js.map +1 -0
  251. package/dist/src/ui/commands/docsCommand.d.ts +7 -0
  252. package/dist/src/ui/commands/docsCommand.js +31 -0
  253. package/dist/src/ui/commands/docsCommand.js.map +1 -0
  254. package/dist/src/ui/commands/editorCommand.d.ts +7 -0
  255. package/dist/src/ui/commands/editorCommand.js +16 -0
  256. package/dist/src/ui/commands/editorCommand.js.map +1 -0
  257. package/dist/src/ui/commands/extensionsCommand.d.ts +7 -0
  258. package/dist/src/ui/commands/extensionsCommand.js +85 -0
  259. package/dist/src/ui/commands/extensionsCommand.js.map +1 -0
  260. package/dist/src/ui/commands/helpCommand.d.ts +7 -0
  261. package/dist/src/ui/commands/helpCommand.js +21 -0
  262. package/dist/src/ui/commands/helpCommand.js.map +1 -0
  263. package/dist/src/ui/commands/ideCommand.d.ts +7 -0
  264. package/dist/src/ui/commands/ideCommand.js +225 -0
  265. package/dist/src/ui/commands/ideCommand.js.map +1 -0
  266. package/dist/src/ui/commands/initCommand.d.ts +7 -0
  267. package/dist/src/ui/commands/initCommand.js +76 -0
  268. package/dist/src/ui/commands/initCommand.js.map +1 -0
  269. package/dist/src/ui/commands/mcpCommand.d.ts +7 -0
  270. package/dist/src/ui/commands/mcpCommand.js +426 -0
  271. package/dist/src/ui/commands/mcpCommand.js.map +1 -0
  272. package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
  273. package/dist/src/ui/commands/memoryCommand.js +92 -0
  274. package/dist/src/ui/commands/memoryCommand.js.map +1 -0
  275. package/dist/src/ui/commands/privacyCommand.d.ts +7 -0
  276. package/dist/src/ui/commands/privacyCommand.js +16 -0
  277. package/dist/src/ui/commands/privacyCommand.js.map +1 -0
  278. package/dist/src/ui/commands/quitCommand.d.ts +7 -0
  279. package/dist/src/ui/commands/quitCommand.js +34 -0
  280. package/dist/src/ui/commands/quitCommand.js.map +1 -0
  281. package/dist/src/ui/commands/restoreCommand.d.ts +8 -0
  282. package/dist/src/ui/commands/restoreCommand.js +124 -0
  283. package/dist/src/ui/commands/restoreCommand.js.map +1 -0
  284. package/dist/src/ui/commands/settingsCommand.d.ts +7 -0
  285. package/dist/src/ui/commands/settingsCommand.js +16 -0
  286. package/dist/src/ui/commands/settingsCommand.js.map +1 -0
  287. package/dist/src/ui/commands/setupGithubCommand.d.ts +9 -0
  288. package/dist/src/ui/commands/setupGithubCommand.js +154 -0
  289. package/dist/src/ui/commands/setupGithubCommand.js.map +1 -0
  290. package/dist/src/ui/commands/setupGithubCommand.test.d.ts +6 -0
  291. package/dist/src/ui/commands/setupGithubCommand.test.js +167 -0
  292. package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -0
  293. package/dist/src/ui/commands/statsCommand.d.ts +7 -0
  294. package/dist/src/ui/commands/statsCommand.js +54 -0
  295. package/dist/src/ui/commands/statsCommand.js.map +1 -0
  296. package/dist/src/ui/commands/terminalSetupCommand.d.ts +13 -0
  297. package/dist/src/ui/commands/terminalSetupCommand.js +41 -0
  298. package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -0
  299. package/dist/src/ui/commands/themeCommand.d.ts +7 -0
  300. package/dist/src/ui/commands/themeCommand.js +16 -0
  301. package/dist/src/ui/commands/themeCommand.js.map +1 -0
  302. package/dist/src/ui/commands/toolsCommand.d.ts +7 -0
  303. package/dist/src/ui/commands/toolsCommand.js +56 -0
  304. package/dist/src/ui/commands/toolsCommand.js.map +1 -0
  305. package/dist/src/ui/commands/types.d.ts +152 -0
  306. package/dist/src/ui/commands/types.js +12 -0
  307. package/dist/src/ui/commands/types.js.map +1 -0
  308. package/dist/src/ui/commands/vimCommand.d.ts +7 -0
  309. package/dist/src/ui/commands/vimCommand.js +23 -0
  310. package/dist/src/ui/commands/vimCommand.js.map +1 -0
  311. package/dist/src/ui/components/AboutBox.d.ts +17 -0
  312. package/dist/src/ui/components/AboutBox.js +6 -0
  313. package/dist/src/ui/components/AboutBox.js.map +1 -0
  314. package/dist/src/ui/components/AnsiOutput.d.ts +13 -0
  315. package/dist/src/ui/components/AnsiOutput.js +12 -0
  316. package/dist/src/ui/components/AnsiOutput.js.map +1 -0
  317. package/dist/src/ui/components/AnsiOutput.test.d.ts +6 -0
  318. package/dist/src/ui/components/AnsiOutput.test.js +97 -0
  319. package/dist/src/ui/components/AnsiOutput.test.js.map +1 -0
  320. package/dist/src/ui/components/AppHeader.d.ts +10 -0
  321. package/dist/src/ui/components/AppHeader.js +22 -0
  322. package/dist/src/ui/components/AppHeader.js.map +1 -0
  323. package/dist/src/ui/components/AsciiArt.d.ts +8 -0
  324. package/dist/src/ui/components/AsciiArt.js +36 -0
  325. package/dist/src/ui/components/AsciiArt.js.map +1 -0
  326. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +12 -0
  327. package/dist/src/ui/components/AutoAcceptIndicator.js +26 -0
  328. package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -0
  329. package/dist/src/ui/components/Composer.d.ts +6 -0
  330. package/dist/src/ui/components/Composer.js +74 -0
  331. package/dist/src/ui/components/Composer.js.map +1 -0
  332. package/dist/src/ui/components/Composer.test.d.ts +6 -0
  333. package/dist/src/ui/components/Composer.test.js +340 -0
  334. package/dist/src/ui/components/Composer.test.js.map +1 -0
  335. package/dist/src/ui/components/ConfigInitDisplay.d.ts +6 -0
  336. package/dist/src/ui/components/ConfigInitDisplay.js +38 -0
  337. package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -0
  338. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +11 -0
  339. package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
  340. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
  341. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +20 -0
  342. package/dist/src/ui/components/ContextSummaryDisplay.js +66 -0
  343. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
  344. package/dist/src/ui/components/ContextUsageDisplay.d.ts +9 -0
  345. package/dist/src/ui/components/ContextUsageDisplay.js +14 -0
  346. package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -0
  347. package/dist/src/ui/components/DebugProfiler.d.ts +6 -0
  348. package/dist/src/ui/components/DebugProfiler.js +27 -0
  349. package/dist/src/ui/components/DebugProfiler.js.map +1 -0
  350. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +14 -0
  351. package/dist/src/ui/components/DetailedMessagesDisplay.js +34 -0
  352. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
  353. package/dist/src/ui/components/DialogManager.d.ts +6 -0
  354. package/dist/src/ui/components/DialogManager.js +85 -0
  355. package/dist/src/ui/components/DialogManager.js.map +1 -0
  356. package/dist/src/ui/components/EditorSettingsDialog.d.ts +16 -0
  357. package/dist/src/ui/components/EditorSettingsDialog.js +71 -0
  358. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
  359. package/dist/src/ui/components/FolderTrustDialog.d.ts +17 -0
  360. package/dist/src/ui/components/FolderTrustDialog.js +55 -0
  361. package/dist/src/ui/components/FolderTrustDialog.js.map +1 -0
  362. package/dist/src/ui/components/FolderTrustDialog.test.d.ts +6 -0
  363. package/dist/src/ui/components/FolderTrustDialog.test.js +88 -0
  364. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -0
  365. package/dist/src/ui/components/Footer.d.ts +25 -0
  366. package/dist/src/ui/components/Footer.js +30 -0
  367. package/dist/src/ui/components/Footer.js.map +1 -0
  368. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +22 -0
  369. package/dist/src/ui/components/GeminiRespondingSpinner.js +23 -0
  370. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
  371. package/dist/src/ui/components/Header.d.ts +13 -0
  372. package/dist/src/ui/components/Header.js +28 -0
  373. package/dist/src/ui/components/Header.js.map +1 -0
  374. package/dist/src/ui/components/Header.test.d.ts +6 -0
  375. package/dist/src/ui/components/Header.test.js +37 -0
  376. package/dist/src/ui/components/Header.test.js.map +1 -0
  377. package/dist/src/ui/components/Help.d.ts +12 -0
  378. package/dist/src/ui/components/Help.js +13 -0
  379. package/dist/src/ui/components/Help.js.map +1 -0
  380. package/dist/src/ui/components/Help.test.d.ts +6 -0
  381. package/dist/src/ui/components/Help.test.js +57 -0
  382. package/dist/src/ui/components/Help.test.js.map +1 -0
  383. package/dist/src/ui/components/HistoryItemDisplay.d.ts +20 -0
  384. package/dist/src/ui/components/HistoryItemDisplay.js +19 -0
  385. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
  386. package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +6 -0
  387. package/dist/src/ui/components/HistoryItemDisplay.test.js +93 -0
  388. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -0
  389. package/dist/src/ui/components/InputPrompt.d.ts +31 -0
  390. package/dist/src/ui/components/InputPrompt.js +672 -0
  391. package/dist/src/ui/components/InputPrompt.js.map +1 -0
  392. package/dist/src/ui/components/LoadingIndicator.d.ts +15 -0
  393. package/dist/src/ui/components/LoadingIndicator.js +25 -0
  394. package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
  395. package/dist/src/ui/components/LoadingIndicator.test.d.ts +6 -0
  396. package/dist/src/ui/components/LoadingIndicator.test.js +190 -0
  397. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -0
  398. package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +13 -0
  399. package/dist/src/ui/components/LoopDetectionConfirmation.js +35 -0
  400. package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -0
  401. package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +6 -0
  402. package/dist/src/ui/components/LoopDetectionConfirmation.test.js +25 -0
  403. package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -0
  404. package/dist/src/ui/components/MainContent.d.ts +6 -0
  405. package/dist/src/ui/components/MainContent.js +23 -0
  406. package/dist/src/ui/components/MainContent.js.map +1 -0
  407. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +7 -0
  408. package/dist/src/ui/components/MemoryUsageDisplay.js +24 -0
  409. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
  410. package/dist/src/ui/components/ModelStatsDisplay.d.ts +7 -0
  411. package/dist/src/ui/components/ModelStatsDisplay.js +33 -0
  412. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
  413. package/dist/src/ui/components/Notifications.d.ts +6 -0
  414. package/dist/src/ui/components/Notifications.js +23 -0
  415. package/dist/src/ui/components/Notifications.js.map +1 -0
  416. package/dist/src/ui/components/PrepareLabel.d.ts +15 -0
  417. package/dist/src/ui/components/PrepareLabel.js +72 -0
  418. package/dist/src/ui/components/PrepareLabel.js.map +1 -0
  419. package/dist/src/ui/components/PrepareLabel.test.d.ts +6 -0
  420. package/dist/src/ui/components/PrepareLabel.test.js +71 -0
  421. package/dist/src/ui/components/PrepareLabel.test.js.map +1 -0
  422. package/dist/src/ui/components/ProQuotaDialog.d.ts +13 -0
  423. package/dist/src/ui/components/ProQuotaDialog.js +21 -0
  424. package/dist/src/ui/components/ProQuotaDialog.js.map +1 -0
  425. package/dist/src/ui/components/ProQuotaDialog.test.d.ts +6 -0
  426. package/dist/src/ui/components/ProQuotaDialog.test.js +56 -0
  427. package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -0
  428. package/dist/src/ui/components/QuittingDisplay.d.ts +6 -0
  429. package/dist/src/ui/components/QuittingDisplay.js +20 -0
  430. package/dist/src/ui/components/QuittingDisplay.js.map +1 -0
  431. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +11 -0
  432. package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
  433. package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
  434. package/dist/src/ui/components/SettingsDialog.d.ts +16 -0
  435. package/dist/src/ui/components/SettingsDialog.js +621 -0
  436. package/dist/src/ui/components/SettingsDialog.js.map +1 -0
  437. package/dist/src/ui/components/SettingsDialog.test.d.ts +6 -0
  438. package/dist/src/ui/components/SettingsDialog.test.js +1002 -0
  439. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -0
  440. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +15 -0
  441. package/dist/src/ui/components/ShellConfirmationDialog.js +46 -0
  442. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -0
  443. package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +6 -0
  444. package/dist/src/ui/components/ShellConfirmationDialog.test.js +40 -0
  445. package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +1 -0
  446. package/dist/src/ui/components/ShellInputPrompt.d.ts +11 -0
  447. package/dist/src/ui/components/ShellInputPrompt.js +36 -0
  448. package/dist/src/ui/components/ShellInputPrompt.js.map +1 -0
  449. package/dist/src/ui/components/ShellModeIndicator.d.ts +7 -0
  450. package/dist/src/ui/components/ShellModeIndicator.js +5 -0
  451. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
  452. package/dist/src/ui/components/ShowMoreLines.d.ts +10 -0
  453. package/dist/src/ui/components/ShowMoreLines.js +24 -0
  454. package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
  455. package/dist/src/ui/components/StatsDisplay.d.ts +12 -0
  456. package/dist/src/ui/components/StatsDisplay.js +43 -0
  457. package/dist/src/ui/components/StatsDisplay.js.map +1 -0
  458. package/dist/src/ui/components/SuggestionsDisplay.d.ts +27 -0
  459. package/dist/src/ui/components/SuggestionsDisplay.js +40 -0
  460. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
  461. package/dist/src/ui/components/ThemeDialog.d.ts +20 -0
  462. package/dist/src/ui/components/ThemeDialog.js +121 -0
  463. package/dist/src/ui/components/ThemeDialog.js.map +1 -0
  464. package/dist/src/ui/components/ThemeDialog.test.d.ts +6 -0
  465. package/dist/src/ui/components/ThemeDialog.test.js +75 -0
  466. package/dist/src/ui/components/ThemeDialog.test.js.map +1 -0
  467. package/dist/src/ui/components/Tips.d.ts +12 -0
  468. package/dist/src/ui/components/Tips.js +9 -0
  469. package/dist/src/ui/components/Tips.js.map +1 -0
  470. package/dist/src/ui/components/ToolStatsDisplay.d.ts +7 -0
  471. package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
  472. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
  473. package/dist/src/ui/components/UpdateNotification.d.ts +10 -0
  474. package/dist/src/ui/components/UpdateNotification.js +10 -0
  475. package/dist/src/ui/components/UpdateNotification.js.map +1 -0
  476. package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +11 -0
  477. package/dist/src/ui/components/WorkspaceMigrationDialog.js +42 -0
  478. package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -0
  479. package/dist/src/ui/components/messages/CompressionMessage.d.ts +10 -0
  480. package/dist/src/ui/components/messages/CompressionMessage.js +46 -0
  481. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
  482. package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +6 -0
  483. package/dist/src/ui/components/messages/CompressionMessage.test.js +160 -0
  484. package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -0
  485. package/dist/src/ui/components/messages/DiffRenderer.d.ts +17 -0
  486. package/dist/src/ui/components/messages/DiffRenderer.js +218 -0
  487. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
  488. package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +6 -0
  489. package/dist/src/ui/components/messages/DiffRenderer.test.js +239 -0
  490. package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -0
  491. package/dist/src/ui/components/messages/ErrorMessage.d.ts +11 -0
  492. package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
  493. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
  494. package/dist/src/ui/components/messages/GeminiMessage.d.ts +14 -0
  495. package/dist/src/ui/components/messages/GeminiMessage.js +11 -0
  496. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
  497. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +14 -0
  498. package/dist/src/ui/components/messages/GeminiMessageContent.js +15 -0
  499. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
  500. package/dist/src/ui/components/messages/InfoMessage.d.ts +11 -0
  501. package/dist/src/ui/components/messages/InfoMessage.js +10 -0
  502. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
  503. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +15 -0
  504. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +174 -0
  505. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
  506. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +6 -0
  507. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +114 -0
  508. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -0
  509. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +19 -0
  510. package/dist/src/ui/components/messages/ToolGroupMessage.js +56 -0
  511. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
  512. package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +6 -0
  513. package/dist/src/ui/components/messages/ToolGroupMessage.test.js +261 -0
  514. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -0
  515. package/dist/src/ui/components/messages/ToolMessage.d.ts +19 -0
  516. package/dist/src/ui/components/messages/ToolMessage.js +69 -0
  517. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
  518. package/dist/src/ui/components/messages/ToolMessage.test.d.ts +6 -0
  519. package/dist/src/ui/components/messages/ToolMessage.test.js +150 -0
  520. package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -0
  521. package/dist/src/ui/components/messages/UserMessage.d.ts +11 -0
  522. package/dist/src/ui/components/messages/UserMessage.js +14 -0
  523. package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
  524. package/dist/src/ui/components/messages/UserShellMessage.d.ts +11 -0
  525. package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
  526. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
  527. package/dist/src/ui/components/shared/EnumSelector.d.ts +18 -0
  528. package/dist/src/ui/components/shared/EnumSelector.js +44 -0
  529. package/dist/src/ui/components/shared/EnumSelector.js.map +1 -0
  530. package/dist/src/ui/components/shared/EnumSelector.test.d.ts +6 -0
  531. package/dist/src/ui/components/shared/EnumSelector.test.js +70 -0
  532. package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -0
  533. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +61 -0
  534. package/dist/src/ui/components/shared/MaxSizedBox.js +451 -0
  535. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
  536. package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +6 -0
  537. package/dist/src/ui/components/shared/MaxSizedBox.test.js +154 -0
  538. package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -0
  539. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +46 -0
  540. package/dist/src/ui/components/shared/RadioButtonSelect.js +116 -0
  541. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
  542. package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +6 -0
  543. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +111 -0
  544. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -0
  545. package/dist/src/ui/components/shared/ScopeSelector.d.ts +19 -0
  546. package/dist/src/ui/components/shared/ScopeSelector.js +11 -0
  547. package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -0
  548. package/dist/src/ui/components/shared/text-buffer.d.ts +484 -0
  549. package/dist/src/ui/components/shared/text-buffer.js +1531 -0
  550. package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
  551. package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +72 -0
  552. package/dist/src/ui/components/shared/vim-buffer-actions.js +552 -0
  553. package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -0
  554. package/dist/src/ui/components/views/ExtensionsList.d.ts +6 -0
  555. package/dist/src/ui/components/views/ExtensionsList.js +47 -0
  556. package/dist/src/ui/components/views/ExtensionsList.js.map +1 -0
  557. package/dist/src/ui/components/views/ExtensionsList.test.d.ts +6 -0
  558. package/dist/src/ui/components/views/ExtensionsList.test.js +97 -0
  559. package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -0
  560. package/dist/src/ui/constants.d.ts +17 -0
  561. package/dist/src/ui/constants.js +22 -0
  562. package/dist/src/ui/constants.js.map +1 -0
  563. package/dist/src/ui/contexts/AppContext.d.ts +11 -0
  564. package/dist/src/ui/contexts/AppContext.js +15 -0
  565. package/dist/src/ui/contexts/AppContext.js.map +1 -0
  566. package/dist/src/ui/contexts/ConfigContext.d.ts +9 -0
  567. package/dist/src/ui/contexts/ConfigContext.js +16 -0
  568. package/dist/src/ui/contexts/ConfigContext.js.map +1 -0
  569. package/dist/src/ui/contexts/KeypressContext.d.ts +34 -0
  570. package/dist/src/ui/contexts/KeypressContext.js +580 -0
  571. package/dist/src/ui/contexts/KeypressContext.js.map +1 -0
  572. package/dist/src/ui/contexts/KeypressContext.test.d.ts +6 -0
  573. package/dist/src/ui/contexts/KeypressContext.test.js +671 -0
  574. package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -0
  575. package/dist/src/ui/contexts/OverflowContext.d.ts +19 -0
  576. package/dist/src/ui/contexts/OverflowContext.js +38 -0
  577. package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
  578. package/dist/src/ui/contexts/SessionContext.d.ts +39 -0
  579. package/dist/src/ui/contexts/SessionContext.js +55 -0
  580. package/dist/src/ui/contexts/SessionContext.js.map +1 -0
  581. package/dist/src/ui/contexts/SettingsContext.d.ts +9 -0
  582. package/dist/src/ui/contexts/SettingsContext.js +15 -0
  583. package/dist/src/ui/contexts/SettingsContext.js.map +1 -0
  584. package/dist/src/ui/contexts/StreamingContext.d.ts +9 -0
  585. package/dist/src/ui/contexts/StreamingContext.js +15 -0
  586. package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
  587. package/dist/src/ui/contexts/UIActionsContext.d.ts +36 -0
  588. package/dist/src/ui/contexts/UIActionsContext.js +20 -0
  589. package/dist/src/ui/contexts/UIActionsContext.js.map +1 -0
  590. package/dist/src/ui/contexts/UIStateContext.d.ts +96 -0
  591. package/dist/src/ui/contexts/UIStateContext.js +15 -0
  592. package/dist/src/ui/contexts/UIStateContext.js.map +1 -0
  593. package/dist/src/ui/contexts/VimModeContext.d.ts +19 -0
  594. package/dist/src/ui/contexts/VimModeContext.js +48 -0
  595. package/dist/src/ui/contexts/VimModeContext.js.map +1 -0
  596. package/dist/src/ui/editors/editorSettingsManager.d.ts +19 -0
  597. package/dist/src/ui/editors/editorSettingsManager.js +47 -0
  598. package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
  599. package/dist/src/ui/hooks/atCommandProcessor.d.ts +31 -0
  600. package/dist/src/ui/hooks/atCommandProcessor.js +364 -0
  601. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
  602. package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +6 -0
  603. package/dist/src/ui/hooks/atCommandProcessor.test.js +834 -0
  604. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -0
  605. package/dist/src/ui/hooks/keyToAnsi.d.ts +15 -0
  606. package/dist/src/ui/hooks/keyToAnsi.js +67 -0
  607. package/dist/src/ui/hooks/keyToAnsi.js.map +1 -0
  608. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +18 -0
  609. package/dist/src/ui/hooks/shellCommandProcessor.js +277 -0
  610. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
  611. package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +6 -0
  612. package/dist/src/ui/hooks/shellCommandProcessor.test.js +504 -0
  613. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -0
  614. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +42 -0
  615. package/dist/src/ui/hooks/slashCommandProcessor.js +406 -0
  616. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
  617. package/dist/src/ui/hooks/useAtCompletion.d.ts +23 -0
  618. package/dist/src/ui/hooks/useAtCompletion.js +179 -0
  619. package/dist/src/ui/hooks/useAtCompletion.js.map +1 -0
  620. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +13 -0
  621. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +50 -0
  622. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -0
  623. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +6 -0
  624. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +380 -0
  625. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -0
  626. package/dist/src/ui/hooks/useBracketedPaste.d.ts +12 -0
  627. package/dist/src/ui/hooks/useBracketedPaste.js +32 -0
  628. package/dist/src/ui/hooks/useBracketedPaste.js.map +1 -0
  629. package/dist/src/ui/hooks/useCommandCompletion.d.ts +32 -0
  630. package/dist/src/ui/hooks/useCommandCompletion.js +186 -0
  631. package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -0
  632. package/dist/src/ui/hooks/useCompletion.d.ts +24 -0
  633. package/dist/src/ui/hooks/useCompletion.js +88 -0
  634. package/dist/src/ui/hooks/useCompletion.js.map +1 -0
  635. package/dist/src/ui/hooks/useConsoleMessages.d.ts +12 -0
  636. package/dist/src/ui/hooks/useConsoleMessages.js +76 -0
  637. package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
  638. package/dist/src/ui/hooks/useEditorSettings.d.ts +16 -0
  639. package/dist/src/ui/hooks/useEditorSettings.js +43 -0
  640. package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
  641. package/dist/src/ui/hooks/useEditorSettings.test.d.ts +6 -0
  642. package/dist/src/ui/hooks/useEditorSettings.test.js +164 -0
  643. package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -0
  644. package/dist/src/ui/hooks/useFocus.d.ts +10 -0
  645. package/dist/src/ui/hooks/useFocus.js +41 -0
  646. package/dist/src/ui/hooks/useFocus.js.map +1 -0
  647. package/dist/src/ui/hooks/useFolderTrust.d.ts +13 -0
  648. package/dist/src/ui/hooks/useFolderTrust.js +65 -0
  649. package/dist/src/ui/hooks/useFolderTrust.js.map +1 -0
  650. package/dist/src/ui/hooks/useGeminiStream.d.ts +35 -0
  651. package/dist/src/ui/hooks/useGeminiStream.js +727 -0
  652. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
  653. package/dist/src/ui/hooks/useGitBranchName.d.ts +6 -0
  654. package/dist/src/ui/hooks/useGitBranchName.js +58 -0
  655. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
  656. package/dist/src/ui/hooks/useGitBranchName.test.d.ts +6 -0
  657. package/dist/src/ui/hooks/useGitBranchName.test.js +171 -0
  658. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -0
  659. package/dist/src/ui/hooks/useHistoryManager.d.ts +22 -0
  660. package/dist/src/ui/hooks/useHistoryManager.js +72 -0
  661. package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
  662. package/dist/src/ui/hooks/useHistoryManager.test.d.ts +6 -0
  663. package/dist/src/ui/hooks/useHistoryManager.test.js +171 -0
  664. package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -0
  665. package/dist/src/ui/hooks/useIdeTrustListener.d.ts +14 -0
  666. package/dist/src/ui/hooks/useIdeTrustListener.js +39 -0
  667. package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -0
  668. package/dist/src/ui/hooks/useInputHistory.d.ts +19 -0
  669. package/dist/src/ui/hooks/useInputHistory.js +84 -0
  670. package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
  671. package/dist/src/ui/hooks/useInputHistory.test.d.ts +6 -0
  672. package/dist/src/ui/hooks/useInputHistory.test.js +207 -0
  673. package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -0
  674. package/dist/src/ui/hooks/useInputHistoryStore.d.ts +19 -0
  675. package/dist/src/ui/hooks/useInputHistoryStore.js +81 -0
  676. package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -0
  677. package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +6 -0
  678. package/dist/src/ui/hooks/useInputHistoryStore.test.js +234 -0
  679. package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -0
  680. package/dist/src/ui/hooks/useKeypress.d.ts +17 -0
  681. package/dist/src/ui/hooks/useKeypress.js +27 -0
  682. package/dist/src/ui/hooks/useKeypress.js.map +1 -0
  683. package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +15 -0
  684. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +20 -0
  685. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +1 -0
  686. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +10 -0
  687. package/dist/src/ui/hooks/useLoadingIndicator.js +44 -0
  688. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
  689. package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +6 -0
  690. package/dist/src/ui/hooks/useLoadingIndicator.test.js +91 -0
  691. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -0
  692. package/dist/src/ui/hooks/useLogger.d.ts +11 -0
  693. package/dist/src/ui/hooks/useLogger.js +29 -0
  694. package/dist/src/ui/hooks/useLogger.js.map +1 -0
  695. package/dist/src/ui/hooks/useMessageQueue.d.ts +23 -0
  696. package/dist/src/ui/hooks/useMessageQueue.js +51 -0
  697. package/dist/src/ui/hooks/useMessageQueue.js.map +1 -0
  698. package/dist/src/ui/hooks/useMessageQueue.test.d.ts +6 -0
  699. package/dist/src/ui/hooks/useMessageQueue.test.js +167 -0
  700. package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -0
  701. package/dist/src/ui/hooks/usePhraseCycler.d.ts +14 -0
  702. package/dist/src/ui/hooks/usePhraseCycler.js +190 -0
  703. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
  704. package/dist/src/ui/hooks/usePrivacySettings.d.ts +16 -0
  705. package/dist/src/ui/hooks/usePrivacySettings.js +114 -0
  706. package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
  707. package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +6 -0
  708. package/dist/src/ui/hooks/usePrivacySettings.test.js +90 -0
  709. package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -0
  710. package/dist/src/ui/hooks/usePromptCompletion.d.ts +23 -0
  711. package/dist/src/ui/hooks/usePromptCompletion.js +177 -0
  712. package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -0
  713. package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +21 -0
  714. package/dist/src/ui/hooks/useQuotaAndFallback.js +122 -0
  715. package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -0
  716. package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +6 -0
  717. package/dist/src/ui/hooks/useQuotaAndFallback.test.js +267 -0
  718. package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -0
  719. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +34 -0
  720. package/dist/src/ui/hooks/useReactToolScheduler.js +192 -0
  721. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
  722. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +6 -0
  723. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +7 -0
  724. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
  725. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +19 -0
  726. package/dist/src/ui/hooks/useReverseSearchCompletion.js +103 -0
  727. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -0
  728. package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +6 -0
  729. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +163 -0
  730. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -0
  731. package/dist/src/ui/hooks/useSettingsCommand.d.ts +10 -0
  732. package/dist/src/ui/hooks/useSettingsCommand.js +21 -0
  733. package/dist/src/ui/hooks/useSettingsCommand.js.map +1 -0
  734. package/dist/src/ui/hooks/useShellHistory.d.ts +14 -0
  735. package/dist/src/ui/hooks/useShellHistory.js +111 -0
  736. package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
  737. package/dist/src/ui/hooks/useShellHistory.test.d.ts +6 -0
  738. package/dist/src/ui/hooks/useShellHistory.test.js +187 -0
  739. package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -0
  740. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +9 -0
  741. package/dist/src/ui/hooks/useShowMemoryCommand.js +58 -0
  742. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
  743. package/dist/src/ui/hooks/useSlashCompletion.d.ts +20 -0
  744. package/dist/src/ui/hooks/useSlashCompletion.js +344 -0
  745. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -0
  746. package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +9 -0
  747. package/dist/src/ui/hooks/useSlashCompletion.test.js +564 -0
  748. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -0
  749. package/dist/src/ui/hooks/useStateAndRef.d.ts +7 -0
  750. package/dist/src/ui/hooks/useStateAndRef.js +26 -0
  751. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
  752. package/dist/src/ui/hooks/useTerminalSize.d.ts +9 -0
  753. package/dist/src/ui/hooks/useTerminalSize.js +27 -0
  754. package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
  755. package/dist/src/ui/hooks/useThemeCommand.d.ts +15 -0
  756. package/dist/src/ui/hooks/useThemeCommand.js +68 -0
  757. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
  758. package/dist/src/ui/hooks/useTimer.d.ts +12 -0
  759. package/dist/src/ui/hooks/useTimer.js +58 -0
  760. package/dist/src/ui/hooks/useTimer.js.map +1 -0
  761. package/dist/src/ui/hooks/useTimer.test.d.ts +6 -0
  762. package/dist/src/ui/hooks/useTimer.test.js +90 -0
  763. package/dist/src/ui/hooks/useTimer.test.js.map +1 -0
  764. package/dist/src/ui/hooks/useToolScheduler.test.d.ts +6 -0
  765. package/dist/src/ui/hooks/useToolScheduler.test.js +855 -0
  766. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -0
  767. package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +13 -0
  768. package/dist/src/ui/hooks/useWorkspaceMigration.js +54 -0
  769. package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -0
  770. package/dist/src/ui/hooks/vim.d.ts +28 -0
  771. package/dist/src/ui/hooks/vim.js +639 -0
  772. package/dist/src/ui/hooks/vim.js.map +1 -0
  773. package/dist/src/ui/keyMatchers.d.ts +27 -0
  774. package/dist/src/ui/keyMatchers.js +68 -0
  775. package/dist/src/ui/keyMatchers.js.map +1 -0
  776. package/dist/src/ui/keyMatchers.test.d.ts +6 -0
  777. package/dist/src/ui/keyMatchers.test.js +293 -0
  778. package/dist/src/ui/keyMatchers.test.js.map +1 -0
  779. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +12 -0
  780. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +41 -0
  781. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
  782. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +10 -0
  783. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +18 -0
  784. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
  785. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +10 -0
  786. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +18 -0
  787. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
  788. package/dist/src/ui/privacy/PrivacyNotice.d.ts +12 -0
  789. package/dist/src/ui/privacy/PrivacyNotice.js +25 -0
  790. package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
  791. package/dist/src/ui/semantic-colors.d.ts +7 -0
  792. package/dist/src/ui/semantic-colors.js +24 -0
  793. package/dist/src/ui/semantic-colors.js.map +1 -0
  794. package/dist/src/ui/state/extensions.d.ts +14 -0
  795. package/dist/src/ui/state/extensions.js +16 -0
  796. package/dist/src/ui/state/extensions.js.map +1 -0
  797. package/dist/src/ui/textConstants.d.ts +9 -0
  798. package/dist/src/ui/textConstants.js +10 -0
  799. package/dist/src/ui/textConstants.js.map +1 -0
  800. package/dist/src/ui/themes/ansi-light.d.ts +7 -0
  801. package/dist/src/ui/themes/ansi-light.js +142 -0
  802. package/dist/src/ui/themes/ansi-light.js.map +1 -0
  803. package/dist/src/ui/themes/ansi.d.ts +7 -0
  804. package/dist/src/ui/themes/ansi.js +152 -0
  805. package/dist/src/ui/themes/ansi.js.map +1 -0
  806. package/dist/src/ui/themes/atom-one-dark.d.ts +7 -0
  807. package/dist/src/ui/themes/atom-one-dark.js +138 -0
  808. package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
  809. package/dist/src/ui/themes/ayu-light.d.ts +7 -0
  810. package/dist/src/ui/themes/ayu-light.js +130 -0
  811. package/dist/src/ui/themes/ayu-light.js.map +1 -0
  812. package/dist/src/ui/themes/ayu.d.ts +7 -0
  813. package/dist/src/ui/themes/ayu.js +104 -0
  814. package/dist/src/ui/themes/ayu.js.map +1 -0
  815. package/dist/src/ui/themes/color-utils.d.ts +21 -0
  816. package/dist/src/ui/themes/color-utils.js +221 -0
  817. package/dist/src/ui/themes/color-utils.js.map +1 -0
  818. package/dist/src/ui/themes/color-utils.test.d.ts +6 -0
  819. package/dist/src/ui/themes/color-utils.test.js +197 -0
  820. package/dist/src/ui/themes/color-utils.test.js.map +1 -0
  821. package/dist/src/ui/themes/default-light.d.ts +7 -0
  822. package/dist/src/ui/themes/default-light.js +100 -0
  823. package/dist/src/ui/themes/default-light.js.map +1 -0
  824. package/dist/src/ui/themes/default.d.ts +7 -0
  825. package/dist/src/ui/themes/default.js +143 -0
  826. package/dist/src/ui/themes/default.js.map +1 -0
  827. package/dist/src/ui/themes/dracula.d.ts +7 -0
  828. package/dist/src/ui/themes/dracula.js +115 -0
  829. package/dist/src/ui/themes/dracula.js.map +1 -0
  830. package/dist/src/ui/themes/github-dark.d.ts +7 -0
  831. package/dist/src/ui/themes/github-dark.js +138 -0
  832. package/dist/src/ui/themes/github-dark.js.map +1 -0
  833. package/dist/src/ui/themes/github-light.d.ts +7 -0
  834. package/dist/src/ui/themes/github-light.js +140 -0
  835. package/dist/src/ui/themes/github-light.js.map +1 -0
  836. package/dist/src/ui/themes/googlecode.d.ts +7 -0
  837. package/dist/src/ui/themes/googlecode.js +137 -0
  838. package/dist/src/ui/themes/googlecode.js.map +1 -0
  839. package/dist/src/ui/themes/no-color.d.ts +7 -0
  840. package/dist/src/ui/themes/no-color.js +115 -0
  841. package/dist/src/ui/themes/no-color.js.map +1 -0
  842. package/dist/src/ui/themes/semantic-tokens.d.ts +37 -0
  843. package/dist/src/ui/themes/semantic-tokens.js +94 -0
  844. package/dist/src/ui/themes/semantic-tokens.js.map +1 -0
  845. package/dist/src/ui/themes/shades-of-purple.d.ts +11 -0
  846. package/dist/src/ui/themes/shades-of-purple.js +304 -0
  847. package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
  848. package/dist/src/ui/themes/theme-manager.d.ts +66 -0
  849. package/dist/src/ui/themes/theme-manager.js +262 -0
  850. package/dist/src/ui/themes/theme-manager.js.map +1 -0
  851. package/dist/src/ui/themes/theme-manager.test.d.ts +6 -0
  852. package/dist/src/ui/themes/theme-manager.test.js +142 -0
  853. package/dist/src/ui/themes/theme-manager.test.js.map +1 -0
  854. package/dist/src/ui/themes/theme.d.ts +130 -0
  855. package/dist/src/ui/themes/theme.js +379 -0
  856. package/dist/src/ui/themes/theme.js.map +1 -0
  857. package/dist/src/ui/themes/xcode.d.ts +7 -0
  858. package/dist/src/ui/themes/xcode.js +145 -0
  859. package/dist/src/ui/themes/xcode.js.map +1 -0
  860. package/dist/src/ui/types.d.ts +219 -0
  861. package/dist/src/ui/types.js +55 -0
  862. package/dist/src/ui/types.js.map +1 -0
  863. package/dist/src/ui/utils/CodeColorizer.d.ts +17 -0
  864. package/dist/src/ui/utils/CodeColorizer.js +111 -0
  865. package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
  866. package/dist/src/ui/utils/ConsolePatcher.d.ts +25 -0
  867. package/dist/src/ui/utils/ConsolePatcher.js +52 -0
  868. package/dist/src/ui/utils/ConsolePatcher.js.map +1 -0
  869. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +16 -0
  870. package/dist/src/ui/utils/InlineMarkdownRenderer.js +111 -0
  871. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
  872. package/dist/src/ui/utils/MarkdownDisplay.d.ts +14 -0
  873. package/dist/src/ui/utils/MarkdownDisplay.js +208 -0
  874. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
  875. package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +6 -0
  876. package/dist/src/ui/utils/MarkdownDisplay.test.js +156 -0
  877. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -0
  878. package/dist/src/ui/utils/TableRenderer.d.ts +17 -0
  879. package/dist/src/ui/utils/TableRenderer.js +84 -0
  880. package/dist/src/ui/utils/TableRenderer.js.map +1 -0
  881. package/dist/src/ui/utils/clipboardUtils.d.ts +22 -0
  882. package/dist/src/ui/utils/clipboardUtils.js +126 -0
  883. package/dist/src/ui/utils/clipboardUtils.js.map +1 -0
  884. package/dist/src/ui/utils/clipboardUtils.test.d.ts +6 -0
  885. package/dist/src/ui/utils/clipboardUtils.test.js +65 -0
  886. package/dist/src/ui/utils/clipboardUtils.test.js.map +1 -0
  887. package/dist/src/ui/utils/commandUtils.d.ts +24 -0
  888. package/dist/src/ui/utils/commandUtils.js +131 -0
  889. package/dist/src/ui/utils/commandUtils.js.map +1 -0
  890. package/dist/src/ui/utils/commandUtils.test.d.ts +6 -0
  891. package/dist/src/ui/utils/commandUtils.test.js +349 -0
  892. package/dist/src/ui/utils/commandUtils.test.js.map +1 -0
  893. package/dist/src/ui/utils/computeStats.d.ts +10 -0
  894. package/dist/src/ui/utils/computeStats.js +57 -0
  895. package/dist/src/ui/utils/computeStats.js.map +1 -0
  896. package/dist/src/ui/utils/displayUtils.d.ts +17 -0
  897. package/dist/src/ui/utils/displayUtils.js +24 -0
  898. package/dist/src/ui/utils/displayUtils.js.map +1 -0
  899. package/dist/src/ui/utils/displayUtils.test.d.ts +6 -0
  900. package/dist/src/ui/utils/displayUtils.test.js +42 -0
  901. package/dist/src/ui/utils/displayUtils.test.js.map +1 -0
  902. package/dist/src/ui/utils/formatters.d.ts +13 -0
  903. package/dist/src/ui/utils/formatters.js +56 -0
  904. package/dist/src/ui/utils/formatters.js.map +1 -0
  905. package/dist/src/ui/utils/formatters.test.d.ts +6 -0
  906. package/dist/src/ui/utils/formatters.test.js +56 -0
  907. package/dist/src/ui/utils/formatters.test.js.map +1 -0
  908. package/dist/src/ui/utils/highlight.d.ts +10 -0
  909. package/dist/src/ui/utils/highlight.js +50 -0
  910. package/dist/src/ui/utils/highlight.js.map +1 -0
  911. package/dist/src/ui/utils/highlight.test.d.ts +6 -0
  912. package/dist/src/ui/utils/highlight.test.js +120 -0
  913. package/dist/src/ui/utils/highlight.test.js.map +1 -0
  914. package/dist/src/ui/utils/isNarrowWidth.d.ts +6 -0
  915. package/dist/src/ui/utils/isNarrowWidth.js +9 -0
  916. package/dist/src/ui/utils/isNarrowWidth.js.map +1 -0
  917. package/dist/src/ui/utils/kittyProtocolDetector.d.ts +13 -0
  918. package/dist/src/ui/utils/kittyProtocolDetector.js +98 -0
  919. package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -0
  920. package/dist/src/ui/utils/markdownUtilities.d.ts +6 -0
  921. package/dist/src/ui/utils/markdownUtilities.js +110 -0
  922. package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
  923. package/dist/src/ui/utils/markdownUtilities.test.d.ts +6 -0
  924. package/dist/src/ui/utils/markdownUtilities.test.js +42 -0
  925. package/dist/src/ui/utils/markdownUtilities.test.js.map +1 -0
  926. package/dist/src/ui/utils/platformConstants.d.ts +75 -0
  927. package/dist/src/ui/utils/platformConstants.js +78 -0
  928. package/dist/src/ui/utils/platformConstants.js.map +1 -0
  929. package/dist/src/ui/utils/terminalSetup.d.ts +30 -0
  930. package/dist/src/ui/utils/terminalSetup.js +281 -0
  931. package/dist/src/ui/utils/terminalSetup.js.map +1 -0
  932. package/dist/src/ui/utils/textUtils.d.ts +41 -0
  933. package/dist/src/ui/utils/textUtils.js +129 -0
  934. package/dist/src/ui/utils/textUtils.js.map +1 -0
  935. package/dist/src/ui/utils/updateCheck.d.ts +12 -0
  936. package/dist/src/ui/utils/updateCheck.js +78 -0
  937. package/dist/src/ui/utils/updateCheck.js.map +1 -0
  938. package/dist/src/ui/utils/updateCheck.test.d.ts +6 -0
  939. package/dist/src/ui/utils/updateCheck.test.js +145 -0
  940. package/dist/src/ui/utils/updateCheck.test.js.map +1 -0
  941. package/dist/src/utils/checks.d.ts +19 -0
  942. package/dist/src/utils/checks.js +24 -0
  943. package/dist/src/utils/checks.js.map +1 -0
  944. package/dist/src/utils/cleanup.d.ts +8 -0
  945. package/dist/src/utils/cleanup.js +35 -0
  946. package/dist/src/utils/cleanup.js.map +1 -0
  947. package/dist/src/utils/commands.d.ts +20 -0
  948. package/dist/src/utils/commands.js +53 -0
  949. package/dist/src/utils/commands.js.map +1 -0
  950. package/dist/src/utils/commands.test.d.ts +6 -0
  951. package/dist/src/utils/commands.test.js +115 -0
  952. package/dist/src/utils/commands.test.js.map +1 -0
  953. package/dist/src/utils/commentJson.d.ts +9 -0
  954. package/dist/src/utils/commentJson.js +48 -0
  955. package/dist/src/utils/commentJson.js.map +1 -0
  956. package/dist/src/utils/commentJson.test.d.ts +6 -0
  957. package/dist/src/utils/commentJson.test.js +146 -0
  958. package/dist/src/utils/commentJson.test.js.map +1 -0
  959. package/dist/src/utils/deepMerge.d.ts +10 -0
  960. package/dist/src/utils/deepMerge.js +58 -0
  961. package/dist/src/utils/deepMerge.js.map +1 -0
  962. package/dist/src/utils/deepMerge.test.d.ts +6 -0
  963. package/dist/src/utils/deepMerge.test.js +143 -0
  964. package/dist/src/utils/deepMerge.test.js.map +1 -0
  965. package/dist/src/utils/dialogScopeUtils.d.ts +32 -0
  966. package/dist/src/utils/dialogScopeUtils.js +48 -0
  967. package/dist/src/utils/dialogScopeUtils.js.map +1 -0
  968. package/dist/src/utils/envVarResolver.d.ts +39 -0
  969. package/dist/src/utils/envVarResolver.js +97 -0
  970. package/dist/src/utils/envVarResolver.js.map +1 -0
  971. package/dist/src/utils/envVarResolver.test.d.ts +6 -0
  972. package/dist/src/utils/envVarResolver.test.js +221 -0
  973. package/dist/src/utils/envVarResolver.test.js.map +1 -0
  974. package/dist/src/utils/errors.d.ts +27 -0
  975. package/dist/src/utils/errors.js +105 -0
  976. package/dist/src/utils/errors.js.map +1 -0
  977. package/dist/src/utils/errors.test.d.ts +6 -0
  978. package/dist/src/utils/errors.test.js +303 -0
  979. package/dist/src/utils/errors.test.js.map +1 -0
  980. package/dist/src/utils/events.d.ts +11 -0
  981. package/dist/src/utils/events.js +13 -0
  982. package/dist/src/utils/events.js.map +1 -0
  983. package/dist/src/utils/gitUtils.d.ts +30 -0
  984. package/dist/src/utils/gitUtils.js +89 -0
  985. package/dist/src/utils/gitUtils.js.map +1 -0
  986. package/dist/src/utils/gitUtils.test.d.ts +6 -0
  987. package/dist/src/utils/gitUtils.test.js +113 -0
  988. package/dist/src/utils/gitUtils.test.js.map +1 -0
  989. package/dist/src/utils/handleAutoUpdate.d.ts +11 -0
  990. package/dist/src/utils/handleAutoUpdate.js +102 -0
  991. package/dist/src/utils/handleAutoUpdate.js.map +1 -0
  992. package/dist/src/utils/installationInfo.d.ts +23 -0
  993. package/dist/src/utils/installationInfo.js +154 -0
  994. package/dist/src/utils/installationInfo.js.map +1 -0
  995. package/dist/src/utils/installationInfo.test.d.ts +6 -0
  996. package/dist/src/utils/installationInfo.test.js +242 -0
  997. package/dist/src/utils/installationInfo.test.js.map +1 -0
  998. package/dist/src/utils/package.d.ts +12 -0
  999. package/dist/src/utils/package.js +24 -0
  1000. package/dist/src/utils/package.js.map +1 -0
  1001. package/dist/src/utils/processUtils.d.ts +13 -0
  1002. package/dist/src/utils/processUtils.js +18 -0
  1003. package/dist/src/utils/processUtils.js.map +1 -0
  1004. package/dist/src/utils/processUtils.test.d.ts +6 -0
  1005. package/dist/src/utils/processUtils.test.js +20 -0
  1006. package/dist/src/utils/processUtils.test.js.map +1 -0
  1007. package/dist/src/utils/readStdin.d.ts +6 -0
  1008. package/dist/src/utils/readStdin.js +59 -0
  1009. package/dist/src/utils/readStdin.js.map +1 -0
  1010. package/dist/src/utils/readStdin.test.d.ts +6 -0
  1011. package/dist/src/utils/readStdin.test.js +88 -0
  1012. package/dist/src/utils/readStdin.test.js.map +1 -0
  1013. package/dist/src/utils/resolvePath.d.ts +6 -0
  1014. package/dist/src/utils/resolvePath.js +21 -0
  1015. package/dist/src/utils/resolvePath.js.map +1 -0
  1016. package/dist/src/utils/sandbox-macos-permissive-closed.sb +32 -0
  1017. package/dist/src/utils/sandbox-macos-permissive-open.sb +25 -0
  1018. package/dist/src/utils/sandbox-macos-permissive-proxied.sb +37 -0
  1019. package/dist/src/utils/sandbox-macos-restrictive-closed.sb +93 -0
  1020. package/dist/src/utils/sandbox-macos-restrictive-open.sb +96 -0
  1021. package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +98 -0
  1022. package/dist/src/utils/sandbox.d.ts +7 -0
  1023. package/dist/src/utils/sandbox.js +735 -0
  1024. package/dist/src/utils/sandbox.js.map +1 -0
  1025. package/dist/src/utils/settingsUtils.d.ts +144 -0
  1026. package/dist/src/utils/settingsUtils.js +340 -0
  1027. package/dist/src/utils/settingsUtils.js.map +1 -0
  1028. package/dist/src/utils/settingsUtils.test.d.ts +6 -0
  1029. package/dist/src/utils/settingsUtils.test.js +808 -0
  1030. package/dist/src/utils/settingsUtils.test.js.map +1 -0
  1031. package/dist/src/utils/spawnWrapper.d.ts +7 -0
  1032. package/dist/src/utils/spawnWrapper.js +8 -0
  1033. package/dist/src/utils/spawnWrapper.js.map +1 -0
  1034. package/dist/src/utils/startupWarnings.d.ts +6 -0
  1035. package/dist/src/utils/startupWarnings.js +40 -0
  1036. package/dist/src/utils/startupWarnings.js.map +1 -0
  1037. package/dist/src/utils/updateEventEmitter.d.ts +11 -0
  1038. package/dist/src/utils/updateEventEmitter.js +12 -0
  1039. package/dist/src/utils/updateEventEmitter.js.map +1 -0
  1040. package/dist/src/utils/userStartupWarnings.d.ts +6 -0
  1041. package/dist/src/utils/userStartupWarnings.js +54 -0
  1042. package/dist/src/utils/userStartupWarnings.js.map +1 -0
  1043. package/dist/src/utils/userStartupWarnings.test.d.ts +6 -0
  1044. package/dist/src/utils/userStartupWarnings.test.js +67 -0
  1045. package/dist/src/utils/userStartupWarnings.test.js.map +1 -0
  1046. package/dist/src/utils/version.d.ts +6 -0
  1047. package/dist/src/utils/version.js +11 -0
  1048. package/dist/src/utils/version.js.map +1 -0
  1049. package/dist/src/validateNonInterActiveAuth.d.ts +9 -0
  1050. package/dist/src/validateNonInterActiveAuth.js +58 -0
  1051. package/dist/src/validateNonInterActiveAuth.js.map +1 -0
  1052. package/dist/src/zed-integration/acp.d.ts +63 -0
  1053. package/dist/src/zed-integration/acp.js +226 -0
  1054. package/dist/src/zed-integration/acp.js.map +1 -0
  1055. package/dist/src/zed-integration/fileSystemService.d.ts +19 -0
  1056. package/dist/src/zed-integration/fileSystemService.js +43 -0
  1057. package/dist/src/zed-integration/fileSystemService.js.map +1 -0
  1058. package/dist/src/zed-integration/schema.d.ts +11782 -0
  1059. package/dist/src/zed-integration/schema.js +311 -0
  1060. package/dist/src/zed-integration/schema.js.map +1 -0
  1061. package/dist/src/zed-integration/zedIntegration.d.ts +10 -0
  1062. package/dist/src/zed-integration/zedIntegration.js +745 -0
  1063. package/dist/src/zed-integration/zedIntegration.js.map +1 -0
  1064. package/dist/tsconfig.tsbuildinfo +1 -0
  1065. package/npm-shrinkwrap.json +17153 -0
  1066. package/package.json +11 -13
  1067. package/gemini.js +0 -416261
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CommandKind } from './types.js';
7
+ export const privacyCommand = {
8
+ name: 'privacy',
9
+ description: 'display the privacy notice',
10
+ kind: CommandKind.BUILT_IN,
11
+ action: () => ({
12
+ type: 'dialog',
13
+ dialog: 'privacy',
14
+ }),
15
+ };
16
+ //# sourceMappingURL=privacyCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privacyCommand.js","sourceRoot":"","sources":["../../../../src/ui/commands/privacyCommand.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,cAAc,GAAiB;IAC1C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,4BAA4B;IACzC,IAAI,EAAE,WAAW,CAAC,QAAQ;IAC1B,MAAM,EAAE,GAA2B,EAAE,CAAC,CAAC;QACrC,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,SAAS;KAClB,CAAC;CACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { type SlashCommand } from './types.js';
7
+ export declare const quitCommand: SlashCommand;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { formatDuration } from '../utils/formatters.js';
7
+ import { CommandKind } from './types.js';
8
+ export const quitCommand = {
9
+ name: 'quit',
10
+ altNames: ['exit'],
11
+ description: 'exit the cli',
12
+ kind: CommandKind.BUILT_IN,
13
+ action: (context) => {
14
+ const now = Date.now();
15
+ const { sessionStartTime } = context.session.stats;
16
+ const wallDuration = now - sessionStartTime.getTime();
17
+ return {
18
+ type: 'quit',
19
+ messages: [
20
+ {
21
+ type: 'user',
22
+ text: `/quit`, // Keep it consistent, even if /exit was used
23
+ id: now - 1,
24
+ },
25
+ {
26
+ type: 'quit',
27
+ duration: formatDuration(wallDuration),
28
+ id: now,
29
+ },
30
+ ],
31
+ };
32
+ },
33
+ };
34
+ //# sourceMappingURL=quitCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quitCommand.js","sourceRoot":"","sources":["../../../../src/ui/commands/quitCommand.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAqB,MAAM,YAAY,CAAC;AAE5D,MAAM,CAAC,MAAM,WAAW,GAAiB;IACvC,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,WAAW,EAAE,cAAc;IAC3B,IAAI,EAAE,WAAW,CAAC,QAAQ;IAC1B,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE;QAClB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;QACnD,MAAM,YAAY,GAAG,GAAG,GAAG,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAEtD,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,OAAO,EAAE,6CAA6C;oBAC5D,EAAE,EAAE,GAAG,GAAG,CAAC;iBACZ;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,cAAc,CAAC,YAAY,CAAC;oBACtC,EAAE,EAAE,GAAG;iBACR;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { type SlashCommand } from './types.js';
7
+ import type { Config } from '@google/gemini-cli-core';
8
+ export declare const restoreCommand: (config: Config | null) => SlashCommand | null;
@@ -0,0 +1,124 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import * as fs from 'node:fs/promises';
7
+ import path from 'node:path';
8
+ import { CommandKind, } from './types.js';
9
+ async function restoreAction(context, args) {
10
+ const { services, ui } = context;
11
+ const { config, git: gitService } = services;
12
+ const { addItem, loadHistory } = ui;
13
+ const checkpointDir = config?.storage.getProjectTempCheckpointsDir();
14
+ if (!checkpointDir) {
15
+ return {
16
+ type: 'message',
17
+ messageType: 'error',
18
+ content: 'Could not determine the .gemini directory path.',
19
+ };
20
+ }
21
+ try {
22
+ // Ensure the directory exists before trying to read it.
23
+ await fs.mkdir(checkpointDir, { recursive: true });
24
+ const files = await fs.readdir(checkpointDir);
25
+ const jsonFiles = files.filter((file) => file.endsWith('.json'));
26
+ if (!args) {
27
+ if (jsonFiles.length === 0) {
28
+ return {
29
+ type: 'message',
30
+ messageType: 'info',
31
+ content: 'No restorable tool calls found.',
32
+ };
33
+ }
34
+ const truncatedFiles = jsonFiles.map((file) => {
35
+ const components = file.split('.');
36
+ if (components.length <= 1) {
37
+ return file;
38
+ }
39
+ components.pop();
40
+ return components.join('.');
41
+ });
42
+ const fileList = truncatedFiles.join('\n');
43
+ return {
44
+ type: 'message',
45
+ messageType: 'info',
46
+ content: `Available tool calls to restore:\n\n${fileList}`,
47
+ };
48
+ }
49
+ const selectedFile = args.endsWith('.json') ? args : `${args}.json`;
50
+ if (!jsonFiles.includes(selectedFile)) {
51
+ return {
52
+ type: 'message',
53
+ messageType: 'error',
54
+ content: `File not found: ${selectedFile}`,
55
+ };
56
+ }
57
+ const filePath = path.join(checkpointDir, selectedFile);
58
+ const data = await fs.readFile(filePath, 'utf-8');
59
+ const toolCallData = JSON.parse(data);
60
+ if (toolCallData.history) {
61
+ if (!loadHistory) {
62
+ // This should not happen
63
+ return {
64
+ type: 'message',
65
+ messageType: 'error',
66
+ content: 'loadHistory function is not available.',
67
+ };
68
+ }
69
+ loadHistory(toolCallData.history);
70
+ }
71
+ if (toolCallData.clientHistory) {
72
+ await config?.getGeminiClient()?.setHistory(toolCallData.clientHistory);
73
+ }
74
+ if (toolCallData.commitHash) {
75
+ await gitService?.restoreProjectFromSnapshot(toolCallData.commitHash);
76
+ addItem({
77
+ type: 'info',
78
+ text: 'Restored project to the state before the tool call.',
79
+ }, Date.now());
80
+ }
81
+ return {
82
+ type: 'tool',
83
+ toolName: toolCallData.toolCall.name,
84
+ toolArgs: toolCallData.toolCall.args,
85
+ };
86
+ }
87
+ catch (error) {
88
+ return {
89
+ type: 'message',
90
+ messageType: 'error',
91
+ content: `Could not read restorable tool calls. This is the error: ${error}`,
92
+ };
93
+ }
94
+ }
95
+ async function completion(context, _partialArg) {
96
+ const { services } = context;
97
+ const { config } = services;
98
+ const checkpointDir = config?.storage.getProjectTempCheckpointsDir();
99
+ if (!checkpointDir) {
100
+ return [];
101
+ }
102
+ try {
103
+ const files = await fs.readdir(checkpointDir);
104
+ return files
105
+ .filter((file) => file.endsWith('.json'))
106
+ .map((file) => file.replace('.json', ''));
107
+ }
108
+ catch (_err) {
109
+ return [];
110
+ }
111
+ }
112
+ export const restoreCommand = (config) => {
113
+ if (!config?.getCheckpointingEnabled()) {
114
+ return null;
115
+ }
116
+ return {
117
+ name: 'restore',
118
+ description: 'Restore a tool call. This will reset the conversation and file history to the state it was in when the tool call was suggested',
119
+ kind: CommandKind.BUILT_IN,
120
+ action: restoreAction,
121
+ completion,
122
+ };
123
+ };
124
+ //# sourceMappingURL=restoreCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restoreCommand.js","sourceRoot":"","sources":["../../../../src/ui/commands/restoreCommand.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAIL,WAAW,GACZ,MAAM,YAAY,CAAC;AAGpB,KAAK,UAAU,aAAa,CAC1B,OAAuB,EACvB,IAAY;IAEZ,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC;IACjC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC;IAC7C,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC;IAEpC,MAAM,aAAa,GAAG,MAAM,EAAE,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAErE,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,OAAO;YACpB,OAAO,EAAE,iDAAiD;SAC3D,CAAC;IACJ,CAAC;IAED,IAAI,CAAC;QACH,wDAAwD;QACxD,MAAM,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAC9C,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAEjE,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC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,CAAC;IACZ,CAAC;IACD,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAC9C,OAAO,KAAK;aACT,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;aACxC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;IAAC,OAAO,IAAI,EAAE,CAAC;QACd,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAqB,EAAuB,EAAE;IAC3E,IAAI,CAAC,MAAM,EAAE,uBAAuB,EAAE,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,IAAI,EAAE,SAAS;QACf,WAAW,EACT,gIAAgI;QAClI,IAAI,EAAE,WAAW,CAAC,QAAQ;QAC1B,MAAM,EAAE,aAAa;QACrB,UAAU;KACX,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { SlashCommand } from './types.js';
7
+ export declare const settingsCommand: SlashCommand;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CommandKind } from './types.js';
7
+ export const settingsCommand = {
8
+ name: 'settings',
9
+ description: 'View and edit Gemini CLI settings',
10
+ kind: CommandKind.BUILT_IN,
11
+ action: (_context, _args) => ({
12
+ type: 'dialog',
13
+ dialog: 'settings',
14
+ }),
15
+ };
16
+ //# sourceMappingURL=settingsCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settingsCommand.js","sourceRoot":"","sources":["../../../../src/ui/commands/settingsCommand.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAiB;IAC3C,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,mCAAmC;IAChD,IAAI,EAAE,WAAW,CAAC,QAAQ;IAC1B,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAA0B,EAAE,CAAC,CAAC;QACpD,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,UAAU;KACnB,CAAC;CACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { SlashCommand } from './types.js';
7
+ export declare const GITHUB_WORKFLOW_PATHS: string[];
8
+ export declare function updateGitignore(gitRepoRoot: string): Promise<void>;
9
+ export declare const setupGithubCommand: SlashCommand;
@@ -0,0 +1,154 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import path from 'node:path';
7
+ import * as fs from 'node:fs';
8
+ import { Writable } from 'node:stream';
9
+ import { ProxyAgent } from 'undici';
10
+ import { getGitRepoRoot, getLatestGitHubRelease, isGitHubRepository, getGitHubRepoInfo, } from '../../utils/gitUtils.js';
11
+ import { CommandKind } from './types.js';
12
+ import { getUrlOpenCommand } from '../../ui/utils/commandUtils.js';
13
+ export const GITHUB_WORKFLOW_PATHS = [
14
+ 'gemini-dispatch/gemini-dispatch.yml',
15
+ 'gemini-assistant/gemini-invoke.yml',
16
+ 'issue-triage/gemini-triage.yml',
17
+ 'issue-triage/gemini-scheduled-triage.yml',
18
+ 'pr-review/gemini-review.yml',
19
+ ];
20
+ // Generate OS-specific commands to open the GitHub pages needed for setup.
21
+ function getOpenUrlsCommands(readmeUrl) {
22
+ // Determine the OS-specific command to open URLs, ex: 'open', 'xdg-open', etc
23
+ const openCmd = getUrlOpenCommand();
24
+ // Build a list of URLs to open
25
+ const urlsToOpen = [readmeUrl];
26
+ const repoInfo = getGitHubRepoInfo();
27
+ if (repoInfo) {
28
+ urlsToOpen.push(`https://github.com/${repoInfo.owner}/${repoInfo.repo}/settings/secrets/actions`);
29
+ }
30
+ // Create and join the individual commands
31
+ const commands = urlsToOpen.map((url) => `${openCmd} "${url}"`);
32
+ return commands;
33
+ }
34
+ // Add Gemini CLI specific entries to .gitignore file
35
+ export async function updateGitignore(gitRepoRoot) {
36
+ const gitignoreEntries = ['.gemini/', 'gha-creds-*.json'];
37
+ const gitignorePath = path.join(gitRepoRoot, '.gitignore');
38
+ try {
39
+ // Check if .gitignore exists and read its content
40
+ let existingContent = '';
41
+ let fileExists = true;
42
+ try {
43
+ existingContent = await fs.promises.readFile(gitignorePath, 'utf8');
44
+ }
45
+ catch (_error) {
46
+ // File doesn't exist
47
+ fileExists = false;
48
+ }
49
+ if (!fileExists) {
50
+ // Create new .gitignore file with the entries
51
+ const contentToWrite = gitignoreEntries.join('\n') + '\n';
52
+ await fs.promises.writeFile(gitignorePath, contentToWrite);
53
+ }
54
+ else {
55
+ // Check which entries are missing
56
+ const missingEntries = gitignoreEntries.filter((entry) => !existingContent
57
+ .split(/\r?\n/)
58
+ .some((line) => line.split('#')[0].trim() === entry));
59
+ if (missingEntries.length > 0) {
60
+ const contentToAdd = '\n' + missingEntries.join('\n') + '\n';
61
+ await fs.promises.appendFile(gitignorePath, contentToAdd);
62
+ }
63
+ }
64
+ }
65
+ catch (error) {
66
+ console.debug('Failed to update .gitignore:', error);
67
+ // Continue without failing the whole command
68
+ }
69
+ }
70
+ export const setupGithubCommand = {
71
+ name: 'setup-github',
72
+ description: 'Set up GitHub Actions',
73
+ kind: CommandKind.BUILT_IN,
74
+ action: async (context) => {
75
+ const abortController = new AbortController();
76
+ if (!isGitHubRepository()) {
77
+ throw new Error('Unable to determine the GitHub repository. /setup-github must be run from a git repository.');
78
+ }
79
+ // Find the root directory of the repo
80
+ let gitRepoRoot;
81
+ try {
82
+ gitRepoRoot = getGitRepoRoot();
83
+ }
84
+ catch (_error) {
85
+ console.debug(`Failed to get git repo root:`, _error);
86
+ throw new Error('Unable to determine the GitHub repository. /setup-github must be run from a git repository.');
87
+ }
88
+ // Get the latest release tag from GitHub
89
+ const proxy = context?.services?.config?.getProxy();
90
+ const releaseTag = await getLatestGitHubRelease(proxy);
91
+ const readmeUrl = `https://github.com/google-github-actions/run-gemini-cli/blob/${releaseTag}/README.md#quick-start`;
92
+ // Create the .github/workflows directory to download the files into
93
+ const githubWorkflowsDir = path.join(gitRepoRoot, '.github', 'workflows');
94
+ try {
95
+ await fs.promises.mkdir(githubWorkflowsDir, { recursive: true });
96
+ }
97
+ catch (_error) {
98
+ console.debug(`Failed to create ${githubWorkflowsDir} directory:`, _error);
99
+ throw new Error(`Unable to create ${githubWorkflowsDir} directory. Do you have file permissions in the current directory?`);
100
+ }
101
+ // Download each workflow in parallel - there aren't enough files to warrant
102
+ // a full workerpool model here.
103
+ const downloads = [];
104
+ for (const workflow of GITHUB_WORKFLOW_PATHS) {
105
+ downloads.push((async () => {
106
+ const endpoint = `https://raw.githubusercontent.com/google-github-actions/run-gemini-cli/refs/tags/${releaseTag}/examples/workflows/${workflow}`;
107
+ const response = await fetch(endpoint, {
108
+ method: 'GET',
109
+ dispatcher: proxy ? new ProxyAgent(proxy) : undefined,
110
+ signal: AbortSignal.any([
111
+ AbortSignal.timeout(30_000),
112
+ abortController.signal,
113
+ ]),
114
+ });
115
+ if (!response.ok) {
116
+ throw new Error(`Invalid response code downloading ${endpoint}: ${response.status} - ${response.statusText}`);
117
+ }
118
+ const body = response.body;
119
+ if (!body) {
120
+ throw new Error(`Empty body while downloading ${endpoint}: ${response.status} - ${response.statusText}`);
121
+ }
122
+ const destination = path.resolve(githubWorkflowsDir, path.basename(workflow));
123
+ const fileStream = fs.createWriteStream(destination, {
124
+ mode: 0o644, // -rw-r--r--, user(rw), group(r), other(r)
125
+ flags: 'w', // write and overwrite
126
+ flush: true,
127
+ });
128
+ await body.pipeTo(Writable.toWeb(fileStream));
129
+ })());
130
+ }
131
+ // Wait for all downloads to complete
132
+ await Promise.all(downloads).finally(() => {
133
+ // Stop existing downloads
134
+ abortController.abort();
135
+ });
136
+ // Add entries to .gitignore file
137
+ await updateGitignore(gitRepoRoot);
138
+ // Print out a message
139
+ const commands = [];
140
+ commands.push('set -eEuo pipefail');
141
+ commands.push(`echo "Successfully downloaded ${GITHUB_WORKFLOW_PATHS.length} workflows and updated .gitignore. Follow the steps in ${readmeUrl} (skipping the /setup-github step) to complete setup."`);
142
+ commands.push(...getOpenUrlsCommands(readmeUrl));
143
+ const command = `(${commands.join(' && ')})`;
144
+ return {
145
+ type: 'tool',
146
+ toolName: 'run_shell_command',
147
+ toolArgs: {
148
+ description: 'Setting up GitHub Actions to triage issues and review PRs with Gemini.',
149
+ command,
150
+ },
151
+ };
152
+ },
153
+ };
154
+ //# sourceMappingURL=setupGithubCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupGithubCommand.js","sourceRoot":"","sources":["../../../../src/ui/commands/setupGithubCommand.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGpC,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,qCAAqC;IACrC,oCAAoC;IACpC,gCAA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QAAQ,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACpC,QAAQ,CAAC,IAAI,CACX,iCAAiC,qBAAqB,CAAC,MAAM,0DAA0D,SAAS,wDAAwD,CACzL,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;QAEjD,MAAM,OAAO,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;QAC7C,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,mBAAmB;YAC7B,QAAQ,EAAE;gBACR,WAAW,EACT,wEAAwE;gBAC1E,OAAO;aACR;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
@@ -0,0 +1,167 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import os from 'node:os';
7
+ import path from 'node:path';
8
+ import fs from 'node:fs/promises';
9
+ import { vi, describe, expect, it, afterEach, beforeEach } from 'vitest';
10
+ import * as gitUtils from '../../utils/gitUtils.js';
11
+ import { setupGithubCommand, updateGitignore, GITHUB_WORKFLOW_PATHS, } from './setupGithubCommand.js';
12
+ import * as commandUtils from '../utils/commandUtils.js';
13
+ vi.mock('child_process');
14
+ // Mock fetch globally
15
+ global.fetch = vi.fn();
16
+ vi.mock('../../utils/gitUtils.js', () => ({
17
+ isGitHubRepository: vi.fn(),
18
+ getGitRepoRoot: vi.fn(),
19
+ getLatestGitHubRelease: vi.fn(),
20
+ getGitHubRepoInfo: vi.fn(),
21
+ }));
22
+ vi.mock('../utils/commandUtils.js', () => ({
23
+ getUrlOpenCommand: vi.fn(),
24
+ }));
25
+ describe('setupGithubCommand', async () => {
26
+ let scratchDir = '';
27
+ beforeEach(async () => {
28
+ vi.resetAllMocks();
29
+ scratchDir = await fs.mkdtemp(path.join(os.tmpdir(), 'setup-github-command-'));
30
+ });
31
+ afterEach(async () => {
32
+ vi.restoreAllMocks();
33
+ if (scratchDir)
34
+ await fs.rm(scratchDir, { recursive: true });
35
+ });
36
+ it('returns a tool action to download github workflows and handles paths', async () => {
37
+ const fakeRepoOwner = 'fake';
38
+ const fakeRepoName = 'repo';
39
+ const fakeRepoRoot = scratchDir;
40
+ const fakeReleaseVersion = 'v1.2.3';
41
+ const workflows = GITHUB_WORKFLOW_PATHS.map((p) => path.basename(p));
42
+ for (const workflow of workflows) {
43
+ vi.mocked(global.fetch).mockReturnValueOnce(Promise.resolve(new Response(workflow)));
44
+ }
45
+ vi.mocked(gitUtils.isGitHubRepository).mockReturnValueOnce(true);
46
+ vi.mocked(gitUtils.getGitRepoRoot).mockReturnValueOnce(fakeRepoRoot);
47
+ vi.mocked(gitUtils.getLatestGitHubRelease).mockResolvedValueOnce(fakeReleaseVersion);
48
+ vi.mocked(gitUtils.getGitHubRepoInfo).mockReturnValue({
49
+ owner: fakeRepoOwner,
50
+ repo: fakeRepoName,
51
+ });
52
+ vi.mocked(commandUtils.getUrlOpenCommand).mockReturnValueOnce('fakeOpenCommand');
53
+ const result = (await setupGithubCommand.action?.({}, ''));
54
+ const { command } = result.toolArgs;
55
+ const expectedSubstrings = [
56
+ `set -eEuo pipefail`,
57
+ `fakeOpenCommand "https://github.com/google-github-actions/run-gemini-cli`,
58
+ ];
59
+ for (const substring of expectedSubstrings) {
60
+ expect(command).toContain(substring);
61
+ }
62
+ for (const workflow of workflows) {
63
+ const workflowFile = path.join(scratchDir, '.github', 'workflows', workflow);
64
+ const contents = await fs.readFile(workflowFile, 'utf8');
65
+ expect(contents).toContain(workflow);
66
+ }
67
+ // Verify that .gitignore was created with the expected entries
68
+ const gitignorePath = path.join(scratchDir, '.gitignore');
69
+ const gitignoreExists = await fs
70
+ .access(gitignorePath)
71
+ .then(() => true)
72
+ .catch(() => false);
73
+ expect(gitignoreExists).toBe(true);
74
+ if (gitignoreExists) {
75
+ const gitignoreContent = await fs.readFile(gitignorePath, 'utf8');
76
+ expect(gitignoreContent).toContain('.gemini/');
77
+ expect(gitignoreContent).toContain('gha-creds-*.json');
78
+ }
79
+ });
80
+ });
81
+ describe('updateGitignore', () => {
82
+ let scratchDir = '';
83
+ beforeEach(async () => {
84
+ scratchDir = await fs.mkdtemp(path.join(os.tmpdir(), 'update-gitignore-'));
85
+ });
86
+ afterEach(async () => {
87
+ if (scratchDir)
88
+ await fs.rm(scratchDir, { recursive: true });
89
+ });
90
+ it('creates a new .gitignore file when none exists', async () => {
91
+ await updateGitignore(scratchDir);
92
+ const gitignorePath = path.join(scratchDir, '.gitignore');
93
+ const content = await fs.readFile(gitignorePath, 'utf8');
94
+ expect(content).toBe('.gemini/\ngha-creds-*.json\n');
95
+ });
96
+ it('appends entries to existing .gitignore file', async () => {
97
+ const gitignorePath = path.join(scratchDir, '.gitignore');
98
+ const existingContent = '# Existing content\nnode_modules/\n';
99
+ await fs.writeFile(gitignorePath, existingContent);
100
+ await updateGitignore(scratchDir);
101
+ const content = await fs.readFile(gitignorePath, 'utf8');
102
+ expect(content).toBe('# Existing content\nnode_modules/\n\n.gemini/\ngha-creds-*.json\n');
103
+ });
104
+ it('does not add duplicate entries', async () => {
105
+ const gitignorePath = path.join(scratchDir, '.gitignore');
106
+ const existingContent = '.gemini/\nsome-other-file\ngha-creds-*.json\n';
107
+ await fs.writeFile(gitignorePath, existingContent);
108
+ await updateGitignore(scratchDir);
109
+ const content = await fs.readFile(gitignorePath, 'utf8');
110
+ expect(content).toBe(existingContent);
111
+ });
112
+ it('adds only missing entries when some already exist', async () => {
113
+ const gitignorePath = path.join(scratchDir, '.gitignore');
114
+ const existingContent = '.gemini/\nsome-other-file\n';
115
+ await fs.writeFile(gitignorePath, existingContent);
116
+ await updateGitignore(scratchDir);
117
+ const content = await fs.readFile(gitignorePath, 'utf8');
118
+ // Should add only the missing gha-creds-*.json entry
119
+ expect(content).toBe('.gemini/\nsome-other-file\n\ngha-creds-*.json\n');
120
+ expect(content).toContain('gha-creds-*.json');
121
+ // Should not duplicate .gemini/ entry
122
+ expect((content.match(/\.gemini\//g) || []).length).toBe(1);
123
+ });
124
+ it('does not get confused by entries in comments or as substrings', async () => {
125
+ const gitignorePath = path.join(scratchDir, '.gitignore');
126
+ const existingContent = [
127
+ '# This is a comment mentioning .gemini/ folder',
128
+ 'my-app.gemini/config',
129
+ '# Another comment with gha-creds-*.json pattern',
130
+ 'some-other-gha-creds-file.json',
131
+ '',
132
+ ].join('\n');
133
+ await fs.writeFile(gitignorePath, existingContent);
134
+ await updateGitignore(scratchDir);
135
+ const content = await fs.readFile(gitignorePath, 'utf8');
136
+ // Should add both entries since they don't actually exist as gitignore rules
137
+ expect(content).toContain('.gemini/');
138
+ expect(content).toContain('gha-creds-*.json');
139
+ // Verify the entries were added (not just mentioned in comments)
140
+ const lines = content
141
+ .split('\n')
142
+ .map((line) => line.split('#')[0].trim())
143
+ .filter((line) => line);
144
+ expect(lines).toContain('.gemini/');
145
+ expect(lines).toContain('gha-creds-*.json');
146
+ expect(lines).toContain('my-app.gemini/config');
147
+ expect(lines).toContain('some-other-gha-creds-file.json');
148
+ });
149
+ it('handles file system errors gracefully', async () => {
150
+ // Try to update gitignore in a non-existent directory
151
+ const nonExistentDir = path.join(scratchDir, 'non-existent');
152
+ // This should not throw an error
153
+ await expect(updateGitignore(nonExistentDir)).resolves.toBeUndefined();
154
+ });
155
+ it('handles permission errors gracefully', async () => {
156
+ const consoleSpy = vi.spyOn(console, 'debug').mockImplementation(() => { });
157
+ const fsModule = await import('node:fs');
158
+ const writeFileSpy = vi
159
+ .spyOn(fsModule.promises, 'writeFile')
160
+ .mockRejectedValue(new Error('Permission denied'));
161
+ await expect(updateGitignore(scratchDir)).resolves.toBeUndefined();
162
+ expect(consoleSpy).toHaveBeenCalledWith('Failed to update .gitignore:', expect.any(Error));
163
+ writeFileSpy.mockRestore();
164
+ consoleSpy.mockRestore();
165
+ });
166
+ });
167
+ //# sourceMappingURL=setupGithubCommand.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupGithubCommand.test.js","sourceRoot":"","sources":["../../../../src/ui/commands/setupGithubCommand.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAElC,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AAEzD,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AAEzB,sBAAsB;AACtB,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAEvB,EAAE,CAAC,IAAI,CAAC,yBAAyB,EAAE,GAAG,EAAE,CAAC,CAAC;IACxC,kBAAkB,EAAE,EAAE,CAAC,EAAE,EAAE;IAC3B,cAAc,EAAE,EAAE,CAAC,EAAE,EAAE;IACvB,sBAAsB,EAAE,EAAE,CAAC,EAAE,EAAE;IAC/B,iBAAiB,EAAE,EAAE,CAAC,EAAE,EAAE;CAC3B,CAAC,CAAC,CAAC;AAEJ,EAAE,CAAC,IAAI,CAAC,0BAA0B,EAAE,GAAG,EAAE,CAAC,CAAC;IACzC,iBAAiB,EAAE,EAAE,CAAC,EAAE,EAAE;CAC3B,CAAC,CAAC,CAAC;AAEJ,QAAQ,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;IACxC,IAAI,UAAU,GAAG,EAAE,CAAC;IAEpB,UAA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AAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { type SlashCommand } from './types.js';
7
+ export declare const statsCommand: SlashCommand;