@google/gemini-cli 0.0.8999999 → 0.0.77777773

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 (465) hide show
  1. package/README.md +105 -62
  2. package/dist/package.json +13 -5
  3. package/dist/src/commands/extensions/examples/context/GEMINI.md +9 -3
  4. package/dist/src/commands/extensions/examples/context/gemini-extension.json +1 -2
  5. package/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +3 -2
  6. package/dist/src/commands/extensions/examples/mcp-server/package.json +18 -0
  7. package/dist/src/commands/extensions/examples/mcp-server/tsconfig.json +13 -0
  8. package/dist/src/commands/extensions/install.d.ts +2 -2
  9. package/dist/src/commands/extensions/install.js +35 -36
  10. package/dist/src/commands/extensions/install.js.map +1 -1
  11. package/dist/src/commands/extensions/install.test.js +25 -25
  12. package/dist/src/commands/extensions/install.test.js.map +1 -1
  13. package/dist/src/commands/extensions/link.js +2 -2
  14. package/dist/src/commands/extensions/link.js.map +1 -1
  15. package/dist/src/commands/extensions/list.js +1 -1
  16. package/dist/src/commands/extensions/list.js.map +1 -1
  17. package/dist/src/commands/extensions/new.js +28 -8
  18. package/dist/src/commands/extensions/new.js.map +1 -1
  19. package/dist/src/commands/extensions/new.test.js +14 -5
  20. package/dist/src/commands/extensions/new.test.js.map +1 -1
  21. package/dist/src/commands/extensions/uninstall.js +1 -1
  22. package/dist/src/commands/extensions/uninstall.js.map +1 -1
  23. package/dist/src/commands/extensions/uninstall.test.js +4 -1
  24. package/dist/src/commands/extensions/uninstall.test.js.map +1 -1
  25. package/dist/src/commands/extensions/update.js +35 -24
  26. package/dist/src/commands/extensions/update.js.map +1 -1
  27. package/dist/src/commands/mcp/add.js +6 -1
  28. package/dist/src/commands/mcp/add.js.map +1 -1
  29. package/dist/src/commands/mcp/list.js +5 -4
  30. package/dist/src/commands/mcp/list.js.map +1 -1
  31. package/dist/src/config/config.d.ts +7 -4
  32. package/dist/src/config/config.js +125 -39
  33. package/dist/src/config/config.js.map +1 -1
  34. package/dist/src/config/extension.d.ts +44 -18
  35. package/dist/src/config/extension.js +250 -143
  36. package/dist/src/config/extension.js.map +1 -1
  37. package/dist/src/config/extensions/extensionEnablement.d.ts +12 -9
  38. package/dist/src/config/extensions/extensionEnablement.js +36 -9
  39. package/dist/src/config/extensions/extensionEnablement.js.map +1 -1
  40. package/dist/src/config/extensions/extensionEnablement.test.js +74 -1
  41. package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -1
  42. package/dist/src/config/extensions/github.d.ts +14 -2
  43. package/dist/src/config/extensions/github.js +111 -89
  44. package/dist/src/config/extensions/github.js.map +1 -1
  45. package/dist/src/config/extensions/github.test.js +124 -13
  46. package/dist/src/config/extensions/github.test.js.map +1 -1
  47. package/dist/src/config/extensions/github_fetch.d.ts +7 -0
  48. package/dist/src/config/extensions/github_fetch.js +34 -0
  49. package/dist/src/config/extensions/github_fetch.js.map +1 -0
  50. package/dist/src/config/extensions/update.d.ts +4 -5
  51. package/dist/src/config/extensions/update.js +64 -42
  52. package/dist/src/config/extensions/update.js.map +1 -1
  53. package/dist/src/config/extensions/update.test.js +121 -71
  54. package/dist/src/config/extensions/update.test.js.map +1 -1
  55. package/dist/src/config/keyBindings.js +1 -1
  56. package/dist/src/config/keyBindings.js.map +1 -1
  57. package/dist/src/config/policy.js +2 -2
  58. package/dist/src/config/policy.js.map +1 -1
  59. package/dist/src/config/settings.d.ts +10 -1
  60. package/dist/src/config/settings.js +21 -6
  61. package/dist/src/config/settings.js.map +1 -1
  62. package/dist/src/config/settingsSchema.d.ts +97 -5
  63. package/dist/src/config/settingsSchema.js +96 -4
  64. package/dist/src/config/settingsSchema.js.map +1 -1
  65. package/dist/src/config/settingsSchema.test.js +8 -0
  66. package/dist/src/config/settingsSchema.test.js.map +1 -1
  67. package/dist/src/config/trustedFolders.d.ts +10 -2
  68. package/dist/src/config/trustedFolders.js +41 -16
  69. package/dist/src/config/trustedFolders.js.map +1 -1
  70. package/dist/src/config/trustedFolders.test.js +95 -14
  71. package/dist/src/config/trustedFolders.test.js.map +1 -1
  72. package/dist/src/gemini.js +114 -132
  73. package/dist/src/gemini.js.map +1 -1
  74. package/dist/src/gemini.test.js +95 -14
  75. package/dist/src/gemini.test.js.map +1 -1
  76. package/dist/src/generated/git-commit.d.ts +2 -2
  77. package/dist/src/generated/git-commit.js +2 -2
  78. package/dist/src/generated/git-commit.js.map +1 -1
  79. package/dist/src/services/BuiltinCommandLoader.js +7 -0
  80. package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
  81. package/dist/src/services/BuiltinCommandLoader.test.js +87 -1
  82. package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
  83. package/dist/src/services/FileCommandLoader.d.ts +1 -1
  84. package/dist/src/services/FileCommandLoader.js +4 -4
  85. package/dist/src/services/FileCommandLoader.js.map +1 -1
  86. package/dist/src/services/prompt-processors/shellProcessor.js +1 -1
  87. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
  88. package/dist/src/test-utils/render.d.ts +12 -1
  89. package/dist/src/test-utils/render.js +56 -1
  90. package/dist/src/test-utils/render.js.map +1 -1
  91. package/dist/src/ui/App.js +7 -9
  92. package/dist/src/ui/App.js.map +1 -1
  93. package/dist/src/ui/AppContainer.js +99 -27
  94. package/dist/src/ui/AppContainer.js.map +1 -1
  95. package/dist/src/ui/AppContainer.test.js +300 -7
  96. package/dist/src/ui/AppContainer.test.js.map +1 -1
  97. package/dist/src/ui/IdeIntegrationNudge.js +3 -0
  98. package/dist/src/ui/IdeIntegrationNudge.js.map +1 -1
  99. package/dist/src/ui/auth/AuthDialog.js +8 -1
  100. package/dist/src/ui/auth/AuthDialog.js.map +1 -1
  101. package/dist/src/ui/auth/AuthDialog.test.js +1 -0
  102. package/dist/src/ui/auth/AuthDialog.test.js.map +1 -1
  103. package/dist/src/ui/auth/AuthInProgress.js +2 -2
  104. package/dist/src/ui/auth/AuthInProgress.js.map +1 -1
  105. package/dist/src/ui/commands/chatCommand.js +21 -27
  106. package/dist/src/ui/commands/chatCommand.js.map +1 -1
  107. package/dist/src/ui/commands/extensionsCommand.js +39 -34
  108. package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
  109. package/dist/src/ui/commands/mcpCommand.js +78 -260
  110. package/dist/src/ui/commands/mcpCommand.js.map +1 -1
  111. package/dist/src/ui/commands/memoryCommand.js +23 -5
  112. package/dist/src/ui/commands/memoryCommand.js.map +1 -1
  113. package/dist/src/ui/commands/modelCommand.d.ts +7 -0
  114. package/dist/src/ui/commands/modelCommand.js +16 -0
  115. package/dist/src/ui/commands/modelCommand.js.map +1 -0
  116. package/dist/src/ui/commands/modelCommand.test.js +30 -0
  117. package/dist/src/ui/commands/modelCommand.test.js.map +1 -0
  118. package/dist/src/ui/commands/permissionsCommand.d.ts +7 -0
  119. package/dist/src/ui/commands/permissionsCommand.js +16 -0
  120. package/dist/src/ui/commands/permissionsCommand.js.map +1 -0
  121. package/dist/src/ui/commands/permissionsCommand.test.d.ts +6 -0
  122. package/dist/src/ui/commands/permissionsCommand.test.js +30 -0
  123. package/dist/src/ui/commands/permissionsCommand.test.js.map +1 -0
  124. package/dist/src/ui/commands/profileCommand.d.ts +7 -0
  125. package/dist/src/ui/commands/profileCommand.js +23 -0
  126. package/dist/src/ui/commands/profileCommand.js.map +1 -0
  127. package/dist/src/ui/commands/setupGithubCommand.test.js +2 -1
  128. package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -1
  129. package/dist/src/ui/commands/toolsCommand.js +10 -24
  130. package/dist/src/ui/commands/toolsCommand.js.map +1 -1
  131. package/dist/src/ui/commands/types.d.ts +8 -6
  132. package/dist/src/ui/commands/types.js.map +1 -1
  133. package/dist/src/ui/components/AnsiOutput.d.ts +1 -0
  134. package/dist/src/ui/components/AnsiOutput.js +5 -5
  135. package/dist/src/ui/components/AnsiOutput.js.map +1 -1
  136. package/dist/src/ui/components/AnsiOutput.test.js +6 -6
  137. package/dist/src/ui/components/AnsiOutput.test.js.map +1 -1
  138. package/dist/src/ui/components/AppHeader.js +2 -5
  139. package/dist/src/ui/components/AppHeader.js.map +1 -1
  140. package/dist/src/ui/components/CliSpinner.d.ts +10 -0
  141. package/dist/src/ui/components/CliSpinner.js +20 -0
  142. package/dist/src/ui/components/CliSpinner.js.map +1 -0
  143. package/dist/src/ui/components/Composer.js +7 -29
  144. package/dist/src/ui/components/Composer.js.map +1 -1
  145. package/dist/src/ui/components/ConsentPrompt.d.ts +13 -0
  146. package/dist/src/ui/components/ConsentPrompt.js +19 -0
  147. package/dist/src/ui/components/ConsentPrompt.js.map +1 -0
  148. package/dist/src/ui/components/ConsentPrompt.test.d.ts +6 -0
  149. package/dist/src/ui/components/ConsentPrompt.test.js +67 -0
  150. package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -0
  151. package/dist/src/ui/components/ContextSummaryDisplay.js +2 -2
  152. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
  153. package/dist/src/ui/components/ContextUsageDisplay.d.ts +2 -1
  154. package/dist/src/ui/components/ContextUsageDisplay.js +4 -2
  155. package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -1
  156. package/dist/src/ui/components/DebugProfiler.d.ts +18 -0
  157. package/dist/src/ui/components/DebugProfiler.js +158 -12
  158. package/dist/src/ui/components/DebugProfiler.js.map +1 -1
  159. package/dist/src/ui/components/DebugProfiler.test.d.ts +6 -0
  160. package/dist/src/ui/components/DebugProfiler.test.js +140 -0
  161. package/dist/src/ui/components/DebugProfiler.test.js.map +1 -0
  162. package/dist/src/ui/components/DialogManager.d.ts +7 -1
  163. package/dist/src/ui/components/DialogManager.js +18 -9
  164. package/dist/src/ui/components/DialogManager.js.map +1 -1
  165. package/dist/src/ui/components/EditorSettingsDialog.js +11 -2
  166. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
  167. package/dist/src/ui/components/ExitWarning.d.ts +7 -0
  168. package/dist/src/ui/components/ExitWarning.js +9 -0
  169. package/dist/src/ui/components/ExitWarning.js.map +1 -0
  170. package/dist/src/ui/components/FolderTrustDialog.js +3 -0
  171. package/dist/src/ui/components/FolderTrustDialog.js.map +1 -1
  172. package/dist/src/ui/components/FolderTrustDialog.test.js +2 -2
  173. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
  174. package/dist/src/ui/components/Footer.d.ts +1 -19
  175. package/dist/src/ui/components/Footer.js +35 -17
  176. package/dist/src/ui/components/Footer.js.map +1 -1
  177. package/dist/src/ui/components/GeminiRespondingSpinner.js +2 -2
  178. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -1
  179. package/dist/src/ui/components/Help.js +1 -1
  180. package/dist/src/ui/components/Help.js.map +1 -1
  181. package/dist/src/ui/components/HistoryItemDisplay.d.ts +2 -1
  182. package/dist/src/ui/components/HistoryItemDisplay.js +10 -1
  183. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
  184. package/dist/src/ui/components/HistoryItemDisplay.test.js +90 -9
  185. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
  186. package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +11 -0
  187. package/dist/src/ui/components/IdeTrustChangeDialog.js +32 -0
  188. package/dist/src/ui/components/IdeTrustChangeDialog.js.map +1 -0
  189. package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +6 -0
  190. package/dist/src/ui/components/IdeTrustChangeDialog.test.js +57 -0
  191. package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +1 -0
  192. package/dist/src/ui/components/InputPrompt.d.ts +8 -2
  193. package/dist/src/ui/components/InputPrompt.js +66 -32
  194. package/dist/src/ui/components/InputPrompt.js.map +1 -1
  195. package/dist/src/ui/components/LoadingIndicator.js +1 -1
  196. package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
  197. package/dist/src/ui/components/LoadingIndicator.test.js +4 -0
  198. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -1
  199. package/dist/src/ui/components/LoopDetectionConfirmation.js +2 -0
  200. package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -1
  201. package/dist/src/ui/components/MainContent.js +7 -2
  202. package/dist/src/ui/components/MainContent.js.map +1 -1
  203. package/dist/src/ui/components/ModelDialog.d.ts +11 -0
  204. package/dist/src/ui/components/ModelDialog.js +57 -0
  205. package/dist/src/ui/components/ModelDialog.js.map +1 -0
  206. package/dist/src/ui/components/ModelDialog.test.d.ts +6 -0
  207. package/dist/src/ui/components/ModelDialog.test.js +153 -0
  208. package/dist/src/ui/components/ModelDialog.test.js.map +1 -0
  209. package/dist/src/ui/components/Notifications.js +12 -4
  210. package/dist/src/ui/components/Notifications.js.map +1 -1
  211. package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +13 -0
  212. package/dist/src/ui/components/PermissionsModifyTrustDialog.js +48 -0
  213. package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -0
  214. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +6 -0
  215. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +154 -0
  216. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -0
  217. package/dist/src/ui/components/ProQuotaDialog.js +2 -0
  218. package/dist/src/ui/components/ProQuotaDialog.js.map +1 -1
  219. package/dist/src/ui/components/ProQuotaDialog.test.js +2 -0
  220. package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -1
  221. package/dist/src/ui/components/SettingsDialog.js +6 -3
  222. package/dist/src/ui/components/SettingsDialog.js.map +1 -1
  223. package/dist/src/ui/components/SettingsDialog.test.js +47 -13
  224. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
  225. package/dist/src/ui/components/ShellConfirmationDialog.js +3 -0
  226. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
  227. package/dist/src/ui/components/ThemeDialog.js +2 -0
  228. package/dist/src/ui/components/ThemeDialog.js.map +1 -1
  229. package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +2 -2
  230. package/dist/src/ui/components/WorkspaceMigrationDialog.js +7 -5
  231. package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -1
  232. package/dist/src/ui/components/messages/CompressionMessage.js +2 -2
  233. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -1
  234. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +15 -1
  235. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
  236. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +1 -1
  237. package/dist/src/ui/components/messages/ToolGroupMessage.js +5 -5
  238. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
  239. package/dist/src/ui/components/messages/ToolMessage.d.ts +1 -1
  240. package/dist/src/ui/components/messages/ToolMessage.js +28 -5
  241. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
  242. package/dist/src/ui/components/messages/UserMessage.js +1 -2
  243. package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
  244. package/dist/src/ui/components/shared/BaseSelectionList.d.ts +38 -0
  245. package/dist/src/ui/components/shared/BaseSelectionList.js +72 -0
  246. package/dist/src/ui/components/shared/BaseSelectionList.js.map +1 -0
  247. package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +6 -0
  248. package/dist/src/ui/components/shared/BaseSelectionList.test.js +376 -0
  249. package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -0
  250. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +35 -0
  251. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
  252. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +1 -0
  253. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +6 -0
  254. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +79 -0
  255. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +1 -0
  256. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +2 -3
  257. package/dist/src/ui/components/shared/RadioButtonSelect.js +9 -104
  258. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
  259. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +115 -92
  260. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -1
  261. package/dist/src/ui/components/shared/ScopeSelector.js +4 -1
  262. package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -1
  263. package/dist/src/ui/components/views/ChatList.d.ts +12 -0
  264. package/dist/src/ui/components/views/ChatList.js +17 -0
  265. package/dist/src/ui/components/views/ChatList.js.map +1 -0
  266. package/dist/src/ui/components/views/ChatList.test.d.ts +6 -0
  267. package/dist/src/ui/components/views/ChatList.test.js +42 -0
  268. package/dist/src/ui/components/views/ChatList.test.js.map +1 -0
  269. package/dist/src/ui/components/views/ExtensionsList.test.js +1 -1
  270. package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -1
  271. package/dist/src/ui/components/views/McpStatus.d.ts +27 -0
  272. package/dist/src/ui/components/views/McpStatus.js +77 -0
  273. package/dist/src/ui/components/views/McpStatus.js.map +1 -0
  274. package/dist/src/ui/components/views/McpStatus.test.d.ts +6 -0
  275. package/dist/src/ui/components/views/McpStatus.test.js +117 -0
  276. package/dist/src/ui/components/views/McpStatus.test.js.map +1 -0
  277. package/dist/src/ui/components/views/ToolsList.d.ts +14 -0
  278. package/dist/src/ui/components/views/ToolsList.js +7 -0
  279. package/dist/src/ui/components/views/ToolsList.js.map +1 -0
  280. package/dist/src/ui/components/views/ToolsList.test.d.ts +6 -0
  281. package/dist/src/ui/components/views/ToolsList.test.js +45 -0
  282. package/dist/src/ui/components/views/ToolsList.test.js.map +1 -0
  283. package/dist/src/ui/contexts/KeypressContext.js +3 -0
  284. package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
  285. package/dist/src/ui/contexts/ShellFocusContext.d.ts +7 -0
  286. package/dist/src/ui/contexts/ShellFocusContext.js +9 -0
  287. package/dist/src/ui/contexts/ShellFocusContext.js.map +1 -0
  288. package/dist/src/ui/contexts/UIActionsContext.d.ts +2 -0
  289. package/dist/src/ui/contexts/UIActionsContext.js.map +1 -1
  290. package/dist/src/ui/contexts/UIStateContext.d.ts +11 -2
  291. package/dist/src/ui/contexts/UIStateContext.js +2 -0
  292. package/dist/src/ui/contexts/UIStateContext.js.map +1 -1
  293. package/dist/src/ui/hooks/shellCommandProcessor.js +5 -6
  294. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
  295. package/dist/src/ui/hooks/shellCommandProcessor.test.js +19 -32
  296. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
  297. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +8 -5
  298. package/dist/src/ui/hooks/slashCommandProcessor.js +11 -2
  299. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  300. package/dist/src/ui/hooks/useExtensionUpdates.d.ts +10 -1
  301. package/dist/src/ui/hooks/useExtensionUpdates.js +140 -38
  302. package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -1
  303. package/dist/src/ui/hooks/useExtensionUpdates.test.js +163 -84
  304. package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -1
  305. package/dist/src/ui/hooks/useFlickerDetector.d.ts +14 -0
  306. package/dist/src/ui/hooks/useFlickerDetector.js +37 -0
  307. package/dist/src/ui/hooks/useFlickerDetector.js.map +1 -0
  308. package/dist/src/ui/hooks/useFlickerDetector.test.d.ts +6 -0
  309. package/dist/src/ui/hooks/useFlickerDetector.test.js +102 -0
  310. package/dist/src/ui/hooks/useFlickerDetector.test.js.map +1 -0
  311. package/dist/src/ui/hooks/useFocus.js +10 -0
  312. package/dist/src/ui/hooks/useFocus.js.map +1 -1
  313. package/dist/src/ui/hooks/useFolderTrust.d.ts +2 -1
  314. package/dist/src/ui/hooks/useFolderTrust.js +13 -9
  315. package/dist/src/ui/hooks/useFolderTrust.js.map +1 -1
  316. package/dist/src/ui/hooks/useGeminiStream.js +38 -3
  317. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
  318. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
  319. package/dist/src/ui/hooks/useHistoryManager.js +3 -3
  320. package/dist/src/ui/hooks/useHistoryManager.js.map +1 -1
  321. package/dist/src/ui/hooks/useIdeTrustListener.d.ts +4 -2
  322. package/dist/src/ui/hooks/useIdeTrustListener.js +40 -14
  323. package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -1
  324. package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +6 -0
  325. package/dist/src/ui/hooks/useIdeTrustListener.test.js +183 -0
  326. package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -0
  327. package/dist/src/ui/hooks/useModelCommand.d.ts +12 -0
  328. package/dist/src/ui/hooks/useModelCommand.js +21 -0
  329. package/dist/src/ui/hooks/useModelCommand.js.map +1 -0
  330. package/dist/src/ui/hooks/useModelCommand.test.d.ts +6 -0
  331. package/dist/src/ui/hooks/useModelCommand.test.js +35 -0
  332. package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -0
  333. package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +17 -0
  334. package/dist/src/ui/hooks/usePermissionsModifyTrust.js +78 -0
  335. package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +1 -0
  336. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +6 -0
  337. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +182 -0
  338. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -0
  339. package/dist/src/ui/hooks/usePhraseCycler.js +1 -0
  340. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
  341. package/dist/src/ui/hooks/useQuotaAndFallback.js +3 -17
  342. package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -1
  343. package/dist/src/ui/hooks/useQuotaAndFallback.test.js +13 -43
  344. package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -1
  345. package/dist/src/ui/hooks/useSelectionList.d.ts +34 -0
  346. package/dist/src/ui/hooks/useSelectionList.js +272 -0
  347. package/dist/src/ui/hooks/useSelectionList.js.map +1 -0
  348. package/dist/src/ui/hooks/useSelectionList.test.d.ts +6 -0
  349. package/dist/src/ui/hooks/useSelectionList.test.js +725 -0
  350. package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -0
  351. package/dist/src/ui/hooks/useShellHistory.test.js +12 -8
  352. package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -1
  353. package/dist/src/ui/hooks/useSlashCompletion.js +7 -2
  354. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
  355. package/dist/src/ui/hooks/useSlashCompletion.test.js +33 -0
  356. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
  357. package/dist/src/ui/hooks/useTerminalSize.js +2 -3
  358. package/dist/src/ui/hooks/useTerminalSize.js.map +1 -1
  359. package/dist/src/ui/hooks/useToolScheduler.test.js +2 -2
  360. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
  361. package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +2 -2
  362. package/dist/src/ui/hooks/useWorkspaceMigration.js +13 -8
  363. package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -1
  364. package/dist/src/ui/layouts/DefaultAppLayout.d.ts +7 -0
  365. package/dist/src/ui/layouts/DefaultAppLayout.js +16 -0
  366. package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -0
  367. package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +7 -0
  368. package/dist/src/ui/layouts/ScreenReaderAppLayout.js +17 -0
  369. package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +1 -0
  370. package/dist/src/ui/noninteractive/nonInteractiveUi.js +3 -1
  371. package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -1
  372. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +5 -5
  373. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -1
  374. package/dist/src/ui/state/extensions.d.ts +47 -1
  375. package/dist/src/ui/state/extensions.js +68 -1
  376. package/dist/src/ui/state/extensions.js.map +1 -1
  377. package/dist/src/ui/themes/theme.js +2 -2
  378. package/dist/src/ui/themes/theme.js.map +1 -1
  379. package/dist/src/ui/types.d.ts +54 -3
  380. package/dist/src/ui/types.js +3 -0
  381. package/dist/src/ui/types.js.map +1 -1
  382. package/dist/src/ui/utils/MarkdownDisplay.js +1 -2
  383. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
  384. package/dist/src/ui/utils/MarkdownDisplay.test.js +94 -91
  385. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -1
  386. package/dist/src/ui/utils/displayUtils.d.ts +1 -0
  387. package/dist/src/ui/utils/displayUtils.js +4 -1
  388. package/dist/src/ui/utils/displayUtils.js.map +1 -1
  389. package/dist/src/ui/utils/displayUtils.test.js +36 -17
  390. package/dist/src/ui/utils/displayUtils.test.js.map +1 -1
  391. package/dist/src/ui/utils/textUtils.d.ts +1 -0
  392. package/dist/src/ui/utils/textUtils.js +56 -0
  393. package/dist/src/ui/utils/textUtils.js.map +1 -1
  394. package/dist/src/ui/utils/textUtils.test.d.ts +6 -0
  395. package/dist/src/ui/utils/textUtils.test.js +132 -0
  396. package/dist/src/ui/utils/textUtils.test.js.map +1 -0
  397. package/dist/src/ui/utils/ui-sizing.d.ts +7 -0
  398. package/dist/src/ui/utils/ui-sizing.js +23 -0
  399. package/dist/src/ui/utils/ui-sizing.js.map +1 -0
  400. package/dist/src/utils/commentJson.js +95 -13
  401. package/dist/src/utils/commentJson.js.map +1 -1
  402. package/dist/src/utils/commentJson.test.js +161 -0
  403. package/dist/src/utils/commentJson.test.js.map +1 -1
  404. package/dist/src/utils/deepMerge.d.ts +2 -3
  405. package/dist/src/utils/errors.d.ts +8 -3
  406. package/dist/src/utils/errors.js +23 -13
  407. package/dist/src/utils/errors.js.map +1 -1
  408. package/dist/src/utils/errors.test.js +40 -46
  409. package/dist/src/utils/errors.test.js.map +1 -1
  410. package/dist/src/utils/events.d.ts +2 -1
  411. package/dist/src/utils/events.js +1 -0
  412. package/dist/src/utils/events.js.map +1 -1
  413. package/dist/src/utils/handleAutoUpdate.js +4 -1
  414. package/dist/src/utils/handleAutoUpdate.js.map +1 -1
  415. package/dist/src/utils/installationInfo.d.ts +1 -0
  416. package/dist/src/utils/installationInfo.js +2 -0
  417. package/dist/src/utils/installationInfo.js.map +1 -1
  418. package/dist/src/utils/math.d.ts +13 -0
  419. package/dist/src/utils/math.js +14 -0
  420. package/dist/src/utils/math.js.map +1 -0
  421. package/dist/src/utils/relaunch.d.ts +7 -0
  422. package/dist/src/utils/relaunch.js +57 -0
  423. package/dist/src/utils/relaunch.js.map +1 -0
  424. package/dist/src/utils/relaunch.test.d.ts +6 -0
  425. package/dist/src/utils/relaunch.test.js +273 -0
  426. package/dist/src/utils/relaunch.test.js.map +1 -0
  427. package/dist/src/utils/sandbox.js +31 -17
  428. package/dist/src/utils/sandbox.js.map +1 -1
  429. package/dist/src/utils/sessionCleanup.d.ts +22 -0
  430. package/dist/src/utils/sessionCleanup.integration.test.d.ts +6 -0
  431. package/dist/src/utils/sessionCleanup.integration.test.js +182 -0
  432. package/dist/src/utils/sessionCleanup.integration.test.js.map +1 -0
  433. package/dist/src/utils/sessionCleanup.js +214 -0
  434. package/dist/src/utils/sessionCleanup.js.map +1 -0
  435. package/dist/src/utils/sessionCleanup.test.d.ts +6 -0
  436. package/dist/src/utils/sessionCleanup.test.js +1232 -0
  437. package/dist/src/utils/sessionCleanup.test.js.map +1 -0
  438. package/dist/src/utils/sessionUtils.d.ts +37 -0
  439. package/dist/src/utils/sessionUtils.js +71 -0
  440. package/dist/src/utils/sessionUtils.js.map +1 -0
  441. package/dist/src/utils/windowTitle.d.ts +12 -0
  442. package/dist/src/utils/windowTitle.js +19 -0
  443. package/dist/src/utils/windowTitle.js.map +1 -0
  444. package/dist/src/utils/windowTitle.test.d.ts +6 -0
  445. package/dist/src/utils/windowTitle.test.js +49 -0
  446. package/dist/src/utils/windowTitle.test.js.map +1 -0
  447. package/dist/src/validateNonInterActiveAuth.js +6 -7
  448. package/dist/src/validateNonInterActiveAuth.js.map +1 -1
  449. package/dist/src/zed-integration/acp.js +1 -2
  450. package/dist/src/zed-integration/acp.js.map +1 -1
  451. package/dist/src/zed-integration/fileSystemService.d.ts +1 -0
  452. package/dist/src/zed-integration/fileSystemService.js +3 -0
  453. package/dist/src/zed-integration/fileSystemService.js.map +1 -1
  454. package/dist/src/zed-integration/schema.d.ts +70 -70
  455. package/dist/src/zed-integration/zedIntegration.d.ts +9 -3
  456. package/dist/src/zed-integration/zedIntegration.js +23 -28
  457. package/dist/src/zed-integration/zedIntegration.js.map +1 -1
  458. package/dist/tsconfig.tsbuildinfo +1 -1
  459. package/package.json +13 -5
  460. package/dist/src/commands/extensions/examples/mcp-server/example.js +0 -46
  461. package/dist/src/commands/extensions/examples/mcp-server/example.js.map +0 -1
  462. package/dist/src/ui/contexts/FocusContext.d.ts +0 -7
  463. package/dist/src/ui/contexts/FocusContext.js +0 -9
  464. package/dist/src/ui/contexts/FocusContext.js.map +0 -1
  465. /package/dist/src/{commands/extensions/examples/mcp-server/example.d.ts → ui/commands/modelCommand.test.d.ts} +0 -0
