@google/gemini-cli 0.1.0-development.2 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +16 -38
- package/bundle/gemini.js +257368 -0
- package/{dist/src/utils → bundle}/sandbox-macos-permissive-proxied.sb +1 -1
- package/{dist/src/utils → bundle}/sandbox-macos-restrictive-proxied.sb +1 -1
- package/bundle/shell.json +18 -0
- package/bundle/shell.md +16 -0
- package/package.json +72 -67
- package/dist/.last_build +0 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -20
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -80
- package/dist/src/config/auth.d.ts +0 -6
- package/dist/src/config/auth.js +0 -33
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -13
- package/dist/src/config/config.js +0 -211
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -20
- package/dist/src/config/extension.js +0 -81
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -13
- package/dist/src/config/sandboxConfig.js +0 -75
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -72
- package/dist/src/config/settings.js +0 -227
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -6
- package/dist/src/gemini.js +0 -216
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/generated/git-commit.d.ts +0 -6
- package/dist/src/generated/git-commit.js +0 -9
- package/dist/src/generated/git-commit.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -7
- package/dist/src/nonInteractiveCli.js +0 -115
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -13
- package/dist/src/services/CommandService.js +0 -30
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -14
- package/dist/src/ui/App.js +0 -391
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -48
- package/dist/src/ui/colors.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.d.ts +0 -7
- package/dist/src/ui/commands/clearCommand.js +0 -15
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -18
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/memoryCommand.js +0 -81
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -63
- package/dist/src/ui/commands/types.js +0 -7
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -16
- package/dist/src/ui/components/AboutBox.js +0 -6
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -7
- package/dist/src/ui/components/AsciiArt.js +0 -26
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.d.ts +0 -15
- package/dist/src/ui/components/AuthDialog.js +0 -66
- package/dist/src/ui/components/AuthDialog.js.map +0 -1
- package/dist/src/ui/components/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/components/AuthInProgress.js +0 -27
- package/dist/src/ui/components/AuthInProgress.js.map +0 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
- package/dist/src/ui/components/AutoAcceptIndicator.js +0 -26
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/components/ConsolePatcher.d.ts +0 -12
- package/dist/src/ui/components/ConsolePatcher.js +0 -40
- package/dist/src/ui/components/ConsolePatcher.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -15
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -41
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
- package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -15
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -73
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -20
- package/dist/src/ui/components/Footer.js +0 -13
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -17
- package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -16
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -12
- package/dist/src/ui/components/Header.js +0 -20
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Help.d.ts +0 -12
- package/dist/src/ui/components/Help.js +0 -10
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -18
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -17
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -25
- package/dist/src/ui/components/InputPrompt.js +0 -280
- package/dist/src/ui/components/InputPrompt.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
- package/dist/src/ui/components/LoadingIndicator.js +0 -19
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -27
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
- package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
- package/dist/src/ui/components/ShellModeIndicator.js +0 -5
- package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
- package/dist/src/ui/components/ShowMoreLines.js +0 -24
- package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
- package/dist/src/ui/components/StatsDisplay.js +0 -42
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -21
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -32
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -19
- package/dist/src/ui/components/ThemeDialog.js +0 -126
- package/dist/src/ui/components/ThemeDialog.js.map +0 -1
- package/dist/src/ui/components/Tips.d.ts +0 -12
- package/dist/src/ui/components/Tips.js +0 -8
- package/dist/src/ui/components/Tips.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
- package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
- package/dist/src/ui/components/UpdateNotification.js +0 -10
- package/dist/src/ui/components/UpdateNotification.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -16
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -15
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -212
- package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
- package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessage.js +0 -10
- package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -15
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/InfoMessage.js +0 -9
- package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -111
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -53
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolMessage.js +0 -61
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserMessage.js +0 -9
- package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
- package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
- package/dist/src/ui/components/shared/MaxSizedBox.js +0 -384
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -41
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -52
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -184
- package/dist/src/ui/components/shared/text-buffer.js +0 -1010
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -8
- package/dist/src/ui/constants.js +0 -12
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -43
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -33
- package/dist/src/ui/contexts/SessionContext.js +0 -49
- package/dist/src/ui/contexts/SessionContext.js.map +0 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
- package/dist/src/ui/contexts/StreamingContext.js +0 -15
- package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
- package/dist/src/ui/editors/editorSettingsManager.js +0 -54
- package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
- package/dist/src/ui/hooks/atCommandProcessor.js +0 -310
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -16
- package/dist/src/ui/hooks/shellCommandProcessor.js +0 -261
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -27
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -1050
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
- package/dist/src/ui/hooks/useAuthCommand.js +0 -54
- package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -37
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
- package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
- package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +0 -21
- package/dist/src/ui/hooks/useCompletion.js +0 -372
- package/dist/src/ui/hooks/useCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
- package/dist/src/ui/hooks/useConsoleMessages.js +0 -60
- package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
- package/dist/src/ui/hooks/useEditorSettings.js +0 -43
- package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -23
- package/dist/src/ui/hooks/useGeminiStream.js +0 -518
- package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.js +0 -61
- package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
- package/dist/src/ui/hooks/useHistoryManager.js +0 -72
- package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistory.js +0 -84
- package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +0 -29
- package/dist/src/ui/hooks/useKeypress.js +0 -86
- package/dist/src/ui/hooks/useKeypress.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useLogger.d.ts +0 -10
- package/dist/src/ui/hooks/useLogger.js +0 -29
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -189
- package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
- package/dist/src/ui/hooks/usePrivacySettings.js +0 -115
- package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -33
- package/dist/src/ui/hooks/useReactToolScheduler.js +0 -186
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +0 -11
- package/dist/src/ui/hooks/useShellHistory.js +0 -89
- package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
- package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
- package/dist/src/ui/hooks/useStateAndRef.js +0 -26
- package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
- package/dist/src/ui/hooks/useTerminalSize.js +0 -27
- package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
- package/dist/src/ui/hooks/useThemeCommand.js +0 -78
- package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.d.ts +0 -12
- package/dist/src/ui/hooks/useTimer.js +0 -58
- package/dist/src/ui/hooks/useTimer.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -40
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -17
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -17
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
- package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
- package/dist/src/ui/themes/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/ansi-light.js +0 -139
- package/dist/src/ui/themes/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/ansi.d.ts +0 -7
- package/dist/src/ui/themes/ansi.js +0 -149
- package/dist/src/ui/themes/ansi.js.map +0 -1
- package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
- package/dist/src/ui/themes/atom-one-dark.js +0 -136
- package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/ayu-light.d.ts +0 -7
- package/dist/src/ui/themes/ayu-light.js +0 -128
- package/dist/src/ui/themes/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/ayu.d.ts +0 -7
- package/dist/src/ui/themes/ayu.js +0 -102
- package/dist/src/ui/themes/ayu.js.map +0 -1
- package/dist/src/ui/themes/default-light.d.ts +0 -7
- package/dist/src/ui/themes/default-light.js +0 -100
- package/dist/src/ui/themes/default-light.js.map +0 -1
- package/dist/src/ui/themes/default.d.ts +0 -7
- package/dist/src/ui/themes/default.js +0 -143
- package/dist/src/ui/themes/default.js.map +0 -1
- package/dist/src/ui/themes/dracula.d.ts +0 -7
- package/dist/src/ui/themes/dracula.js +0 -113
- package/dist/src/ui/themes/dracula.js.map +0 -1
- package/dist/src/ui/themes/github-dark.d.ts +0 -7
- package/dist/src/ui/themes/github-dark.js +0 -136
- package/dist/src/ui/themes/github-dark.js.map +0 -1
- package/dist/src/ui/themes/github-light.d.ts +0 -7
- package/dist/src/ui/themes/github-light.js +0 -138
- package/dist/src/ui/themes/github-light.js.map +0 -1
- package/dist/src/ui/themes/googlecode.d.ts +0 -7
- package/dist/src/ui/themes/googlecode.js +0 -135
- package/dist/src/ui/themes/googlecode.js.map +0 -1
- package/dist/src/ui/themes/no-color.d.ts +0 -7
- package/dist/src/ui/themes/no-color.js +0 -84
- package/dist/src/ui/themes/no-color.js.map +0 -1
- package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
- package/dist/src/ui/themes/shades-of-purple.js +0 -302
- package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -33
- package/dist/src/ui/themes/theme-manager.js +0 -109
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -67
- package/dist/src/ui/themes/theme.js +0 -304
- package/dist/src/ui/themes/theme.js.map +0 -1
- package/dist/src/ui/themes/xcode.d.ts +0 -7
- package/dist/src/ui/themes/xcode.js +0 -143
- package/dist/src/ui/themes/xcode.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -172
- package/dist/src/ui/types.js +0 -43
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -14
- package/dist/src/ui/utils/CodeColorizer.js +0 -97
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -104
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
- package/dist/src/ui/utils/MarkdownDisplay.js +0 -197
- package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
- package/dist/src/ui/utils/TableRenderer.js +0 -84
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -22
- package/dist/src/ui/utils/commandUtils.js +0 -25
- package/dist/src/ui/utils/commandUtils.js.map +0 -1
- package/dist/src/ui/utils/computeStats.d.ts +0 -10
- package/dist/src/ui/utils/computeStats.js +0 -55
- package/dist/src/ui/utils/computeStats.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.d.ts +0 -17
- package/dist/src/ui/utils/displayUtils.js +0 -24
- package/dist/src/ui/utils/displayUtils.js.map +0 -1
- package/dist/src/ui/utils/errorParsing.d.ts +0 -15
- package/dist/src/ui/utils/errorParsing.js +0 -79
- package/dist/src/ui/utils/errorParsing.js.map +0 -1
- package/dist/src/ui/utils/formatters.d.ts +0 -13
- package/dist/src/ui/utils/formatters.js +0 -56
- package/dist/src/ui/utils/formatters.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.js +0 -110
- package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
- package/dist/src/ui/utils/textUtils.d.ts +0 -22
- package/dist/src/ui/utils/textUtils.js +0 -58
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.js +0 -36
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -6
- package/dist/src/utils/cleanup.js +0 -19
- package/dist/src/utils/cleanup.js.map +0 -1
- package/dist/src/utils/package.d.ts +0 -12
- package/dist/src/utils/package.js +0 -24
- package/dist/src/utils/package.js.map +0 -1
- package/dist/src/utils/readStdin.d.ts +0 -6
- package/dist/src/utils/readStdin.js +0 -34
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/sandbox.d.ts +0 -7
- package/dist/src/utils/sandbox.js +0 -680
- package/dist/src/utils/sandbox.js.map +0 -1
- package/dist/src/utils/startupWarnings.d.ts +0 -6
- package/dist/src/utils/startupWarnings.js +0 -40
- package/dist/src/utils/startupWarnings.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.js +0 -33
- package/dist/src/utils/userStartupWarnings.js.map +0 -1
- package/dist/src/utils/version.d.ts +0 -6
- package/dist/src/utils/version.js +0 -11
- package/dist/src/utils/version.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/{dist/src/utils → bundle}/sandbox-macos-permissive-closed.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-permissive-open.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-closed.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-open.sb +0 -0
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
;; deny all outbound network traffic EXCEPT through proxy on localhost:8877
|
|
26
26
|
;; set `GEMINI_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
|
|
27
|
-
;; proxy must listen on :::8877 (see
|
|
27
|
+
;; proxy must listen on :::8877 (see scripts/example-proxy.js)
|
|
28
28
|
(deny network-outbound)
|
|
29
29
|
(allow network-outbound (remote tcp "localhost:8877"))
|
|
30
30
|
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
|
|
89
89
|
;; allow outbound network traffic through proxy on localhost:8877
|
|
90
90
|
;; set `GEMINI_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
|
|
91
|
-
;; proxy must listen on :::8877 (see
|
|
91
|
+
;; proxy must listen on :::8877 (see scripts/example-proxy.js)
|
|
92
92
|
(allow network-outbound (remote tcp "localhost:8877"))
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"command": {
|
|
5
|
+
"description": "Exact bash command to execute as `bash -c <command>`",
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"description": {
|
|
9
|
+
"description": "Brief description of the command for the user. Be specific and concise. Ideally a single sentence. Can be up to 3 sentences for clarity. No line breaks.",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"directory": {
|
|
13
|
+
"description": "(OPTIONAL) Directory to run the command in, if not the project root directory. Must be relative to the project root directory and must already exist.",
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": ["command"]
|
|
18
|
+
}
|
package/bundle/shell.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
This tool executes a given shell command as `bash -c <command>`.
|
|
2
|
+
Command can start background processes using `&`.
|
|
3
|
+
Command is executed as a subprocess that leads its own process group.
|
|
4
|
+
Command process group can be terminated as `kill -- -PGID` or signaled as `kill -s SIGNAL -- -PGID`.
|
|
5
|
+
|
|
6
|
+
The following information is returned:
|
|
7
|
+
|
|
8
|
+
Command: Executed command.
|
|
9
|
+
Directory: Directory (relative to project root) where command was executed, or `(root)`.
|
|
10
|
+
Stdout: Output on stdout stream. Can be `(empty)` or partial on error and for any unwaited background processes.
|
|
11
|
+
Stderr: Output on stderr stream. Can be `(empty)` or partial on error and for any unwaited background processes.
|
|
12
|
+
Error: Error or `(none)` if no error was reported for the subprocess.
|
|
13
|
+
Exit Code: Exit code or `(none)` if terminated by signal.
|
|
14
|
+
Signal: Signal number or `(none)` if no signal was received.
|
|
15
|
+
Background PIDs: List of background processes started or `(none)`.
|
|
16
|
+
Process Group PGID: Process group started or `(none)`
|
package/package.json
CHANGED
|
@@ -1,80 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google/gemini-cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Gemini CLI",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/google-gemini/gemini-cli.git"
|
|
8
|
-
},
|
|
3
|
+
"version": "0.1.1",
|
|
9
4
|
"type": "module",
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
"workspaces": [
|
|
6
|
+
"packages/*"
|
|
7
|
+
],
|
|
8
|
+
"repository": "google-gemini/gemini-cli",
|
|
9
|
+
"config": {
|
|
10
|
+
"sandboxImageUri": "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.1.1"
|
|
13
11
|
},
|
|
14
12
|
"scripts": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
13
|
+
"generate": "node scripts/generate-git-commit-info.js",
|
|
14
|
+
"build": "node scripts/build.js",
|
|
15
|
+
"build:sandbox": "node scripts/build_sandbox.js",
|
|
16
|
+
"build:all": "npm run build && npm run build:sandbox",
|
|
17
|
+
"clean": "node scripts/clean.js",
|
|
18
|
+
"prepare": "npm run bundle",
|
|
19
|
+
"test": "npm run test --workspaces",
|
|
20
|
+
"test:ci": "npm run test:ci --workspaces --if-present",
|
|
21
|
+
"test:e2e": "npm run test:integration:sandbox:none -- --verbose --keep-output",
|
|
22
|
+
"test:integration:all": "npm run test:integration:sandbox:none && npm run test:integration:sandbox:docker && npm run test:integration:sandbox:podman",
|
|
23
|
+
"test:integration:sandbox:none": "GEMINI_SANDBOX=false node integration-tests/run-tests.js",
|
|
24
|
+
"test:integration:sandbox:docker": "GEMINI_SANDBOX=docker node integration-tests/run-tests.js",
|
|
25
|
+
"test:integration:sandbox:podman": "GEMINI_SANDBOX=podman node integration-tests/run-tests.js",
|
|
26
|
+
"start": "node scripts/start.js",
|
|
27
|
+
"debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js",
|
|
28
|
+
"lint:fix": "eslint . --fix && eslint integration-tests --fix",
|
|
29
|
+
"lint": "eslint . --ext .ts,.tsx && eslint integration-tests",
|
|
30
|
+
"lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 && eslint integration-tests --max-warnings 0",
|
|
31
|
+
"typecheck": "npm run typecheck --workspaces --if-present",
|
|
19
32
|
"format": "prettier --write .",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
33
|
+
"preflight": "npm run clean && npm ci && npm run format && npm run lint:ci && npm run build && npm run typecheck && npm run test:ci",
|
|
34
|
+
"auth:npm": "npx google-artifactregistry-auth",
|
|
35
|
+
"auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",
|
|
36
|
+
"auth": "npm run auth:npm && npm run auth:docker",
|
|
37
|
+
"prerelease:dev": "npm run prerelease:version --workspaces && npm run prerelease:deps --workspaces",
|
|
38
|
+
"bundle": "npm run generate && node esbuild.config.js && node scripts/copy_bundle_assets.js",
|
|
39
|
+
"build:cli": "npm run build --workspace packages/cli",
|
|
40
|
+
"build:core": "npm run build --workspace packages/core",
|
|
41
|
+
"build:packages": "npm run build:core && npm run build:cli",
|
|
42
|
+
"build:docker": "node scripts/build_sandbox.js -s",
|
|
43
|
+
"prepare:cli-packagejson": "node scripts/prepare-cli-packagejson.js",
|
|
44
|
+
"publish:sandbox": "node scripts/publish-sandbox.js",
|
|
45
|
+
"publish:npm": "npm publish --workspaces ${NPM_PUBLISH_TAG:+--tag=$NPM_PUBLISH_TAG} ${NPM_DRY_RUN:+--dry-run}",
|
|
46
|
+
"publish:release": "npm run build:packages && npm run prepare:cli-packagejson && npm run build:docker && npm run publish:sandbox && npm run publish:npm",
|
|
47
|
+
"telemetry": "node scripts/telemetry.js",
|
|
48
|
+
"start:gcp": "concurrently --raw --kill-others \"npm run telemetry -- --target=gcp\" \"npm start\""
|
|
49
|
+
},
|
|
50
|
+
"bin": {
|
|
51
|
+
"gemini": "bundle/gemini.js"
|
|
23
52
|
},
|
|
24
53
|
"files": [
|
|
25
|
-
"
|
|
54
|
+
"bundle/",
|
|
55
|
+
"README.md",
|
|
56
|
+
"LICENSE"
|
|
26
57
|
],
|
|
27
|
-
"config": {
|
|
28
|
-
"sandboxImageUri": "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.1.0-development.2"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@google/gemini-cli-core": "0.1.0-development.2",
|
|
32
|
-
"@types/update-notifier": "^6.0.8",
|
|
33
|
-
"command-exists": "^1.2.9",
|
|
34
|
-
"diff": "^7.0.0",
|
|
35
|
-
"dotenv": "^16.6.1",
|
|
36
|
-
"gaxios": "^6.1.1",
|
|
37
|
-
"glob": "^10.4.1",
|
|
38
|
-
"highlight.js": "^11.11.1",
|
|
39
|
-
"ink": "^6.0.1",
|
|
40
|
-
"ink-big-text": "^2.0.0",
|
|
41
|
-
"ink-gradient": "^3.0.0",
|
|
42
|
-
"ink-link": "^4.1.0",
|
|
43
|
-
"ink-select-input": "^6.2.0",
|
|
44
|
-
"ink-spinner": "^5.0.0",
|
|
45
|
-
"ink-text-input": "^6.0.0",
|
|
46
|
-
"lowlight": "^3.3.0",
|
|
47
|
-
"mime-types": "^2.1.4",
|
|
48
|
-
"open": "^10.1.2",
|
|
49
|
-
"react": "^19.1.0",
|
|
50
|
-
"read-package-up": "^11.0.0",
|
|
51
|
-
"shell-quote": "^1.8.2",
|
|
52
|
-
"string-width": "^7.1.0",
|
|
53
|
-
"strip-ansi": "^7.1.0",
|
|
54
|
-
"strip-json-comments": "^3.1.1",
|
|
55
|
-
"update-notifier": "^7.3.1",
|
|
56
|
-
"yargs": "^17.7.2"
|
|
57
|
-
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@types/
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
59
|
+
"@types/micromatch": "^4.0.9",
|
|
60
|
+
"@types/mime-types": "^2.1.4",
|
|
61
|
+
"@types/minimatch": "^5.1.2",
|
|
62
|
+
"@vitest/coverage-v8": "^3.1.1",
|
|
63
|
+
"concurrently": "^9.2.0",
|
|
64
|
+
"cross-env": "^7.0.3",
|
|
65
|
+
"esbuild": "^0.25.0",
|
|
66
|
+
"eslint": "^9.24.0",
|
|
67
|
+
"eslint-config-prettier": "^10.1.2",
|
|
68
|
+
"eslint-plugin-import": "^2.31.0",
|
|
69
|
+
"eslint-plugin-license-header": "^0.8.0",
|
|
70
|
+
"eslint-plugin-react": "^7.37.5",
|
|
71
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
72
|
+
"glob": "^10.4.5",
|
|
73
|
+
"globals": "^16.0.0",
|
|
74
|
+
"json": "^11.0.0",
|
|
75
|
+
"lodash": "^4.17.21",
|
|
76
|
+
"memfs": "^4.17.2",
|
|
77
|
+
"prettier": "^3.5.3",
|
|
78
|
+
"react-devtools-core": "^4.28.5",
|
|
79
|
+
"typescript-eslint": "^8.30.1",
|
|
80
|
+
"yargs": "^17.7.2"
|
|
76
81
|
},
|
|
77
|
-
"
|
|
78
|
-
"
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"@google/gemini-cli": "^0.1.1"
|
|
79
84
|
}
|
|
80
85
|
}
|
package/dist/.last_build
DELETED
|
File without changes
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2025 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
import './src/gemini.js';
|
|
8
|
-
import { main } from './src/gemini.js';
|
|
9
|
-
// --- Global Entry Point ---
|
|
10
|
-
main().catch((error) => {
|
|
11
|
-
console.error('An unexpected critical error occurred:');
|
|
12
|
-
if (error instanceof Error) {
|
|
13
|
-
console.error(error.stack);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
console.error(String(error));
|
|
17
|
-
}
|
|
18
|
-
process.exit(1);
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAEH,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,6BAA6B;AAC7B,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;IACxD,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/package.json
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@google/gemini-cli",
|
|
3
|
-
"version": "0.1.0-development.2",
|
|
4
|
-
"description": "Gemini CLI",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/google-gemini/gemini-cli.git"
|
|
8
|
-
},
|
|
9
|
-
"type": "module",
|
|
10
|
-
"main": "dist/index.js",
|
|
11
|
-
"bin": {
|
|
12
|
-
"gemini": "dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "node ../../scripts/build_package.js",
|
|
16
|
-
"start": "node dist/index.js",
|
|
17
|
-
"debug": "node --inspect-brk dist/index.js",
|
|
18
|
-
"lint": "eslint . --ext .ts,.tsx",
|
|
19
|
-
"format": "prettier --write .",
|
|
20
|
-
"test": "vitest run",
|
|
21
|
-
"test:ci": "vitest run --coverage",
|
|
22
|
-
"typecheck": "tsc --noEmit"
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
|
-
"config": {
|
|
28
|
-
"sandboxImageUri": "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.1.0-development.2"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@google/gemini-cli-core": "file:../core",
|
|
32
|
-
"@types/update-notifier": "^6.0.8",
|
|
33
|
-
"command-exists": "^1.2.9",
|
|
34
|
-
"diff": "^7.0.0",
|
|
35
|
-
"dotenv": "^16.6.1",
|
|
36
|
-
"gaxios": "^6.1.1",
|
|
37
|
-
"glob": "^10.4.1",
|
|
38
|
-
"highlight.js": "^11.11.1",
|
|
39
|
-
"ink": "^6.0.1",
|
|
40
|
-
"ink-big-text": "^2.0.0",
|
|
41
|
-
"ink-gradient": "^3.0.0",
|
|
42
|
-
"ink-link": "^4.1.0",
|
|
43
|
-
"ink-select-input": "^6.2.0",
|
|
44
|
-
"ink-spinner": "^5.0.0",
|
|
45
|
-
"ink-text-input": "^6.0.0",
|
|
46
|
-
"lowlight": "^3.3.0",
|
|
47
|
-
"mime-types": "^2.1.4",
|
|
48
|
-
"open": "^10.1.2",
|
|
49
|
-
"react": "^19.1.0",
|
|
50
|
-
"read-package-up": "^11.0.0",
|
|
51
|
-
"shell-quote": "^1.8.2",
|
|
52
|
-
"string-width": "^7.1.0",
|
|
53
|
-
"strip-ansi": "^7.1.0",
|
|
54
|
-
"strip-json-comments": "^3.1.1",
|
|
55
|
-
"update-notifier": "^7.3.1",
|
|
56
|
-
"yargs": "^17.7.2"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@babel/runtime": "^7.27.6",
|
|
60
|
-
"@testing-library/react": "^16.3.0",
|
|
61
|
-
"@types/command-exists": "^1.2.3",
|
|
62
|
-
"@types/diff": "^7.0.2",
|
|
63
|
-
"@types/dotenv": "^6.1.1",
|
|
64
|
-
"@types/node": "^20.11.24",
|
|
65
|
-
"@types/react": "^19.1.8",
|
|
66
|
-
"@types/react-dom": "^19.1.6",
|
|
67
|
-
"@types/semver": "^7.7.0",
|
|
68
|
-
"@types/shell-quote": "^1.7.5",
|
|
69
|
-
"@types/yargs": "^17.0.32",
|
|
70
|
-
"ink-testing-library": "^4.0.0",
|
|
71
|
-
"jsdom": "^26.1.0",
|
|
72
|
-
"pretty-format": "^30.0.2",
|
|
73
|
-
"react-dom": "^19.1.0",
|
|
74
|
-
"typescript": "^5.3.3",
|
|
75
|
-
"vitest": "^3.1.1"
|
|
76
|
-
},
|
|
77
|
-
"engines": {
|
|
78
|
-
"node": ">=20"
|
|
79
|
-
}
|
|
80
|
-
}
|
package/dist/src/config/auth.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { AuthType } from '@google/gemini-cli-core';
|
|
7
|
-
import { loadEnvironment } from './settings.js';
|
|
8
|
-
export const validateAuthMethod = (authMethod) => {
|
|
9
|
-
loadEnvironment();
|
|
10
|
-
if (authMethod === AuthType.LOGIN_WITH_GOOGLE ||
|
|
11
|
-
authMethod === AuthType.CLOUD_SHELL) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
if (authMethod === AuthType.USE_GEMINI) {
|
|
15
|
-
if (!process.env.GEMINI_API_KEY) {
|
|
16
|
-
return 'GEMINI_API_KEY environment variable not found. Add that to your .env and try again, no reload needed!';
|
|
17
|
-
}
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
if (authMethod === AuthType.USE_VERTEX_AI) {
|
|
21
|
-
const hasVertexProjectLocationConfig = !!process.env.GOOGLE_CLOUD_PROJECT && !!process.env.GOOGLE_CLOUD_LOCATION;
|
|
22
|
-
const hasGoogleApiKey = !!process.env.GOOGLE_API_KEY;
|
|
23
|
-
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
24
|
-
return ('Must specify GOOGLE_GENAI_USE_VERTEXAI=true and either:\n' +
|
|
25
|
-
'• GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION environment variables.\n' +
|
|
26
|
-
'• GOOGLE_API_KEY environment variable (if using express mode).\n' +
|
|
27
|
-
'Update your .env and try again, no reload needed!');
|
|
28
|
-
}
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
return 'Invalid auth method selected.';
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/config/auth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,UAAkB,EAAiB,EAAE;IACtE,eAAe,EAAE,CAAC;IAClB,IACE,UAAU,KAAK,QAAQ,CAAC,iBAAiB;QACzC,UAAU,KAAK,QAAQ,CAAC,WAAW,EACnC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,UAAU,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC;QACvC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC;YAChC,OAAO,uGAAuG,CAAC;QACjH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,UAAU,KAAK,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC1C,MAAM,8BAA8B,GAClC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;QAC5E,MAAM,eAAe,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;QACrD,IAAI,CAAC,8BAA8B,IAAI,CAAC,eAAe,EAAE,CAAC;YACxD,OAAO,CACL,2DAA2D;gBAC3D,2EAA2E;gBAC3E,kEAAkE;gBAClE,mDAAmD,CACpD,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,+BAA+B,CAAC;AACzC,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Config, FileDiscoveryService } from '@google/gemini-cli-core';
|
|
7
|
-
import { Settings } from './settings.js';
|
|
8
|
-
import { Extension } from './extension.js';
|
|
9
|
-
export declare function loadHierarchicalGeminiMemory(currentWorkingDirectory: string, debugMode: boolean, fileService: FileDiscoveryService, extensionContextFilePaths?: string[]): Promise<{
|
|
10
|
-
memoryContent: string;
|
|
11
|
-
fileCount: number;
|
|
12
|
-
}>;
|
|
13
|
-
export declare function loadCliConfig(settings: Settings, extensions: Extension[], sessionId: string): Promise<Config>;
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import yargs from 'yargs/yargs';
|
|
7
|
-
import { hideBin } from 'yargs/helpers';
|
|
8
|
-
import process from 'node:process';
|
|
9
|
-
import { Config, loadServerHierarchicalMemory, setGeminiMdFilename as setServerGeminiMdFilename, getCurrentGeminiMdFilename, ApprovalMode, DEFAULT_GEMINI_MODEL, DEFAULT_GEMINI_EMBEDDING_MODEL, FileDiscoveryService, } from '@google/gemini-cli-core';
|
|
10
|
-
import { getCliVersion } from '../utils/version.js';
|
|
11
|
-
import { loadSandboxConfig } from './sandboxConfig.js';
|
|
12
|
-
// Simple console logger for now - replace with actual logger if available
|
|
13
|
-
const logger = {
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
-
debug: (...args) => console.debug('[DEBUG]', ...args),
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
|
-
warn: (...args) => console.warn('[WARN]', ...args),
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
-
error: (...args) => console.error('[ERROR]', ...args),
|
|
20
|
-
};
|
|
21
|
-
async function parseArguments() {
|
|
22
|
-
const argv = await yargs(hideBin(process.argv))
|
|
23
|
-
.scriptName('gemini')
|
|
24
|
-
.usage('$0 [options]', 'Gemini CLI - Launch an interactive CLI, use -p/--prompt for non-interactive mode')
|
|
25
|
-
.option('model', {
|
|
26
|
-
alias: 'm',
|
|
27
|
-
type: 'string',
|
|
28
|
-
description: `Model`,
|
|
29
|
-
default: process.env.GEMINI_MODEL || DEFAULT_GEMINI_MODEL,
|
|
30
|
-
})
|
|
31
|
-
.option('prompt', {
|
|
32
|
-
alias: 'p',
|
|
33
|
-
type: 'string',
|
|
34
|
-
description: 'Prompt. Appended to input on stdin (if any).',
|
|
35
|
-
})
|
|
36
|
-
.option('sandbox', {
|
|
37
|
-
alias: 's',
|
|
38
|
-
type: 'boolean',
|
|
39
|
-
description: 'Run in sandbox?',
|
|
40
|
-
})
|
|
41
|
-
.option('sandbox-image', {
|
|
42
|
-
type: 'string',
|
|
43
|
-
description: 'Sandbox image URI.',
|
|
44
|
-
})
|
|
45
|
-
.option('debug', {
|
|
46
|
-
alias: 'd',
|
|
47
|
-
type: 'boolean',
|
|
48
|
-
description: 'Run in debug mode?',
|
|
49
|
-
default: false,
|
|
50
|
-
})
|
|
51
|
-
.option('all_files', {
|
|
52
|
-
alias: 'a',
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
description: 'Include ALL files in context?',
|
|
55
|
-
default: false,
|
|
56
|
-
})
|
|
57
|
-
.option('show_memory_usage', {
|
|
58
|
-
type: 'boolean',
|
|
59
|
-
description: 'Show memory usage in status bar',
|
|
60
|
-
default: false,
|
|
61
|
-
})
|
|
62
|
-
.option('yolo', {
|
|
63
|
-
alias: 'y',
|
|
64
|
-
type: 'boolean',
|
|
65
|
-
description: 'Automatically accept all actions (aka YOLO mode, see https://www.youtube.com/watch?v=xvFZjo5PgG0 for more details)?',
|
|
66
|
-
default: false,
|
|
67
|
-
})
|
|
68
|
-
.option('telemetry', {
|
|
69
|
-
type: 'boolean',
|
|
70
|
-
description: 'Enable telemetry? This flag specifically controls if telemetry is sent. Other --telemetry-* flags set specific values but do not enable telemetry on their own.',
|
|
71
|
-
})
|
|
72
|
-
.option('telemetry-target', {
|
|
73
|
-
type: 'string',
|
|
74
|
-
choices: ['local', 'gcp'],
|
|
75
|
-
description: 'Set the telemetry target (local or gcp). Overrides settings files.',
|
|
76
|
-
})
|
|
77
|
-
.option('telemetry-otlp-endpoint', {
|
|
78
|
-
type: 'string',
|
|
79
|
-
description: 'Set the OTLP endpoint for telemetry. Overrides environment variables and settings files.',
|
|
80
|
-
})
|
|
81
|
-
.option('telemetry-log-prompts', {
|
|
82
|
-
type: 'boolean',
|
|
83
|
-
description: 'Enable or disable logging of user prompts for telemetry. Overrides settings files.',
|
|
84
|
-
})
|
|
85
|
-
.option('checkpointing', {
|
|
86
|
-
alias: 'c',
|
|
87
|
-
type: 'boolean',
|
|
88
|
-
description: 'Enables checkpointing of file edits',
|
|
89
|
-
default: false,
|
|
90
|
-
})
|
|
91
|
-
.option('allowed-mcp-server-names', {
|
|
92
|
-
type: 'string',
|
|
93
|
-
description: 'Allowed MCP server names',
|
|
94
|
-
})
|
|
95
|
-
.version(await getCliVersion()) // This will enable the --version flag based on package.json
|
|
96
|
-
.alias('v', 'version')
|
|
97
|
-
.help()
|
|
98
|
-
.alias('h', 'help')
|
|
99
|
-
.strict().argv;
|
|
100
|
-
return argv;
|
|
101
|
-
}
|
|
102
|
-
// This function is now a thin wrapper around the server's implementation.
|
|
103
|
-
// It's kept in the CLI for now as App.tsx directly calls it for memory refresh.
|
|
104
|
-
// TODO: Consider if App.tsx should get memory via a server call or if Config should refresh itself.
|
|
105
|
-
export async function loadHierarchicalGeminiMemory(currentWorkingDirectory, debugMode, fileService, extensionContextFilePaths = []) {
|
|
106
|
-
if (debugMode) {
|
|
107
|
-
logger.debug(`CLI: Delegating hierarchical memory load to server for CWD: ${currentWorkingDirectory}`);
|
|
108
|
-
}
|
|
109
|
-
// Directly call the server function.
|
|
110
|
-
// The server function will use its own homedir() for the global path.
|
|
111
|
-
return loadServerHierarchicalMemory(currentWorkingDirectory, debugMode, fileService, extensionContextFilePaths);
|
|
112
|
-
}
|
|
113
|
-
export async function loadCliConfig(settings, extensions, sessionId) {
|
|
114
|
-
const argv = await parseArguments();
|
|
115
|
-
const debugMode = argv.debug || false;
|
|
116
|
-
// Set the context filename in the server's memoryTool module BEFORE loading memory
|
|
117
|
-
// TODO(b/343434939): This is a bit of a hack. The contextFileName should ideally be passed
|
|
118
|
-
// directly to the Config constructor in core, and have core handle setGeminiMdFilename.
|
|
119
|
-
// However, loadHierarchicalGeminiMemory is called *before* createServerConfig.
|
|
120
|
-
if (settings.contextFileName) {
|
|
121
|
-
setServerGeminiMdFilename(settings.contextFileName);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
// Reset to default if not provided in settings.
|
|
125
|
-
setServerGeminiMdFilename(getCurrentGeminiMdFilename());
|
|
126
|
-
}
|
|
127
|
-
const extensionContextFilePaths = extensions.flatMap((e) => e.contextFiles);
|
|
128
|
-
const fileService = new FileDiscoveryService(process.cwd());
|
|
129
|
-
// Call the (now wrapper) loadHierarchicalGeminiMemory which calls the server's version
|
|
130
|
-
const { memoryContent, fileCount } = await loadHierarchicalGeminiMemory(process.cwd(), debugMode, fileService, extensionContextFilePaths);
|
|
131
|
-
let mcpServers = mergeMcpServers(settings, extensions);
|
|
132
|
-
const excludeTools = mergeExcludeTools(settings, extensions);
|
|
133
|
-
if (argv['allowed-mcp-server-names']) {
|
|
134
|
-
const allowedNames = new Set(argv['allowed-mcp-server-names'].split(',').filter(Boolean));
|
|
135
|
-
if (allowedNames.size > 0) {
|
|
136
|
-
mcpServers = Object.fromEntries(Object.entries(mcpServers).filter(([key]) => allowedNames.has(key)));
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
mcpServers = {};
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
const sandboxConfig = await loadSandboxConfig(settings, argv);
|
|
143
|
-
return new Config({
|
|
144
|
-
sessionId,
|
|
145
|
-
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
|
|
146
|
-
sandbox: sandboxConfig,
|
|
147
|
-
targetDir: process.cwd(),
|
|
148
|
-
debugMode,
|
|
149
|
-
question: argv.prompt || '',
|
|
150
|
-
fullContext: argv.all_files || false,
|
|
151
|
-
coreTools: settings.coreTools || undefined,
|
|
152
|
-
excludeTools,
|
|
153
|
-
toolDiscoveryCommand: settings.toolDiscoveryCommand,
|
|
154
|
-
toolCallCommand: settings.toolCallCommand,
|
|
155
|
-
mcpServerCommand: settings.mcpServerCommand,
|
|
156
|
-
mcpServers,
|
|
157
|
-
userMemory: memoryContent,
|
|
158
|
-
geminiMdFileCount: fileCount,
|
|
159
|
-
approvalMode: argv.yolo || false ? ApprovalMode.YOLO : ApprovalMode.DEFAULT,
|
|
160
|
-
showMemoryUsage: argv.show_memory_usage || settings.showMemoryUsage || false,
|
|
161
|
-
accessibility: settings.accessibility,
|
|
162
|
-
telemetry: {
|
|
163
|
-
enabled: argv.telemetry ?? settings.telemetry?.enabled,
|
|
164
|
-
target: (argv.telemetryTarget ??
|
|
165
|
-
settings.telemetry?.target),
|
|
166
|
-
otlpEndpoint: argv.telemetryOtlpEndpoint ??
|
|
167
|
-
process.env.OTEL_EXPORTER_OTLP_ENDPOINT ??
|
|
168
|
-
settings.telemetry?.otlpEndpoint,
|
|
169
|
-
logPrompts: argv.telemetryLogPrompts ?? settings.telemetry?.logPrompts,
|
|
170
|
-
},
|
|
171
|
-
usageStatisticsEnabled: settings.usageStatisticsEnabled ?? true,
|
|
172
|
-
// Git-aware file filtering settings
|
|
173
|
-
fileFiltering: {
|
|
174
|
-
respectGitIgnore: settings.fileFiltering?.respectGitIgnore,
|
|
175
|
-
enableRecursiveFileSearch: settings.fileFiltering?.enableRecursiveFileSearch,
|
|
176
|
-
},
|
|
177
|
-
checkpointing: argv.checkpointing || settings.checkpointing?.enabled,
|
|
178
|
-
proxy: process.env.HTTPS_PROXY ||
|
|
179
|
-
process.env.https_proxy ||
|
|
180
|
-
process.env.HTTP_PROXY ||
|
|
181
|
-
process.env.http_proxy,
|
|
182
|
-
cwd: process.cwd(),
|
|
183
|
-
fileDiscoveryService: fileService,
|
|
184
|
-
bugCommand: settings.bugCommand,
|
|
185
|
-
model: argv.model,
|
|
186
|
-
extensionContextFilePaths,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
function mergeMcpServers(settings, extensions) {
|
|
190
|
-
const mcpServers = { ...(settings.mcpServers || {}) };
|
|
191
|
-
for (const extension of extensions) {
|
|
192
|
-
Object.entries(extension.config.mcpServers || {}).forEach(([key, server]) => {
|
|
193
|
-
if (mcpServers[key]) {
|
|
194
|
-
logger.warn(`Skipping extension MCP config for server with key "${key}" as it already exists.`);
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
mcpServers[key] = server;
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
return mcpServers;
|
|
201
|
-
}
|
|
202
|
-
function mergeExcludeTools(settings, extensions) {
|
|
203
|
-
const allExcludeTools = new Set(settings.excludeTools || []);
|
|
204
|
-
for (const extension of extensions) {
|
|
205
|
-
for (const tool of extension.config.excludeTools || []) {
|
|
206
|
-
allExcludeTools.add(tool);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
return [...allExcludeTools];
|
|
210
|
-
}
|
|
211
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EACL,MAAM,EACN,4BAA4B,EAC5B,mBAAmB,IAAI,yBAAyB,EAChD,0BAA0B,EAC1B,YAAY,EACZ,oBAAoB,EACpB,8BAA8B,EAC9B,oBAAoB,GAErB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,0EAA0E;AAC1E,MAAM,MAAM,GAAG;IACb,8DAA8D;IAC9D,KAAK,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;IAC5D,8DAA8D;IAC9D,IAAI,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC;IACzD,8DAA8D;IAC9D,KAAK,EAAE,CAAC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AE,CAAC;gBACpB,MAAM,CAAC,IAAI,CACT,sDAAsD,GAAG,yBAAyB,CACnF,CAAC;gBACF,OAAO;YACT,CAAC;YACD,UAAU,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;QAC3B,CAAC,CACF,CAAC;IACJ,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,iBAAiB,CACxB,QAAkB,EAClB,UAAuB;IAEvB,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;IAC7D,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,MAAM,CAAC,YAAY,IAAI,EAAE,EAAE,CAAC;YACvD,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,OAAO,CAAC,GAAG,eAAe,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { MCPServerConfig } from '@google/gemini-cli-core';
|
|
7
|
-
export declare const EXTENSIONS_DIRECTORY_NAME: string;
|
|
8
|
-
export declare const EXTENSIONS_CONFIG_FILENAME = "gemini-extension.json";
|
|
9
|
-
export interface Extension {
|
|
10
|
-
config: ExtensionConfig;
|
|
11
|
-
contextFiles: string[];
|
|
12
|
-
}
|
|
13
|
-
export interface ExtensionConfig {
|
|
14
|
-
name: string;
|
|
15
|
-
version: string;
|
|
16
|
-
mcpServers?: Record<string, MCPServerConfig>;
|
|
17
|
-
contextFileName?: string | string[];
|
|
18
|
-
excludeTools?: string[];
|
|
19
|
-
}
|
|
20
|
-
export declare function loadExtensions(workspaceDir: string): Extension[];
|