@google/gemini-cli 0.0.3-preview.4 → 0.0.4
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 +2 -2
- package/README.md +12 -2
- package/dist/package.json +6 -7
- package/dist/src/commands/extensions/disable.d.ts +1 -1
- package/dist/src/commands/extensions/disable.js +3 -3
- package/dist/src/commands/extensions/disable.js.map +1 -1
- package/dist/src/commands/extensions/enable.d.ts +1 -1
- package/dist/src/commands/extensions/enable.js +6 -8
- package/dist/src/commands/extensions/enable.js.map +1 -1
- package/dist/src/commands/extensions/examples/context/GEMINI.md +8 -0
- package/dist/src/commands/extensions/examples/context/gemini-extension.json +5 -0
- package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +6 -0
- package/dist/src/commands/extensions/examples/custom-commands/gemini-extension.json +4 -0
- package/dist/src/commands/extensions/examples/exclude-tools/gemini-extension.json +5 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.js +46 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.js.map +1 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.ts +60 -0
- package/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +10 -0
- package/dist/src/commands/extensions/install.d.ts +1 -0
- package/dist/src/commands/extensions/install.js +41 -12
- package/dist/src/commands/extensions/install.js.map +1 -1
- package/dist/src/commands/extensions/install.test.js +79 -3
- package/dist/src/commands/extensions/install.test.js.map +1 -1
- package/dist/src/commands/extensions/link.d.ts +12 -0
- package/dist/src/commands/extensions/link.js +37 -0
- package/dist/src/commands/extensions/link.js.map +1 -0
- package/dist/src/commands/extensions/new.d.ts +7 -0
- package/dist/src/commands/extensions/new.js +70 -0
- package/dist/src/commands/extensions/new.js.map +1 -0
- package/dist/src/commands/extensions/new.test.d.ts +6 -0
- package/dist/src/commands/extensions/new.test.js +50 -0
- package/dist/src/commands/extensions/new.test.js.map +1 -0
- package/dist/src/commands/extensions/uninstall.js +1 -1
- package/dist/src/commands/extensions/uninstall.js.map +1 -1
- package/dist/src/commands/extensions/update.d.ts +2 -1
- package/dist/src/commands/extensions/update.js +46 -15
- package/dist/src/commands/extensions/update.js.map +1 -1
- package/dist/src/commands/extensions.js +4 -0
- package/dist/src/commands/extensions.js.map +1 -1
- package/dist/src/commands/mcp/add.js +1 -1
- package/dist/src/commands/mcp/add.js.map +1 -1
- package/dist/src/commands/mcp/list.js +2 -2
- package/dist/src/commands/mcp/list.js.map +1 -1
- package/dist/src/commands/mcp/remove.js +1 -1
- package/dist/src/commands/mcp/remove.js.map +1 -1
- package/dist/src/config/auth.d.ts +1 -1
- package/dist/src/config/auth.js +4 -4
- package/dist/src/config/auth.js.map +1 -1
- package/dist/src/config/auth.test.js +15 -7
- package/dist/src/config/auth.test.js.map +1 -1
- package/dist/src/config/config.d.ts +4 -1
- package/dist/src/config/config.js +57 -23
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/extension.d.ts +20 -13
- package/dist/src/config/extension.js +261 -109
- package/dist/src/config/extension.js.map +1 -1
- package/dist/src/config/extensions/extensionEnablement.d.ts +30 -0
- package/dist/src/config/extensions/extensionEnablement.js +113 -0
- package/dist/src/config/extensions/extensionEnablement.js.map +1 -0
- package/dist/src/config/extensions/extensionEnablement.test.d.ts +6 -0
- package/dist/src/config/extensions/extensionEnablement.test.js +116 -0
- package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -0
- package/dist/src/config/extensions/github.d.ts +25 -0
- package/dist/src/config/extensions/github.js +258 -0
- package/dist/src/config/extensions/github.js.map +1 -0
- package/dist/src/config/extensions/github.test.d.ts +6 -0
- package/dist/src/config/extensions/github.test.js +232 -0
- package/dist/src/config/extensions/github.test.js.map +1 -0
- package/dist/src/config/extensions/variableSchema.d.ts +8 -0
- package/dist/src/config/extensions/variableSchema.js +4 -0
- package/dist/src/config/extensions/variableSchema.js.map +1 -1
- package/dist/src/config/keyBindings.d.ts +5 -1
- package/dist/src/config/keyBindings.js +14 -25
- package/dist/src/config/keyBindings.js.map +1 -1
- package/dist/src/config/policy-engine.integration.test.d.ts +6 -0
- package/dist/src/config/policy-engine.integration.test.js +270 -0
- package/dist/src/config/policy-engine.integration.test.js.map +1 -0
- package/dist/src/config/policy.d.ts +8 -0
- package/dist/src/config/policy.js +150 -0
- package/dist/src/config/policy.js.map +1 -0
- package/dist/src/config/policy.test.d.ts +6 -0
- package/dist/src/config/policy.test.js +336 -0
- package/dist/src/config/policy.test.js.map +1 -0
- package/dist/src/config/settings.d.ts +8 -5
- package/dist/src/config/settings.js +148 -251
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/config/settingsSchema.d.ts +232 -23
- package/dist/src/config/settingsSchema.js +222 -20
- package/dist/src/config/settingsSchema.js.map +1 -1
- package/dist/src/config/settingsSchema.test.js +68 -55
- package/dist/src/config/settingsSchema.test.js.map +1 -1
- package/dist/src/config/trustedFolders.d.ts +13 -3
- package/dist/src/config/trustedFolders.js +66 -42
- package/dist/src/config/trustedFolders.js.map +1 -1
- package/dist/src/config/trustedFolders.test.js +107 -12
- package/dist/src/config/trustedFolders.test.js.map +1 -1
- package/dist/src/core/auth.d.ts +13 -0
- package/dist/src/core/auth.js +27 -0
- package/dist/src/core/auth.js.map +1 -0
- package/dist/src/core/initializer.d.ts +21 -0
- package/dist/src/core/initializer.js +33 -0
- package/dist/src/core/initializer.js.map +1 -0
- package/dist/src/core/theme.d.ts +12 -0
- package/dist/src/core/theme.js +20 -0
- package/dist/src/core/theme.js.map +1 -0
- package/dist/src/gemini.d.ts +2 -1
- package/dist/src/gemini.js +96 -51
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.js +113 -42
- 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/nonInteractiveCli.js +87 -71
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.js +1 -1
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.test.js +16 -17
- package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
- package/dist/src/services/FileCommandLoader.d.ts +2 -0
- package/dist/src/services/FileCommandLoader.js +7 -0
- package/dist/src/services/FileCommandLoader.js.map +1 -1
- package/dist/src/services/McpPromptLoader.js +43 -8
- package/dist/src/services/McpPromptLoader.js.map +1 -1
- package/dist/src/services/McpPromptLoader.test.js +228 -1
- package/dist/src/services/McpPromptLoader.test.js.map +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.js +8 -1
- package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
- package/dist/src/ui/App.d.ts +1 -10
- package/dist/src/ui/App.js +13 -667
- package/dist/src/ui/App.js.map +1 -1
- package/dist/src/ui/AppContainer.d.ts +17 -0
- package/dist/src/ui/AppContainer.js +879 -0
- package/dist/src/ui/AppContainer.js.map +1 -0
- package/dist/src/ui/AppContainer.test.d.ts +6 -0
- package/dist/src/ui/AppContainer.test.js +414 -0
- package/dist/src/ui/AppContainer.test.js.map +1 -0
- package/dist/src/ui/IdeIntegrationNudge.d.ts +2 -2
- package/dist/src/ui/IdeIntegrationNudge.js +3 -3
- package/dist/src/ui/IdeIntegrationNudge.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.d.ts +18 -0
- package/dist/src/ui/auth/AuthDialog.js +99 -0
- package/dist/src/ui/auth/AuthDialog.js.map +1 -0
- package/dist/src/ui/auth/AuthDialog.test.d.ts +6 -0
- package/dist/src/ui/auth/AuthDialog.test.js +184 -0
- package/dist/src/ui/auth/AuthDialog.test.js.map +1 -0
- package/dist/src/ui/{components → auth}/AuthInProgress.js +2 -2
- package/dist/src/ui/auth/AuthInProgress.js.map +1 -0
- package/dist/src/ui/auth/useAuth.d.ts +15 -0
- package/dist/src/ui/auth/useAuth.js +73 -0
- package/dist/src/ui/auth/useAuth.js.map +1 -0
- package/dist/src/ui/commands/aboutCommand.js +9 -3
- package/dist/src/ui/commands/aboutCommand.js.map +1 -1
- package/dist/src/ui/commands/bugCommand.js +9 -4
- package/dist/src/ui/commands/bugCommand.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.d.ts +2 -0
- package/dist/src/ui/commands/chatCommand.js +82 -3
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/clearCommand.js +1 -1
- package/dist/src/ui/commands/clearCommand.js.map +1 -1
- package/dist/src/ui/commands/corgiCommand.js +1 -0
- package/dist/src/ui/commands/corgiCommand.js.map +1 -1
- package/dist/src/ui/commands/directoryCommand.js +1 -1
- package/dist/src/ui/commands/directoryCommand.js.map +1 -1
- package/dist/src/ui/commands/extensionsCommand.js +70 -16
- package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
- package/dist/src/ui/commands/ideCommand.d.ts +1 -2
- package/dist/src/ui/commands/ideCommand.js +19 -10
- package/dist/src/ui/commands/ideCommand.js.map +1 -1
- package/dist/src/ui/commands/mcpCommand.js +14 -5
- package/dist/src/ui/commands/mcpCommand.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.js +1 -1
- package/dist/src/ui/commands/memoryCommand.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +5 -1
- package/dist/src/ui/commands/types.js +0 -1
- package/dist/src/ui/commands/types.js.map +1 -1
- package/dist/src/ui/components/AboutBox.js +2 -2
- package/dist/src/ui/components/AboutBox.js.map +1 -1
- package/dist/src/ui/components/AnsiOutput.d.ts +13 -0
- package/dist/src/ui/components/AnsiOutput.js +12 -0
- package/dist/src/ui/components/AnsiOutput.js.map +1 -0
- package/dist/src/ui/components/AnsiOutput.test.d.ts +6 -0
- package/dist/src/ui/components/AnsiOutput.test.js +97 -0
- package/dist/src/ui/components/AnsiOutput.test.js.map +1 -0
- package/dist/src/ui/components/AppHeader.d.ts +10 -0
- package/dist/src/ui/components/AppHeader.js +22 -0
- package/dist/src/ui/components/AppHeader.js.map +1 -0
- package/dist/src/ui/components/AutoAcceptIndicator.js +4 -4
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -1
- package/dist/src/ui/components/Composer.d.ts +6 -0
- package/dist/src/ui/components/Composer.js +73 -0
- package/dist/src/ui/components/Composer.js.map +1 -0
- package/dist/src/ui/components/Composer.test.d.ts +6 -0
- package/dist/src/ui/components/Composer.test.js +337 -0
- package/dist/src/ui/components/Composer.test.js.map +1 -0
- package/dist/src/ui/components/ConfigInitDisplay.d.ts +6 -0
- package/dist/src/ui/components/ConfigInitDisplay.js +38 -0
- package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +2 -2
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.js +3 -3
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.js +2 -2
- package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -1
- package/dist/src/ui/components/DebugProfiler.js +2 -2
- package/dist/src/ui/components/DebugProfiler.js.map +1 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.js +7 -7
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -1
- package/dist/src/ui/components/DialogManager.d.ts +6 -0
- package/dist/src/ui/components/DialogManager.js +85 -0
- package/dist/src/ui/components/DialogManager.js.map +1 -0
- package/dist/src/ui/components/EditorSettingsDialog.js +5 -5
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.js +19 -9
- package/dist/src/ui/components/FolderTrustDialog.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.js +35 -10
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/Footer.d.ts +4 -2
- package/dist/src/ui/components/Footer.js +8 -3
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +5 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.js +7 -2
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -1
- package/dist/src/ui/components/Header.js +2 -2
- package/dist/src/ui/components/Header.js.map +1 -1
- package/dist/src/ui/components/Help.d.ts +1 -1
- package/dist/src/ui/components/Help.js +9 -6
- package/dist/src/ui/components/Help.js.map +1 -1
- package/dist/src/ui/components/Help.test.d.ts +6 -0
- package/dist/src/ui/components/Help.test.js +57 -0
- package/dist/src/ui/components/Help.test.js.map +1 -0
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +2 -2
- package/dist/src/ui/components/HistoryItemDisplay.js +3 -1
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.d.ts +9 -0
- package/dist/src/ui/components/InputPrompt.js +180 -42
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/LoadingIndicator.js +2 -2
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +13 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.js +35 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +6 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +25 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -0
- package/dist/src/ui/components/MainContent.d.ts +6 -0
- package/dist/src/ui/components/MainContent.js +23 -0
- package/dist/src/ui/components/MainContent.js.map +1 -0
- package/dist/src/ui/components/MemoryUsageDisplay.js +6 -4
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.js +7 -7
- package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -1
- package/dist/src/ui/components/Notifications.d.ts +6 -0
- package/dist/src/ui/components/Notifications.js +23 -0
- package/dist/src/ui/components/Notifications.js.map +1 -0
- package/dist/src/ui/components/PrepareLabel.d.ts +5 -5
- package/dist/src/ui/components/PrepareLabel.js +67 -11
- package/dist/src/ui/components/PrepareLabel.js.map +1 -1
- package/dist/src/ui/components/PrepareLabel.test.d.ts +6 -0
- package/dist/src/ui/components/PrepareLabel.test.js +71 -0
- package/dist/src/ui/components/PrepareLabel.test.js.map +1 -0
- package/dist/src/ui/components/ProQuotaDialog.d.ts +13 -0
- package/dist/src/ui/components/ProQuotaDialog.js +21 -0
- package/dist/src/ui/components/ProQuotaDialog.js.map +1 -0
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +6 -0
- package/dist/src/ui/components/ProQuotaDialog.test.js +56 -0
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -0
- package/dist/src/ui/components/QueuedMessageDisplay.d.ts +9 -0
- package/dist/src/ui/components/QueuedMessageDisplay.js +20 -0
- package/dist/src/ui/components/QueuedMessageDisplay.js.map +1 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +56 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -0
- package/dist/src/ui/components/QuittingDisplay.d.ts +6 -0
- package/dist/src/ui/components/QuittingDisplay.js +20 -0
- package/dist/src/ui/components/QuittingDisplay.js.map +1 -0
- package/dist/src/ui/components/SettingsDialog.d.ts +2 -1
- package/dist/src/ui/components/SettingsDialog.js +93 -22
- package/dist/src/ui/components/SettingsDialog.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.test.js +436 -80
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.js +2 -2
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
- package/dist/src/ui/components/ShellInputPrompt.d.ts +11 -0
- package/dist/src/ui/components/ShellInputPrompt.js +36 -0
- package/dist/src/ui/components/ShellInputPrompt.js.map +1 -0
- package/dist/src/ui/components/ShellModeIndicator.js +2 -2
- package/dist/src/ui/components/ShellModeIndicator.js.map +1 -1
- package/dist/src/ui/components/ShowMoreLines.js +2 -2
- package/dist/src/ui/components/ShowMoreLines.js.map +1 -1
- package/dist/src/ui/components/StatsDisplay.js +6 -6
- package/dist/src/ui/components/StatsDisplay.js.map +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +7 -2
- package/dist/src/ui/components/SuggestionsDisplay.js +17 -17
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.js +12 -29
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.test.d.ts +6 -0
- package/dist/src/ui/components/ThemeDialog.test.js +75 -0
- package/dist/src/ui/components/ThemeDialog.test.js.map +1 -0
- package/dist/src/ui/components/Tips.js +2 -2
- package/dist/src/ui/components/Tips.js.map +1 -1
- package/dist/src/ui/components/ToolStatsDisplay.js +4 -4
- package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -1
- package/dist/src/ui/components/UpdateNotification.js +2 -2
- package/dist/src/ui/components/UpdateNotification.js.map +1 -1
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +4 -4
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +1 -2
- package/dist/src/ui/components/messages/CompressionMessage.js +37 -8
- package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -1
- package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.js +160 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +2 -1
- package/dist/src/ui/components/messages/DiffRenderer.js +14 -22
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
- package/dist/src/ui/components/messages/ErrorMessage.js +2 -2
- package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.js +2 -2
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
- package/dist/src/ui/components/messages/InfoMessage.js +2 -2
- package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +33 -21
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -8
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +3 -2
- package/dist/src/ui/components/messages/ToolGroupMessage.js +17 -9
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +17 -15
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +4 -0
- package/dist/src/ui/components/messages/ToolMessage.js +24 -10
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.test.js +33 -1
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/UserMessage.js +3 -3
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
- package/dist/src/ui/components/messages/UserShellMessage.js +2 -2
- package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -1
- package/dist/src/ui/components/messages/WarningMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/WarningMessage.js +10 -0
- package/dist/src/ui/components/messages/WarningMessage.js.map +1 -0
- package/dist/src/ui/components/shared/EnumSelector.d.ts +18 -0
- package/dist/src/ui/components/shared/EnumSelector.js +44 -0
- package/dist/src/ui/components/shared/EnumSelector.js.map +1 -0
- package/dist/src/ui/components/shared/EnumSelector.test.d.ts +6 -0
- package/dist/src/ui/components/shared/EnumSelector.test.js +70 -0
- package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -0
- package/dist/src/ui/components/shared/MaxSizedBox.js +2 -2
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.js +12 -12
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
- package/dist/src/ui/components/shared/ScopeSelector.d.ts +19 -0
- package/dist/src/ui/components/shared/ScopeSelector.js +11 -0
- package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -0
- package/dist/src/ui/components/shared/text-buffer.d.ts +25 -2
- package/dist/src/ui/components/shared/text-buffer.js +296 -187
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
- package/dist/src/ui/components/views/ExtensionsList.d.ts +6 -0
- package/dist/src/ui/components/views/ExtensionsList.js +47 -0
- package/dist/src/ui/components/views/ExtensionsList.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionsList.test.d.ts +6 -0
- package/dist/src/ui/components/views/ExtensionsList.test.js +97 -0
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -0
- package/dist/src/ui/constants.d.ts +1 -0
- package/dist/src/ui/constants.js +1 -0
- package/dist/src/ui/constants.js.map +1 -1
- package/dist/src/ui/contexts/AppContext.d.ts +11 -0
- package/dist/src/ui/contexts/AppContext.js +15 -0
- package/dist/src/ui/contexts/AppContext.js.map +1 -0
- package/dist/src/ui/contexts/ConfigContext.d.ts +9 -0
- package/dist/src/ui/contexts/ConfigContext.js +16 -0
- package/dist/src/ui/contexts/ConfigContext.js.map +1 -0
- package/dist/src/ui/contexts/FocusContext.d.ts +7 -0
- package/dist/src/ui/contexts/FocusContext.js +9 -0
- package/dist/src/ui/contexts/FocusContext.js.map +1 -0
- package/dist/src/ui/contexts/KeypressContext.d.ts +3 -0
- package/dist/src/ui/contexts/KeypressContext.js +306 -44
- package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
- package/dist/src/ui/contexts/KeypressContext.test.js +288 -2
- package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +6 -0
- package/dist/src/ui/contexts/SessionContext.js +107 -5
- package/dist/src/ui/contexts/SessionContext.js.map +1 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +36 -0
- package/dist/src/ui/contexts/UIActionsContext.js +20 -0
- package/dist/src/ui/contexts/UIActionsContext.js.map +1 -0
- package/dist/src/ui/contexts/UIStateContext.d.ts +95 -0
- package/dist/src/ui/contexts/UIStateContext.js +15 -0
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -0
- package/dist/src/ui/hooks/atCommandProcessor.test.js +7 -5
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/keyToAnsi.d.ts +15 -0
- package/dist/src/ui/hooks/keyToAnsi.js +67 -0
- package/dist/src/ui/hooks/keyToAnsi.js.map +1 -0
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +2 -1
- package/dist/src/ui/hooks/shellCommandProcessor.js +60 -15
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +196 -17
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +15 -2
- package/dist/src/ui/hooks/slashCommandProcessor.js +36 -73
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +3 -2
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +9 -5
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +69 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +1 -1
- package/dist/src/ui/hooks/useFolderTrust.js +12 -11
- package/dist/src/ui/hooks/useFolderTrust.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +13 -2
- package/dist/src/ui/hooks/useGeminiStream.js +150 -60
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.js +15 -18
- package/dist/src/ui/hooks/useGitBranchName.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.test.js +49 -53
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
- package/dist/src/ui/hooks/useIdeTrustListener.d.ts +14 -0
- package/dist/src/ui/hooks/useIdeTrustListener.js +39 -0
- package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistoryStore.d.ts +19 -0
- package/dist/src/ui/hooks/useInputHistoryStore.js +81 -0
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +6 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +234 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -0
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +1 -1
- package/dist/src/ui/hooks/useLoadingIndicator.js +2 -2
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +2 -2
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -1
- package/dist/src/ui/hooks/useMemoryMonitor.d.ts +13 -0
- package/dist/src/ui/hooks/useMemoryMonitor.js +28 -0
- package/dist/src/ui/hooks/useMemoryMonitor.js.map +1 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +6 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +57 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -0
- package/dist/src/ui/hooks/useMessageQueue.d.ts +2 -1
- package/dist/src/ui/hooks/useMessageQueue.js +5 -3
- package/dist/src/ui/hooks/useMessageQueue.js.map +1 -1
- package/dist/src/ui/hooks/useMessageQueue.test.js +9 -0
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.js +11 -8
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.js +8 -13
- package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.js +33 -97
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +21 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.js +122 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +6 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +267 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -0
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +3 -2
- package/dist/src/ui/hooks/useReactToolScheduler.js +23 -17
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +67 -20
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.js +276 -67
- package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +4 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.js +357 -65
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +1 -1
- package/dist/src/ui/hooks/useStateAndRef.js +2 -2
- package/dist/src/ui/hooks/useStateAndRef.js.map +1 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useThemeCommand.js +3 -14
- package/dist/src/ui/hooks/useThemeCommand.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +66 -61
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.js +2 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -1
- package/dist/src/ui/keyMatchers.test.js +17 -0
- package/dist/src/ui/keyMatchers.test.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/privacy/CloudPaidPrivacyNotice.js +2 -2
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +2 -2
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -1
- package/dist/src/ui/state/extensions.d.ts +14 -0
- package/dist/src/ui/state/extensions.js +16 -0
- package/dist/src/ui/state/extensions.js.map +1 -0
- package/dist/src/ui/themes/ayu.js +1 -1
- package/dist/src/ui/themes/dracula.js +2 -2
- package/dist/src/ui/themes/github-dark.js +1 -1
- package/dist/src/ui/themes/theme.js +17 -17
- package/dist/src/ui/themes/theme.js.map +1 -1
- package/dist/src/ui/types.d.ts +34 -3
- package/dist/src/ui/types.js +12 -0
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.js +3 -2
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +7 -7
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.js +10 -10
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.js +6 -2
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -1
- package/dist/src/ui/utils/TableRenderer.js +4 -4
- package/dist/src/ui/utils/TableRenderer.js.map +1 -1
- package/dist/src/ui/utils/clipboardUtils.js +5 -6
- package/dist/src/ui/utils/clipboardUtils.js.map +1 -1
- package/dist/src/ui/utils/displayUtils.js +4 -4
- package/dist/src/ui/utils/displayUtils.js.map +1 -1
- package/dist/src/ui/utils/highlight.d.ts +11 -0
- package/dist/src/ui/utils/highlight.js +78 -0
- package/dist/src/ui/utils/highlight.js.map +1 -0
- package/dist/src/ui/utils/highlight.test.d.ts +6 -0
- package/dist/src/ui/utils/highlight.test.js +120 -0
- package/dist/src/ui/utils/highlight.test.js.map +1 -0
- package/dist/src/ui/utils/kittyProtocolDetector.js +39 -29
- package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -1
- package/dist/src/ui/utils/platformConstants.d.ts +24 -1
- package/dist/src/ui/utils/platformConstants.js +26 -1
- package/dist/src/ui/utils/platformConstants.js.map +1 -1
- package/dist/src/ui/utils/textUtils.d.ts +9 -0
- package/dist/src/ui/utils/textUtils.js +52 -3
- package/dist/src/ui/utils/textUtils.js.map +1 -1
- package/dist/src/utils/commands.d.ts +20 -0
- package/dist/src/utils/commands.js +53 -0
- package/dist/src/utils/commands.js.map +1 -0
- package/dist/src/utils/commands.test.d.ts +6 -0
- package/dist/src/utils/commands.test.js +115 -0
- package/dist/src/utils/commands.test.js.map +1 -0
- package/dist/src/utils/commentJson.d.ts +9 -0
- package/dist/src/utils/commentJson.js +48 -0
- package/dist/src/utils/commentJson.js.map +1 -0
- package/dist/src/utils/commentJson.test.d.ts +6 -0
- package/dist/src/utils/commentJson.test.js +146 -0
- package/dist/src/utils/commentJson.test.js.map +1 -0
- package/dist/src/utils/deepMerge.d.ts +10 -0
- package/dist/src/utils/deepMerge.js +58 -0
- package/dist/src/utils/deepMerge.js.map +1 -0
- package/dist/src/utils/deepMerge.test.d.ts +6 -0
- package/dist/src/utils/deepMerge.test.js +143 -0
- package/dist/src/utils/deepMerge.test.js.map +1 -0
- package/dist/src/utils/envVarResolver.d.ts +39 -0
- package/dist/src/utils/envVarResolver.js +97 -0
- package/dist/src/utils/envVarResolver.js.map +1 -0
- package/dist/src/utils/envVarResolver.test.d.ts +6 -0
- package/dist/src/utils/envVarResolver.test.js +221 -0
- package/dist/src/utils/envVarResolver.test.js.map +1 -0
- package/dist/src/utils/errors.d.ts +21 -0
- package/dist/src/utils/errors.js +93 -0
- package/dist/src/utils/errors.js.map +1 -1
- package/dist/src/utils/errors.test.d.ts +6 -0
- package/dist/src/utils/errors.test.js +303 -0
- package/dist/src/utils/errors.test.js.map +1 -0
- 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/processUtils.d.ts +13 -0
- package/dist/src/utils/processUtils.js +18 -0
- package/dist/src/utils/processUtils.js.map +1 -0
- package/dist/src/utils/processUtils.test.d.ts +6 -0
- package/dist/src/utils/processUtils.test.js +20 -0
- package/dist/src/utils/processUtils.test.js.map +1 -0
- package/dist/src/utils/sandbox.d.ts +1 -1
- package/dist/src/utils/sandbox.js +19 -8
- package/dist/src/utils/sandbox.js.map +1 -1
- package/dist/src/utils/settingsUtils.d.ts +16 -6
- package/dist/src/utils/settingsUtils.js +35 -25
- package/dist/src/utils/settingsUtils.js.map +1 -1
- package/dist/src/utils/settingsUtils.test.js +455 -158
- package/dist/src/utils/settingsUtils.test.js.map +1 -1
- package/dist/src/utils/userStartupWarnings.d.ts +1 -1
- package/dist/src/utils/userStartupWarnings.js +1 -1
- package/dist/src/utils/userStartupWarnings.js.map +1 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +2 -1
- package/dist/src/validateNonInterActiveAuth.js +33 -12
- package/dist/src/validateNonInterActiveAuth.js.map +1 -1
- package/dist/src/zed-integration/schema.d.ts +578 -578
- package/dist/src/zed-integration/zedIntegration.js +17 -12
- package/dist/src/zed-integration/zedIntegration.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/npm-shrinkwrap.json +17168 -0
- package/package.json +7 -8
- package/dist/google-gemini-cli-0.3.0-preview.3.tgz +0 -0
- package/dist/src/ui/components/AuthDialog.d.ts +0 -16
- package/dist/src/ui/components/AuthDialog.js +0 -92
- package/dist/src/ui/components/AuthDialog.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.test.js +0 -276
- package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/components/AuthInProgress.js.map +0 -1
- package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
- package/dist/src/ui/hooks/useAuthCommand.js +0 -66
- package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
- /package/dist/src/{ui/components/AuthDialog.test.d.ts → commands/extensions/examples/mcp-server/example.d.ts} +0 -0
- /package/dist/src/ui/{components → auth}/AuthInProgress.d.ts +0 -0
|
@@ -5,18 +5,39 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { MCPServerConfig, BugCommandSettings, TelemetrySettings, AuthType, ChatCompressionSettings } from '@google/gemini-cli-core';
|
|
7
7
|
import type { CustomTheme } from '../ui/themes/theme.js';
|
|
8
|
+
export type SettingsType = 'boolean' | 'string' | 'number' | 'array' | 'object' | 'enum';
|
|
9
|
+
export type SettingsValue = boolean | string | number | string[] | object | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Setting datatypes that "toggle" through a fixed list of options
|
|
12
|
+
* (e.g. an enum or true/false) rather than allowing for free form input
|
|
13
|
+
* (like a number or string).
|
|
14
|
+
*/
|
|
15
|
+
export declare const TOGGLE_TYPES: ReadonlySet<SettingsType | undefined>;
|
|
16
|
+
export interface SettingEnumOption {
|
|
17
|
+
value: string | number;
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
export declare enum MergeStrategy {
|
|
21
|
+
REPLACE = "replace",
|
|
22
|
+
CONCAT = "concat",
|
|
23
|
+
UNION = "union",
|
|
24
|
+
SHALLOW_MERGE = "shallow_merge"
|
|
25
|
+
}
|
|
8
26
|
export interface SettingDefinition {
|
|
9
|
-
type:
|
|
27
|
+
type: SettingsType;
|
|
10
28
|
label: string;
|
|
11
29
|
category: string;
|
|
12
30
|
requiresRestart: boolean;
|
|
13
|
-
default:
|
|
31
|
+
default: SettingsValue;
|
|
14
32
|
description?: string;
|
|
15
33
|
parentKey?: string;
|
|
16
34
|
childKey?: string;
|
|
17
35
|
key?: string;
|
|
18
36
|
properties?: SettingsSchema;
|
|
19
37
|
showInDialog?: boolean;
|
|
38
|
+
mergeStrategy?: MergeStrategy;
|
|
39
|
+
/** Enum type options */
|
|
40
|
+
options?: readonly SettingEnumOption[];
|
|
20
41
|
}
|
|
21
42
|
export interface SettingsSchema {
|
|
22
43
|
[key: string]: SettingDefinition;
|
|
@@ -28,7 +49,7 @@ export type DnsResolutionOrder = 'ipv4first' | 'verbatim';
|
|
|
28
49
|
* The structure of this object defines the structure of the `Settings` type.
|
|
29
50
|
* `as const` is crucial for TypeScript to infer the most specific types possible.
|
|
30
51
|
*/
|
|
31
|
-
|
|
52
|
+
declare const SETTINGS_SCHEMA: {
|
|
32
53
|
readonly mcpServers: {
|
|
33
54
|
readonly type: "object";
|
|
34
55
|
readonly label: "MCP Servers";
|
|
@@ -37,6 +58,7 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
37
58
|
readonly default: Record<string, MCPServerConfig>;
|
|
38
59
|
readonly description: "Configuration for MCP servers.";
|
|
39
60
|
readonly showInDialog: false;
|
|
61
|
+
readonly mergeStrategy: MergeStrategy.SHALLOW_MERGE;
|
|
40
62
|
};
|
|
41
63
|
readonly general: {
|
|
42
64
|
readonly type: "object";
|
|
@@ -123,6 +145,33 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
123
145
|
};
|
|
124
146
|
};
|
|
125
147
|
};
|
|
148
|
+
readonly output: {
|
|
149
|
+
readonly type: "object";
|
|
150
|
+
readonly label: "Output";
|
|
151
|
+
readonly category: "General";
|
|
152
|
+
readonly requiresRestart: false;
|
|
153
|
+
readonly default: {};
|
|
154
|
+
readonly description: "Settings for the CLI output.";
|
|
155
|
+
readonly showInDialog: false;
|
|
156
|
+
readonly properties: {
|
|
157
|
+
readonly format: {
|
|
158
|
+
readonly type: "enum";
|
|
159
|
+
readonly label: "Output Format";
|
|
160
|
+
readonly category: "General";
|
|
161
|
+
readonly requiresRestart: false;
|
|
162
|
+
readonly default: "text";
|
|
163
|
+
readonly description: "The format of the CLI output.";
|
|
164
|
+
readonly showInDialog: true;
|
|
165
|
+
readonly options: readonly [{
|
|
166
|
+
readonly value: "text";
|
|
167
|
+
readonly label: "Text";
|
|
168
|
+
}, {
|
|
169
|
+
readonly value: "json";
|
|
170
|
+
readonly label: "JSON";
|
|
171
|
+
}];
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
126
175
|
readonly ui: {
|
|
127
176
|
readonly type: "object";
|
|
128
177
|
readonly label: "UI";
|
|
@@ -177,6 +226,53 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
177
226
|
readonly description: "Hide the application banner";
|
|
178
227
|
readonly showInDialog: true;
|
|
179
228
|
};
|
|
229
|
+
readonly hideContextSummary: {
|
|
230
|
+
readonly type: "boolean";
|
|
231
|
+
readonly label: "Hide Context Summary";
|
|
232
|
+
readonly category: "UI";
|
|
233
|
+
readonly requiresRestart: false;
|
|
234
|
+
readonly default: false;
|
|
235
|
+
readonly description: "Hide the context summary (GEMINI.md, MCP servers) above the input.";
|
|
236
|
+
readonly showInDialog: true;
|
|
237
|
+
};
|
|
238
|
+
readonly footer: {
|
|
239
|
+
readonly type: "object";
|
|
240
|
+
readonly label: "Footer";
|
|
241
|
+
readonly category: "UI";
|
|
242
|
+
readonly requiresRestart: false;
|
|
243
|
+
readonly default: {};
|
|
244
|
+
readonly description: "Settings for the footer.";
|
|
245
|
+
readonly showInDialog: false;
|
|
246
|
+
readonly properties: {
|
|
247
|
+
readonly hideCWD: {
|
|
248
|
+
readonly type: "boolean";
|
|
249
|
+
readonly label: "Hide CWD";
|
|
250
|
+
readonly category: "UI";
|
|
251
|
+
readonly requiresRestart: false;
|
|
252
|
+
readonly default: false;
|
|
253
|
+
readonly description: "Hide the current working directory path in the footer.";
|
|
254
|
+
readonly showInDialog: true;
|
|
255
|
+
};
|
|
256
|
+
readonly hideSandboxStatus: {
|
|
257
|
+
readonly type: "boolean";
|
|
258
|
+
readonly label: "Hide Sandbox Status";
|
|
259
|
+
readonly category: "UI";
|
|
260
|
+
readonly requiresRestart: false;
|
|
261
|
+
readonly default: false;
|
|
262
|
+
readonly description: "Hide the sandbox status indicator in the footer.";
|
|
263
|
+
readonly showInDialog: true;
|
|
264
|
+
};
|
|
265
|
+
readonly hideModelInfo: {
|
|
266
|
+
readonly type: "boolean";
|
|
267
|
+
readonly label: "Hide Model Info";
|
|
268
|
+
readonly category: "UI";
|
|
269
|
+
readonly requiresRestart: false;
|
|
270
|
+
readonly default: false;
|
|
271
|
+
readonly description: "Hide the model name and context usage in the footer.";
|
|
272
|
+
readonly showInDialog: true;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
180
276
|
readonly hideFooter: {
|
|
181
277
|
readonly type: "boolean";
|
|
182
278
|
readonly label: "Hide Footer";
|
|
@@ -204,6 +300,24 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
204
300
|
readonly description: "Show line numbers in the chat.";
|
|
205
301
|
readonly showInDialog: true;
|
|
206
302
|
};
|
|
303
|
+
readonly showCitations: {
|
|
304
|
+
readonly type: "boolean";
|
|
305
|
+
readonly label: "Show Citations";
|
|
306
|
+
readonly category: "UI";
|
|
307
|
+
readonly requiresRestart: false;
|
|
308
|
+
readonly default: false;
|
|
309
|
+
readonly description: "Show citations for generated text in the chat.";
|
|
310
|
+
readonly showInDialog: true;
|
|
311
|
+
};
|
|
312
|
+
readonly customWittyPhrases: {
|
|
313
|
+
readonly type: "array";
|
|
314
|
+
readonly label: "Custom Witty Phrases";
|
|
315
|
+
readonly category: "UI";
|
|
316
|
+
readonly requiresRestart: false;
|
|
317
|
+
readonly default: string[];
|
|
318
|
+
readonly description: "Custom witty phrases to display during loading.";
|
|
319
|
+
readonly showInDialog: false;
|
|
320
|
+
};
|
|
207
321
|
readonly accessibility: {
|
|
208
322
|
readonly type: "object";
|
|
209
323
|
readonly label: "Accessibility";
|
|
@@ -345,7 +459,7 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
345
459
|
readonly label: "Skip Next Speaker Check";
|
|
346
460
|
readonly category: "Model";
|
|
347
461
|
readonly requiresRestart: false;
|
|
348
|
-
readonly default:
|
|
462
|
+
readonly default: true;
|
|
349
463
|
readonly description: "Skip the next speaker check.";
|
|
350
464
|
readonly showInDialog: true;
|
|
351
465
|
};
|
|
@@ -395,6 +509,7 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
395
509
|
readonly default: string[];
|
|
396
510
|
readonly description: "Additional directories to include in the workspace context. Missing directories will be skipped with a warning.";
|
|
397
511
|
readonly showInDialog: false;
|
|
512
|
+
readonly mergeStrategy: MergeStrategy.CONCAT;
|
|
398
513
|
};
|
|
399
514
|
readonly loadMemoryFromIncludeDirectories: {
|
|
400
515
|
readonly type: "boolean";
|
|
@@ -472,13 +587,51 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
472
587
|
readonly description: "Sandbox execution environment (can be a boolean or a path string).";
|
|
473
588
|
readonly showInDialog: false;
|
|
474
589
|
};
|
|
475
|
-
readonly
|
|
590
|
+
readonly shell: {
|
|
591
|
+
readonly type: "object";
|
|
592
|
+
readonly label: "Shell";
|
|
593
|
+
readonly category: "Tools";
|
|
594
|
+
readonly requiresRestart: false;
|
|
595
|
+
readonly default: {};
|
|
596
|
+
readonly description: "Settings for shell execution.";
|
|
597
|
+
readonly showInDialog: false;
|
|
598
|
+
readonly properties: {
|
|
599
|
+
readonly enableInteractiveShell: {
|
|
600
|
+
readonly type: "boolean";
|
|
601
|
+
readonly label: "Enable Interactive Shell";
|
|
602
|
+
readonly category: "Tools";
|
|
603
|
+
readonly requiresRestart: true;
|
|
604
|
+
readonly default: false;
|
|
605
|
+
readonly description: "Use node-pty for an interactive shell experience. Fallback to child_process still applies.";
|
|
606
|
+
readonly showInDialog: true;
|
|
607
|
+
};
|
|
608
|
+
readonly pager: {
|
|
609
|
+
readonly type: "string";
|
|
610
|
+
readonly label: "Pager";
|
|
611
|
+
readonly category: "Tools";
|
|
612
|
+
readonly requiresRestart: false;
|
|
613
|
+
readonly default: string | undefined;
|
|
614
|
+
readonly description: "The pager command to use for shell output. Defaults to `cat`.";
|
|
615
|
+
readonly showInDialog: false;
|
|
616
|
+
};
|
|
617
|
+
readonly showColor: {
|
|
618
|
+
readonly type: "boolean";
|
|
619
|
+
readonly label: "Show Color";
|
|
620
|
+
readonly category: "Tools";
|
|
621
|
+
readonly requiresRestart: false;
|
|
622
|
+
readonly default: false;
|
|
623
|
+
readonly description: "Show color in shell output.";
|
|
624
|
+
readonly showInDialog: true;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
readonly autoAccept: {
|
|
476
629
|
readonly type: "boolean";
|
|
477
|
-
readonly label: "
|
|
630
|
+
readonly label: "Auto Accept";
|
|
478
631
|
readonly category: "Tools";
|
|
479
|
-
readonly requiresRestart:
|
|
632
|
+
readonly requiresRestart: false;
|
|
480
633
|
readonly default: false;
|
|
481
|
-
readonly description: "
|
|
634
|
+
readonly description: "Automatically accept and execute tool calls that are considered safe (e.g., read-only operations).";
|
|
482
635
|
readonly showInDialog: true;
|
|
483
636
|
};
|
|
484
637
|
readonly core: {
|
|
@@ -507,6 +660,7 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
507
660
|
readonly default: string[] | undefined;
|
|
508
661
|
readonly description: "Tool names to exclude from discovery.";
|
|
509
662
|
readonly showInDialog: false;
|
|
663
|
+
readonly mergeStrategy: MergeStrategy.UNION;
|
|
510
664
|
};
|
|
511
665
|
readonly discoveryCommand: {
|
|
512
666
|
readonly type: "string";
|
|
@@ -531,10 +685,37 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
531
685
|
readonly label: "Use Ripgrep";
|
|
532
686
|
readonly category: "Tools";
|
|
533
687
|
readonly requiresRestart: false;
|
|
534
|
-
readonly default:
|
|
688
|
+
readonly default: true;
|
|
535
689
|
readonly description: "Use ripgrep for file content search instead of the fallback implementation. Provides faster search performance.";
|
|
536
690
|
readonly showInDialog: true;
|
|
537
691
|
};
|
|
692
|
+
readonly enableToolOutputTruncation: {
|
|
693
|
+
readonly type: "boolean";
|
|
694
|
+
readonly label: "Enable Tool Output Truncation";
|
|
695
|
+
readonly category: "General";
|
|
696
|
+
readonly requiresRestart: true;
|
|
697
|
+
readonly default: false;
|
|
698
|
+
readonly description: "Enable truncation of large tool outputs.";
|
|
699
|
+
readonly showInDialog: true;
|
|
700
|
+
};
|
|
701
|
+
readonly truncateToolOutputThreshold: {
|
|
702
|
+
readonly type: "number";
|
|
703
|
+
readonly label: "Tool Output Truncation Threshold";
|
|
704
|
+
readonly category: "General";
|
|
705
|
+
readonly requiresRestart: true;
|
|
706
|
+
readonly default: 4000000;
|
|
707
|
+
readonly description: "Truncate tool output if it is larger than this many characters. Set to -1 to disable.";
|
|
708
|
+
readonly showInDialog: true;
|
|
709
|
+
};
|
|
710
|
+
readonly truncateToolOutputLines: {
|
|
711
|
+
readonly type: "number";
|
|
712
|
+
readonly label: "Tool Output Truncation Lines";
|
|
713
|
+
readonly category: "General";
|
|
714
|
+
readonly requiresRestart: true;
|
|
715
|
+
readonly default: 1000;
|
|
716
|
+
readonly description: "The number of lines to keep when truncating tool output.";
|
|
717
|
+
readonly showInDialog: true;
|
|
718
|
+
};
|
|
538
719
|
};
|
|
539
720
|
};
|
|
540
721
|
readonly mcp: {
|
|
@@ -561,7 +742,7 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
561
742
|
readonly category: "MCP";
|
|
562
743
|
readonly requiresRestart: true;
|
|
563
744
|
readonly default: string[] | undefined;
|
|
564
|
-
readonly description: "A
|
|
745
|
+
readonly description: "A list of MCP servers to allow.";
|
|
565
746
|
readonly showInDialog: false;
|
|
566
747
|
};
|
|
567
748
|
readonly excluded: {
|
|
@@ -570,11 +751,20 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
570
751
|
readonly category: "MCP";
|
|
571
752
|
readonly requiresRestart: true;
|
|
572
753
|
readonly default: string[] | undefined;
|
|
573
|
-
readonly description: "A
|
|
754
|
+
readonly description: "A list of MCP servers to exclude.";
|
|
574
755
|
readonly showInDialog: false;
|
|
575
756
|
};
|
|
576
757
|
};
|
|
577
758
|
};
|
|
759
|
+
readonly useSmartEdit: {
|
|
760
|
+
readonly type: "boolean";
|
|
761
|
+
readonly label: "Use Smart Edit";
|
|
762
|
+
readonly category: "Advanced";
|
|
763
|
+
readonly requiresRestart: false;
|
|
764
|
+
readonly default: false;
|
|
765
|
+
readonly description: "Enable the smart-edit tool instead of the replace tool.";
|
|
766
|
+
readonly showInDialog: false;
|
|
767
|
+
};
|
|
578
768
|
readonly security: {
|
|
579
769
|
readonly type: "object";
|
|
580
770
|
readonly label: "Security";
|
|
@@ -593,20 +783,11 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
593
783
|
readonly description: "Settings for folder trust.";
|
|
594
784
|
readonly showInDialog: false;
|
|
595
785
|
readonly properties: {
|
|
596
|
-
readonly featureEnabled: {
|
|
597
|
-
readonly type: "boolean";
|
|
598
|
-
readonly label: "Folder Trust Feature";
|
|
599
|
-
readonly category: "Security";
|
|
600
|
-
readonly requiresRestart: false;
|
|
601
|
-
readonly default: false;
|
|
602
|
-
readonly description: "Enable folder trust feature for enhanced security.";
|
|
603
|
-
readonly showInDialog: true;
|
|
604
|
-
};
|
|
605
786
|
readonly enabled: {
|
|
606
787
|
readonly type: "boolean";
|
|
607
788
|
readonly label: "Folder Trust";
|
|
608
789
|
readonly category: "Security";
|
|
609
|
-
readonly requiresRestart:
|
|
790
|
+
readonly requiresRestart: true;
|
|
610
791
|
readonly default: false;
|
|
611
792
|
readonly description: "Setting to track whether Folder trust is enabled.";
|
|
612
793
|
readonly showInDialog: true;
|
|
@@ -631,6 +812,15 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
631
812
|
readonly description: "The currently selected authentication type.";
|
|
632
813
|
readonly showInDialog: false;
|
|
633
814
|
};
|
|
815
|
+
readonly enforcedType: {
|
|
816
|
+
readonly type: "string";
|
|
817
|
+
readonly label: "Enforced Auth Type";
|
|
818
|
+
readonly category: "Advanced";
|
|
819
|
+
readonly requiresRestart: true;
|
|
820
|
+
readonly default: AuthType | undefined;
|
|
821
|
+
readonly description: "The required auth type. If this does not match the selected auth type, the user will be prompted to re-authenticate.";
|
|
822
|
+
readonly showInDialog: false;
|
|
823
|
+
};
|
|
634
824
|
readonly useExternal: {
|
|
635
825
|
readonly type: "boolean";
|
|
636
826
|
readonly label: "Use External Auth";
|
|
@@ -679,6 +869,7 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
679
869
|
readonly default: string[];
|
|
680
870
|
readonly description: "Environment variables to exclude from project context.";
|
|
681
871
|
readonly showInDialog: false;
|
|
872
|
+
readonly mergeStrategy: MergeStrategy.UNION;
|
|
682
873
|
};
|
|
683
874
|
readonly bugCommand: {
|
|
684
875
|
readonly type: "object";
|
|
@@ -705,10 +896,19 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
705
896
|
readonly label: "Extension Management";
|
|
706
897
|
readonly category: "Experimental";
|
|
707
898
|
readonly requiresRestart: true;
|
|
708
|
-
readonly default:
|
|
899
|
+
readonly default: true;
|
|
709
900
|
readonly description: "Enable extension management features.";
|
|
710
901
|
readonly showInDialog: false;
|
|
711
902
|
};
|
|
903
|
+
readonly useModelRouter: {
|
|
904
|
+
readonly type: "boolean";
|
|
905
|
+
readonly label: "Use Model Router";
|
|
906
|
+
readonly category: "Experimental";
|
|
907
|
+
readonly requiresRestart: true;
|
|
908
|
+
readonly default: false;
|
|
909
|
+
readonly description: "Enable model routing to route requests to the best model based on complexity.";
|
|
910
|
+
readonly showInDialog: false;
|
|
911
|
+
};
|
|
712
912
|
};
|
|
713
913
|
};
|
|
714
914
|
readonly extensions: {
|
|
@@ -728,6 +928,7 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
728
928
|
readonly default: string[];
|
|
729
929
|
readonly description: "List of disabled extensions.";
|
|
730
930
|
readonly showInDialog: false;
|
|
931
|
+
readonly mergeStrategy: MergeStrategy.UNION;
|
|
731
932
|
};
|
|
732
933
|
readonly workspacesWithMigrationNudge: {
|
|
733
934
|
readonly type: "array";
|
|
@@ -737,14 +938,22 @@ export declare const SETTINGS_SCHEMA: {
|
|
|
737
938
|
readonly default: string[];
|
|
738
939
|
readonly description: "List of workspaces for which the migration nudge has been shown.";
|
|
739
940
|
readonly showInDialog: false;
|
|
941
|
+
readonly mergeStrategy: MergeStrategy.UNION;
|
|
740
942
|
};
|
|
741
943
|
};
|
|
742
944
|
};
|
|
743
945
|
};
|
|
946
|
+
export type SettingsSchemaType = typeof SETTINGS_SCHEMA;
|
|
947
|
+
export declare function getSettingsSchema(): SettingsSchemaType;
|
|
744
948
|
type InferSettings<T extends SettingsSchema> = {
|
|
745
949
|
-readonly [K in keyof T]?: T[K] extends {
|
|
746
950
|
properties: SettingsSchema;
|
|
747
951
|
} ? InferSettings<T[K]['properties']> : T[K]['default'] extends boolean ? boolean : T[K]['default'];
|
|
748
952
|
};
|
|
749
|
-
export type Settings = InferSettings<
|
|
953
|
+
export type Settings = InferSettings<SettingsSchemaType>;
|
|
954
|
+
export interface FooterSettings {
|
|
955
|
+
hideCWD?: boolean;
|
|
956
|
+
hideSandboxStatus?: boolean;
|
|
957
|
+
hideModelInfo?: boolean;
|
|
958
|
+
}
|
|
750
959
|
export {};
|