@@ -298,16 +298,16 @@ export declare const mcpServerSchema: z.ZodObject<{
298
298
  name: z.ZodString;
299
299
  }, "strip", z.ZodTypeAny, {
300
300
  name: string;
301
- args: string[];
302
301
  command: string;
302
+ args: string[];
303
303
  env: {
304
304
  name: string;
305
305
  value: string;
306
306
  }[];
307
307
  }, {
308
308
  name: string;
309
- args: string[];
310
309
  command: string;
310
+ args: string[];
311
311
  env: {
312
312
  name: string;
313
313
  value: string;
@@ -318,12 +318,12 @@ export declare const promptCapabilitiesSchema: z.ZodObject<{
318
318
  embeddedContext: z.ZodOptional<z.ZodBoolean>;
319
319
  image: z.ZodOptional<z.ZodBoolean>;
320
320
  }, "strip", z.ZodTypeAny, {
321
- image?: boolean | undefined;
322
321
  audio?: boolean | undefined;
322
+ image?: boolean | undefined;
323
323
  embeddedContext?: boolean | undefined;
324
324
  }, {
325
- image?: boolean | undefined;
326
325
  audio?: boolean | undefined;
326
+ image?: boolean | undefined;
327
327
  embeddedContext?: boolean | undefined;
328
328
  }>;
329
329
  export declare const agentCapabilitiesSchema: z.ZodObject<{
@@ -333,26 +333,26 @@ export declare const agentCapabilitiesSchema: z.ZodObject<{
333
333
  embeddedContext: z.ZodOptional<z.ZodBoolean>;
334
334
  image: z.ZodOptional<z.ZodBoolean>;
335
335
  }, "strip", z.ZodTypeAny, {
336
- image?: boolean | undefined;
337
336
  audio?: boolean | undefined;
337
+ image?: boolean | undefined;
338
338
  embeddedContext?: boolean | undefined;
339
339
  }, {
340
- image?: boolean | undefined;
341
340
  audio?: boolean | undefined;
341
+ image?: boolean | undefined;
342
342
  embeddedContext?: boolean | undefined;
343
343
  }>>;
344
344
  }, "strip", z.ZodTypeAny, {
345
345
  loadSession?: boolean | undefined;
346
346
  promptCapabilities?: {
347
- image?: boolean | undefined;
348
347
  audio?: boolean | undefined;
348
+ image?: boolean | undefined;
349
349
  embeddedContext?: boolean | undefined;
350
350
  } | undefined;
351
351
  }, {
352
352
  loadSession?: boolean | undefined;
353
353
  promptCapabilities?: {
354
- image?: boolean | undefined;
355
354
  audio?: boolean | undefined;
355
+ image?: boolean | undefined;
356
356
  embeddedContext?: boolean | undefined;
357
357
  } | undefined;
358
358
  }>;
@@ -457,16 +457,16 @@ export declare const newSessionRequestSchema: z.ZodObject<{
457
457
  name: z.ZodString;
458
458
  }, "strip", z.ZodTypeAny, {
459
459
  name: string;
460
- args: string[];
461
460
  command: string;
461
+ args: string[];
462
462
  env: {
463
463
  name: string;
464
464
  value: string;
465
465
  }[];
466
466
  }, {
467
467
  name: string;
468
- args: string[];
469
468
  command: string;
469
+ args: string[];
470
470
  env: {
471
471
  name: string;
472
472
  value: string;
@@ -475,8 +475,8 @@ export declare const newSessionRequestSchema: z.ZodObject<{
475
475
  }, "strip", z.ZodTypeAny, {
476
476
  mcpServers: {
477
477
  name: string;
478
- args: string[];
479
478
  command: string;
479
+ args: string[];
480
480
  env: {
481
481
  name: string;
482
482
  value: string;
@@ -486,8 +486,8 @@ export declare const newSessionRequestSchema: z.ZodObject<{
486
486
  }, {
487
487
  mcpServers: {
488
488
  name: string;
489
- args: string[];
490
489
  command: string;
490
+ args: string[];
491
491
  env: {
492
492
  name: string;
493
493
  value: string;
@@ -513,16 +513,16 @@ export declare const loadSessionRequestSchema: z.ZodObject<{
513
513
  name: z.ZodString;
514
514
  }, "strip", z.ZodTypeAny, {
515
515
  name: string;
516
- args: string[];
517
516
  command: string;
517
+ args: string[];
518
518
  env: {
519
519
  name: string;
520
520
  value: string;
521
521
  }[];
522
522
  }, {
523
523
  name: string;
524
- args: string[];
525
524
  command: string;
525
+ args: string[];
526
526
  env: {
527
527
  name: string;
528
528
  value: string;
@@ -532,27 +532,27 @@ export declare const loadSessionRequestSchema: z.ZodObject<{
532
532
  }, "strip", z.ZodTypeAny, {
533
533
  mcpServers: {
534
534
  name: string;
535
- args: string[];
536
535
  command: string;
536
+ args: string[];
537
537
  env: {
538
538
  name: string;
539
539
  value: string;
540
540
  }[];
541
541
  }[];
542
- sessionId: string;
543
542
  cwd: string;
543
+ sessionId: string;
544
544
  }, {
545
545
  mcpServers: {
546
546
  name: string;
547
- args: string[];
548
547
  command: string;
548
+ args: string[];
549
549
  env: {
550
550
  name: string;
551
551
  value: string;
552
552
  }[];
553
553
  }[];
554
- sessionId: string;
555
554
  cwd: string;
555
+ sessionId: string;
556
556
  }>;
557
557
  export declare const initializeResponseSchema: z.ZodObject<{
558
558
  agentCapabilities: z.ZodObject<{
@@ -562,26 +562,26 @@ export declare const initializeResponseSchema: z.ZodObject<{
562
562
  embeddedContext: z.ZodOptional<z.ZodBoolean>;
563
563
  image: z.ZodOptional<z.ZodBoolean>;
564
564
  }, "strip", z.ZodTypeAny, {
565
- image?: boolean | undefined;
566
565
  audio?: boolean | undefined;
566
+ image?: boolean | undefined;
567
567
  embeddedContext?: boolean | undefined;
568
568
  }, {
569
- image?: boolean | undefined;
570
569
  audio?: boolean | undefined;
570
+ image?: boolean | undefined;
571
571
  embeddedContext?: boolean | undefined;
572
572
  }>>;
573
573
  }, "strip", z.ZodTypeAny, {
574
574
  loadSession?: boolean | undefined;
575
575
  promptCapabilities?: {
576
- image?: boolean | undefined;
577
576
  audio?: boolean | undefined;
577
+ image?: boolean | undefined;
578
578
  embeddedContext?: boolean | undefined;
579
579
  } | undefined;
580
580
  }, {
581
581
  loadSession?: boolean | undefined;
582
582
  promptCapabilities?: {
583
- image?: boolean | undefined;
584
583
  audio?: boolean | undefined;
584
+ image?: boolean | undefined;
585
585
  embeddedContext?: boolean | undefined;
586
586
  } | undefined;
587
587
  }>;
@@ -603,8 +603,8 @@ export declare const initializeResponseSchema: z.ZodObject<{
603
603
  agentCapabilities: {
604
604
  loadSession?: boolean | undefined;
605
605
  promptCapabilities?: {
606
- image?: boolean | undefined;
607
606
  audio?: boolean | undefined;
607
+ image?: boolean | undefined;
608
608
  embeddedContext?: boolean | undefined;
609
609
  } | undefined;
610
610
  };
@@ -618,8 +618,8 @@ export declare const initializeResponseSchema: z.ZodObject<{
618
618
  agentCapabilities: {
619
619
  loadSession?: boolean | undefined;
620
620
  promptCapabilities?: {
621
- image?: boolean | undefined;
622
621
  audio?: boolean | undefined;
622
+ image?: boolean | undefined;
623
623
  embeddedContext?: boolean | undefined;
624
624
  } | undefined;
625
625
  };
@@ -1581,7 +1581,7 @@ export declare const toolCallSchema: z.ZodObject<{
1581
1581
  title: z.ZodString;
1582
1582
  toolCallId: z.ZodString;
1583
1583
  }, "strip", z.ZodTypeAny, {
1584
- status: "pending" | "in_progress" | "completed" | "failed";
1584
+ status: "failed" | "pending" | "in_progress" | "completed";
1585
1585
  title: string;
1586
1586
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
1587
1587
  toolCallId: string;
@@ -1655,7 +1655,7 @@ export declare const toolCallSchema: z.ZodObject<{
1655
1655
  }[] | undefined;
1656
1656
  rawInput?: unknown;
1657
1657
  }, {
1658
- status: "pending" | "in_progress" | "completed" | "failed";
1658
+ status: "failed" | "pending" | "in_progress" | "completed";
1659
1659
  title: string;
1660
1660
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
1661
1661
  toolCallId: string;
@@ -3486,7 +3486,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
3486
3486
  title: z.ZodString;
3487
3487
  toolCallId: z.ZodString;
3488
3488
  }, "strip", z.ZodTypeAny, {
3489
- status: "pending" | "in_progress" | "completed" | "failed";
3489
+ status: "failed" | "pending" | "in_progress" | "completed";
3490
3490
  title: string;
3491
3491
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
3492
3492
  toolCallId: string;
@@ -3561,7 +3561,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
3561
3561
  }[] | undefined;
3562
3562
  rawInput?: unknown;
3563
3563
  }, {
3564
- status: "pending" | "in_progress" | "completed" | "failed";
3564
+ status: "failed" | "pending" | "in_progress" | "completed";
3565
3565
  title: string;
3566
3566
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
3567
3567
  toolCallId: string;
@@ -4075,7 +4075,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
4075
4075
  newText: string;
4076
4076
  oldText: string | null;
4077
4077
  })[] | null | undefined;
4078
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
4078
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
4079
4079
  title?: string | null | undefined;
4080
4080
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
4081
4081
  locations?: {
@@ -4150,7 +4150,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
4150
4150
  newText: string;
4151
4151
  oldText: string | null;
4152
4152
  })[] | null | undefined;
4153
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
4153
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
4154
4154
  title?: string | null | undefined;
4155
4155
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
4156
4156
  locations?: {
@@ -4196,26 +4196,26 @@ export declare const agentResponseSchema: z.ZodUnion<[z.ZodObject<{
4196
4196
  embeddedContext: z.ZodOptional<z.ZodBoolean>;
4197
4197
  image: z.ZodOptional<z.ZodBoolean>;
4198
4198
  }, "strip", z.ZodTypeAny, {
4199
- image?: boolean | undefined;
4200
4199
  audio?: boolean | undefined;
4200
+ image?: boolean | undefined;
4201
4201
  embeddedContext?: boolean | undefined;
4202
4202
  }, {
4203
- image?: boolean | undefined;
4204
4203
  audio?: boolean | undefined;
4204
+ image?: boolean | undefined;
4205
4205
  embeddedContext?: boolean | undefined;
4206
4206
  }>>;
4207
4207
  }, "strip", z.ZodTypeAny, {
4208
4208
  loadSession?: boolean | undefined;
4209
4209
  promptCapabilities?: {
4210
- image?: boolean | undefined;
4211
4210
  audio?: boolean | undefined;
4211
+ image?: boolean | undefined;
4212
4212
  embeddedContext?: boolean | undefined;
4213
4213
  } | undefined;
4214
4214
  }, {
4215
4215
  loadSession?: boolean | undefined;
4216
4216
  promptCapabilities?: {
4217
- image?: boolean | undefined;
4218
4217
  audio?: boolean | undefined;
4218
+ image?: boolean | undefined;
4219
4219
  embeddedContext?: boolean | undefined;
4220
4220
  } | undefined;
4221
4221
  }>;
@@ -4237,8 +4237,8 @@ export declare const agentResponseSchema: z.ZodUnion<[z.ZodObject<{
4237
4237
  agentCapabilities: {
4238
4238
  loadSession?: boolean | undefined;
4239
4239
  promptCapabilities?: {
4240
- image?: boolean | undefined;
4241
4240
  audio?: boolean | undefined;
4241
+ image?: boolean | undefined;
4242
4242
  embeddedContext?: boolean | undefined;
4243
4243
  } | undefined;
4244
4244
  };
@@ -4252,8 +4252,8 @@ export declare const agentResponseSchema: z.ZodUnion<[z.ZodObject<{
4252
4252
  agentCapabilities: {
4253
4253
  loadSession?: boolean | undefined;
4254
4254
  promptCapabilities?: {
4255
- image?: boolean | undefined;
4256
4255
  audio?: boolean | undefined;
4256
+ image?: boolean | undefined;
4257
4257
  embeddedContext?: boolean | undefined;
4258
4258
  } | undefined;
4259
4259
  };
@@ -4664,7 +4664,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
4664
4664
  title: z.ZodString;
4665
4665
  toolCallId: z.ZodString;
4666
4666
  }, "strip", z.ZodTypeAny, {
4667
- status: "pending" | "in_progress" | "completed" | "failed";
4667
+ status: "failed" | "pending" | "in_progress" | "completed";
4668
4668
  title: string;
4669
4669
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
4670
4670
  toolCallId: string;
@@ -4738,7 +4738,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
4738
4738
  }[] | undefined;
4739
4739
  rawInput?: unknown;
4740
4740
  }, {
4741
- status: "pending" | "in_progress" | "completed" | "failed";
4741
+ status: "failed" | "pending" | "in_progress" | "completed";
4742
4742
  title: string;
4743
4743
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
4744
4744
  toolCallId: string;
@@ -4820,7 +4820,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
4820
4820
  }[];
4821
4821
  sessionId: string;
4822
4822
  toolCall: {
4823
- status: "pending" | "in_progress" | "completed" | "failed";
4823
+ status: "failed" | "pending" | "in_progress" | "completed";
4824
4824
  title: string;
4825
4825
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
4826
4826
  toolCallId: string;
@@ -4902,7 +4902,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
4902
4902
  }[];
4903
4903
  sessionId: string;
4904
4904
  toolCall: {
4905
- status: "pending" | "in_progress" | "completed" | "failed";
4905
+ status: "failed" | "pending" | "in_progress" | "completed";
4906
4906
  title: string;
4907
4907
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
4908
4908
  toolCallId: string;
@@ -6414,7 +6414,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
6414
6414
  title: z.ZodString;
6415
6415
  toolCallId: z.ZodString;
6416
6416
  }, "strip", z.ZodTypeAny, {
6417
- status: "pending" | "in_progress" | "completed" | "failed";
6417
+ status: "failed" | "pending" | "in_progress" | "completed";
6418
6418
  title: string;
6419
6419
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
6420
6420
  toolCallId: string;
@@ -6489,7 +6489,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
6489
6489
  }[] | undefined;
6490
6490
  rawInput?: unknown;
6491
6491
  }, {
6492
- status: "pending" | "in_progress" | "completed" | "failed";
6492
+ status: "failed" | "pending" | "in_progress" | "completed";
6493
6493
  title: string;
6494
6494
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
6495
6495
  toolCallId: string;
@@ -7003,7 +7003,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
7003
7003
  newText: string;
7004
7004
  oldText: string | null;
7005
7005
  })[] | null | undefined;
7006
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
7006
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
7007
7007
  title?: string | null | undefined;
7008
7008
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
7009
7009
  locations?: {
@@ -7078,7 +7078,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
7078
7078
  newText: string;
7079
7079
  oldText: string | null;
7080
7080
  })[] | null | undefined;
7081
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
7081
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
7082
7082
  title?: string | null | undefined;
7083
7083
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
7084
7084
  locations?: {
@@ -7293,7 +7293,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
7293
7293
  };
7294
7294
  sessionUpdate: "agent_thought_chunk";
7295
7295
  } | {
7296
- status: "pending" | "in_progress" | "completed" | "failed";
7296
+ status: "failed" | "pending" | "in_progress" | "completed";
7297
7297
  title: string;
7298
7298
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
7299
7299
  toolCallId: string;
@@ -7434,7 +7434,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
7434
7434
  newText: string;
7435
7435
  oldText: string | null;
7436
7436
  })[] | null | undefined;
7437
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
7437
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
7438
7438
  title?: string | null | undefined;
7439
7439
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
7440
7440
  locations?: {
@@ -7627,7 +7627,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
7627
7627
  };
7628
7628
  sessionUpdate: "agent_thought_chunk";
7629
7629
  } | {
7630
- status: "pending" | "in_progress" | "completed" | "failed";
7630
+ status: "failed" | "pending" | "in_progress" | "completed";
7631
7631
  title: string;
7632
7632
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
7633
7633
  toolCallId: string;
@@ -7768,7 +7768,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
7768
7768
  newText: string;
7769
7769
  oldText: string | null;
7770
7770
  })[] | null | undefined;
7771
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
7771
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
7772
7772
  title?: string | null | undefined;
7773
7773
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
7774
7774
  locations?: {
@@ -8200,7 +8200,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
8200
8200
  title: z.ZodString;
8201
8201
  toolCallId: z.ZodString;
8202
8202
  }, "strip", z.ZodTypeAny, {
8203
- status: "pending" | "in_progress" | "completed" | "failed";
8203
+ status: "failed" | "pending" | "in_progress" | "completed";
8204
8204
  title: string;
8205
8205
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
8206
8206
  toolCallId: string;
@@ -8274,7 +8274,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
8274
8274
  }[] | undefined;
8275
8275
  rawInput?: unknown;
8276
8276
  }, {
8277
- status: "pending" | "in_progress" | "completed" | "failed";
8277
+ status: "failed" | "pending" | "in_progress" | "completed";
8278
8278
  title: string;
8279
8279
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
8280
8280
  toolCallId: string;
@@ -8356,7 +8356,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
8356
8356
  }[];
8357
8357
  sessionId: string;
8358
8358
  toolCall: {
8359
- status: "pending" | "in_progress" | "completed" | "failed";
8359
+ status: "failed" | "pending" | "in_progress" | "completed";
8360
8360
  title: string;
8361
8361
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
8362
8362
  toolCallId: string;
@@ -8438,7 +8438,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
8438
8438
  }[];
8439
8439
  sessionId: string;
8440
8440
  toolCall: {
8441
- status: "pending" | "in_progress" | "completed" | "failed";
8441
+ status: "failed" | "pending" | "in_progress" | "completed";
8442
8442
  title: string;
8443
8443
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
8444
8444
  toolCallId: string;
@@ -8577,16 +8577,16 @@ export declare const agentRequestSchema: z.ZodUnion<[z.ZodObject<{
8577
8577
  name: z.ZodString;
8578
8578
  }, "strip", z.ZodTypeAny, {
8579
8579
  name: string;
8580
- args: string[];
8581
8580
  command: string;
8581
+ args: string[];
8582
8582
  env: {
8583
8583
  name: string;
8584
8584
  value: string;
8585
8585
  }[];
8586
8586
  }, {
8587
8587
  name: string;
8588
- args: string[];
8589
8588
  command: string;
8589
+ args: string[];
8590
8590
  env: {
8591
8591
  name: string;
8592
8592
  value: string;
@@ -8595,8 +8595,8 @@ export declare const agentRequestSchema: z.ZodUnion<[z.ZodObject<{
8595
8595
  }, "strip", z.ZodTypeAny, {
8596
8596
  mcpServers: {
8597
8597
  name: string;
8598
- args: string[];
8599
8598
  command: string;
8599
+ args: string[];
8600
8600
  env: {
8601
8601
  name: string;
8602
8602
  value: string;
@@ -8606,8 +8606,8 @@ export declare const agentRequestSchema: z.ZodUnion<[z.ZodObject<{
8606
8606
  }, {
8607
8607
  mcpServers: {
8608
8608
  name: string;
8609
- args: string[];
8610
8609
  command: string;
8610
+ args: string[];
8611
8611
  env: {
8612
8612
  name: string;
8613
8613
  value: string;
@@ -8632,16 +8632,16 @@ export declare const agentRequestSchema: z.ZodUnion<[z.ZodObject<{
8632
8632
  name: z.ZodString;
8633
8633
  }, "strip", z.ZodTypeAny, {
8634
8634
  name: string;
8635
- args: string[];
8636
8635
  command: string;
8636
+ args: string[];
8637
8637
  env: {
8638
8638
  name: string;
8639
8639
  value: string;
8640
8640
  }[];
8641
8641
  }, {
8642
8642
  name: string;
8643
- args: string[];
8644
8643
  command: string;
8644
+ args: string[];
8645
8645
  env: {
8646
8646
  name: string;
8647
8647
  value: string;
@@ -8651,27 +8651,27 @@ export declare const agentRequestSchema: z.ZodUnion<[z.ZodObject<{
8651
8651
  }, "strip", z.ZodTypeAny, {
8652
8652
  mcpServers: {
8653
8653
  name: string;
8654
- args: string[];
8655
8654
  command: string;
8655
+ args: string[];
8656
8656
  env: {
8657
8657
  name: string;
8658
8658
  value: string;
8659
8659
  }[];
8660
8660
  }[];
8661
- sessionId: string;
8662
8661
  cwd: string;
8662
+ sessionId: string;
8663
8663
  }, {
8664
8664
  mcpServers: {
8665
8665
  name: string;
8666
- args: string[];
8667
8666
  command: string;
8667
+ args: string[];
8668
8668
  env: {
8669
8669
  name: string;
8670
8670
  value: string;
8671
8671
  }[];
8672
8672
  }[];
8673
- sessionId: string;
8674
8673
  cwd: string;
8674
+ sessionId: string;
8675
8675
  }>, z.ZodObject<{
8676
8676
  prompt: z.ZodArray<z.ZodUnion<[z.ZodObject<{
8677
8677
  annotations: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -10409,7 +10409,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
10409
10409
  title: z.ZodString;
10410
10410
  toolCallId: z.ZodString;
10411
10411
  }, "strip", z.ZodTypeAny, {
10412
- status: "pending" | "in_progress" | "completed" | "failed";
10412
+ status: "failed" | "pending" | "in_progress" | "completed";
10413
10413
  title: string;
10414
10414
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
10415
10415
  toolCallId: string;
@@ -10484,7 +10484,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
10484
10484
  }[] | undefined;
10485
10485
  rawInput?: unknown;
10486
10486
  }, {
10487
- status: "pending" | "in_progress" | "completed" | "failed";
10487
+ status: "failed" | "pending" | "in_progress" | "completed";
10488
10488
  title: string;
10489
10489
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
10490
10490
  toolCallId: string;
@@ -10998,7 +10998,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
10998
10998
  newText: string;
10999
10999
  oldText: string | null;
11000
11000
  })[] | null | undefined;
11001
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
11001
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
11002
11002
  title?: string | null | undefined;
11003
11003
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
11004
11004
  locations?: {
@@ -11073,7 +11073,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
11073
11073
  newText: string;
11074
11074
  oldText: string | null;
11075
11075
  })[] | null | undefined;
11076
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
11076
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
11077
11077
  title?: string | null | undefined;
11078
11078
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
11079
11079
  locations?: {
@@ -11288,7 +11288,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
11288
11288
  };
11289
11289
  sessionUpdate: "agent_thought_chunk";
11290
11290
  } | {
11291
- status: "pending" | "in_progress" | "completed" | "failed";
11291
+ status: "failed" | "pending" | "in_progress" | "completed";
11292
11292
  title: string;
11293
11293
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
11294
11294
  toolCallId: string;
@@ -11429,7 +11429,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
11429
11429
  newText: string;
11430
11430
  oldText: string | null;
11431
11431
  })[] | null | undefined;
11432
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
11432
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
11433
11433
  title?: string | null | undefined;
11434
11434
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
11435
11435
  locations?: {
@@ -11622,7 +11622,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
11622
11622
  };
11623
11623
  sessionUpdate: "agent_thought_chunk";
11624
11624
  } | {
11625
- status: "pending" | "in_progress" | "completed" | "failed";
11625
+ status: "failed" | "pending" | "in_progress" | "completed";
11626
11626
  title: string;
11627
11627
  kind: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch";
11628
11628
  toolCallId: string;
@@ -11763,7 +11763,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
11763
11763
  newText: string;
11764
11764
  oldText: string | null;
11765
11765
  })[] | null | undefined;
11766
- status?: "pending" | "in_progress" | "completed" | "failed" | null | undefined;
11766
+ status?: "failed" | "pending" | "in_progress" | "completed" | null | undefined;
11767
11767
  title?: string | null | undefined;
11768
11768
  kind?: "search" | "move" | "delete" | "other" | "edit" | "read" | "execute" | "think" | "fetch" | null | undefined;
11769
11769
  locations?: {
@@ -3,8 +3,14 @@
3
3
  * Copyright 2025 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { Config } from '@google/gemini-cli-core';
6
+ import type { Config, GeminiCLIExtension } from '@google/gemini-cli-core';
7
7
  import type { LoadedSettings } from '../config/settings.js';
8
- import type { Extension } from '../config/extension.js';
9
8
  import type { CliArgs } from '../config/config.js';
10
- export declare function runZedIntegration(config: Config, settings: LoadedSettings, extensions: Extension[], argv: CliArgs): Promise<void>;
9
+ /**
10
+ * Resolves the model to use based on the current configuration.
11
+ *
12
+ * If the model is set to "auto", it will use the flash model if in fallback
13
+ * mode, otherwise it will use the default model.
14
+ */
15
+ export declare function resolveModel(model: string, isInFallbackMode: boolean): string;
16
+ export declare function runZedIntegration(config: Config, settings: LoadedSettings, extensions: GeminiCLIExtension[], argv: CliArgs): Promise<void>;