@umsai/ums-code 0.0.13-v1 → 0.0.14-v1
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/dist/index.js +0 -9
- package/dist/index.js.map +1 -1
- package/dist/package.json +7 -10
- package/dist/src/acp/acp.d.ts +208 -0
- package/dist/src/{zed-integration → acp}/acp.js +45 -78
- package/dist/src/acp/acp.js.map +1 -0
- package/dist/src/acp/acpPeer.d.ts +8 -0
- package/dist/src/acp/acpPeer.js +537 -0
- package/dist/src/acp/acpPeer.js.map +1 -0
- package/dist/src/config/auth.js +12 -13
- package/dist/src/config/auth.js.map +1 -1
- package/dist/src/config/config.d.ts +9 -11
- package/dist/src/config/config.js +133 -257
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/extension.d.ts +3 -41
- package/dist/src/config/extension.js +18 -277
- package/dist/src/config/extension.js.map +1 -1
- package/dist/src/config/sandboxConfig.d.ts +2 -2
- package/dist/src/config/sandboxConfig.js +10 -8
- package/dist/src/config/sandboxConfig.js.map +1 -1
- package/dist/src/config/settings.d.ts +69 -14
- package/dist/src/config/settings.js +94 -425
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/gemini.d.ts +1 -3
- package/dist/src/gemini.js +99 -118
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +1 -2
- package/dist/src/generated/git-commit.js +1 -2
- package/dist/src/generated/git-commit.js.map +1 -1
- package/dist/src/nonInteractiveCli.d.ts +1 -1
- package/dist/src/nonInteractiveCli.js +42 -26
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +4 -3
- package/dist/src/services/BuiltinCommandLoader.js +4 -15
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/services/CommandService.d.ts +2 -2
- package/dist/src/services/FileCommandLoader.d.ts +3 -3
- package/dist/src/services/FileCommandLoader.js +19 -31
- package/dist/src/services/FileCommandLoader.js.map +1 -1
- package/dist/src/services/McpPromptLoader.d.ts +4 -14
- package/dist/src/services/McpPromptLoader.js +20 -46
- package/dist/src/services/McpPromptLoader.js.map +1 -1
- package/dist/src/services/prompt-processors/argumentProcessor.d.ts +10 -5
- package/dist/src/services/prompt-processors/argumentProcessor.js +12 -5
- package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +16 -11
- package/dist/src/services/prompt-processors/shellProcessor.js +41 -85
- package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
- package/dist/src/services/prompt-processors/types.d.ts +8 -15
- package/dist/src/services/prompt-processors/types.js +0 -6
- package/dist/src/services/prompt-processors/types.js.map +1 -1
- package/dist/src/services/types.d.ts +1 -1
- package/dist/src/ui/App.d.ts +2 -2
- package/dist/src/ui/App.js +70 -341
- package/dist/src/ui/App.js.map +1 -1
- package/dist/src/ui/colors.d.ts +1 -1
- package/dist/src/ui/commands/aboutCommand.d.ts +1 -1
- package/dist/src/ui/commands/aboutCommand.js +6 -10
- package/dist/src/ui/commands/aboutCommand.js.map +1 -1
- package/dist/src/ui/commands/authCommand.d.ts +1 -1
- package/dist/src/ui/commands/authCommand.js.map +1 -1
- package/dist/src/ui/commands/bugCommand.js +5 -13
- package/dist/src/ui/commands/bugCommand.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.d.ts +1 -1
- package/dist/src/ui/commands/chatCommand.js +9 -27
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/clearCommand.d.ts +1 -1
- package/dist/src/ui/commands/clearCommand.js +1 -0
- package/dist/src/ui/commands/clearCommand.js.map +1 -1
- package/dist/src/ui/commands/compressCommand.d.ts +1 -1
- package/dist/src/ui/commands/compressCommand.js +0 -2
- package/dist/src/ui/commands/compressCommand.js.map +1 -1
- package/dist/src/ui/commands/copyCommand.d.ts +1 -1
- package/dist/src/ui/commands/copyCommand.js +2 -2
- package/dist/src/ui/commands/copyCommand.js.map +1 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +1 -1
- package/dist/src/ui/commands/directoryCommand.js +8 -7
- package/dist/src/ui/commands/directoryCommand.js.map +1 -1
- package/dist/src/ui/commands/docsCommand.js +1 -1
- package/dist/src/ui/commands/docsCommand.js.map +1 -1
- package/dist/src/ui/commands/helpCommand.d.ts +1 -1
- package/dist/src/ui/commands/helpCommand.js.map +1 -1
- package/dist/src/ui/commands/ideCommand.d.ts +2 -2
- package/dist/src/ui/commands/ideCommand.js +22 -92
- package/dist/src/ui/commands/ideCommand.js.map +1 -1
- package/dist/src/ui/commands/initCommand.d.ts +2 -2
- package/dist/src/ui/commands/initCommand.js +10 -20
- package/dist/src/ui/commands/initCommand.js.map +1 -1
- package/dist/src/ui/commands/mcpCommand.d.ts +1 -1
- package/dist/src/ui/commands/mcpCommand.js +8 -12
- package/dist/src/ui/commands/mcpCommand.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +1 -1
- package/dist/src/ui/commands/memoryCommand.js +9 -143
- package/dist/src/ui/commands/memoryCommand.js.map +1 -1
- package/dist/src/ui/commands/privacyCommand.d.ts +1 -1
- package/dist/src/ui/commands/privacyCommand.js.map +1 -1
- package/dist/src/ui/commands/quitCommand.d.ts +0 -1
- package/dist/src/ui/commands/quitCommand.js +0 -25
- package/dist/src/ui/commands/quitCommand.js.map +1 -1
- package/dist/src/ui/commands/restoreCommand.d.ts +1 -1
- package/dist/src/ui/commands/restoreCommand.js +8 -4
- package/dist/src/ui/commands/restoreCommand.js.map +1 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +1 -3
- package/dist/src/ui/commands/setupGithubCommand.js +27 -133
- package/dist/src/ui/commands/setupGithubCommand.js.map +1 -1
- package/dist/src/ui/commands/statsCommand.js.map +1 -1
- package/dist/src/ui/commands/themeCommand.d.ts +1 -1
- package/dist/src/ui/commands/themeCommand.js.map +1 -1
- package/dist/src/ui/commands/toolsCommand.js +1 -1
- package/dist/src/ui/commands/toolsCommand.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +11 -26
- package/dist/src/ui/commands/types.js +0 -1
- package/dist/src/ui/commands/types.js.map +1 -1
- package/dist/src/ui/commands/ums/umsInitCommand.d.ts +1 -1
- package/dist/src/ui/commands/ums/umsInitCommand.js +20 -54
- package/dist/src/ui/commands/ums/umsInitCommand.js.map +1 -1
- package/dist/src/ui/commands/vimCommand.d.ts +1 -1
- package/dist/src/ui/commands/vimCommand.js.map +1 -1
- package/dist/src/ui/components/AboutBox.d.ts +1 -2
- package/dist/src/ui/components/AboutBox.js +1 -1
- package/dist/src/ui/components/AboutBox.js.map +1 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -1
- package/dist/src/ui/components/AsciiArt.js +0 -8
- package/dist/src/ui/components/AsciiArt.js.map +1 -1
- package/dist/src/ui/components/AuthDialog.d.ts +2 -2
- package/dist/src/ui/components/AuthDialog.js +22 -19
- package/dist/src/ui/components/AuthDialog.js.map +1 -1
- package/dist/src/ui/components/AuthInProgress.d.ts +1 -1
- package/dist/src/ui/components/AuthInProgress.js +10 -6
- package/dist/src/ui/components/AuthInProgress.js.map +1 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +1 -1
- package/dist/src/ui/components/AutoAcceptIndicator.js +3 -8
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.js +25 -23
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/DebugProfiler.js +4 -5
- package/dist/src/ui/components/DebugProfiler.js.map +1 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +2 -2
- package/dist/src/ui/components/DetailedMessagesDisplay.js +1 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +3 -4
- package/dist/src/ui/components/EditorSettingsDialog.js +16 -14
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/Footer.d.ts +1 -2
- package/dist/src/ui/components/Footer.js +6 -16
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +1 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.js +3 -5
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -1
- package/dist/src/ui/components/Header.d.ts +2 -1
- package/dist/src/ui/components/Header.js +5 -13
- package/dist/src/ui/components/Header.js.map +1 -1
- package/dist/src/ui/components/Help.d.ts +2 -2
- package/dist/src/ui/components/Help.js +2 -2
- package/dist/src/ui/components/Help.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +5 -5
- package/dist/src/ui/components/HistoryItemDisplay.js +1 -5
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/IDEContextDetailDisplay.d.ts +12 -0
- package/dist/src/ui/components/IDEContextDetailDisplay.js +12 -0
- package/dist/src/ui/components/IDEContextDetailDisplay.js.map +1 -0
- package/dist/src/ui/components/InputPrompt.d.ts +5 -6
- package/dist/src/ui/components/InputPrompt.js +53 -238
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +2 -2
- package/dist/src/ui/components/LoadingIndicator.js +5 -10
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +1 -1
- package/dist/src/ui/components/MemoryUsageDisplay.js +5 -0
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -1
- package/dist/src/ui/components/OpenAIKeyPrompt.d.ts +1 -1
- package/dist/src/ui/components/OpenAIKeyPrompt.js +5 -0
- package/dist/src/ui/components/OpenAIKeyPrompt.js.map +1 -1
- package/dist/src/ui/components/PrepareLabel.d.ts +1 -1
- package/dist/src/ui/components/QwenOAuthProgress.d.ts +2 -2
- package/dist/src/ui/components/QwenOAuthProgress.js +5 -0
- package/dist/src/ui/components/QwenOAuthProgress.js.map +1 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.js +6 -8
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +1 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +1 -1
- package/dist/src/ui/components/StatsDisplay.js +8 -9
- package/dist/src/ui/components/StatsDisplay.js.map +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.js +4 -12
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +2 -3
- package/dist/src/ui/components/ThemeDialog.js +29 -14
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/Tips.d.ts +1 -1
- package/dist/src/ui/components/Tips.js +0 -1
- package/dist/src/ui/components/Tips.js.map +1 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +1 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +2 -2
- package/dist/src/ui/components/messages/CompressionMessage.js +1 -2
- package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.js +3 -16
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.js +1 -2
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +1 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/InfoMessage.js +1 -6
- package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +3 -4
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +35 -111
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +4 -4
- package/dist/src/ui/components/messages/ToolGroupMessage.js +7 -2
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +1 -3
- package/dist/src/ui/components/messages/ToolMessage.js +11 -88
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/UserMessage.js +2 -4
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +1 -1
- package/dist/src/ui/components/shared/MaxSizedBox.js +1 -1
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.js +15 -12
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +4 -17
- package/dist/src/ui/components/shared/text-buffer.js +97 -235
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +1 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.js +152 -139
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -1
- package/dist/src/ui/components/ums/UMSKeyPrompt.js +4 -4
- package/dist/src/ui/components/ums/UMSKeyPrompt.js.map +1 -1
- package/dist/src/ui/components/ums/useUMSAuth.d.ts +1 -1
- package/dist/src/ui/components/ums/useUMSAuth.js +1 -1
- package/dist/src/ui/components/ums/useUMSAuth.js.map +1 -1
- package/dist/src/ui/constants.d.ts +0 -8
- package/dist/src/ui/constants.js +0 -9
- package/dist/src/ui/constants.js.map +1 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +1 -1
- package/dist/src/ui/contexts/OverflowContext.js +5 -0
- package/dist/src/ui/contexts/OverflowContext.js.map +1 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +3 -5
- package/dist/src/ui/contexts/SessionContext.js +16 -3
- package/dist/src/ui/contexts/SessionContext.js.map +1 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +1 -1
- package/dist/src/ui/contexts/VimModeContext.d.ts +1 -1
- package/dist/src/ui/contexts/VimModeContext.js +4 -4
- package/dist/src/ui/contexts/VimModeContext.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +3 -3
- package/dist/src/ui/hooks/atCommandProcessor.js +20 -20
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +3 -3
- package/dist/src/ui/hooks/shellCommandProcessor.js +19 -15
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +6 -14
- package/dist/src/ui/hooks/slashCommandProcessor.js +65 -243
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +2 -2
- package/dist/src/ui/hooks/useAtCompletion.js +4 -6
- package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useAuthCommand.d.ts +2 -2
- package/dist/src/ui/hooks/useAuthCommand.js +4 -5
- package/dist/src/ui/hooks/useAuthCommand.js.map +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +2 -4
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +19 -20
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +5 -8
- package/dist/src/ui/hooks/useCommandCompletion.js +9 -30
- package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useCompletion.js +1 -1
- package/dist/src/ui/hooks/useCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +1 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +2 -2
- package/dist/src/ui/hooks/useEditorSettings.js.map +1 -1
- package/dist/src/ui/hooks/useFocus.d.ts +0 -4
- package/dist/src/ui/hooks/useFocus.js +4 -4
- package/dist/src/ui/hooks/useFocus.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +5 -10
- package/dist/src/ui/hooks/useGeminiStream.js +71 -118
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.js +1 -1
- package/dist/src/ui/hooks/useGitBranchName.js.map +1 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +1 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +16 -4
- package/dist/src/ui/hooks/useKeypress.js +140 -8
- package/dist/src/ui/hooks/useKeypress.js.map +1 -1
- package/dist/src/ui/hooks/useLogger.d.ts +1 -2
- package/dist/src/ui/hooks/useLogger.js +3 -3
- package/dist/src/ui/hooks/useLogger.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.js +2 -2
- 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 +2 -6
- package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -1
- package/dist/src/ui/hooks/useQwenAuth.d.ts +1 -1
- package/dist/src/ui/hooks/useQwenAuth.js +1 -1
- package/dist/src/ui/hooks/useQwenAuth.js.map +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +3 -3
- package/dist/src/ui/hooks/useReactToolScheduler.js +18 -17
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +2 -2
- package/dist/src/ui/hooks/useShellHistory.d.ts +1 -2
- package/dist/src/ui/hooks/useShellHistory.js +10 -9
- package/dist/src/ui/hooks/useShellHistory.js.map +1 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +3 -3
- package/dist/src/ui/hooks/useShowMemoryCommand.js +1 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +2 -2
- package/dist/src/ui/hooks/useThemeCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useThemeCommand.js +9 -9
- package/dist/src/ui/hooks/useThemeCommand.js.map +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +4 -5
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +4 -5
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +4 -5
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -1
- package/dist/src/ui/themes/ansi-light.js +1 -2
- package/dist/src/ui/themes/ansi-light.js.map +1 -1
- package/dist/src/ui/themes/ansi.js +1 -2
- package/dist/src/ui/themes/ansi.js.map +1 -1
- package/dist/src/ui/themes/googlecode.js +1 -1
- package/dist/src/ui/themes/googlecode.js.map +1 -1
- package/dist/src/ui/themes/no-color.js +1 -30
- package/dist/src/ui/themes/no-color.js.map +1 -1
- package/dist/src/ui/themes/qwen-dark.js +1 -2
- package/dist/src/ui/themes/qwen-dark.js.map +1 -1
- package/dist/src/ui/themes/qwen-light.js +1 -2
- package/dist/src/ui/themes/qwen-light.js.map +1 -1
- package/dist/src/ui/themes/theme-manager.d.ts +1 -9
- package/dist/src/ui/themes/theme-manager.js +7 -81
- package/dist/src/ui/themes/theme-manager.js.map +1 -1
- package/dist/src/ui/themes/theme.d.ts +2 -45
- package/dist/src/ui/themes/theme.js +107 -120
- package/dist/src/ui/themes/theme.js.map +1 -1
- package/dist/src/ui/types.d.ts +6 -34
- package/dist/src/ui/types.js +0 -2
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +2 -3
- package/dist/src/ui/utils/CodeColorizer.js +4 -5
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +1 -2
- package/dist/src/ui/utils/ConsolePatcher.js +1 -4
- package/dist/src/ui/utils/ConsolePatcher.js.map +1 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +1 -8
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.js +3 -5
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/clipboardUtils.js +4 -4
- package/dist/src/ui/utils/clipboardUtils.js.map +1 -1
- package/dist/src/ui/utils/commandUtils.d.ts +1 -2
- package/dist/src/ui/utils/commandUtils.js +15 -74
- package/dist/src/ui/utils/commandUtils.js.map +1 -1
- package/dist/src/ui/utils/computeStats.d.ts +1 -1
- package/dist/src/ui/utils/computeStats.js +1 -3
- package/dist/src/ui/utils/computeStats.js.map +1 -1
- package/dist/src/ui/utils/errorParsing.d.ts +7 -0
- package/dist/src/ui/utils/errorParsing.js +90 -0
- package/dist/src/ui/utils/errorParsing.js.map +1 -0
- package/dist/src/ui/utils/textUtils.d.ts +0 -18
- package/dist/src/ui/utils/textUtils.js +0 -44
- package/dist/src/ui/utils/textUtils.js.map +1 -1
- package/dist/src/ui/utils/updateCheck.d.ts +2 -2
- package/dist/src/ui/utils/updateCheck.js +2 -2
- package/dist/src/ui/utils/updateCheck.js.map +1 -1
- package/dist/src/utils/cleanup.d.ts +2 -2
- package/dist/src/utils/cleanup.js +6 -7
- package/dist/src/utils/cleanup.js.map +1 -1
- package/dist/src/utils/events.d.ts +1 -1
- package/dist/src/utils/events.js +1 -1
- package/dist/src/utils/events.js.map +1 -1
- package/dist/src/utils/gitUtils.d.ts +1 -21
- package/dist/src/utils/gitUtils.js +4 -69
- package/dist/src/utils/gitUtils.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +4 -4
- package/dist/src/utils/handleAutoUpdate.js +3 -4
- package/dist/src/utils/handleAutoUpdate.js.map +1 -1
- package/dist/src/utils/installationInfo.js +3 -3
- package/dist/src/utils/installationInfo.js.map +1 -1
- package/dist/src/utils/package.js +2 -2
- package/dist/src/utils/package.js.map +1 -1
- package/dist/src/utils/readStdin.js +0 -25
- package/dist/src/utils/readStdin.js.map +1 -1
- package/dist/src/utils/resolvePath.js +2 -2
- package/dist/src/utils/resolvePath.js.map +1 -1
- package/dist/src/utils/sandbox.d.ts +2 -2
- package/dist/src/utils/sandbox.js +444 -460
- package/dist/src/utils/sandbox.js.map +1 -1
- package/dist/src/utils/spawnWrapper.d.ts +1 -1
- package/dist/src/utils/spawnWrapper.js +1 -1
- package/dist/src/utils/spawnWrapper.js.map +1 -1
- package/dist/src/utils/startupWarnings.js +2 -2
- package/dist/src/utils/startupWarnings.js.map +1 -1
- package/dist/src/utils/updateEventEmitter.d.ts +1 -1
- package/dist/src/utils/updateEventEmitter.js +1 -1
- package/dist/src/utils/updateEventEmitter.js.map +1 -1
- package/dist/src/utils/userStartupWarnings.js +3 -3
- package/dist/src/utils/userStartupWarnings.js.map +1 -1
- package/dist/src/utils/version.js +1 -1
- package/dist/src/utils/version.js.map +1 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +1 -1
- package/dist/src/validateNonInterActiveAuth.js +7 -4
- package/dist/src/validateNonInterActiveAuth.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -10
- package/dist/src/commands/extensions/disable.d.ts +0 -14
- package/dist/src/commands/extensions/disable.js +0 -42
- package/dist/src/commands/extensions/disable.js.map +0 -1
- package/dist/src/commands/extensions/enable.d.ts +0 -14
- package/dist/src/commands/extensions/enable.js +0 -48
- package/dist/src/commands/extensions/enable.js.map +0 -1
- package/dist/src/commands/extensions/install.d.ts +0 -13
- package/dist/src/commands/extensions/install.js +0 -48
- package/dist/src/commands/extensions/install.js.map +0 -1
- package/dist/src/commands/extensions/install.test.d.ts +0 -6
- package/dist/src/commands/extensions/install.test.js +0 -25
- package/dist/src/commands/extensions/install.test.js.map +0 -1
- package/dist/src/commands/extensions/list.d.ts +0 -8
- package/dist/src/commands/extensions/list.js +0 -32
- package/dist/src/commands/extensions/list.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.d.ts +0 -12
- package/dist/src/commands/extensions/uninstall.js +0 -38
- package/dist/src/commands/extensions/uninstall.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.test.d.ts +0 -6
- package/dist/src/commands/extensions/uninstall.test.js +0 -18
- package/dist/src/commands/extensions/uninstall.test.js.map +0 -1
- package/dist/src/commands/extensions/update.d.ts +0 -12
- package/dist/src/commands/extensions/update.js +0 -38
- package/dist/src/commands/extensions/update.js.map +0 -1
- package/dist/src/commands/extensions.d.ts +0 -7
- package/dist/src/commands/extensions.js +0 -29
- package/dist/src/commands/extensions.js.map +0 -1
- package/dist/src/commands/mcp/add.d.ts +0 -7
- package/dist/src/commands/mcp/add.js +0 -167
- package/dist/src/commands/mcp/add.js.map +0 -1
- package/dist/src/commands/mcp/list.d.ts +0 -8
- package/dist/src/commands/mcp/list.js +0 -110
- package/dist/src/commands/mcp/list.js.map +0 -1
- package/dist/src/commands/mcp/remove.d.ts +0 -7
- package/dist/src/commands/mcp/remove.js +0 -44
- package/dist/src/commands/mcp/remove.js.map +0 -1
- package/dist/src/commands/mcp.d.ts +0 -7
- package/dist/src/commands/mcp.js +0 -23
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/config/auth.test.d.ts +0 -6
- package/dist/src/config/auth.test.js +0 -57
- package/dist/src/config/auth.test.js.map +0 -1
- package/dist/src/config/extensions/variableSchema.d.ts +0 -28
- package/dist/src/config/extensions/variableSchema.js +0 -18
- package/dist/src/config/extensions/variableSchema.js.map +0 -1
- package/dist/src/config/extensions/variables.d.ts +0 -17
- package/dist/src/config/extensions/variables.js +0 -40
- package/dist/src/config/extensions/variables.js.map +0 -1
- package/dist/src/config/extensions/variables.test.d.ts +0 -6
- package/dist/src/config/extensions/variables.test.js +0 -17
- package/dist/src/config/extensions/variables.test.js.map +0 -1
- package/dist/src/config/keyBindings.d.ts +0 -66
- package/dist/src/config/keyBindings.js +0 -141
- package/dist/src/config/keyBindings.js.map +0 -1
- package/dist/src/config/keyBindings.test.d.ts +0 -6
- package/dist/src/config/keyBindings.test.js +0 -51
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/config/settingsSchema.d.ts +0 -884
- package/dist/src/config/settingsSchema.js +0 -857
- package/dist/src/config/settingsSchema.js.map +0 -1
- package/dist/src/config/settingsSchema.test.d.ts +0 -6
- package/dist/src/config/settingsSchema.test.js +0 -194
- package/dist/src/config/settingsSchema.test.js.map +0 -1
- package/dist/src/config/trustedFolders.d.ts +0 -37
- package/dist/src/config/trustedFolders.js +0 -118
- package/dist/src/config/trustedFolders.js.map +0 -1
- package/dist/src/config/trustedFolders.test.d.ts +0 -6
- package/dist/src/config/trustedFolders.test.js +0 -164
- package/dist/src/config/trustedFolders.test.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -247
- package/dist/src/gemini.test.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
- package/dist/src/services/BuiltinCommandLoader.test.js +0 -130
- package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
- package/dist/src/services/CommandService.test.d.ts +0 -6
- package/dist/src/services/CommandService.test.js +0 -233
- package/dist/src/services/CommandService.test.js.map +0 -1
- package/dist/src/services/McpPromptLoader.test.d.ts +0 -6
- package/dist/src/services/McpPromptLoader.test.js +0 -114
- package/dist/src/services/McpPromptLoader.test.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.d.ts +0 -12
- package/dist/src/services/prompt-processors/atFileProcessor.js +0 -62
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +0 -174
- package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.d.ts +0 -29
- package/dist/src/services/prompt-processors/injectionParser.js +0 -60
- package/dist/src/services/prompt-processors/injectionParser.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/injectionParser.test.js +0 -189
- package/dist/src/services/prompt-processors/injectionParser.test.js.map +0 -1
- package/dist/src/test-utils/customMatchers.d.ts +0 -14
- package/dist/src/test-utils/customMatchers.js +0 -40
- package/dist/src/test-utils/customMatchers.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.d.ts +0 -18
- package/dist/src/test-utils/mockCommandContext.js +0 -90
- package/dist/src/test-utils/mockCommandContext.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.test.d.ts +0 -6
- package/dist/src/test-utils/mockCommandContext.test.js +0 -51
- package/dist/src/test-utils/mockCommandContext.test.js.map +0 -1
- package/dist/src/test-utils/render.d.ts +0 -8
- package/dist/src/test-utils/render.js +0 -10
- package/dist/src/test-utils/render.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -16
- package/dist/src/ui/IdeIntegrationNudge.js +0 -52
- package/dist/src/ui/IdeIntegrationNudge.js.map +0 -1
- package/dist/src/ui/commands/agentsCommand.d.ts +0 -7
- package/dist/src/ui/commands/agentsCommand.js +0 -32
- package/dist/src/ui/commands/agentsCommand.js.map +0 -1
- package/dist/src/ui/commands/approvalModeCommand.d.ts +0 -7
- package/dist/src/ui/commands/approvalModeCommand.js +0 -340
- package/dist/src/ui/commands/approvalModeCommand.js.map +0 -1
- package/dist/src/ui/commands/approvalModeCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/approvalModeCommand.test.js +0 -293
- package/dist/src/ui/commands/approvalModeCommand.test.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.d.ts +0 -7
- package/dist/src/ui/commands/modelCommand.js +0 -68
- package/dist/src/ui/commands/modelCommand.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/modelCommand.test.js +0 -138
- package/dist/src/ui/commands/modelCommand.test.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +0 -7
- package/dist/src/ui/commands/settingsCommand.js +0 -16
- package/dist/src/ui/commands/settingsCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/setupGithubCommand.test.js +0 -167
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
- package/dist/src/ui/commands/summaryCommand.d.ts +0 -7
- package/dist/src/ui/commands/summaryCommand.js +0 -149
- package/dist/src/ui/commands/summaryCommand.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
- package/dist/src/ui/commands/terminalSetupCommand.js +0 -41
- package/dist/src/ui/commands/terminalSetupCommand.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AuthDialog.test.js +0 -280
- package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +0 -9
- package/dist/src/ui/components/ContextUsageDisplay.js +0 -14
- package/dist/src/ui/components/ContextUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +0 -17
- package/dist/src/ui/components/FolderTrustDialog.js +0 -45
- package/dist/src/ui/components/FolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/FolderTrustDialog.test.js +0 -63
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/Header.test.d.ts +0 -6
- package/dist/src/ui/components/Header.test.js +0 -37
- package/dist/src/ui/components/Header.test.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -93
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/LoadingIndicator.test.js +0 -190
- package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/components/ModelSelectionDialog.d.ts +0 -14
- package/dist/src/ui/components/ModelSelectionDialog.js +0 -26
- package/dist/src/ui/components/ModelSelectionDialog.js.map +0 -1
- package/dist/src/ui/components/ModelSelectionDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ModelSelectionDialog.test.js +0 -124
- package/dist/src/ui/components/ModelSelectionDialog.test.js.map +0 -1
- package/dist/src/ui/components/ModelSwitchDialog.d.ts +0 -15
- package/dist/src/ui/components/ModelSwitchDialog.js +0 -37
- package/dist/src/ui/components/ModelSwitchDialog.js.map +0 -1
- package/dist/src/ui/components/ModelSwitchDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ModelSwitchDialog.test.js +0 -125
- package/dist/src/ui/components/ModelSwitchDialog.test.js.map +0 -1
- package/dist/src/ui/components/OpenAIKeyPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/OpenAIKeyPrompt.test.js +0 -44
- package/dist/src/ui/components/OpenAIKeyPrompt.test.js.map +0 -1
- package/dist/src/ui/components/PlanSummaryDisplay.d.ts +0 -14
- package/dist/src/ui/components/PlanSummaryDisplay.js +0 -9
- package/dist/src/ui/components/PlanSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/QuitConfirmationDialog.d.ts +0 -17
- package/dist/src/ui/components/QuitConfirmationDialog.js +0 -44
- package/dist/src/ui/components/QuitConfirmationDialog.js.map +0 -1
- package/dist/src/ui/components/QwenOAuthProgress.test.d.ts +0 -6
- package/dist/src/ui/components/QwenOAuthProgress.test.js +0 -292
- package/dist/src/ui/components/QwenOAuthProgress.test.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +0 -15
- package/dist/src/ui/components/SettingsDialog.js +0 -550
- package/dist/src/ui/components/SettingsDialog.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/SettingsDialog.test.js +0 -646
- package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +0 -40
- package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +0 -1
- package/dist/src/ui/components/TodoDisplay.d.ts +0 -16
- package/dist/src/ui/components/TodoDisplay.js +0 -27
- package/dist/src/ui/components/TodoDisplay.js.map +0 -1
- package/dist/src/ui/components/TodoDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/TodoDisplay.test.js +0 -77
- package/dist/src/ui/components/TodoDisplay.test.js.map +0 -1
- package/dist/src/ui/components/WelcomeBackDialog.d.ts +0 -13
- package/dist/src/ui/components/WelcomeBackDialog.js +0 -32
- package/dist/src/ui/components/WelcomeBackDialog.js.map +0 -1
- package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +0 -11
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +0 -42
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
- package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -239
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
- package/dist/src/ui/components/messages/SummaryMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/SummaryMessage.js +0 -35
- package/dist/src/ui/components/messages/SummaryMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -137
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +0 -259
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessage.test.js +0 -149
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -154
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +0 -111
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/TextInput.d.ts +0 -16
- package/dist/src/ui/components/shared/TextInput.js +0 -127
- package/dist/src/ui/components/shared/TextInput.js.map +0 -1
- package/dist/src/ui/components/subagents/constants.d.ts +0 -23
- package/dist/src/ui/components/subagents/constants.js +0 -67
- package/dist/src/ui/components/subagents/constants.js.map +0 -1
- package/dist/src/ui/components/subagents/create/AgentCreationWizard.d.ts +0 -15
- package/dist/src/ui/components/subagents/create/AgentCreationWizard.js +0 -174
- package/dist/src/ui/components/subagents/create/AgentCreationWizard.js.map +0 -1
- package/dist/src/ui/components/subagents/create/ColorSelector.d.ts +0 -15
- package/dist/src/ui/components/subagents/create/ColorSelector.js +0 -42
- package/dist/src/ui/components/subagents/create/ColorSelector.js.map +0 -1
- package/dist/src/ui/components/subagents/create/CreationSummary.d.ts +0 -10
- package/dist/src/ui/components/subagents/create/CreationSummary.js +0 -163
- package/dist/src/ui/components/subagents/create/CreationSummary.js.map +0 -1
- package/dist/src/ui/components/subagents/create/DescriptionInput.d.ts +0 -10
- package/dist/src/ui/components/subagents/create/DescriptionInput.js +0 -105
- package/dist/src/ui/components/subagents/create/DescriptionInput.js.map +0 -1
- package/dist/src/ui/components/subagents/create/GenerationMethodSelector.d.ts +0 -10
- package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js +0 -33
- package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js.map +0 -1
- package/dist/src/ui/components/subagents/create/LocationSelector.d.ts +0 -10
- package/dist/src/ui/components/subagents/create/LocationSelector.js +0 -33
- package/dist/src/ui/components/subagents/create/LocationSelector.js.map +0 -1
- package/dist/src/ui/components/subagents/create/TextEntryStep.d.ts +0 -26
- package/dist/src/ui/components/subagents/create/TextEntryStep.js +0 -28
- package/dist/src/ui/components/subagents/create/TextEntryStep.js.map +0 -1
- package/dist/src/ui/components/subagents/create/ToolSelector.d.ts +0 -16
- package/dist/src/ui/components/subagents/create/ToolSelector.js +0 -143
- package/dist/src/ui/components/subagents/create/ToolSelector.js.map +0 -1
- package/dist/src/ui/components/subagents/index.d.ts +0 -8
- package/dist/src/ui/components/subagents/index.js +0 -12
- package/dist/src/ui/components/subagents/index.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/ActionSelectionStep.d.ts +0 -13
- package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js +0 -46
- package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentDeleteStep.d.ts +0 -13
- package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js +0 -33
- package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentEditStep.d.ts +0 -15
- package/dist/src/ui/components/subagents/manage/AgentEditStep.js +0 -63
- package/dist/src/ui/components/subagents/manage/AgentEditStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentSelectionStep.d.ts +0 -12
- package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js +0 -225
- package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentViewerStep.d.ts +0 -11
- package/dist/src/ui/components/subagents/manage/AgentViewerStep.js +0 -19
- package/dist/src/ui/components/subagents/manage/AgentViewerStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.d.ts +0 -15
- package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js +0 -212
- package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js.map +0 -1
- package/dist/src/ui/components/subagents/reducers.d.ts +0 -14
- package/dist/src/ui/components/subagents/reducers.js +0 -162
- package/dist/src/ui/components/subagents/reducers.js.map +0 -1
- package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.d.ts +0 -20
- package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js +0 -194
- package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js.map +0 -1
- package/dist/src/ui/components/subagents/types.d.ts +0 -137
- package/dist/src/ui/components/subagents/types.js +0 -15
- package/dist/src/ui/components/subagents/types.js.map +0 -1
- package/dist/src/ui/components/subagents/utils.d.ts +0 -15
- package/dist/src/ui/components/subagents/utils.js +0 -79
- package/dist/src/ui/components/subagents/utils.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +0 -32
- package/dist/src/ui/contexts/KeypressContext.js +0 -371
- package/dist/src/ui/contexts/KeypressContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/KeypressContext.test.js +0 -894
- package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +0 -9
- package/dist/src/ui/contexts/SettingsContext.js +0 -15
- package/dist/src/ui/contexts/SettingsContext.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -832
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -329
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/useAgentsManagerDialog.d.ts +0 -11
- package/dist/src/ui/hooks/useAgentsManagerDialog.js +0 -21
- package/dist/src/ui/hooks/useAgentsManagerDialog.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +0 -263
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useDialogClose.d.ts +0 -34
- package/dist/src/ui/hooks/useDialogClose.js +0 -62
- package/dist/src/ui/hooks/useDialogClose.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/useEditorSettings.test.js +0 -164
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +0 -13
- package/dist/src/ui/hooks/useFolderTrust.js +0 -64
- package/dist/src/ui/hooks/useFolderTrust.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.test.js +0 -175
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHistoryManager.test.js +0 -171
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistory.test.js +0 -207
- package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +0 -15
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +0 -20
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +0 -1
- package/dist/src/ui/hooks/useLaunchEditor.d.ts +0 -10
- package/dist/src/ui/hooks/useLaunchEditor.js +0 -70
- package/dist/src/ui/hooks/useLaunchEditor.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -91
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +0 -22
- package/dist/src/ui/hooks/useMessageQueue.js +0 -49
- package/dist/src/ui/hooks/useMessageQueue.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMessageQueue.test.js +0 -158
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -154
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/usePromptCompletion.js +0 -177
- package/dist/src/ui/hooks/usePromptCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useQuitConfirmation.d.ts +0 -14
- package/dist/src/ui/hooks/useQuitConfirmation.js +0 -36
- package/dist/src/ui/hooks/useQuitConfirmation.js.map +0 -1
- package/dist/src/ui/hooks/useQwenAuth.test.d.ts +0 -6
- package/dist/src/ui/hooks/useQwenAuth.test.js +0 -292
- package/dist/src/ui/hooks/useQwenAuth.test.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -163
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +0 -10
- package/dist/src/ui/hooks/useSettingsCommand.js +0 -21
- package/dist/src/ui/hooks/useSettingsCommand.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellHistory.test.js +0 -187
- package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -272
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useSubagentCreateDialog.d.ts +0 -10
- package/dist/src/ui/hooks/useSubagentCreateDialog.js +0 -21
- package/dist/src/ui/hooks/useSubagentCreateDialog.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTimer.test.js +0 -90
- package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolScheduler.test.js +0 -850
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useVisionAutoSwitch.d.ts +0 -47
- package/dist/src/ui/hooks/useVisionAutoSwitch.js +0 -262
- package/dist/src/ui/hooks/useVisionAutoSwitch.js.map +0 -1
- package/dist/src/ui/hooks/useVisionAutoSwitch.test.d.ts +0 -6
- package/dist/src/ui/hooks/useVisionAutoSwitch.test.js +0 -515
- package/dist/src/ui/hooks/useVisionAutoSwitch.test.js.map +0 -1
- package/dist/src/ui/hooks/useWelcomeBack.d.ts +0 -23
- package/dist/src/ui/hooks/useWelcomeBack.js +0 -79
- package/dist/src/ui/hooks/useWelcomeBack.js.map +0 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +0 -13
- package/dist/src/ui/hooks/useWorkspaceMigration.js +0 -53
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +0 -1
- package/dist/src/ui/keyMatchers.d.ts +0 -27
- package/dist/src/ui/keyMatchers.js +0 -68
- package/dist/src/ui/keyMatchers.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.d.ts +0 -6
- package/dist/src/ui/keyMatchers.test.js +0 -276
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/models/availableModels.d.ts +0 -29
- package/dist/src/ui/models/availableModels.js +0 -40
- package/dist/src/ui/models/availableModels.js.map +0 -1
- package/dist/src/ui/semantic-colors.d.ts +0 -7
- package/dist/src/ui/semantic-colors.js +0 -24
- package/dist/src/ui/semantic-colors.js.map +0 -1
- package/dist/src/ui/textConstants.d.ts +0 -9
- package/dist/src/ui/textConstants.js +0 -10
- package/dist/src/ui/textConstants.js.map +0 -1
- package/dist/src/ui/themes/color-utils.test.d.ts +0 -6
- package/dist/src/ui/themes/color-utils.test.js +0 -197
- package/dist/src/ui/themes/color-utils.test.js.map +0 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +0 -37
- package/dist/src/ui/themes/semantic-tokens.js +0 -94
- package/dist/src/ui/themes/semantic-tokens.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.test.d.ts +0 -6
- package/dist/src/ui/themes/theme-manager.test.js +0 -142
- package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
- package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -161
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.test.js +0 -65
- package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/commandUtils.test.js +0 -349
- package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/displayUtils.test.js +0 -42
- package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
- package/dist/src/ui/utils/formatters.test.d.ts +0 -6
- package/dist/src/ui/utils/formatters.test.js +0 -56
- package/dist/src/ui/utils/formatters.test.js.map +0 -1
- package/dist/src/ui/utils/isNarrowWidth.d.ts +0 -6
- package/dist/src/ui/utils/isNarrowWidth.js +0 -9
- package/dist/src/ui/utils/isNarrowWidth.js.map +0 -1
- package/dist/src/ui/utils/kittyProtocolDetector.d.ts +0 -13
- package/dist/src/ui/utils/kittyProtocolDetector.js +0 -88
- package/dist/src/ui/utils/kittyProtocolDetector.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.test.js +0 -42
- package/dist/src/ui/utils/markdownUtilities.test.js.map +0 -1
- package/dist/src/ui/utils/platformConstants.d.ts +0 -52
- package/dist/src/ui/utils/platformConstants.js +0 -53
- package/dist/src/ui/utils/platformConstants.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +0 -30
- package/dist/src/ui/utils/terminalSetup.js +0 -281
- package/dist/src/ui/utils/terminalSetup.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.test.js +0 -145
- package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
- package/dist/src/utils/checks.d.ts +0 -19
- package/dist/src/utils/checks.js +0 -24
- package/dist/src/utils/checks.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +0 -32
- package/dist/src/utils/dialogScopeUtils.js +0 -48
- package/dist/src/utils/dialogScopeUtils.js.map +0 -1
- package/dist/src/utils/errors.d.ts +0 -6
- package/dist/src/utils/errors.js +0 -12
- package/dist/src/utils/errors.js.map +0 -1
- package/dist/src/utils/gitUtils.test.d.ts +0 -6
- package/dist/src/utils/gitUtils.test.js +0 -113
- package/dist/src/utils/gitUtils.test.js.map +0 -1
- package/dist/src/utils/installationInfo.test.d.ts +0 -6
- package/dist/src/utils/installationInfo.test.js +0 -242
- package/dist/src/utils/installationInfo.test.js.map +0 -1
- package/dist/src/utils/readStdin.test.d.ts +0 -6
- package/dist/src/utils/readStdin.test.js +0 -88
- package/dist/src/utils/readStdin.test.js.map +0 -1
- package/dist/src/utils/settingsUtils.d.ts +0 -134
- package/dist/src/utils/settingsUtils.js +0 -330
- package/dist/src/utils/settingsUtils.js.map +0 -1
- package/dist/src/utils/settingsUtils.test.d.ts +0 -6
- package/dist/src/utils/settingsUtils.test.js +0 -511
- package/dist/src/utils/settingsUtils.test.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.test.js +0 -67
- package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
- package/dist/src/zed-integration/acp.d.ts +0 -63
- package/dist/src/zed-integration/acp.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.d.ts +0 -19
- package/dist/src/zed-integration/fileSystemService.js +0 -43
- package/dist/src/zed-integration/fileSystemService.js.map +0 -1
- package/dist/src/zed-integration/schema.d.ts +0 -11782
- package/dist/src/zed-integration/schema.js +0 -311
- package/dist/src/zed-integration/schema.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.d.ts +0 -10
- package/dist/src/zed-integration/zedIntegration.js +0 -787
- package/dist/src/zed-integration/zedIntegration.js.map +0 -1
package/dist/src/ui/App.js
CHANGED
|
@@ -5,24 +5,17 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState, useRef } from 'react';
|
|
8
|
-
import { Box, measureElement, Static, Text, useStdin, useStdout, } from 'ink';
|
|
9
|
-
import { StreamingState, MessageType
|
|
8
|
+
import { Box, measureElement, Static, Text, useStdin, useStdout, useInput, } from 'ink';
|
|
9
|
+
import { StreamingState, MessageType } from './types.js';
|
|
10
10
|
import { useTerminalSize } from './hooks/useTerminalSize.js';
|
|
11
11
|
import { useGeminiStream } from './hooks/useGeminiStream.js';
|
|
12
12
|
import { useLoadingIndicator } from './hooks/useLoadingIndicator.js';
|
|
13
13
|
import { useThemeCommand } from './hooks/useThemeCommand.js';
|
|
14
14
|
import { useAuthCommand } from './hooks/useAuthCommand.js';
|
|
15
15
|
import { useQwenAuth } from './hooks/useQwenAuth.js';
|
|
16
|
-
import { useFolderTrust } from './hooks/useFolderTrust.js';
|
|
17
16
|
import { useEditorSettings } from './hooks/useEditorSettings.js';
|
|
18
|
-
import { useQuitConfirmation } from './hooks/useQuitConfirmation.js';
|
|
19
|
-
import { useWelcomeBack } from './hooks/useWelcomeBack.js';
|
|
20
|
-
import { useDialogClose } from './hooks/useDialogClose.js';
|
|
21
17
|
import { useSlashCommandProcessor } from './hooks/slashCommandProcessor.js';
|
|
22
|
-
import { useSubagentCreateDialog } from './hooks/useSubagentCreateDialog.js';
|
|
23
|
-
import { useAgentsManagerDialog } from './hooks/useAgentsManagerDialog.js';
|
|
24
18
|
import { useAutoAcceptIndicator } from './hooks/useAutoAcceptIndicator.js';
|
|
25
|
-
import { useMessageQueue } from './hooks/useMessageQueue.js';
|
|
26
19
|
import { useConsoleMessages } from './hooks/useConsoleMessages.js';
|
|
27
20
|
import { Header } from './components/Header.js';
|
|
28
21
|
import { LoadingIndicator } from './components/LoadingIndicator.js';
|
|
@@ -35,28 +28,19 @@ import { AuthDialog } from './components/AuthDialog.js';
|
|
|
35
28
|
import { AuthInProgress } from './components/AuthInProgress.js';
|
|
36
29
|
import { QwenOAuthProgress } from './components/QwenOAuthProgress.js';
|
|
37
30
|
import { EditorSettingsDialog } from './components/EditorSettingsDialog.js';
|
|
38
|
-
import { FolderTrustDialog } from './components/FolderTrustDialog.js';
|
|
39
31
|
import { ShellConfirmationDialog } from './components/ShellConfirmationDialog.js';
|
|
40
|
-
import { QuitConfirmationDialog } from './components/QuitConfirmationDialog.js';
|
|
41
|
-
import { RadioButtonSelect } from './components/shared/RadioButtonSelect.js';
|
|
42
|
-
import { ModelSelectionDialog } from './components/ModelSelectionDialog.js';
|
|
43
|
-
import { ModelSwitchDialog, } from './components/ModelSwitchDialog.js';
|
|
44
|
-
import { getOpenAIAvailableModelFromEnv, getFilteredQwenModels, } from './models/availableModels.js';
|
|
45
|
-
import { processVisionSwitchOutcome } from './hooks/useVisionAutoSwitch.js';
|
|
46
|
-
import { AgentCreationWizard, AgentsManagerDialog, } from './components/subagents/index.js';
|
|
47
32
|
import { Colors } from './colors.js';
|
|
48
33
|
import { loadHierarchicalGeminiMemory } from '../config/config.js';
|
|
49
|
-
import { SettingScope } from '../config/settings.js';
|
|
50
34
|
import { Tips } from './components/Tips.js';
|
|
51
35
|
import { ConsolePatcher } from './utils/ConsolePatcher.js';
|
|
52
36
|
import { registerCleanup } from '../utils/cleanup.js';
|
|
53
37
|
import { DetailedMessagesDisplay } from './components/DetailedMessagesDisplay.js';
|
|
54
38
|
import { HistoryItemDisplay } from './components/HistoryItemDisplay.js';
|
|
55
39
|
import { ContextSummaryDisplay } from './components/ContextSummaryDisplay.js';
|
|
40
|
+
import { IDEContextDetailDisplay } from './components/IDEContextDetailDisplay.js';
|
|
56
41
|
import { useHistory } from './hooks/useHistoryManager.js';
|
|
57
42
|
import process from 'node:process';
|
|
58
|
-
import {
|
|
59
|
-
import { IdeIntegrationNudge } from './IdeIntegrationNudge.js';
|
|
43
|
+
import { getErrorMessage, getAllGeminiMdFilenames, ApprovalMode, isEditorAvailable, FlashFallbackEvent, logFlashFallback, AuthType, ideContext, } from '@umsai/ums-code-core';
|
|
60
44
|
import { validateAuthMethod } from '../config/auth.js';
|
|
61
45
|
import { useLogger } from './hooks/useLogger.js';
|
|
62
46
|
import { StreamingContext } from './contexts/StreamingContext.js';
|
|
@@ -67,42 +51,17 @@ import { useBracketedPaste } from './hooks/useBracketedPaste.js';
|
|
|
67
51
|
import { useTextBuffer } from './components/shared/text-buffer.js';
|
|
68
52
|
import { useVimMode, VimModeProvider } from './contexts/VimModeContext.js';
|
|
69
53
|
import { useVim } from './hooks/vim.js';
|
|
70
|
-
import
|
|
71
|
-
import { KeypressProvider } from './contexts/KeypressContext.js';
|
|
72
|
-
import { useKittyKeyboardProtocol } from './hooks/useKittyKeyboardProtocol.js';
|
|
73
|
-
import { keyMatchers, Command } from './keyMatchers.js';
|
|
74
|
-
import * as fs from 'node:fs';
|
|
54
|
+
import * as fs from 'fs';
|
|
75
55
|
import { UpdateNotification } from './components/UpdateNotification.js';
|
|
56
|
+
import { isProQuotaExceededError, isGenericQuotaExceededError, UserTierId, } from '@umsai/ums-code-core';
|
|
76
57
|
import ansiEscapes from 'ansi-escapes';
|
|
77
58
|
import { OverflowProvider } from './contexts/OverflowContext.js';
|
|
78
59
|
import { ShowMoreLines } from './components/ShowMoreLines.js';
|
|
79
60
|
import { PrivacyNotice } from './privacy/PrivacyNotice.js';
|
|
80
|
-
import { useSettingsCommand } from './hooks/useSettingsCommand.js';
|
|
81
|
-
import { SettingsDialog } from './components/SettingsDialog.js';
|
|
82
61
|
import { setUpdateHandler } from '../utils/handleAutoUpdate.js';
|
|
83
62
|
import { appEvents, AppEvent } from '../utils/events.js';
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
import { WorkspaceMigrationDialog } from './components/WorkspaceMigrationDialog.js';
|
|
87
|
-
import { WelcomeBackDialog } from './components/WelcomeBackDialog.js';
|
|
88
|
-
// Maximum number of queued messages to display in UI to prevent performance issues
|
|
89
|
-
const MAX_DISPLAYED_QUEUED_MESSAGES = 3;
|
|
90
|
-
function isToolExecuting(pendingHistoryItems) {
|
|
91
|
-
return pendingHistoryItems.some((item) => {
|
|
92
|
-
if (item && item.type === 'tool_group') {
|
|
93
|
-
return item.tools.some((tool) => ToolCallStatus.Executing === tool.status);
|
|
94
|
-
}
|
|
95
|
-
return false;
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
export const AppWrapper = (props) => {
|
|
99
|
-
const kittyProtocolStatus = useKittyKeyboardProtocol();
|
|
100
|
-
const nodeMajorVersion = parseInt(process.versions.node.split('.')[0], 10);
|
|
101
|
-
// TODO 解决上下按键无响应问题
|
|
102
|
-
let pasteWorkaround = process.platform === 'win32' || nodeMajorVersion < 20;
|
|
103
|
-
pasteWorkaround = false;
|
|
104
|
-
return (_jsx(KeypressProvider, { kittyProtocolEnabled: kittyProtocolStatus.enabled, pasteWorkaround: pasteWorkaround, config: props.config, debugKeystrokeLogging: props.settings.merged.general?.debugKeystrokeLogging, children: _jsx(SessionStatsProvider, { children: _jsx(VimModeProvider, { settings: props.settings, children: _jsx(App, { ...props }) }) }) }));
|
|
105
|
-
};
|
|
63
|
+
const CTRL_EXIT_PROMPT_DURATION_MS = 1000;
|
|
64
|
+
export const AppWrapper = (props) => (_jsx(SessionStatsProvider, { children: _jsx(VimModeProvider, { settings: props.settings, children: _jsx(App, { ...props }) }) }));
|
|
106
65
|
const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
107
66
|
const isFocused = useFocus();
|
|
108
67
|
useBracketedPaste();
|
|
@@ -110,15 +69,6 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
110
69
|
const { stdout } = useStdout();
|
|
111
70
|
const nightly = version.includes('nightly');
|
|
112
71
|
const { history, addItem, clearItems, loadHistory } = useHistory();
|
|
113
|
-
const [idePromptAnswered, setIdePromptAnswered] = useState(false);
|
|
114
|
-
const currentIDE = config.getIdeClient().getCurrentIde();
|
|
115
|
-
useEffect(() => {
|
|
116
|
-
registerCleanup(() => config.getIdeClient().disconnect());
|
|
117
|
-
}, [config]);
|
|
118
|
-
const shouldShowIdePrompt = currentIDE &&
|
|
119
|
-
!config.getIdeMode() &&
|
|
120
|
-
!settings.merged.ide?.hasSeenNudge &&
|
|
121
|
-
!idePromptAnswered;
|
|
122
72
|
useEffect(() => {
|
|
123
73
|
const cleanup = setUpdateHandler(addItem, setUpdateInfo);
|
|
124
74
|
return cleanup;
|
|
@@ -146,11 +96,11 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
146
96
|
const [editorError, setEditorError] = useState(null);
|
|
147
97
|
const [footerHeight, setFooterHeight] = useState(0);
|
|
148
98
|
const [corgiMode, setCorgiMode] = useState(false);
|
|
149
|
-
const [isTrustedFolderState, setIsTrustedFolder] = useState(config.isTrustedFolder());
|
|
150
99
|
const [currentModel, setCurrentModel] = useState(config.getModel());
|
|
151
100
|
const [shellModeActive, setShellModeActive] = useState(false);
|
|
152
101
|
const [showErrorDetails, setShowErrorDetails] = useState(false);
|
|
153
102
|
const [showToolDescriptions, setShowToolDescriptions] = useState(false);
|
|
103
|
+
const [showIDEContextDetail, setShowIDEContextDetail] = useState(false);
|
|
154
104
|
const [ctrlCPressedOnce, setCtrlCPressedOnce] = useState(false);
|
|
155
105
|
const [quittingMessages, setQuittingMessages] = useState(null);
|
|
156
106
|
const ctrlCTimerRef = useRef(null);
|
|
@@ -161,13 +111,7 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
161
111
|
const [modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError] = useState(false);
|
|
162
112
|
const [userTier, setUserTier] = useState(undefined);
|
|
163
113
|
const [ideContextState, setIdeContextState] = useState();
|
|
164
|
-
const [showEscapePrompt, setShowEscapePrompt] = useState(false);
|
|
165
114
|
const [isProcessing, setIsProcessing] = useState(false);
|
|
166
|
-
const { showWorkspaceMigrationDialog, workspaceExtensions, onWorkspaceMigrationDialogOpen, onWorkspaceMigrationDialogClose, } = useWorkspaceMigration(settings);
|
|
167
|
-
// Model selection dialog states
|
|
168
|
-
const [isModelSelectionDialogOpen, setIsModelSelectionDialogOpen] = useState(false);
|
|
169
|
-
const [isVisionSwitchDialogOpen, setIsVisionSwitchDialogOpen] = useState(false);
|
|
170
|
-
const [visionSwitchResolver, setVisionSwitchResolver] = useState(null);
|
|
171
115
|
useEffect(() => {
|
|
172
116
|
const unsubscribe = ideContext.subscribeToIdeContext(setIdeContextState);
|
|
173
117
|
// Set the initial value
|
|
@@ -196,33 +140,24 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
196
140
|
const openPrivacyNotice = useCallback(() => {
|
|
197
141
|
setShowPrivacyNotice(true);
|
|
198
142
|
}, []);
|
|
199
|
-
const handleEscapePromptChange = useCallback((showPrompt) => {
|
|
200
|
-
setShowEscapePrompt(showPrompt);
|
|
201
|
-
}, []);
|
|
202
143
|
const initialPromptSubmitted = useRef(false);
|
|
203
144
|
const errorCount = useMemo(() => consoleMessages
|
|
204
145
|
.filter((msg) => msg.type === 'error')
|
|
205
146
|
.reduce((total, msg) => total + msg.count, 0), [consoleMessages]);
|
|
206
147
|
const { isThemeDialogOpen, openThemeDialog, handleThemeSelect, handleThemeHighlight, } = useThemeCommand(settings, setThemeError, addItem);
|
|
207
|
-
const { isSettingsDialogOpen, openSettingsDialog, closeSettingsDialog } = useSettingsCommand();
|
|
208
|
-
const { isSubagentCreateDialogOpen, openSubagentCreateDialog, closeSubagentCreateDialog, } = useSubagentCreateDialog();
|
|
209
|
-
const { isAgentsManagerDialogOpen, openAgentsManagerDialog, closeAgentsManagerDialog, } = useAgentsManagerDialog();
|
|
210
|
-
const { isFolderTrustDialogOpen, handleFolderTrustSelect, isRestarting } = useFolderTrust(settings, setIsTrustedFolder);
|
|
211
|
-
const { showQuitConfirmation, handleQuitConfirmationSelect } = useQuitConfirmation();
|
|
212
148
|
const { isAuthDialogOpen, openAuthDialog, handleAuthSelect, isAuthenticating, cancelAuthentication, } = useAuthCommand(settings, setAuthError, config);
|
|
213
149
|
const { isQwenAuthenticating, deviceAuth, isQwenAuth, cancelQwenAuth, authStatus, authMessage, } = useQwenAuth(settings, isAuthenticating);
|
|
214
150
|
useEffect(() => {
|
|
215
|
-
if (settings.merged.
|
|
216
|
-
|
|
217
|
-
const error = validateAuthMethod(settings.merged.security.auth.selectedType);
|
|
151
|
+
if (settings.merged.selectedAuthType && !settings.merged.useExternalAuth) {
|
|
152
|
+
const error = validateAuthMethod(settings.merged.selectedAuthType);
|
|
218
153
|
if (error) {
|
|
219
154
|
setAuthError(error);
|
|
220
155
|
openAuthDialog();
|
|
221
156
|
}
|
|
222
157
|
}
|
|
223
158
|
}, [
|
|
224
|
-
settings.merged.
|
|
225
|
-
settings.merged.
|
|
159
|
+
settings.merged.selectedAuthType,
|
|
160
|
+
settings.merged.useExternalAuth,
|
|
226
161
|
openAuthDialog,
|
|
227
162
|
setAuthError,
|
|
228
163
|
]);
|
|
@@ -261,9 +196,9 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
261
196
|
text: 'Refreshing hierarchical memory (UMS.md or other context files)...',
|
|
262
197
|
}, Date.now());
|
|
263
198
|
try {
|
|
264
|
-
const { memoryContent, fileCount } = await loadHierarchicalGeminiMemory(process.cwd(), settings.merged.
|
|
199
|
+
const { memoryContent, fileCount } = await loadHierarchicalGeminiMemory(process.cwd(), settings.merged.loadMemoryFromIncludeDirectories
|
|
265
200
|
? config.getWorkspaceContext().getDirectories()
|
|
266
|
-
: [], config.getDebugMode(), config.getFileService(), settings.merged, config.getExtensionContextFilePaths(), settings.merged.
|
|
201
|
+
: [], config.getDebugMode(), config.getFileService(), settings.merged, config.getExtensionContextFilePaths(), settings.merged.memoryImportFormat || 'tree', // Use setting or default to 'tree'
|
|
267
202
|
config.getFileFilteringOptions());
|
|
268
203
|
config.setUserMemory(memoryContent);
|
|
269
204
|
config.setGeminiMdFileCount(fileCount);
|
|
@@ -362,9 +297,7 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
362
297
|
config.setQuotaErrorOccurred(true);
|
|
363
298
|
}
|
|
364
299
|
// Switch model for future use but return false to stop current retry
|
|
365
|
-
config.setModel(fallbackModel)
|
|
366
|
-
console.error('Failed to switch to fallback model:', error);
|
|
367
|
-
});
|
|
300
|
+
config.setModel(fallbackModel);
|
|
368
301
|
config.setFallbackMode(true);
|
|
369
302
|
logFlashFallback(config, new FlashFallbackEvent(config.getContentGeneratorConfig().authType));
|
|
370
303
|
return false; // Don't continue with current prompt
|
|
@@ -373,12 +306,11 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
373
306
|
}, [config, addItem, userTier]);
|
|
374
307
|
// Terminal and UI setup
|
|
375
308
|
const { rows: terminalHeight, columns: terminalWidth } = useTerminalSize();
|
|
376
|
-
const isNarrow = isNarrowWidth(terminalWidth);
|
|
377
309
|
const { stdin, setRawMode } = useStdin();
|
|
378
310
|
const isInitialMount = useRef(true);
|
|
379
311
|
const widthFraction = 0.9;
|
|
380
312
|
const inputWidth = Math.max(20, Math.floor(terminalWidth * widthFraction) - 3);
|
|
381
|
-
const suggestionsWidth = Math.max(
|
|
313
|
+
const suggestionsWidth = Math.max(60, Math.floor(terminalWidth * 0.8));
|
|
382
314
|
// Utility callbacks
|
|
383
315
|
const isValidPath = useCallback((filePath) => {
|
|
384
316
|
try {
|
|
@@ -389,7 +321,7 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
389
321
|
}
|
|
390
322
|
}, []);
|
|
391
323
|
const getPreferredEditor = useCallback(() => {
|
|
392
|
-
const editorType = settings.merged.
|
|
324
|
+
const editorType = settings.merged.preferredEditor;
|
|
393
325
|
const isValidEditor = isEditorAvailable(editorType);
|
|
394
326
|
if (!isValidEditor) {
|
|
395
327
|
openEditorDialog();
|
|
@@ -401,62 +333,17 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
401
333
|
setAuthError('reauth required');
|
|
402
334
|
openAuthDialog();
|
|
403
335
|
}, [openAuthDialog, setAuthError]);
|
|
404
|
-
// Vision switch handler for auto-switch functionality
|
|
405
|
-
const handleVisionSwitchRequired = useCallback(async (_query) => new Promise((resolve, reject) => {
|
|
406
|
-
setVisionSwitchResolver({ resolve, reject });
|
|
407
|
-
setIsVisionSwitchDialogOpen(true);
|
|
408
|
-
}), []);
|
|
409
|
-
const handleVisionSwitchSelect = useCallback((outcome) => {
|
|
410
|
-
setIsVisionSwitchDialogOpen(false);
|
|
411
|
-
if (visionSwitchResolver) {
|
|
412
|
-
const result = processVisionSwitchOutcome(outcome);
|
|
413
|
-
visionSwitchResolver.resolve(result);
|
|
414
|
-
setVisionSwitchResolver(null);
|
|
415
|
-
}
|
|
416
|
-
}, [visionSwitchResolver]);
|
|
417
|
-
const handleModelSelectionOpen = useCallback(() => {
|
|
418
|
-
setIsModelSelectionDialogOpen(true);
|
|
419
|
-
}, []);
|
|
420
|
-
const handleModelSelectionClose = useCallback(() => {
|
|
421
|
-
setIsModelSelectionDialogOpen(false);
|
|
422
|
-
}, []);
|
|
423
|
-
const handleModelSelect = useCallback(async (modelId) => {
|
|
424
|
-
try {
|
|
425
|
-
await config.setModel(modelId);
|
|
426
|
-
setCurrentModel(modelId);
|
|
427
|
-
setIsModelSelectionDialogOpen(false);
|
|
428
|
-
addItem({
|
|
429
|
-
type: MessageType.INFO,
|
|
430
|
-
text: `Switched model to \`${modelId}\` for this session.`,
|
|
431
|
-
}, Date.now());
|
|
432
|
-
}
|
|
433
|
-
catch (error) {
|
|
434
|
-
console.error('Failed to switch model:', error);
|
|
435
|
-
addItem({
|
|
436
|
-
type: MessageType.ERROR,
|
|
437
|
-
text: `Failed to switch to model \`${modelId}\`. Please try again.`,
|
|
438
|
-
}, Date.now());
|
|
439
|
-
}
|
|
440
|
-
}, [config, setCurrentModel, addItem]);
|
|
441
|
-
const getAvailableModelsForCurrentAuth = useCallback(() => {
|
|
442
|
-
const contentGeneratorConfig = config.getContentGeneratorConfig();
|
|
443
|
-
if (!contentGeneratorConfig)
|
|
444
|
-
return [];
|
|
445
|
-
const visionModelPreviewEnabled = settings.merged.experimental?.visionModelPreview ?? true;
|
|
446
|
-
switch (contentGeneratorConfig.authType) {
|
|
447
|
-
case AuthType.QWEN_OAUTH:
|
|
448
|
-
return getFilteredQwenModels(visionModelPreviewEnabled);
|
|
449
|
-
case AuthType.USE_OPENAI: {
|
|
450
|
-
const openAIModel = getOpenAIAvailableModelFromEnv();
|
|
451
|
-
return openAIModel ? [openAIModel] : [];
|
|
452
|
-
}
|
|
453
|
-
default:
|
|
454
|
-
return [];
|
|
455
|
-
}
|
|
456
|
-
}, [config, settings.merged.experimental?.visionModelPreview]);
|
|
457
336
|
// Core hooks and processors
|
|
458
337
|
const { vimEnabled: vimModeEnabled, vimMode, toggleVimEnabled, } = useVimMode();
|
|
459
|
-
const { handleSlashCommand, slashCommands, pendingHistoryItems: pendingSlashCommandHistoryItems, commandContext, shellConfirmationRequest,
|
|
338
|
+
const { handleSlashCommand, slashCommands, pendingHistoryItems: pendingSlashCommandHistoryItems, commandContext, shellConfirmationRequest, } = useSlashCommandProcessor(config, settings, addItem, clearItems, loadHistory, refreshStatic, setDebugMessage, openThemeDialog, openAuthDialog, openEditorDialog, toggleCorgiMode, setQuittingMessages, openPrivacyNotice, toggleVimEnabled, setIsProcessing, setGeminiMdFileCount);
|
|
339
|
+
const { streamingState, submitQuery, initError, pendingHistoryItems: pendingGeminiHistoryItems, thought, } = useGeminiStream(config.getGeminiClient(), history, addItem, config, setDebugMessage, handleSlashCommand, shellModeActive, getPreferredEditor, onAuthError, performMemoryRefresh, modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError, refreshStatic);
|
|
340
|
+
// Input handling
|
|
341
|
+
const handleFinalSubmit = useCallback((submittedValue) => {
|
|
342
|
+
const trimmedValue = submittedValue.trim();
|
|
343
|
+
if (trimmedValue.length > 0) {
|
|
344
|
+
submitQuery(trimmedValue);
|
|
345
|
+
}
|
|
346
|
+
}, [submitQuery]);
|
|
460
347
|
const buffer = useTextBuffer({
|
|
461
348
|
initialText: '',
|
|
462
349
|
viewport: { height: 10, width: inputWidth },
|
|
@@ -465,139 +352,41 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
465
352
|
isValidPath,
|
|
466
353
|
shellModeActive,
|
|
467
354
|
});
|
|
468
|
-
const [userMessages, setUserMessages] = useState([]);
|
|
469
|
-
// Stable reference for cancel handler to avoid circular dependency
|
|
470
|
-
const cancelHandlerRef = useRef(() => { });
|
|
471
|
-
const { streamingState, submitQuery, initError, pendingHistoryItems: pendingGeminiHistoryItems, thought, cancelOngoingRequest, } = useGeminiStream(config.getGeminiClient(), history, addItem, config, setDebugMessage, handleSlashCommand, shellModeActive, getPreferredEditor, onAuthError, performMemoryRefresh, modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError, refreshStatic, () => cancelHandlerRef.current(), settings.merged.experimental?.visionModelPreview ?? true, handleVisionSwitchRequired);
|
|
472
|
-
const pendingHistoryItems = useMemo(() => [...pendingSlashCommandHistoryItems, ...pendingGeminiHistoryItems].map((item, index) => ({
|
|
473
|
-
...item,
|
|
474
|
-
id: index,
|
|
475
|
-
})), [pendingSlashCommandHistoryItems, pendingGeminiHistoryItems]);
|
|
476
|
-
// Welcome back functionality
|
|
477
|
-
const { welcomeBackInfo, showWelcomeBackDialog, welcomeBackChoice, handleWelcomeBackSelection, handleWelcomeBackClose, } = useWelcomeBack(config, submitQuery, buffer, settings.merged);
|
|
478
|
-
// Dialog close functionality
|
|
479
|
-
const { closeAnyOpenDialog } = useDialogClose({
|
|
480
|
-
isThemeDialogOpen,
|
|
481
|
-
handleThemeSelect,
|
|
482
|
-
isAuthDialogOpen,
|
|
483
|
-
handleAuthSelect,
|
|
484
|
-
selectedAuthType: settings.merged.security?.auth?.selectedType,
|
|
485
|
-
isEditorDialogOpen,
|
|
486
|
-
exitEditorDialog,
|
|
487
|
-
isSettingsDialogOpen,
|
|
488
|
-
closeSettingsDialog,
|
|
489
|
-
isFolderTrustDialogOpen,
|
|
490
|
-
showPrivacyNotice,
|
|
491
|
-
setShowPrivacyNotice,
|
|
492
|
-
showWelcomeBackDialog,
|
|
493
|
-
handleWelcomeBackClose,
|
|
494
|
-
quitConfirmationRequest,
|
|
495
|
-
});
|
|
496
|
-
// Message queue for handling input during streaming
|
|
497
|
-
const { messageQueue, addMessage, clearQueue, getQueuedMessagesText } = useMessageQueue({
|
|
498
|
-
streamingState,
|
|
499
|
-
submitQuery,
|
|
500
|
-
});
|
|
501
|
-
// Update the cancel handler with message queue support
|
|
502
|
-
cancelHandlerRef.current = useCallback(() => {
|
|
503
|
-
if (isToolExecuting(pendingHistoryItems)) {
|
|
504
|
-
buffer.setText(''); // Just clear the prompt
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
|
-
const lastUserMessage = userMessages.at(-1);
|
|
508
|
-
let textToSet = lastUserMessage || '';
|
|
509
|
-
// Append queued messages if any exist
|
|
510
|
-
const queuedText = getQueuedMessagesText();
|
|
511
|
-
if (queuedText) {
|
|
512
|
-
textToSet = textToSet ? `${textToSet}\n\n${queuedText}` : queuedText;
|
|
513
|
-
clearQueue();
|
|
514
|
-
}
|
|
515
|
-
if (textToSet) {
|
|
516
|
-
buffer.setText(textToSet);
|
|
517
|
-
}
|
|
518
|
-
}, [
|
|
519
|
-
buffer,
|
|
520
|
-
userMessages,
|
|
521
|
-
getQueuedMessagesText,
|
|
522
|
-
clearQueue,
|
|
523
|
-
pendingHistoryItems,
|
|
524
|
-
]);
|
|
525
|
-
// Input handling - queue messages for processing
|
|
526
|
-
const handleFinalSubmit = useCallback((submittedValue) => {
|
|
527
|
-
addMessage(submittedValue);
|
|
528
|
-
}, [addMessage]);
|
|
529
|
-
const handleIdePromptComplete = useCallback((result) => {
|
|
530
|
-
if (result.userSelection === 'yes') {
|
|
531
|
-
if (result.isExtensionPreInstalled) {
|
|
532
|
-
handleSlashCommand('/ide enable');
|
|
533
|
-
}
|
|
534
|
-
else {
|
|
535
|
-
handleSlashCommand('/ide install');
|
|
536
|
-
}
|
|
537
|
-
settings.setValue(SettingScope.User, 'hasSeenIdeIntegrationNudge', true);
|
|
538
|
-
}
|
|
539
|
-
else if (result.userSelection === 'dismiss') {
|
|
540
|
-
settings.setValue(SettingScope.User, 'hasSeenIdeIntegrationNudge', true);
|
|
541
|
-
}
|
|
542
|
-
setIdePromptAnswered(true);
|
|
543
|
-
}, [handleSlashCommand, settings]);
|
|
544
355
|
const { handleInput: vimHandleInput } = useVim(buffer, handleFinalSubmit);
|
|
356
|
+
const pendingHistoryItems = [...pendingSlashCommandHistoryItems];
|
|
357
|
+
pendingHistoryItems.push(...pendingGeminiHistoryItems);
|
|
545
358
|
const { elapsedTime, currentLoadingPhrase } = useLoadingIndicator(streamingState);
|
|
546
|
-
const showAutoAcceptIndicator = useAutoAcceptIndicator({ config
|
|
359
|
+
const showAutoAcceptIndicator = useAutoAcceptIndicator({ config });
|
|
547
360
|
const handleExit = useCallback((pressedOnce, setPressedOnce, timerRef) => {
|
|
548
|
-
// Fast double-press: Direct quit (preserve user habit)
|
|
549
361
|
if (pressedOnce) {
|
|
550
362
|
if (timerRef.current) {
|
|
551
363
|
clearTimeout(timerRef.current);
|
|
552
364
|
}
|
|
553
|
-
//
|
|
554
|
-
handleSlashCommand('/quit');
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
// First press: Prioritize cleanup tasks
|
|
558
|
-
// Special case: If quit-confirm dialog is open, Ctrl+C means "quit immediately"
|
|
559
|
-
if (quitConfirmationRequest) {
|
|
365
|
+
// Directly invoke the central command handler.
|
|
560
366
|
handleSlashCommand('/quit');
|
|
561
|
-
return;
|
|
562
|
-
}
|
|
563
|
-
// 1. Close other dialogs (highest priority)
|
|
564
|
-
if (closeAnyOpenDialog()) {
|
|
565
|
-
return; // Dialog closed, end processing
|
|
566
367
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
if (buffer.text.length > 0) {
|
|
574
|
-
buffer.setText('');
|
|
575
|
-
return; // Input cleared, end processing
|
|
576
|
-
}
|
|
577
|
-
// All cleanup tasks completed, show quit confirmation dialog
|
|
578
|
-
handleSlashCommand('/quit-confirm');
|
|
579
|
-
}, [
|
|
580
|
-
handleSlashCommand,
|
|
581
|
-
quitConfirmationRequest,
|
|
582
|
-
closeAnyOpenDialog,
|
|
583
|
-
streamingState,
|
|
584
|
-
cancelOngoingRequest,
|
|
585
|
-
buffer,
|
|
586
|
-
]);
|
|
587
|
-
const handleGlobalKeypress = useCallback((key) => {
|
|
588
|
-
// Debug log keystrokes if enabled
|
|
589
|
-
if (settings.merged.general?.debugKeystrokeLogging) {
|
|
590
|
-
console.log('[DEBUG] Keystroke:', JSON.stringify(key));
|
|
368
|
+
else {
|
|
369
|
+
setPressedOnce(true);
|
|
370
|
+
timerRef.current = setTimeout(() => {
|
|
371
|
+
setPressedOnce(false);
|
|
372
|
+
timerRef.current = null;
|
|
373
|
+
}, CTRL_EXIT_PROMPT_DURATION_MS);
|
|
591
374
|
}
|
|
375
|
+
}, [handleSlashCommand]);
|
|
376
|
+
useInput((input, key) => {
|
|
592
377
|
let enteringConstrainHeightMode = false;
|
|
593
378
|
if (!constrainHeight) {
|
|
379
|
+
// Automatically re-enter constrain height mode if the user types
|
|
380
|
+
// anything. When constrainHeight==false, the user will experience
|
|
381
|
+
// significant flickering so it is best to disable it immediately when
|
|
382
|
+
// the user starts interacting with the app.
|
|
594
383
|
enteringConstrainHeightMode = true;
|
|
595
384
|
setConstrainHeight(true);
|
|
596
385
|
}
|
|
597
|
-
if (
|
|
386
|
+
if (key.ctrl && input === 'o') {
|
|
598
387
|
setShowErrorDetails((prev) => !prev);
|
|
599
388
|
}
|
|
600
|
-
else if (
|
|
389
|
+
else if (key.ctrl && input === 't') {
|
|
601
390
|
const newValue = !showToolDescriptions;
|
|
602
391
|
setShowToolDescriptions(newValue);
|
|
603
392
|
const mcpServers = config.getMcpServers();
|
|
@@ -605,58 +394,33 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
605
394
|
handleSlashCommand(newValue ? '/mcp desc' : '/mcp nodesc');
|
|
606
395
|
}
|
|
607
396
|
}
|
|
608
|
-
else if (
|
|
397
|
+
else if (key.ctrl &&
|
|
398
|
+
input === 'e' &&
|
|
609
399
|
config.getIdeMode() &&
|
|
610
400
|
ideContextState) {
|
|
611
|
-
|
|
612
|
-
handleSlashCommand('/ide status');
|
|
401
|
+
setShowIDEContextDetail((prev) => !prev);
|
|
613
402
|
}
|
|
614
|
-
else if (
|
|
615
|
-
// When authenticating, let AuthInProgress component handle Ctrl+C.
|
|
616
|
-
if (isAuthenticating) {
|
|
617
|
-
return;
|
|
618
|
-
}
|
|
403
|
+
else if (key.ctrl && (input === 'c' || input === 'C')) {
|
|
619
404
|
handleExit(ctrlCPressedOnce, setCtrlCPressedOnce, ctrlCTimerRef);
|
|
620
405
|
}
|
|
621
|
-
else if (
|
|
406
|
+
else if (key.ctrl && (input === 'd' || input === 'D')) {
|
|
622
407
|
if (buffer.text.length > 0) {
|
|
408
|
+
// Do nothing if there is text in the input.
|
|
623
409
|
return;
|
|
624
410
|
}
|
|
625
411
|
handleExit(ctrlDPressedOnce, setCtrlDPressedOnce, ctrlDTimerRef);
|
|
626
412
|
}
|
|
627
|
-
else if (
|
|
628
|
-
!enteringConstrainHeightMode) {
|
|
413
|
+
else if (key.ctrl && input === 's' && !enteringConstrainHeightMode) {
|
|
629
414
|
setConstrainHeight(false);
|
|
630
415
|
}
|
|
631
|
-
}, [
|
|
632
|
-
constrainHeight,
|
|
633
|
-
setConstrainHeight,
|
|
634
|
-
setShowErrorDetails,
|
|
635
|
-
showToolDescriptions,
|
|
636
|
-
setShowToolDescriptions,
|
|
637
|
-
config,
|
|
638
|
-
ideContextState,
|
|
639
|
-
handleExit,
|
|
640
|
-
ctrlCPressedOnce,
|
|
641
|
-
setCtrlCPressedOnce,
|
|
642
|
-
ctrlCTimerRef,
|
|
643
|
-
buffer.text.length,
|
|
644
|
-
ctrlDPressedOnce,
|
|
645
|
-
setCtrlDPressedOnce,
|
|
646
|
-
ctrlDTimerRef,
|
|
647
|
-
handleSlashCommand,
|
|
648
|
-
isAuthenticating,
|
|
649
|
-
settings.merged.general?.debugKeystrokeLogging,
|
|
650
|
-
]);
|
|
651
|
-
useKeypress(handleGlobalKeypress, {
|
|
652
|
-
isActive: true,
|
|
653
416
|
});
|
|
654
417
|
useEffect(() => {
|
|
655
418
|
if (config) {
|
|
656
419
|
setGeminiMdFileCount(config.getGeminiMdFileCount());
|
|
657
420
|
}
|
|
658
421
|
}, [config, config.getGeminiMdFileCount]);
|
|
659
|
-
const logger = useLogger(
|
|
422
|
+
const logger = useLogger();
|
|
423
|
+
const [userMessages, setUserMessages] = useState([]);
|
|
660
424
|
useEffect(() => {
|
|
661
425
|
const fetchUserMessages = async () => {
|
|
662
426
|
const pastMessagesRaw = (await logger?.getPreviousUserMessages()) || []; // Newest first
|
|
@@ -686,11 +450,7 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
686
450
|
};
|
|
687
451
|
fetchUserMessages();
|
|
688
452
|
}, [history, logger]);
|
|
689
|
-
const isInputActive =
|
|
690
|
-
streamingState === StreamingState.Responding) &&
|
|
691
|
-
!initError &&
|
|
692
|
-
!isProcessing &&
|
|
693
|
-
!showWelcomeBackDialog;
|
|
453
|
+
const isInputActive = streamingState === StreamingState.Idle && !initError && !isProcessing;
|
|
694
454
|
const handleClearScreen = useCallback(() => {
|
|
695
455
|
clearItems();
|
|
696
456
|
clearConsoleMessagesState();
|
|
@@ -736,12 +496,12 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
736
496
|
}, [consoleMessages, config]);
|
|
737
497
|
const branchName = useGitBranchName(config.getTargetDir());
|
|
738
498
|
const contextFileNames = useMemo(() => {
|
|
739
|
-
const fromSettings = settings.merged.
|
|
499
|
+
const fromSettings = settings.merged.contextFileName;
|
|
740
500
|
if (fromSettings) {
|
|
741
501
|
return Array.isArray(fromSettings) ? fromSettings : [fromSettings];
|
|
742
502
|
}
|
|
743
503
|
return getAllGeminiMdFilenames();
|
|
744
|
-
}, [settings.merged.
|
|
504
|
+
}, [settings.merged.contextFileName]);
|
|
745
505
|
const initialPrompt = useMemo(() => config.getQuestion(), [config]);
|
|
746
506
|
const geminiClient = config.getGeminiClient();
|
|
747
507
|
useEffect(() => {
|
|
@@ -751,12 +511,7 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
751
511
|
!isAuthDialogOpen &&
|
|
752
512
|
!isThemeDialogOpen &&
|
|
753
513
|
!isEditorDialogOpen &&
|
|
754
|
-
!isModelSelectionDialogOpen &&
|
|
755
|
-
!isVisionSwitchDialogOpen &&
|
|
756
|
-
!isSubagentCreateDialogOpen &&
|
|
757
514
|
!showPrivacyNotice &&
|
|
758
|
-
!showWelcomeBackDialog &&
|
|
759
|
-
welcomeBackChoice !== 'restart' &&
|
|
760
515
|
geminiClient?.isInitialized?.()) {
|
|
761
516
|
submitQuery(initialPrompt);
|
|
762
517
|
initialPromptSubmitted.current = true;
|
|
@@ -768,13 +523,8 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
768
523
|
isAuthDialogOpen,
|
|
769
524
|
isThemeDialogOpen,
|
|
770
525
|
isEditorDialogOpen,
|
|
771
|
-
isSubagentCreateDialogOpen,
|
|
772
526
|
showPrivacyNotice,
|
|
773
|
-
showWelcomeBackDialog,
|
|
774
|
-
welcomeBackChoice,
|
|
775
527
|
geminiClient,
|
|
776
|
-
isModelSelectionDialogOpen,
|
|
777
|
-
isVisionSwitchDialogOpen,
|
|
778
528
|
]);
|
|
779
529
|
if (quittingMessages) {
|
|
780
530
|
return (_jsx(Box, { flexDirection: "column", marginBottom: 1, children: quittingMessages.map((item) => (_jsx(HistoryItemDisplay, { availableTerminalHeight: constrainHeight ? availableTerminalHeight : undefined, terminalWidth: terminalWidth, item: item, isPending: false, config: config }, item.id))) }));
|
|
@@ -788,24 +538,14 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
788
538
|
? " Press 'i' for INSERT mode and 'Esc' for NORMAL mode."
|
|
789
539
|
: ' Type your message or @path/to/file';
|
|
790
540
|
return (_jsx(StreamingContext.Provider, { value: streamingState, children: _jsxs(Box, { flexDirection: "column", width: "90%", children: [_jsx(Static, { items: [
|
|
791
|
-
_jsxs(Box, { flexDirection: "column", children: [!
|
|
541
|
+
_jsxs(Box, { flexDirection: "column", children: [!settings.merged.hideBanner && (_jsx(Header, { terminalWidth: terminalWidth, version: version, nightly: nightly })), !settings.merged.hideTips && _jsx(Tips, { config: config })] }, "header"),
|
|
792
542
|
...history.map((h) => (_jsx(HistoryItemDisplay, { terminalWidth: mainAreaWidth, availableTerminalHeight: staticAreaMaxItemHeight, item: h, isPending: false, config: config, commands: slashCommands }, h.id))),
|
|
793
|
-
], children: (item) => item }, staticKey), _jsx(OverflowProvider, { children: _jsxs(Box, { ref: pendingHistoryItemRef, flexDirection: "column", children: [pendingHistoryItems.map((item) => (_jsx(HistoryItemDisplay, { availableTerminalHeight: constrainHeight ? availableTerminalHeight : undefined, terminalWidth: mainAreaWidth,
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
}
|
|
798
|
-
else {
|
|
799
|
-
quitConfirmationRequest.onConfirm(false);
|
|
800
|
-
}
|
|
801
|
-
} })) : shellConfirmationRequest ? (_jsx(ShellConfirmationDialog, { request: shellConfirmationRequest })) : confirmationRequest ? (_jsxs(Box, { flexDirection: "column", children: [confirmationRequest.prompt, _jsx(Box, { paddingY: 1, children: _jsx(RadioButtonSelect, { isFocused: !!confirmationRequest, items: [
|
|
802
|
-
{ label: 'Yes', value: true },
|
|
803
|
-
{ label: 'No', value: false },
|
|
804
|
-
], onSelect: (value) => {
|
|
805
|
-
confirmationRequest.onConfirm(value);
|
|
806
|
-
} }) })] })) : isThemeDialogOpen ? (_jsxs(Box, { flexDirection: "column", children: [themeError && (_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: Colors.AccentRed, children: themeError }) })), _jsx(ThemeDialog, { onSelect: handleThemeSelect, onHighlight: handleThemeHighlight, settings: settings, availableTerminalHeight: constrainHeight
|
|
543
|
+
], children: (item) => item }, staticKey), _jsx(OverflowProvider, { children: _jsxs(Box, { ref: pendingHistoryItemRef, flexDirection: "column", children: [pendingHistoryItems.map((item, i) => (_jsx(HistoryItemDisplay, { availableTerminalHeight: constrainHeight ? availableTerminalHeight : undefined, terminalWidth: mainAreaWidth,
|
|
544
|
+
// TODO(taehykim): It seems like references to ids aren't necessary in
|
|
545
|
+
// HistoryItemDisplay. Refactor later. Use a fake id for now.
|
|
546
|
+
item: { ...item, id: 0 }, isPending: true, config: config, isFocused: !isEditorDialogOpen }, i))), _jsx(ShowMoreLines, { constrainHeight: constrainHeight })] }) }), _jsxs(Box, { flexDirection: "column", ref: mainControlsRef, children: [updateInfo && _jsx(UpdateNotification, { message: updateInfo.message }), startupWarnings.length > 0 && (_jsx(Box, { borderStyle: "round", borderColor: Colors.AccentYellow, paddingX: 1, marginY: 1, flexDirection: "column", children: startupWarnings.map((warning, index) => (_jsx(Text, { color: Colors.AccentYellow, children: warning }, index))) })), shellConfirmationRequest ? (_jsx(ShellConfirmationDialog, { request: shellConfirmationRequest })) : isThemeDialogOpen ? (_jsxs(Box, { flexDirection: "column", children: [themeError && (_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: Colors.AccentRed, children: themeError }) })), _jsx(ThemeDialog, { onSelect: handleThemeSelect, onHighlight: handleThemeHighlight, settings: settings, availableTerminalHeight: constrainHeight
|
|
807
547
|
? terminalHeight - staticExtraHeight
|
|
808
|
-
: undefined, terminalWidth: mainAreaWidth })] })) :
|
|
548
|
+
: undefined, terminalWidth: mainAreaWidth })] })) : isAuthenticating ? (_jsxs(_Fragment, { children: [isQwenAuth && isQwenAuthenticating ? (_jsx(QwenOAuthProgress, { deviceAuth: deviceAuth || undefined, authStatus: authStatus, authMessage: authMessage, onTimeout: () => {
|
|
809
549
|
setAuthError('Qwen OAuth authentication timed out. Please try again.');
|
|
810
550
|
cancelQwenAuth();
|
|
811
551
|
cancelAuthentication();
|
|
@@ -819,25 +559,14 @@ const App = ({ config, settings, startupWarnings = [], version }) => {
|
|
|
819
559
|
setAuthError('Authentication timed out. Please try again.');
|
|
820
560
|
cancelAuthentication();
|
|
821
561
|
openAuthDialog();
|
|
822
|
-
} })), showErrorDetails && (_jsx(OverflowProvider, { children: _jsxs(Box, { flexDirection: "column", children: [_jsx(DetailedMessagesDisplay, { messages: filteredConsoleMessages, maxHeight: constrainHeight ? debugConsoleMaxHeight : undefined, width: inputWidth }), _jsx(ShowMoreLines, { constrainHeight: constrainHeight })] }) }))] })) : isAuthDialogOpen ? (_jsx(Box, { flexDirection: "column", children: _jsx(AuthDialog, { onSelect: handleAuthSelect, settings: settings, initialErrorMessage: authError }) })) : isEditorDialogOpen ? (_jsxs(Box, { flexDirection: "column", children: [editorError && (_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: Colors.AccentRed, children: editorError }) })), _jsx(EditorSettingsDialog, { onSelect: handleEditorSelect, settings: settings, onExit: exitEditorDialog })] })) :
|
|
823
|
-
config.getAccessibility()?.disableLoadingPhrases
|
|
824
|
-
config.getScreenReader()
|
|
562
|
+
} })), showErrorDetails && (_jsx(OverflowProvider, { children: _jsxs(Box, { flexDirection: "column", children: [_jsx(DetailedMessagesDisplay, { messages: filteredConsoleMessages, maxHeight: constrainHeight ? debugConsoleMaxHeight : undefined, width: inputWidth }), _jsx(ShowMoreLines, { constrainHeight: constrainHeight })] }) }))] })) : isAuthDialogOpen ? (_jsx(Box, { flexDirection: "column", children: _jsx(AuthDialog, { onSelect: handleAuthSelect, settings: settings, initialErrorMessage: authError }) })) : isEditorDialogOpen ? (_jsxs(Box, { flexDirection: "column", children: [editorError && (_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: Colors.AccentRed, children: editorError }) })), _jsx(EditorSettingsDialog, { onSelect: handleEditorSelect, settings: settings, onExit: exitEditorDialog })] })) : showPrivacyNotice ? (_jsx(PrivacyNotice, { onExit: () => setShowPrivacyNotice(false), config: config })) : (_jsxs(_Fragment, { children: [_jsx(LoadingIndicator, { thought: streamingState === StreamingState.WaitingForConfirmation ||
|
|
563
|
+
config.getAccessibility()?.disableLoadingPhrases
|
|
825
564
|
? undefined
|
|
826
|
-
: thought, currentLoadingPhrase: config.getAccessibility()?.disableLoadingPhrases
|
|
827
|
-
config.getScreenReader()
|
|
565
|
+
: thought, currentLoadingPhrase: config.getAccessibility()?.disableLoadingPhrases
|
|
828
566
|
? undefined
|
|
829
|
-
: currentLoadingPhrase, elapsedTime: elapsedTime }),
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
// Replace all whitespace (including newlines) with a single space.
|
|
834
|
-
const preview = message.replace(/\s+/g, ' ');
|
|
835
|
-
return (
|
|
836
|
-
// Ensure the Box takes full width so truncation calculates correctly
|
|
837
|
-
_jsx(Box, { paddingLeft: 2, width: "100%", children: _jsx(Text, { dimColor: true, wrap: "truncate", children: preview }) }, index));
|
|
838
|
-
}), messageQueue.length > MAX_DISPLAYED_QUEUED_MESSAGES && (_jsx(Box, { paddingLeft: 2, children: _jsxs(Text, { dimColor: true, children: ["... (+", messageQueue.length - MAX_DISPLAYED_QUEUED_MESSAGES, "more)"] }) }))] })), _jsxs(Box, { marginTop: 1, justifyContent: "space-between", width: "100%", flexDirection: isNarrow ? 'column' : 'row', alignItems: isNarrow ? 'flex-start' : 'center', children: [_jsxs(Box, { children: [process.env['GEMINI_SYSTEM_MD'] && (_jsx(Text, { color: Colors.AccentRed, children: "|\u2310\u25A0_\u25A0| " })), ctrlCPressedOnce ? (_jsx(Text, { color: Colors.AccentYellow, children: "Press Ctrl+C again to confirm exit." })) : ctrlDPressedOnce ? (_jsx(Text, { color: Colors.AccentYellow, children: "Press Ctrl+D again to exit." })) : showEscapePrompt ? (_jsx(Text, { color: Colors.Gray, children: "Press Esc again to clear." })) : (_jsx(ContextSummaryDisplay, { ideContext: ideContextState, geminiMdFileCount: geminiMdFileCount, contextFileNames: contextFileNames, mcpServers: config.getMcpServers(), blockedMcpServers: config.getBlockedMcpServers(), showToolDescriptions: showToolDescriptions }))] }), _jsxs(Box, { paddingTop: isNarrow ? 1 : 0, children: [showAutoAcceptIndicator !== ApprovalMode.DEFAULT &&
|
|
839
|
-
!shellModeActive && (_jsx(AutoAcceptIndicator, { approvalMode: showAutoAcceptIndicator })), shellModeActive && _jsx(ShellModeIndicator, {})] })] }), showErrorDetails && (_jsx(OverflowProvider, { children: _jsxs(Box, { flexDirection: "column", children: [_jsx(DetailedMessagesDisplay, { messages: filteredConsoleMessages, maxHeight: constrainHeight ? debugConsoleMaxHeight : undefined, width: inputWidth }), _jsx(ShowMoreLines, { constrainHeight: constrainHeight })] }) })), isInputActive && (_jsx(InputPrompt, { buffer: buffer, inputWidth: inputWidth, suggestionsWidth: suggestionsWidth, onSubmit: handleFinalSubmit, userMessages: userMessages, onClearScreen: handleClearScreen, config: config, slashCommands: slashCommands, commandContext: commandContext, shellModeActive: shellModeActive, setShellModeActive: setShellModeActive, onEscapePromptChange: handleEscapePromptChange, focus: isFocused, vimHandleInput: vimHandleInput, placeholder: placeholder }))] })), initError && streamingState !== StreamingState.Responding && (_jsx(Box, { borderStyle: "round", borderColor: Colors.AccentRed, paddingX: 1, marginBottom: 1, children: history.find((item) => item.type === 'error' && item.text?.includes(initError))?.text ? (_jsx(Text, { color: Colors.AccentRed, children: history.find((item) => item.type === 'error' && item.text?.includes(initError))?.text })) : (_jsxs(_Fragment, { children: [_jsxs(Text, { color: Colors.AccentRed, children: ["Initialization Error: ", initError] }), _jsxs(Text, { color: Colors.AccentRed, children: [' ', "Please check API key and configuration."] })] })) })), !settings.merged.ui?.hideFooter && (_jsx(Footer, { model: currentModel, targetDir: config.getTargetDir(), debugMode: config.getDebugMode(), branchName: branchName, debugMessage: debugMessage, corgiMode: corgiMode, errorCount: errorCount, showErrorDetails: showErrorDetails, showMemoryUsage: config.getDebugMode() ||
|
|
840
|
-
settings.merged.ui?.showMemoryUsage ||
|
|
841
|
-
false, promptTokenCount: sessionStats.lastPromptTokenCount, nightly: nightly, vimMode: vimModeEnabled ? vimMode : undefined, isTrustedFolder: isTrustedFolderState }))] })] }) }));
|
|
567
|
+
: currentLoadingPhrase, elapsedTime: elapsedTime }), _jsxs(Box, { marginTop: 1, display: "flex", justifyContent: "space-between", width: "100%", children: [_jsxs(Box, { children: [process.env.GEMINI_SYSTEM_MD && (_jsx(Text, { color: Colors.AccentRed, children: "|\u2310\u25A0_\u25A0| " })), ctrlCPressedOnce ? (_jsx(Text, { color: Colors.AccentYellow, children: "Press Ctrl+C again to exit." })) : ctrlDPressedOnce ? (_jsx(Text, { color: Colors.AccentYellow, children: "Press Ctrl+D again to exit." })) : (_jsx(ContextSummaryDisplay, { ideContext: ideContextState, geminiMdFileCount: geminiMdFileCount, contextFileNames: contextFileNames, mcpServers: config.getMcpServers(), blockedMcpServers: config.getBlockedMcpServers(), showToolDescriptions: showToolDescriptions }))] }), _jsxs(Box, { children: [showAutoAcceptIndicator !== ApprovalMode.DEFAULT &&
|
|
568
|
+
!shellModeActive && (_jsx(AutoAcceptIndicator, { approvalMode: showAutoAcceptIndicator })), shellModeActive && _jsx(ShellModeIndicator, {})] })] }), showIDEContextDetail && (_jsx(IDEContextDetailDisplay, { ideContext: ideContextState, detectedIdeDisplay: config
|
|
569
|
+
.getIdeClient()
|
|
570
|
+
.getDetectedIdeDisplayName() })), showErrorDetails && (_jsx(OverflowProvider, { children: _jsxs(Box, { flexDirection: "column", children: [_jsx(DetailedMessagesDisplay, { messages: filteredConsoleMessages, maxHeight: constrainHeight ? debugConsoleMaxHeight : undefined, width: inputWidth }), _jsx(ShowMoreLines, { constrainHeight: constrainHeight })] }) })), isInputActive && (_jsx(InputPrompt, { buffer: buffer, inputWidth: inputWidth, suggestionsWidth: suggestionsWidth, onSubmit: handleFinalSubmit, userMessages: userMessages, onClearScreen: handleClearScreen, config: config, slashCommands: slashCommands, commandContext: commandContext, shellModeActive: shellModeActive, setShellModeActive: setShellModeActive, focus: isFocused, vimHandleInput: vimHandleInput, placeholder: placeholder }))] })), initError && streamingState !== StreamingState.Responding && (_jsx(Box, { borderStyle: "round", borderColor: Colors.AccentRed, paddingX: 1, marginBottom: 1, children: history.find((item) => item.type === 'error' && item.text?.includes(initError))?.text ? (_jsx(Text, { color: Colors.AccentRed, children: history.find((item) => item.type === 'error' && item.text?.includes(initError))?.text })) : (_jsxs(_Fragment, { children: [_jsxs(Text, { color: Colors.AccentRed, children: ["Initialization Error: ", initError] }), _jsxs(Text, { color: Colors.AccentRed, children: [' ', "Please check API key and configuration."] })] })) })), _jsx(Footer, { model: currentModel, targetDir: config.getTargetDir(), debugMode: config.getDebugMode(), branchName: branchName, debugMessage: debugMessage, corgiMode: corgiMode, errorCount: errorCount, showErrorDetails: showErrorDetails, showMemoryUsage: config.getDebugMode() || config.getShowMemoryUsage(), promptTokenCount: sessionStats.lastPromptTokenCount, nightly: nightly, vimMode: vimModeEnabled ? vimMode : undefined })] })] }) }));
|
|
842
571
|
};
|
|
843
572
|
//# sourceMappingURL=App.js.map
|