@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.
- package/README.md +105 -62
- package/dist/package.json +13 -5
- package/dist/src/commands/extensions/examples/context/GEMINI.md +9 -3
- package/dist/src/commands/extensions/examples/context/gemini-extension.json +1 -2
- package/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +3 -2
- package/dist/src/commands/extensions/examples/mcp-server/package.json +18 -0
- package/dist/src/commands/extensions/examples/mcp-server/tsconfig.json +13 -0
- package/dist/src/commands/extensions/install.d.ts +2 -2
- package/dist/src/commands/extensions/install.js +35 -36
- package/dist/src/commands/extensions/install.js.map +1 -1
- package/dist/src/commands/extensions/install.test.js +25 -25
- package/dist/src/commands/extensions/install.test.js.map +1 -1
- package/dist/src/commands/extensions/link.js +2 -2
- package/dist/src/commands/extensions/link.js.map +1 -1
- package/dist/src/commands/extensions/list.js +1 -1
- package/dist/src/commands/extensions/list.js.map +1 -1
- package/dist/src/commands/extensions/new.js +28 -8
- package/dist/src/commands/extensions/new.js.map +1 -1
- package/dist/src/commands/extensions/new.test.js +14 -5
- package/dist/src/commands/extensions/new.test.js.map +1 -1
- package/dist/src/commands/extensions/uninstall.js +1 -1
- package/dist/src/commands/extensions/uninstall.js.map +1 -1
- package/dist/src/commands/extensions/uninstall.test.js +4 -1
- package/dist/src/commands/extensions/uninstall.test.js.map +1 -1
- package/dist/src/commands/extensions/update.js +35 -24
- package/dist/src/commands/extensions/update.js.map +1 -1
- package/dist/src/commands/mcp/add.js +6 -1
- package/dist/src/commands/mcp/add.js.map +1 -1
- package/dist/src/commands/mcp/list.js +5 -4
- package/dist/src/commands/mcp/list.js.map +1 -1
- package/dist/src/config/config.d.ts +7 -4
- package/dist/src/config/config.js +125 -39
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/extension.d.ts +44 -18
- package/dist/src/config/extension.js +250 -143
- package/dist/src/config/extension.js.map +1 -1
- package/dist/src/config/extensions/extensionEnablement.d.ts +12 -9
- package/dist/src/config/extensions/extensionEnablement.js +36 -9
- package/dist/src/config/extensions/extensionEnablement.js.map +1 -1
- package/dist/src/config/extensions/extensionEnablement.test.js +74 -1
- package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -1
- package/dist/src/config/extensions/github.d.ts +14 -2
- package/dist/src/config/extensions/github.js +111 -89
- package/dist/src/config/extensions/github.js.map +1 -1
- package/dist/src/config/extensions/github.test.js +124 -13
- package/dist/src/config/extensions/github.test.js.map +1 -1
- package/dist/src/config/extensions/github_fetch.d.ts +7 -0
- package/dist/src/config/extensions/github_fetch.js +34 -0
- package/dist/src/config/extensions/github_fetch.js.map +1 -0
- package/dist/src/config/extensions/update.d.ts +4 -5
- package/dist/src/config/extensions/update.js +64 -42
- package/dist/src/config/extensions/update.js.map +1 -1
- package/dist/src/config/extensions/update.test.js +121 -71
- package/dist/src/config/extensions/update.test.js.map +1 -1
- package/dist/src/config/keyBindings.js +1 -1
- package/dist/src/config/keyBindings.js.map +1 -1
- package/dist/src/config/policy.js +2 -2
- package/dist/src/config/policy.js.map +1 -1
- package/dist/src/config/settings.d.ts +10 -1
- package/dist/src/config/settings.js +21 -6
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/config/settingsSchema.d.ts +97 -5
- package/dist/src/config/settingsSchema.js +96 -4
- package/dist/src/config/settingsSchema.js.map +1 -1
- package/dist/src/config/settingsSchema.test.js +8 -0
- package/dist/src/config/settingsSchema.test.js.map +1 -1
- package/dist/src/config/trustedFolders.d.ts +10 -2
- package/dist/src/config/trustedFolders.js +41 -16
- package/dist/src/config/trustedFolders.js.map +1 -1
- package/dist/src/config/trustedFolders.test.js +95 -14
- package/dist/src/config/trustedFolders.test.js.map +1 -1
- package/dist/src/gemini.js +114 -132
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.js +95 -14
- package/dist/src/gemini.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/generated/git-commit.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.js +7 -0
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.test.js +87 -1
- package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
- package/dist/src/services/FileCommandLoader.d.ts +1 -1
- package/dist/src/services/FileCommandLoader.js +4 -4
- package/dist/src/services/FileCommandLoader.js.map +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.js +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
- package/dist/src/test-utils/render.d.ts +12 -1
- package/dist/src/test-utils/render.js +56 -1
- package/dist/src/test-utils/render.js.map +1 -1
- package/dist/src/ui/App.js +7 -9
- package/dist/src/ui/App.js.map +1 -1
- package/dist/src/ui/AppContainer.js +99 -27
- package/dist/src/ui/AppContainer.js.map +1 -1
- package/dist/src/ui/AppContainer.test.js +300 -7
- package/dist/src/ui/AppContainer.test.js.map +1 -1
- package/dist/src/ui/IdeIntegrationNudge.js +3 -0
- package/dist/src/ui/IdeIntegrationNudge.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.js +8 -1
- package/dist/src/ui/auth/AuthDialog.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.test.js +1 -0
- package/dist/src/ui/auth/AuthDialog.test.js.map +1 -1
- package/dist/src/ui/auth/AuthInProgress.js +2 -2
- package/dist/src/ui/auth/AuthInProgress.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.js +21 -27
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/extensionsCommand.js +39 -34
- package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
- package/dist/src/ui/commands/mcpCommand.js +78 -260
- package/dist/src/ui/commands/mcpCommand.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.js +23 -5
- package/dist/src/ui/commands/memoryCommand.js.map +1 -1
- package/dist/src/ui/commands/modelCommand.d.ts +7 -0
- package/dist/src/ui/commands/modelCommand.js +16 -0
- package/dist/src/ui/commands/modelCommand.js.map +1 -0
- package/dist/src/ui/commands/modelCommand.test.js +30 -0
- package/dist/src/ui/commands/modelCommand.test.js.map +1 -0
- package/dist/src/ui/commands/permissionsCommand.d.ts +7 -0
- package/dist/src/ui/commands/permissionsCommand.js +16 -0
- package/dist/src/ui/commands/permissionsCommand.js.map +1 -0
- package/dist/src/ui/commands/permissionsCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/permissionsCommand.test.js +30 -0
- package/dist/src/ui/commands/permissionsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/profileCommand.d.ts +7 -0
- package/dist/src/ui/commands/profileCommand.js +23 -0
- package/dist/src/ui/commands/profileCommand.js.map +1 -0
- package/dist/src/ui/commands/setupGithubCommand.test.js +2 -1
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -1
- package/dist/src/ui/commands/toolsCommand.js +10 -24
- package/dist/src/ui/commands/toolsCommand.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +8 -6
- package/dist/src/ui/commands/types.js.map +1 -1
- package/dist/src/ui/components/AnsiOutput.d.ts +1 -0
- package/dist/src/ui/components/AnsiOutput.js +5 -5
- package/dist/src/ui/components/AnsiOutput.js.map +1 -1
- package/dist/src/ui/components/AnsiOutput.test.js +6 -6
- package/dist/src/ui/components/AnsiOutput.test.js.map +1 -1
- package/dist/src/ui/components/AppHeader.js +2 -5
- package/dist/src/ui/components/AppHeader.js.map +1 -1
- package/dist/src/ui/components/CliSpinner.d.ts +10 -0
- package/dist/src/ui/components/CliSpinner.js +20 -0
- package/dist/src/ui/components/CliSpinner.js.map +1 -0
- package/dist/src/ui/components/Composer.js +7 -29
- package/dist/src/ui/components/Composer.js.map +1 -1
- package/dist/src/ui/components/ConsentPrompt.d.ts +13 -0
- package/dist/src/ui/components/ConsentPrompt.js +19 -0
- package/dist/src/ui/components/ConsentPrompt.js.map +1 -0
- package/dist/src/ui/components/ConsentPrompt.test.d.ts +6 -0
- package/dist/src/ui/components/ConsentPrompt.test.js +67 -0
- package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -0
- package/dist/src/ui/components/ContextSummaryDisplay.js +2 -2
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +2 -1
- package/dist/src/ui/components/ContextUsageDisplay.js +4 -2
- package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -1
- package/dist/src/ui/components/DebugProfiler.d.ts +18 -0
- package/dist/src/ui/components/DebugProfiler.js +158 -12
- package/dist/src/ui/components/DebugProfiler.js.map +1 -1
- package/dist/src/ui/components/DebugProfiler.test.d.ts +6 -0
- package/dist/src/ui/components/DebugProfiler.test.js +140 -0
- package/dist/src/ui/components/DebugProfiler.test.js.map +1 -0
- package/dist/src/ui/components/DialogManager.d.ts +7 -1
- package/dist/src/ui/components/DialogManager.js +18 -9
- package/dist/src/ui/components/DialogManager.js.map +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.js +11 -2
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/ExitWarning.d.ts +7 -0
- package/dist/src/ui/components/ExitWarning.js +9 -0
- package/dist/src/ui/components/ExitWarning.js.map +1 -0
- package/dist/src/ui/components/FolderTrustDialog.js +3 -0
- package/dist/src/ui/components/FolderTrustDialog.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.js +2 -2
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/Footer.d.ts +1 -19
- package/dist/src/ui/components/Footer.js +35 -17
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.js +2 -2
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -1
- package/dist/src/ui/components/Help.js +1 -1
- package/dist/src/ui/components/Help.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +2 -1
- package/dist/src/ui/components/HistoryItemDisplay.js +10 -1
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.js +90 -9
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
- package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +11 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.js +32 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.js.map +1 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +6 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js +57 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +1 -0
- package/dist/src/ui/components/InputPrompt.d.ts +8 -2
- package/dist/src/ui/components/InputPrompt.js +66 -32
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/LoadingIndicator.js +1 -1
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
- package/dist/src/ui/components/LoadingIndicator.test.js +4 -0
- package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.js +2 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -1
- package/dist/src/ui/components/MainContent.js +7 -2
- package/dist/src/ui/components/MainContent.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.d.ts +11 -0
- package/dist/src/ui/components/ModelDialog.js +57 -0
- package/dist/src/ui/components/ModelDialog.js.map +1 -0
- package/dist/src/ui/components/ModelDialog.test.d.ts +6 -0
- package/dist/src/ui/components/ModelDialog.test.js +153 -0
- package/dist/src/ui/components/ModelDialog.test.js.map +1 -0
- package/dist/src/ui/components/Notifications.js +12 -4
- package/dist/src/ui/components/Notifications.js.map +1 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +13 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js +48 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +6 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +154 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -0
- package/dist/src/ui/components/ProQuotaDialog.js +2 -0
- package/dist/src/ui/components/ProQuotaDialog.js.map +1 -1
- package/dist/src/ui/components/ProQuotaDialog.test.js +2 -0
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.js +6 -3
- package/dist/src/ui/components/SettingsDialog.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.test.js +47 -13
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.js +3 -0
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.js +2 -0
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +2 -2
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +7 -5
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -1
- package/dist/src/ui/components/messages/CompressionMessage.js +2 -2
- package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +15 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.js +5 -5
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/ToolMessage.js +28 -5
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/UserMessage.js +1 -2
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
- package/dist/src/ui/components/shared/BaseSelectionList.d.ts +38 -0
- package/dist/src/ui/components/shared/BaseSelectionList.js +72 -0
- package/dist/src/ui/components/shared/BaseSelectionList.js.map +1 -0
- package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +6 -0
- package/dist/src/ui/components/shared/BaseSelectionList.test.js +376 -0
- package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +35 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +1 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +6 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +79 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +1 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +2 -3
- package/dist/src/ui/components/shared/RadioButtonSelect.js +9 -104
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +115 -92
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -1
- package/dist/src/ui/components/shared/ScopeSelector.js +4 -1
- package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -1
- package/dist/src/ui/components/views/ChatList.d.ts +12 -0
- package/dist/src/ui/components/views/ChatList.js +17 -0
- package/dist/src/ui/components/views/ChatList.js.map +1 -0
- package/dist/src/ui/components/views/ChatList.test.d.ts +6 -0
- package/dist/src/ui/components/views/ChatList.test.js +42 -0
- package/dist/src/ui/components/views/ChatList.test.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionsList.test.js +1 -1
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -1
- package/dist/src/ui/components/views/McpStatus.d.ts +27 -0
- package/dist/src/ui/components/views/McpStatus.js +77 -0
- package/dist/src/ui/components/views/McpStatus.js.map +1 -0
- package/dist/src/ui/components/views/McpStatus.test.d.ts +6 -0
- package/dist/src/ui/components/views/McpStatus.test.js +117 -0
- package/dist/src/ui/components/views/McpStatus.test.js.map +1 -0
- package/dist/src/ui/components/views/ToolsList.d.ts +14 -0
- package/dist/src/ui/components/views/ToolsList.js +7 -0
- package/dist/src/ui/components/views/ToolsList.js.map +1 -0
- package/dist/src/ui/components/views/ToolsList.test.d.ts +6 -0
- package/dist/src/ui/components/views/ToolsList.test.js +45 -0
- package/dist/src/ui/components/views/ToolsList.test.js.map +1 -0
- package/dist/src/ui/contexts/KeypressContext.js +3 -0
- package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
- package/dist/src/ui/contexts/ShellFocusContext.d.ts +7 -0
- package/dist/src/ui/contexts/ShellFocusContext.js +9 -0
- package/dist/src/ui/contexts/ShellFocusContext.js.map +1 -0
- package/dist/src/ui/contexts/UIActionsContext.d.ts +2 -0
- package/dist/src/ui/contexts/UIActionsContext.js.map +1 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +11 -2
- package/dist/src/ui/contexts/UIStateContext.js +2 -0
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.js +5 -6
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +19 -32
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +8 -5
- package/dist/src/ui/hooks/slashCommandProcessor.js +11 -2
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/useExtensionUpdates.d.ts +10 -1
- package/dist/src/ui/hooks/useExtensionUpdates.js +140 -38
- package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -1
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +163 -84
- package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -1
- package/dist/src/ui/hooks/useFlickerDetector.d.ts +14 -0
- package/dist/src/ui/hooks/useFlickerDetector.js +37 -0
- package/dist/src/ui/hooks/useFlickerDetector.js.map +1 -0
- package/dist/src/ui/hooks/useFlickerDetector.test.d.ts +6 -0
- package/dist/src/ui/hooks/useFlickerDetector.test.js +102 -0
- package/dist/src/ui/hooks/useFlickerDetector.test.js.map +1 -0
- package/dist/src/ui/hooks/useFocus.js +10 -0
- package/dist/src/ui/hooks/useFocus.js.map +1 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +2 -1
- package/dist/src/ui/hooks/useFolderTrust.js +13 -9
- package/dist/src/ui/hooks/useFolderTrust.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.js +38 -3
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
- package/dist/src/ui/hooks/useHistoryManager.js +3 -3
- package/dist/src/ui/hooks/useHistoryManager.js.map +1 -1
- package/dist/src/ui/hooks/useIdeTrustListener.d.ts +4 -2
- package/dist/src/ui/hooks/useIdeTrustListener.js +40 -14
- package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -1
- package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +6 -0
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +183 -0
- package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -0
- package/dist/src/ui/hooks/useModelCommand.d.ts +12 -0
- package/dist/src/ui/hooks/useModelCommand.js +21 -0
- package/dist/src/ui/hooks/useModelCommand.js.map +1 -0
- package/dist/src/ui/hooks/useModelCommand.test.d.ts +6 -0
- package/dist/src/ui/hooks/useModelCommand.test.js +35 -0
- package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +17 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js +78 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +1 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +6 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +182 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -0
- package/dist/src/ui/hooks/usePhraseCycler.js +1 -0
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.js +3 -17
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +13 -43
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -1
- package/dist/src/ui/hooks/useSelectionList.d.ts +34 -0
- package/dist/src/ui/hooks/useSelectionList.js +272 -0
- package/dist/src/ui/hooks/useSelectionList.js.map +1 -0
- package/dist/src/ui/hooks/useSelectionList.test.d.ts +6 -0
- package/dist/src/ui/hooks/useSelectionList.test.js +725 -0
- package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -0
- package/dist/src/ui/hooks/useShellHistory.test.js +12 -8
- package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.js +7 -2
- package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.js +33 -0
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useTerminalSize.js +2 -3
- package/dist/src/ui/hooks/useTerminalSize.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +2 -2
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +2 -2
- package/dist/src/ui/hooks/useWorkspaceMigration.js +13 -8
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -1
- package/dist/src/ui/layouts/DefaultAppLayout.d.ts +7 -0
- package/dist/src/ui/layouts/DefaultAppLayout.js +16 -0
- package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -0
- package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +7 -0
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js +17 -0
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +1 -0
- package/dist/src/ui/noninteractive/nonInteractiveUi.js +3 -1
- package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +5 -5
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -1
- package/dist/src/ui/state/extensions.d.ts +47 -1
- package/dist/src/ui/state/extensions.js +68 -1
- package/dist/src/ui/state/extensions.js.map +1 -1
- package/dist/src/ui/themes/theme.js +2 -2
- package/dist/src/ui/themes/theme.js.map +1 -1
- package/dist/src/ui/types.d.ts +54 -3
- package/dist/src/ui/types.js +3 -0
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.js +1 -2
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.js +94 -91
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -1
- package/dist/src/ui/utils/displayUtils.d.ts +1 -0
- package/dist/src/ui/utils/displayUtils.js +4 -1
- package/dist/src/ui/utils/displayUtils.js.map +1 -1
- package/dist/src/ui/utils/displayUtils.test.js +36 -17
- package/dist/src/ui/utils/displayUtils.test.js.map +1 -1
- package/dist/src/ui/utils/textUtils.d.ts +1 -0
- package/dist/src/ui/utils/textUtils.js +56 -0
- package/dist/src/ui/utils/textUtils.js.map +1 -1
- package/dist/src/ui/utils/textUtils.test.d.ts +6 -0
- package/dist/src/ui/utils/textUtils.test.js +132 -0
- package/dist/src/ui/utils/textUtils.test.js.map +1 -0
- package/dist/src/ui/utils/ui-sizing.d.ts +7 -0
- package/dist/src/ui/utils/ui-sizing.js +23 -0
- package/dist/src/ui/utils/ui-sizing.js.map +1 -0
- package/dist/src/utils/commentJson.js +95 -13
- package/dist/src/utils/commentJson.js.map +1 -1
- package/dist/src/utils/commentJson.test.js +161 -0
- package/dist/src/utils/commentJson.test.js.map +1 -1
- package/dist/src/utils/deepMerge.d.ts +2 -3
- package/dist/src/utils/errors.d.ts +8 -3
- package/dist/src/utils/errors.js +23 -13
- package/dist/src/utils/errors.js.map +1 -1
- package/dist/src/utils/errors.test.js +40 -46
- package/dist/src/utils/errors.test.js.map +1 -1
- package/dist/src/utils/events.d.ts +2 -1
- package/dist/src/utils/events.js +1 -0
- package/dist/src/utils/events.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.js +4 -1
- package/dist/src/utils/handleAutoUpdate.js.map +1 -1
- package/dist/src/utils/installationInfo.d.ts +1 -0
- package/dist/src/utils/installationInfo.js +2 -0
- package/dist/src/utils/installationInfo.js.map +1 -1
- package/dist/src/utils/math.d.ts +13 -0
- package/dist/src/utils/math.js +14 -0
- package/dist/src/utils/math.js.map +1 -0
- package/dist/src/utils/relaunch.d.ts +7 -0
- package/dist/src/utils/relaunch.js +57 -0
- package/dist/src/utils/relaunch.js.map +1 -0
- package/dist/src/utils/relaunch.test.d.ts +6 -0
- package/dist/src/utils/relaunch.test.js +273 -0
- package/dist/src/utils/relaunch.test.js.map +1 -0
- package/dist/src/utils/sandbox.js +31 -17
- package/dist/src/utils/sandbox.js.map +1 -1
- package/dist/src/utils/sessionCleanup.d.ts +22 -0
- package/dist/src/utils/sessionCleanup.integration.test.d.ts +6 -0
- package/dist/src/utils/sessionCleanup.integration.test.js +182 -0
- package/dist/src/utils/sessionCleanup.integration.test.js.map +1 -0
- package/dist/src/utils/sessionCleanup.js +214 -0
- package/dist/src/utils/sessionCleanup.js.map +1 -0
- package/dist/src/utils/sessionCleanup.test.d.ts +6 -0
- package/dist/src/utils/sessionCleanup.test.js +1232 -0
- package/dist/src/utils/sessionCleanup.test.js.map +1 -0
- package/dist/src/utils/sessionUtils.d.ts +37 -0
- package/dist/src/utils/sessionUtils.js +71 -0
- package/dist/src/utils/sessionUtils.js.map +1 -0
- package/dist/src/utils/windowTitle.d.ts +12 -0
- package/dist/src/utils/windowTitle.js +19 -0
- package/dist/src/utils/windowTitle.js.map +1 -0
- package/dist/src/utils/windowTitle.test.d.ts +6 -0
- package/dist/src/utils/windowTitle.test.js +49 -0
- package/dist/src/utils/windowTitle.test.js.map +1 -0
- package/dist/src/validateNonInterActiveAuth.js +6 -7
- package/dist/src/validateNonInterActiveAuth.js.map +1 -1
- package/dist/src/zed-integration/acp.js +1 -2
- package/dist/src/zed-integration/acp.js.map +1 -1
- package/dist/src/zed-integration/fileSystemService.d.ts +1 -0
- package/dist/src/zed-integration/fileSystemService.js +3 -0
- package/dist/src/zed-integration/fileSystemService.js.map +1 -1
- package/dist/src/zed-integration/schema.d.ts +70 -70
- package/dist/src/zed-integration/zedIntegration.d.ts +9 -3
- package/dist/src/zed-integration/zedIntegration.js +23 -28
- package/dist/src/zed-integration/zedIntegration.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -5
- package/dist/src/commands/extensions/examples/mcp-server/example.js +0 -46
- package/dist/src/commands/extensions/examples/mcp-server/example.js.map +0 -1
- package/dist/src/ui/contexts/FocusContext.d.ts +0 -7
- package/dist/src/ui/contexts/FocusContext.js +0 -9
- package/dist/src/ui/contexts/FocusContext.js.map +0 -1
- /package/dist/src/{commands/extensions/examples/mcp-server/example.d.ts → ui/commands/modelCommand.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -7,16 +7,21 @@
|
|
|
7
7
|
|
|
8
8
|

|
|
9
9
|
|
|
10
|
-
Gemini CLI is an open-source AI agent that brings the power of Gemini directly
|
|
10
|
+
Gemini CLI is an open-source AI agent that brings the power of Gemini directly
|
|
11
|
+
into your terminal. It provides lightweight access to Gemini, giving you the
|
|
12
|
+
most direct path from your prompt to our model.
|
|
11
13
|
|
|
12
14
|
## 🚀 Why Gemini CLI?
|
|
13
15
|
|
|
14
|
-
- **🎯 Free tier**: 60 requests/min and 1,000 requests/day with personal Google
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
-
|
|
16
|
+
- **🎯 Free tier**: 60 requests/min and 1,000 requests/day with personal Google
|
|
17
|
+
account.
|
|
18
|
+
- **🧠 Powerful Gemini 2.5 Pro**: Access to 1M token context window.
|
|
19
|
+
- **🔧 Built-in tools**: Google Search grounding, file operations, shell
|
|
20
|
+
commands, web fetching.
|
|
21
|
+
- **🔌 Extensible**: MCP (Model Context Protocol) support for custom
|
|
22
|
+
integrations.
|
|
23
|
+
- **💻 Terminal-first**: Designed for developers who live in the command line.
|
|
24
|
+
- **🛡️ Open source**: Apache 2.0 licensed.
|
|
20
25
|
|
|
21
26
|
## 📦 Installation
|
|
22
27
|
|
|
@@ -52,7 +57,9 @@ See [Releases](./docs/releases.md) for more details.
|
|
|
52
57
|
|
|
53
58
|
### Preview
|
|
54
59
|
|
|
55
|
-
New preview releases will be published each week at UTC 2359 on Tuesdays. These
|
|
60
|
+
New preview releases will be published each week at UTC 2359 on Tuesdays. These
|
|
61
|
+
releases will not have been fully vetted and may contain regressions or other
|
|
62
|
+
outstanding issues. Please help us test and install with `preview` tag.
|
|
56
63
|
|
|
57
64
|
```bash
|
|
58
65
|
npm install -g @google/gemini-cli@preview
|
|
@@ -60,7 +67,9 @@ npm install -g @google/gemini-cli@preview
|
|
|
60
67
|
|
|
61
68
|
### Stable
|
|
62
69
|
|
|
63
|
-
- New stable releases will be published each week at UTC 2000 on Tuesdays, this
|
|
70
|
+
- New stable releases will be published each week at UTC 2000 on Tuesdays, this
|
|
71
|
+
will be the full promotion of last week's `preview` release + any bug fixes
|
|
72
|
+
and validations. Use `latest` tag.
|
|
64
73
|
|
|
65
74
|
```bash
|
|
66
75
|
npm install -g @google/gemini-cli@latest
|
|
@@ -68,7 +77,9 @@ npm install -g @google/gemini-cli@latest
|
|
|
68
77
|
|
|
69
78
|
### Nightly
|
|
70
79
|
|
|
71
|
-
- New releases will be published each week at UTC 0000 each day, This will be
|
|
80
|
+
- New releases will be published each week at UTC 0000 each day, This will be
|
|
81
|
+
all changes from the main branch as represented at time of release. It should
|
|
82
|
+
be assumed there are pending validations and issues. Use `nightly` tag.
|
|
72
83
|
|
|
73
84
|
```bash
|
|
74
85
|
npm install -g @google/gemini-cli@nightly
|
|
@@ -84,24 +95,33 @@ npm install -g @google/gemini-cli@nightly
|
|
|
84
95
|
|
|
85
96
|
### Automation & Integration
|
|
86
97
|
|
|
87
|
-
- Automate operational tasks like querying pull requests or handling complex
|
|
88
|
-
|
|
98
|
+
- Automate operational tasks like querying pull requests or handling complex
|
|
99
|
+
rebases
|
|
100
|
+
- Use MCP servers to connect new capabilities, including
|
|
101
|
+
[media generation with Imagen, Veo or Lyria](https://github.com/GoogleCloudPlatform/vertex-ai-creative-studio/tree/main/experiments/mcp-genmedia)
|
|
89
102
|
- Run non-interactively in scripts for workflow automation
|
|
90
103
|
|
|
91
104
|
### Advanced Capabilities
|
|
92
105
|
|
|
93
|
-
- Ground your queries with built-in
|
|
106
|
+
- Ground your queries with built-in
|
|
107
|
+
[Google Search](https://ai.google.dev/gemini-api/docs/grounding) for real-time
|
|
108
|
+
information
|
|
94
109
|
- Conversation checkpointing to save and resume complex sessions
|
|
95
110
|
- Custom context files (GEMINI.md) to tailor behavior for your projects
|
|
96
111
|
|
|
97
112
|
### GitHub Integration
|
|
98
113
|
|
|
99
|
-
Integrate Gemini CLI directly into your GitHub workflows with
|
|
114
|
+
Integrate Gemini CLI directly into your GitHub workflows with
|
|
115
|
+
[**Gemini CLI GitHub Action**](https://github.com/google-github-actions/run-gemini-cli):
|
|
100
116
|
|
|
101
|
-
- **Pull Request Reviews**: Automated code review with contextual feedback and
|
|
102
|
-
|
|
103
|
-
- **
|
|
104
|
-
|
|
117
|
+
- **Pull Request Reviews**: Automated code review with contextual feedback and
|
|
118
|
+
suggestions
|
|
119
|
+
- **Issue Triage**: Automated labeling and prioritization of GitHub issues based
|
|
120
|
+
on content analysis
|
|
121
|
+
- **On-demand Assistance**: Mention `@gemini-cli` in issues and pull requests
|
|
122
|
+
for help with debugging, explanations, or task delegation
|
|
123
|
+
- **Custom Workflows**: Build automated, scheduled and on-demand workflows
|
|
124
|
+
tailored to your team's needs
|
|
105
125
|
|
|
106
126
|
## 🔐 Authentication Options
|
|
107
127
|
|
|
@@ -109,7 +129,10 @@ Choose the authentication method that best fits your needs:
|
|
|
109
129
|
|
|
110
130
|
### Option 1: Login with Google (OAuth login using your Google Account)
|
|
111
131
|
|
|
112
|
-
**✨ Best for:** Individual developers as well as anyone who has a Gemini Code
|
|
132
|
+
**✨ Best for:** Individual developers as well as anyone who has a Gemini Code
|
|
133
|
+
Assist License. (see
|
|
134
|
+
[quota limits and terms of service](https://cloud.google.com/gemini/docs/quotas)
|
|
135
|
+
for details)
|
|
113
136
|
|
|
114
137
|
**Benefits:**
|
|
115
138
|
|
|
@@ -128,7 +151,7 @@ gemini
|
|
|
128
151
|
|
|
129
152
|
```bash
|
|
130
153
|
# Set your Google Cloud Project
|
|
131
|
-
export GOOGLE_CLOUD_PROJECT="
|
|
154
|
+
export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"
|
|
132
155
|
gemini
|
|
133
156
|
```
|
|
134
157
|
|
|
@@ -165,7 +188,8 @@ export GOOGLE_GENAI_USE_VERTEXAI=true
|
|
|
165
188
|
gemini
|
|
166
189
|
```
|
|
167
190
|
|
|
168
|
-
For Google Workspace accounts and other authentication methods, see the
|
|
191
|
+
For Google Workspace accounts and other authentication methods, see the
|
|
192
|
+
[authentication guide](./docs/get-started/authentication.md).
|
|
169
193
|
|
|
170
194
|
## 🚀 Getting Started
|
|
171
195
|
|
|
@@ -227,17 +251,26 @@ gemini
|
|
|
227
251
|
|
|
228
252
|
### Getting Started
|
|
229
253
|
|
|
230
|
-
- [**Quickstart Guide**](./docs/
|
|
231
|
-
|
|
232
|
-
- [**
|
|
233
|
-
|
|
254
|
+
- [**Quickstart Guide**](./docs/get-started/index.md) - Get up and running
|
|
255
|
+
quickly.
|
|
256
|
+
- [**Authentication Setup**](./docs/get-started/authentication.md) - Detailed
|
|
257
|
+
auth configuration.
|
|
258
|
+
- [**Configuration Guide**](./docs/get-started/configuration.md) - Settings and
|
|
259
|
+
customization.
|
|
260
|
+
- [**Keyboard Shortcuts**](./docs/cli/keyboard-shortcuts.md) - Productivity
|
|
261
|
+
tips.
|
|
234
262
|
|
|
235
263
|
### Core Features
|
|
236
264
|
|
|
237
|
-
- [**Commands Reference**](./docs/cli/commands.md) - All slash commands
|
|
238
|
-
|
|
239
|
-
- [**
|
|
240
|
-
|
|
265
|
+
- [**Commands Reference**](./docs/cli/commands.md) - All slash commands
|
|
266
|
+
(`/help`, `/chat`, etc).
|
|
267
|
+
- [**Custom Commands**](./docs/cli/custom-commands.md) - Create your own
|
|
268
|
+
reusable commands.
|
|
269
|
+
- [**Context Files (GEMINI.md)**](./docs/cli/gemini-md.md) - Provide persistent
|
|
270
|
+
context to Gemini CLI.
|
|
271
|
+
- [**Checkpointing**](./docs/cli/checkpointing.md) - Save and resume
|
|
272
|
+
conversations.
|
|
273
|
+
- [**Token Caching**](./docs/cli/token-caching.md) - Optimize token usage.
|
|
241
274
|
|
|
242
275
|
### Tools & Extensions
|
|
243
276
|
|
|
@@ -245,35 +278,37 @@ gemini
|
|
|
245
278
|
- [File System Operations](./docs/tools/file-system.md)
|
|
246
279
|
- [Shell Commands](./docs/tools/shell.md)
|
|
247
280
|
- [Web Fetch & Search](./docs/tools/web-fetch.md)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
- [**Custom Extensions**](./docs/
|
|
281
|
+
- [**MCP Server Integration**](./docs/tools/mcp-server.md) - Extend with custom
|
|
282
|
+
tools.
|
|
283
|
+
- [**Custom Extensions**](./docs/extensions/index.md) - Build and share your own
|
|
284
|
+
commands.
|
|
251
285
|
|
|
252
286
|
### Advanced Topics
|
|
253
287
|
|
|
254
|
-
- [**
|
|
255
|
-
|
|
256
|
-
- [**
|
|
257
|
-
- [**
|
|
258
|
-
- [**
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
- [**
|
|
265
|
-
- [
|
|
266
|
-
- [**Environment Variables**](./docs/cli/configuration.md#environment-variables)
|
|
288
|
+
- [**Headless Mode (Scripting)**](./docs/cli/headless.md) - Use Gemini CLI in
|
|
289
|
+
automated workflows.
|
|
290
|
+
- [**Architecture Overview**](./docs/architecture.md) - How Gemini CLI works.
|
|
291
|
+
- [**IDE Integration**](./docs/ide-integration/index.md) - VS Code companion.
|
|
292
|
+
- [**Sandboxing & Security**](./docs/cli/sandbox.md) - Safe execution
|
|
293
|
+
environments.
|
|
294
|
+
- [**Trusted Folders**](./docs/cli/trusted-folders.md) - Control execution
|
|
295
|
+
policies by folder.
|
|
296
|
+
- [**Enterprise Guide**](./docs/cli/enterprise.md) - Deploy and manage in a
|
|
297
|
+
corporate environment.
|
|
298
|
+
- [**Telemetry & Monitoring**](./docs/cli/telemetry.md) - Usage tracking.
|
|
299
|
+
- [**Tools API Development**](./docs/core/tools-api.md) - Create custom tools.
|
|
267
300
|
|
|
268
301
|
### Troubleshooting & Support
|
|
269
302
|
|
|
270
|
-
- [**Troubleshooting Guide**](./docs/troubleshooting.md) - Common issues and
|
|
271
|
-
|
|
272
|
-
-
|
|
303
|
+
- [**Troubleshooting Guide**](./docs/troubleshooting.md) - Common issues and
|
|
304
|
+
solutions.
|
|
305
|
+
- [**FAQ**](./docs/faq.md) - Frequently asked questions.
|
|
306
|
+
- Use `/bug` command to report issues directly from the CLI.
|
|
273
307
|
|
|
274
308
|
### Using MCP Servers
|
|
275
309
|
|
|
276
|
-
Configure MCP servers in `~/.gemini/settings.json` to extend Gemini CLI with
|
|
310
|
+
Configure MCP servers in `~/.gemini/settings.json` to extend Gemini CLI with
|
|
311
|
+
custom tools:
|
|
277
312
|
|
|
278
313
|
```text
|
|
279
314
|
> @github List my open pull requests
|
|
@@ -281,31 +316,39 @@ Configure MCP servers in `~/.gemini/settings.json` to extend Gemini CLI with cus
|
|
|
281
316
|
> @database Run a query to find inactive users
|
|
282
317
|
```
|
|
283
318
|
|
|
284
|
-
See the [MCP Server Integration guide](./docs/tools/mcp-server.md) for setup
|
|
319
|
+
See the [MCP Server Integration guide](./docs/tools/mcp-server.md) for setup
|
|
320
|
+
instructions.
|
|
285
321
|
|
|
286
322
|
## 🤝 Contributing
|
|
287
323
|
|
|
288
|
-
We welcome contributions! Gemini CLI is fully open source (Apache 2.0), and we
|
|
324
|
+
We welcome contributions! Gemini CLI is fully open source (Apache 2.0), and we
|
|
325
|
+
encourage the community to:
|
|
289
326
|
|
|
290
|
-
- Report bugs and suggest features
|
|
291
|
-
- Improve documentation
|
|
292
|
-
- Submit code improvements
|
|
293
|
-
- Share your MCP servers and extensions
|
|
327
|
+
- Report bugs and suggest features.
|
|
328
|
+
- Improve documentation.
|
|
329
|
+
- Submit code improvements.
|
|
330
|
+
- Share your MCP servers and extensions.
|
|
294
331
|
|
|
295
|
-
See our [Contributing Guide](./CONTRIBUTING.md) for development setup, coding
|
|
332
|
+
See our [Contributing Guide](./CONTRIBUTING.md) for development setup, coding
|
|
333
|
+
standards, and how to submit pull requests.
|
|
296
334
|
|
|
297
|
-
Check our [Official Roadmap](https://github.com/orgs/google-gemini/projects/11
|
|
335
|
+
Check our [Official Roadmap](https://github.com/orgs/google-gemini/projects/11)
|
|
336
|
+
for planned features and priorities.
|
|
298
337
|
|
|
299
338
|
## 📖 Resources
|
|
300
339
|
|
|
301
|
-
- **[Official Roadmap](./ROADMAP.md)** - See what's coming next
|
|
302
|
-
- **[
|
|
303
|
-
- **[
|
|
304
|
-
|
|
340
|
+
- **[Official Roadmap](./ROADMAP.md)** - See what's coming next.
|
|
341
|
+
- **[Changelog](./docs/changelogs/index.md)** - See recent notable updates.
|
|
342
|
+
- **[NPM Package](https://www.npmjs.com/package/@google/gemini-cli)** - Package
|
|
343
|
+
registry.
|
|
344
|
+
- **[GitHub Issues](https://github.com/google-gemini/gemini-cli/issues)** -
|
|
345
|
+
Report bugs or request features.
|
|
346
|
+
- **[Security Advisories](https://github.com/google-gemini/gemini-cli/security/advisories)** -
|
|
347
|
+
Security updates.
|
|
305
348
|
|
|
306
349
|
### Uninstall
|
|
307
350
|
|
|
308
|
-
See the [Uninstall Guide](docs/
|
|
351
|
+
See the [Uninstall Guide](docs/cli/uninstall.md) for removal instructions.
|
|
309
352
|
|
|
310
353
|
## 📄 Legal
|
|
311
354
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google/gemini-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.77777773",
|
|
4
4
|
"description": "Gemini CLI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"lint": "eslint . --ext .ts,.tsx",
|
|
19
19
|
"format": "prettier --write .",
|
|
20
20
|
"test": "vitest run",
|
|
21
|
-
"test:ci": "vitest run
|
|
21
|
+
"test:ci": "vitest run",
|
|
22
22
|
"typecheck": "tsc --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"config": {
|
|
28
|
-
"sandboxImageUri": "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.0.
|
|
28
|
+
"sandboxImageUri": "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.0.77777773"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@google/gemini-cli-core": "file:../core",
|
|
@@ -33,27 +33,32 @@
|
|
|
33
33
|
"@iarna/toml": "^2.2.5",
|
|
34
34
|
"@modelcontextprotocol/sdk": "^1.15.1",
|
|
35
35
|
"@types/update-notifier": "^6.0.8",
|
|
36
|
+
"ansi-regex": "^6.2.2",
|
|
36
37
|
"command-exists": "^1.2.9",
|
|
37
38
|
"comment-json": "^4.2.5",
|
|
38
39
|
"diff": "^7.0.0",
|
|
39
40
|
"dotenv": "^17.1.0",
|
|
40
41
|
"fzf": "^0.5.2",
|
|
41
|
-
"glob": "^10.4.
|
|
42
|
+
"glob": "^10.4.5",
|
|
42
43
|
"highlight.js": "^11.11.1",
|
|
43
44
|
"ink": "^6.2.3",
|
|
44
45
|
"ink-gradient": "^3.0.0",
|
|
45
46
|
"ink-spinner": "^5.0.0",
|
|
46
47
|
"lowlight": "^3.3.0",
|
|
48
|
+
"mnemonist": "^0.40.3",
|
|
47
49
|
"open": "^10.1.2",
|
|
48
50
|
"react": "^19.1.0",
|
|
49
51
|
"read-package-up": "^11.0.0",
|
|
50
|
-
"simple-git": "^3.28.0",
|
|
51
52
|
"shell-quote": "^1.8.3",
|
|
53
|
+
"simple-git": "^3.28.0",
|
|
52
54
|
"string-width": "^7.1.0",
|
|
53
55
|
"strip-ansi": "^7.1.0",
|
|
54
56
|
"strip-json-comments": "^3.1.1",
|
|
57
|
+
"tar": "^7.5.1",
|
|
55
58
|
"undici": "^7.10.0",
|
|
59
|
+
"extract-zip": "^2.0.1",
|
|
56
60
|
"update-notifier": "^7.3.1",
|
|
61
|
+
"wrap-ansi": "9.0.2",
|
|
57
62
|
"yargs": "^17.7.2",
|
|
58
63
|
"zod": "^3.23.8"
|
|
59
64
|
},
|
|
@@ -61,6 +66,7 @@
|
|
|
61
66
|
"@babel/runtime": "^7.27.6",
|
|
62
67
|
"@google/gemini-cli-test-utils": "file:../test-utils",
|
|
63
68
|
"@testing-library/react": "^16.3.0",
|
|
69
|
+
"@types/archiver": "^6.0.3",
|
|
64
70
|
"@types/command-exists": "^1.2.3",
|
|
65
71
|
"@types/diff": "^7.0.2",
|
|
66
72
|
"@types/dotenv": "^6.1.1",
|
|
@@ -69,7 +75,9 @@
|
|
|
69
75
|
"@types/react-dom": "^19.1.6",
|
|
70
76
|
"@types/semver": "^7.7.0",
|
|
71
77
|
"@types/shell-quote": "^1.7.5",
|
|
78
|
+
"@types/tar": "^6.1.13",
|
|
72
79
|
"@types/yargs": "^17.0.32",
|
|
80
|
+
"archiver": "^7.0.1",
|
|
73
81
|
"ink-testing-library": "^4.0.0",
|
|
74
82
|
"jsdom": "^26.1.0",
|
|
75
83
|
"pretty-format": "^30.0.2",
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# Ink Library Screen Reader Guidance
|
|
2
2
|
|
|
3
|
-
When building custom components, it's important to keep accessibility in mind.
|
|
3
|
+
When building custom components, it's important to keep accessibility in mind.
|
|
4
|
+
While Ink provides the building blocks, ensuring your components are accessible
|
|
5
|
+
will make your CLIs usable by a wider audience.
|
|
4
6
|
|
|
5
7
|
## General Principles
|
|
6
8
|
|
|
7
|
-
Provide screen reader-friendly output: Use the useIsScreenReaderEnabled hook to
|
|
8
|
-
|
|
9
|
+
Provide screen reader-friendly output: Use the useIsScreenReaderEnabled hook to
|
|
10
|
+
detect if a screen reader is active. You can then render a more descriptive
|
|
11
|
+
output for screen reader users. Leverage ARIA props: For components that have a
|
|
12
|
+
specific role (e.g., a checkbox or a button), use the aria-role, aria-state, and
|
|
13
|
+
aria-label props on <Box> and <Text> to provide semantic meaning to screen
|
|
14
|
+
readers.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "mcp-server",
|
|
2
|
+
"name": "mcp-server-example",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"mcpServers": {
|
|
5
5
|
"nodeServer": {
|
|
6
6
|
"command": "node",
|
|
7
|
-
"args": ["${extensionPath}${/}example.
|
|
7
|
+
"args": ["${extensionPath}${/}dist${/}example.js"],
|
|
8
|
+
"cwd": "${extensionPath}"
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-server-example",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Example MCP Server for Gemini CLI Extension",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "example.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"typescript": "~5.4.5",
|
|
12
|
+
"@types/node": "^20.11.25"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@modelcontextprotocol/sdk": "^1.11.0",
|
|
16
|
+
"zod": "^3.22.4"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"outDir": "./dist"
|
|
11
|
+
},
|
|
12
|
+
"include": ["example.ts"]
|
|
13
|
+
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { CommandModule } from 'yargs';
|
|
7
7
|
interface InstallArgs {
|
|
8
|
-
source
|
|
9
|
-
path?: string;
|
|
8
|
+
source: string;
|
|
10
9
|
ref?: string;
|
|
11
10
|
autoUpdate?: boolean;
|
|
11
|
+
allowPreRelease?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare function handleInstall(args: InstallArgs): Promise<void>;
|
|
14
14
|
export declare const installCommand: CommandModule;
|
|
@@ -3,40 +3,41 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { installOrUpdateExtension, requestConsentNonInteractive, } from '../../config/extension.js';
|
|
7
7
|
import { getErrorMessage } from '../../utils/errors.js';
|
|
8
|
+
import { stat } from 'node:fs/promises';
|
|
8
9
|
export async function handleInstall(args) {
|
|
9
10
|
try {
|
|
10
11
|
let installMetadata;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
source.startsWith('sso://')) {
|
|
17
|
-
installMetadata = {
|
|
18
|
-
source,
|
|
19
|
-
type: 'git',
|
|
20
|
-
ref: args.ref,
|
|
21
|
-
autoUpdate: args.autoUpdate,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
throw new Error(`The source "${source}" is not a valid URL format.`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
else if (args.path) {
|
|
12
|
+
const { source } = args;
|
|
13
|
+
if (source.startsWith('http://') ||
|
|
14
|
+
source.startsWith('https://') ||
|
|
15
|
+
source.startsWith('git@') ||
|
|
16
|
+
source.startsWith('sso://')) {
|
|
29
17
|
installMetadata = {
|
|
30
|
-
source
|
|
31
|
-
type: '
|
|
18
|
+
source,
|
|
19
|
+
type: 'git',
|
|
20
|
+
ref: args.ref,
|
|
32
21
|
autoUpdate: args.autoUpdate,
|
|
22
|
+
allowPreRelease: args.allowPreRelease,
|
|
33
23
|
};
|
|
34
24
|
}
|
|
35
25
|
else {
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
if (args.ref || args.autoUpdate) {
|
|
27
|
+
throw new Error('--ref and --auto-update are not applicable for local extensions.');
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
await stat(source);
|
|
31
|
+
installMetadata = {
|
|
32
|
+
source,
|
|
33
|
+
type: 'local',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
throw new Error('Install source not found.');
|
|
38
|
+
}
|
|
38
39
|
}
|
|
39
|
-
const name = await
|
|
40
|
+
const name = await installOrUpdateExtension(installMetadata, requestConsentNonInteractive);
|
|
40
41
|
console.log(`Extension "${name}" installed successfully and enabled.`);
|
|
41
42
|
}
|
|
42
43
|
catch (error) {
|
|
@@ -45,16 +46,13 @@ export async function handleInstall(args) {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
export const installCommand = {
|
|
48
|
-
command: 'install [
|
|
49
|
+
command: 'install <source> [--auto-update] [--pre-release]',
|
|
49
50
|
describe: 'Installs an extension from a git repository URL or a local path.',
|
|
50
51
|
builder: (yargs) => yargs
|
|
51
52
|
.positional('source', {
|
|
52
|
-
describe: 'The github URL of the extension to install.',
|
|
53
|
-
type: 'string',
|
|
54
|
-
})
|
|
55
|
-
.option('path', {
|
|
56
|
-
describe: 'Path to a local extension directory.',
|
|
53
|
+
describe: 'The github URL or local path of the extension to install.',
|
|
57
54
|
type: 'string',
|
|
55
|
+
demandOption: true,
|
|
58
56
|
})
|
|
59
57
|
.option('ref', {
|
|
60
58
|
describe: 'The git ref to install from.',
|
|
@@ -64,21 +62,22 @@ export const installCommand = {
|
|
|
64
62
|
describe: 'Enable auto-update for this extension.',
|
|
65
63
|
type: 'boolean',
|
|
66
64
|
})
|
|
67
|
-
.
|
|
68
|
-
.
|
|
69
|
-
|
|
65
|
+
.option('pre-release', {
|
|
66
|
+
describe: 'Enable pre-release versions for this extension.',
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
})
|
|
70
69
|
.check((argv) => {
|
|
71
|
-
if (!argv.source
|
|
72
|
-
throw new Error('
|
|
70
|
+
if (!argv.source) {
|
|
71
|
+
throw new Error('The source argument must be provided.');
|
|
73
72
|
}
|
|
74
73
|
return true;
|
|
75
74
|
}),
|
|
76
75
|
handler: async (argv) => {
|
|
77
76
|
await handleInstall({
|
|
78
77
|
source: argv['source'],
|
|
79
|
-
path: argv['path'],
|
|
80
78
|
ref: argv['ref'],
|
|
81
79
|
autoUpdate: argv['auto-update'],
|
|
80
|
+
allowPreRelease: argv['pre-release'],
|
|
82
81
|
});
|
|
83
82
|
},
|
|
84
83
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../../src/commands/extensions/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../../src/commands/extensions/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AASxC,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAiB;IACnD,IAAI,CAAC;QACH,IAAI,eAAyC,CAAC;QAC9C,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACxB,IACE,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC;YAC5B,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC;YAC7B,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC;YACzB,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAC3B,CAAC;YACD,eAAe,GAAG;gBAChB,MAAM;gBACN,IAAI,EAAE,KAAK;gBACX,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,eAAe,EAAE,IAAI,CAAC,eAAe;aACtC,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChC,MAAM,IAAI,KAAK,CACb,kEAAkE,CACnE,CAAC;YACJ,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,MAAM,CAAC,CAAC;gBACnB,eAAe,GAAG;oBAChB,MAAM;oBACN,IAAI,EAAE,OAAO;iBACd,CAAC;YACJ,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,wBAAwB,CACzC,eAAe,EACf,4BAA4B,CAC7B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,uCAAuC,CAAC,CAAC;IACzE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;QACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAkB;IAC3C,OAAO,EAAE,kDAAkD;IAC3D,QAAQ,EAAE,kEAAkE;IAC5E,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK;SACF,UAAU,CAAC,QAAQ,EAAE;QACpB,QAAQ,EAAE,2DAA2D;QACrE,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,IAAI;KACnB,CAAC;SACD,MAAM,CAAC,KAAK,EAAE;QACb,QAAQ,EAAE,8BAA8B;QACxC,IAAI,EAAE,QAAQ;KACf,CAAC;SACD,MAAM,CAAC,aAAa,EAAE;QACrB,QAAQ,EAAE,wCAAwC;QAClD,IAAI,EAAE,SAAS;KAChB,CAAC;SACD,MAAM,CAAC,aAAa,EAAE;QACrB,QAAQ,EAAE,iDAAiD;QAC3D,IAAI,EAAE,SAAS;KAChB,CAAC;SACD,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE;QACd,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IACN,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACtB,MAAM,aAAa,CAAC;YAClB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAW;YAChC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAuB;YACtC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAwB;YACtD,eAAe,EAAE,IAAI,CAAC,aAAa,CAAwB;SAC5D,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|