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