@vybestack/llxprt-code 0.2.24 → 0.3.4-nightly.250912.5e46408e
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.d.ts +5 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/package.json +3 -5
- package/dist/src/auth/anthropic-oauth-provider.d.ts +5 -0
- package/dist/src/auth/anthropic-oauth-provider.js +3 -1
- package/dist/src/auth/anthropic-oauth-provider.js.map +1 -1
- package/dist/src/auth/gemini-oauth-provider.d.ts +5 -0
- package/dist/src/auth/gemini-oauth-provider.js +3 -4
- package/dist/src/auth/gemini-oauth-provider.js.map +1 -1
- package/dist/src/auth/qwen-oauth-provider.d.ts +5 -0
- package/dist/src/auth/qwen-oauth-provider.js +3 -2
- package/dist/src/auth/qwen-oauth-provider.js.map +1 -1
- package/dist/src/commands/extensions/disable.d.ts +14 -0
- package/dist/src/commands/extensions/disable.js +40 -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 +47 -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 +47 -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 +19 -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 +31 -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 +37 -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 +15 -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 +37 -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 +1 -1
- package/dist/src/commands/mcp/add.js +1 -1
- package/dist/src/commands/mcp/list.d.ts +1 -1
- package/dist/src/commands/mcp/list.js +1 -1
- package/dist/src/commands/mcp/remove.d.ts +1 -1
- package/dist/src/commands/mcp/remove.js +1 -1
- package/dist/src/commands/mcp.d.ts +1 -1
- package/dist/src/commands/mcp.js +1 -1
- package/dist/src/config/auth.d.ts +1 -1
- package/dist/src/config/auth.js +1 -1
- package/dist/src/config/auth.test.d.ts +1 -1
- package/dist/src/config/auth.test.js +1 -1
- package/dist/src/config/config.d.ts +4 -4
- package/dist/src/config/config.js +39 -24
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/extension.d.ts +33 -2
- package/dist/src/config/extension.js +256 -10
- 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 +1 -1
- package/dist/src/config/keyBindings.js +1 -1
- package/dist/src/config/keyBindings.test.d.ts +1 -1
- package/dist/src/config/keyBindings.test.js +1 -1
- package/dist/src/config/sandboxConfig.d.ts +2 -2
- package/dist/src/config/sandboxConfig.js +5 -7
- package/dist/src/config/sandboxConfig.js.map +1 -1
- package/dist/src/config/settings.d.ts +9 -5
- package/dist/src/config/settings.js +89 -21
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/config/settingsSchema.d.ts +94 -2
- package/dist/src/config/settingsSchema.js +94 -2
- package/dist/src/config/settingsSchema.js.map +1 -1
- package/dist/src/config/settingsSchema.test.d.ts +1 -1
- package/dist/src/config/settingsSchema.test.js +12 -1
- package/dist/src/config/settingsSchema.test.js.map +1 -1
- package/dist/src/config/trustedFolders.d.ts +1 -1
- package/dist/src/config/trustedFolders.js +1 -1
- package/dist/src/config/trustedFolders.test.d.ts +1 -1
- package/dist/src/config/trustedFolders.test.js +1 -1
- package/dist/src/gemini.d.ts +4 -2
- package/dist/src/gemini.js +84 -59
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.d.ts +1 -1
- package/dist/src/gemini.test.js +75 -24
- package/dist/src/gemini.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +1 -1
- package/dist/src/generated/git-commit.js +1 -1
- package/dist/src/integration-tests/retry-settings.integration.test.d.ts +1 -1
- package/dist/src/integration-tests/retry-settings.integration.test.js +1 -1
- package/dist/src/nonInteractiveCli.d.ts +1 -1
- package/dist/src/nonInteractiveCli.js +20 -37
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/patches/is-in-ci.d.ts +1 -1
- package/dist/src/patches/is-in-ci.js +1 -1
- package/dist/src/providers/providerConfigUtils.d.ts +1 -1
- package/dist/src/providers/providerConfigUtils.js +1 -1
- package/dist/src/providers/providerManagerInstance.js +3 -1
- package/dist/src/providers/providerManagerInstance.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +1 -1
- package/dist/src/services/BuiltinCommandLoader.js +1 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +1 -1
- package/dist/src/services/BuiltinCommandLoader.test.js +1 -1
- package/dist/src/services/CommandService.d.ts +1 -1
- package/dist/src/services/CommandService.js +1 -1
- package/dist/src/services/CommandService.test.d.ts +1 -1
- package/dist/src/services/CommandService.test.js +1 -1
- package/dist/src/services/FileCommandLoader.d.ts +1 -1
- package/dist/src/services/FileCommandLoader.js +5 -4
- package/dist/src/services/FileCommandLoader.js.map +1 -1
- package/dist/src/services/McpPromptLoader.d.ts +12 -2
- package/dist/src/services/McpPromptLoader.js +43 -17
- 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 +1 -1
- package/dist/src/services/prompt-processors/argumentProcessor.js +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.js +1 -1
- package/dist/src/services/prompt-processors/types.d.ts +1 -1
- package/dist/src/services/prompt-processors/types.js +1 -1
- package/dist/src/services/types.d.ts +1 -1
- package/dist/src/services/types.js +1 -1
- package/dist/src/test-utils/customMatchers.d.ts +1 -1
- package/dist/src/test-utils/customMatchers.js +1 -1
- package/dist/src/test-utils/mockCommandContext.d.ts +1 -1
- package/dist/src/test-utils/mockCommandContext.js +1 -1
- package/dist/src/test-utils/mockCommandContext.test.d.ts +1 -1
- package/dist/src/test-utils/mockCommandContext.test.js +1 -1
- package/dist/src/test-utils/render.d.ts +1 -1
- package/dist/src/test-utils/render.js +1 -1
- package/dist/src/test-utils/responsive-testing.d.ts +1 -1
- package/dist/src/test-utils/responsive-testing.js +1 -1
- package/dist/src/test-utils/responsive-testing.test.d.ts +1 -1
- package/dist/src/test-utils/responsive-testing.test.js +1 -1
- package/dist/src/ui/App.d.ts +1 -1
- package/dist/src/ui/App.e2e.test.d.ts +2 -2
- package/dist/src/ui/App.e2e.test.js +2 -2
- package/dist/src/ui/App.js +60 -24
- package/dist/src/ui/App.js.map +1 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -1
- package/dist/src/ui/IdeIntegrationNudge.js +1 -2
- package/dist/src/ui/IdeIntegrationNudge.js.map +1 -1
- package/dist/src/ui/colors.d.ts +33 -1
- package/dist/src/ui/colors.js +65 -1
- package/dist/src/ui/colors.js.map +1 -1
- package/dist/src/ui/commands/aboutCommand.d.ts +1 -1
- package/dist/src/ui/commands/aboutCommand.js +1 -1
- package/dist/src/ui/commands/authCommand.d.ts +6 -1
- package/dist/src/ui/commands/authCommand.js +30 -1
- package/dist/src/ui/commands/authCommand.js.map +1 -1
- package/dist/src/ui/commands/bugCommand.d.ts +1 -1
- package/dist/src/ui/commands/bugCommand.js +1 -1
- package/dist/src/ui/commands/chatCommand.d.ts +1 -1
- package/dist/src/ui/commands/chatCommand.js +21 -4
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/clearCommand.d.ts +1 -1
- package/dist/src/ui/commands/clearCommand.js +1 -1
- package/dist/src/ui/commands/compressCommand.d.ts +1 -1
- package/dist/src/ui/commands/compressCommand.js +3 -1
- 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 +1 -1
- package/dist/src/ui/commands/docsCommand.d.ts +1 -1
- package/dist/src/ui/commands/docsCommand.js +1 -1
- package/dist/src/ui/commands/editorCommand.d.ts +1 -1
- package/dist/src/ui/commands/editorCommand.js +1 -1
- package/dist/src/ui/commands/extensionsCommand.d.ts +1 -1
- package/dist/src/ui/commands/extensionsCommand.js +1 -1
- package/dist/src/ui/commands/helpCommand.d.ts +1 -1
- package/dist/src/ui/commands/helpCommand.js +1 -1
- package/dist/src/ui/commands/ideCommand.d.ts +1 -1
- package/dist/src/ui/commands/ideCommand.js +2 -2
- package/dist/src/ui/commands/ideCommand.js.map +1 -1
- package/dist/src/ui/commands/initCommand.d.ts +1 -1
- package/dist/src/ui/commands/initCommand.js +1 -1
- package/dist/src/ui/commands/mcpCommand.d.ts +1 -1
- package/dist/src/ui/commands/mcpCommand.js +1 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +1 -1
- package/dist/src/ui/commands/memoryCommand.js +1 -1
- package/dist/src/ui/commands/privacyCommand.d.ts +1 -1
- package/dist/src/ui/commands/privacyCommand.js +1 -1
- package/dist/src/ui/commands/providerCommand.js +1 -1
- package/dist/src/ui/commands/providerCommand.js.map +1 -1
- package/dist/src/ui/commands/quitCommand.d.ts +1 -1
- package/dist/src/ui/commands/quitCommand.js +1 -1
- package/dist/src/ui/commands/restoreCommand.d.ts +1 -1
- package/dist/src/ui/commands/restoreCommand.js +3 -7
- package/dist/src/ui/commands/restoreCommand.js.map +1 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +1 -1
- package/dist/src/ui/commands/settingsCommand.js +1 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +1 -1
- package/dist/src/ui/commands/setupGithubCommand.js +1 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +1 -1
- package/dist/src/ui/commands/setupGithubCommand.test.js +1 -1
- package/dist/src/ui/commands/statsCommand.d.ts +1 -1
- package/dist/src/ui/commands/statsCommand.js +1 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +1 -1
- package/dist/src/ui/commands/terminalSetupCommand.js +1 -1
- package/dist/src/ui/commands/themeCommand.d.ts +1 -1
- package/dist/src/ui/commands/themeCommand.js +1 -1
- package/dist/src/ui/commands/toolformatCommand.test.d.ts +5 -0
- package/dist/src/ui/commands/toolformatCommand.test.js.map +1 -1
- package/dist/src/ui/commands/toolsCommand.d.ts +1 -1
- package/dist/src/ui/commands/toolsCommand.js +13 -43
- package/dist/src/ui/commands/toolsCommand.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +1 -1
- package/dist/src/ui/commands/types.js +1 -1
- package/dist/src/ui/commands/vimCommand.d.ts +1 -1
- package/dist/src/ui/commands/vimCommand.js +1 -1
- package/dist/src/ui/components/AboutBox.d.ts +1 -1
- package/dist/src/ui/components/AsciiArt.d.ts +1 -1
- package/dist/src/ui/components/AsciiArt.js +1 -1
- package/dist/src/ui/components/AuthDialog.d.ts +1 -1
- package/dist/src/ui/components/AuthDialog.js +1 -1
- package/dist/src/ui/components/AuthDialog.test.d.ts +1 -1
- package/dist/src/ui/components/AuthDialog.test.js +41 -11
- package/dist/src/ui/components/AuthDialog.test.js.map +1 -1
- package/dist/src/ui/components/AuthInProgress.d.ts +1 -1
- package/dist/src/ui/components/AuthInProgress.js +1 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +1 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +1 -1
- package/dist/src/ui/components/ContextIndicator.ui.test.d.ts +5 -0
- package/dist/src/ui/components/ContextIndicator.ui.test.js +5 -0
- package/dist/src/ui/components/ContextIndicator.ui.test.js.map +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.js +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.semantic.test.d.ts +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.semantic.test.js +1 -1
- package/dist/src/ui/components/DebugProfiler.d.ts +1 -1
- package/dist/src/ui/components/DebugProfiler.js +1 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.js +1 -1
- package/dist/src/ui/components/ErrorBoundary.d.ts +1 -1
- package/dist/src/ui/components/ErrorBoundary.js +1 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +2 -1
- package/dist/src/ui/components/FolderTrustDialog.js +10 -4
- package/dist/src/ui/components/FolderTrustDialog.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.js +41 -4
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/Footer.d.ts +1 -1
- package/dist/src/ui/components/Footer.js +1 -1
- package/dist/src/ui/components/Footer.responsive.test.d.ts +1 -1
- package/dist/src/ui/components/Footer.responsive.test.js +1 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +1 -1
- package/dist/src/ui/components/Header.d.ts +1 -1
- package/dist/src/ui/components/Help.d.ts +1 -1
- package/dist/src/ui/components/Help.js +1 -1
- package/dist/src/ui/components/Help.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +2 -2
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.js +3 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.d.ts +1 -1
- package/dist/src/ui/components/InputPrompt.js +150 -66
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.paste.test.d.ts +1 -1
- package/dist/src/ui/components/InputPrompt.paste.test.js +37 -12
- package/dist/src/ui/components/InputPrompt.paste.test.js.map +1 -1
- package/dist/src/ui/components/LayoutManager.d.ts +1 -1
- package/dist/src/ui/components/LayoutManager.js +1 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +1 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +1 -1
- package/dist/src/ui/components/LoadingIndicator.test.js +1 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +1 -1
- package/dist/src/ui/components/MemoryUsageDisplay.js +1 -1
- package/dist/src/ui/components/MemoryUsageDisplay.semantic.test.d.ts +1 -1
- package/dist/src/ui/components/MemoryUsageDisplay.semantic.test.js +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +1 -1
- package/dist/src/ui/components/OAuthCodeDialog.d.ts +5 -0
- package/dist/src/ui/components/OAuthCodeDialog.js +5 -0
- package/dist/src/ui/components/OAuthCodeDialog.js.map +1 -1
- package/dist/src/ui/components/OAuthCodeDialog.test.d.ts +1 -1
- package/dist/src/ui/components/OAuthCodeDialog.test.js +1 -1
- package/dist/src/ui/components/PrepareLabel.d.ts +1 -1
- package/dist/src/ui/components/ProviderDialog.d.ts +5 -0
- package/dist/src/ui/components/ProviderDialog.js +2 -2
- package/dist/src/ui/components/ProviderDialog.responsive.test.d.ts +1 -1
- package/dist/src/ui/components/ProviderDialog.responsive.test.js +1 -1
- package/dist/src/ui/components/ProviderModelDialog.d.ts +1 -1
- package/dist/src/ui/components/ProviderModelDialog.js +1 -1
- package/dist/src/ui/components/ProviderModelDialog.responsive.test.d.ts +1 -1
- package/dist/src/ui/components/ProviderModelDialog.responsive.test.js +1 -1
- package/dist/src/ui/components/ProviderModelDialog.test.d.ts +1 -1
- package/dist/src/ui/components/ProviderModelDialog.test.js +1 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +1 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +1 -1
- package/dist/src/ui/components/SettingsDialog.js +66 -35
- package/dist/src/ui/components/SettingsDialog.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +1 -1
- package/dist/src/ui/components/SettingsDialog.test.js +114 -48
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.js +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +1 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +1 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +1 -1
- package/dist/src/ui/components/ShowMoreLines.js +1 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +1 -1
- package/dist/src/ui/components/StatsDisplay.js +10 -11
- package/dist/src/ui/components/StatsDisplay.js.map +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.js +13 -5
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +1 -1
- package/dist/src/ui/components/ThemeDialog.js +1 -1
- package/dist/src/ui/components/Tips.d.ts +1 -1
- package/dist/src/ui/components/TodoPanel.responsive.test.d.ts +1 -1
- package/dist/src/ui/components/TodoPanel.responsive.test.js +1 -1
- package/dist/src/ui/components/TodoPanel.semantic.test.d.ts +1 -1
- package/dist/src/ui/components/TodoPanel.semantic.test.js +1 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +1 -1
- package/dist/src/ui/components/UpdateNotification.d.ts +1 -1
- package/dist/src/ui/components/UpdateNotification.js +1 -1
- package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +11 -0
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +43 -0
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -0
- package/dist/src/ui/components/__tests__/LayoutManager.test.d.ts +1 -1
- package/dist/src/ui/components/__tests__/LayoutManager.test.js +1 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +1 -1
- 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 +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.js +1 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.js +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/ToolConfirmationMessage.d.ts +2 -2
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +40 -23
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.responsive.test.d.ts +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.responsive.test.js +16 -12
- package/dist/src/ui/components/messages/ToolConfirmationMessage.responsive.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +88 -3
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +2 -2
- package/dist/src/ui/components/messages/ToolGroupMessage.js +2 -2
- 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 +256 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/ToolMessage.js +2 -2
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +1 -1
- package/dist/src/ui/components/messages/ToolMessage.test.js +7 -7
- 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.d.ts +1 -1
- package/dist/src/ui/components/shared/MaxSizedBox.js +1 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +1 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.js +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +1 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +1 -1
- package/dist/src/ui/components/shared/text-buffer.js +2 -46
- 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 +1 -1
- package/dist/src/ui/constants.d.ts +3 -1
- package/dist/src/ui/constants.js +3 -1
- package/dist/src/ui/constants.js.map +1 -1
- package/dist/src/ui/containers/SessionController.d.ts +5 -0
- package/dist/src/ui/containers/SessionController.js +5 -0
- package/dist/src/ui/containers/SessionController.js.map +1 -1
- package/dist/src/ui/containers/SessionController.test.d.ts +1 -1
- package/dist/src/ui/containers/SessionController.test.js +1 -1
- package/dist/src/ui/containers/UIStateShell.d.ts +5 -0
- package/dist/src/ui/containers/UIStateShell.js.map +1 -1
- package/dist/src/ui/contexts/AppDispatchContext.d.ts +1 -1
- package/dist/src/ui/contexts/AppDispatchContext.js +1 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +3 -2
- package/dist/src/ui/contexts/KeypressContext.js +33 -41
- package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +1 -1
- package/dist/src/ui/contexts/KeypressContext.test.js +122 -12
- package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +1 -1
- package/dist/src/ui/contexts/OverflowContext.js +1 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +1 -1
- package/dist/src/ui/contexts/SessionContext.js +1 -1
- package/dist/src/ui/contexts/SessionStateContext.d.ts +1 -1
- package/dist/src/ui/contexts/SessionStateContext.js +1 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +1 -1
- package/dist/src/ui/contexts/SettingsContext.js +1 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +1 -1
- package/dist/src/ui/contexts/StreamingContext.js +1 -1
- package/dist/src/ui/contexts/TodoProvider.d.ts +5 -0
- package/dist/src/ui/contexts/TodoProvider.js +5 -0
- package/dist/src/ui/contexts/TodoProvider.js.map +1 -1
- package/dist/src/ui/contexts/VimModeContext.d.ts +1 -1
- package/dist/src/ui/contexts/VimModeContext.js +1 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +1 -1
- package/dist/src/ui/editors/editorSettingsManager.js +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.js +1 -2
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js +10 -2
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/index.d.ts +5 -0
- package/dist/src/ui/hooks/index.js +5 -0
- package/dist/src/ui/hooks/index.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.js +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +27 -16
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.js +8 -5
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useAtCompletion.js +2 -1
- package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useAuthCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useAuthCommand.js +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +4 -2
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +14 -5
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +123 -3
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -1
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +1 -1
- package/dist/src/ui/hooks/useBracketedPaste.js +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +32 -0
- package/dist/src/ui/hooks/useCommandCompletion.js +196 -0
- package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useCompletion.js +1 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +1 -1
- package/dist/src/ui/hooks/useConsoleMessages.js +1 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +1 -1
- package/dist/src/ui/hooks/useEditorSettings.js +1 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +1 -1
- package/dist/src/ui/hooks/useEditorSettings.test.js +1 -1
- package/dist/src/ui/hooks/useFocus.d.ts +1 -1
- package/dist/src/ui/hooks/useFocus.js +1 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +2 -1
- package/dist/src/ui/hooks/useFolderTrust.js +28 -5
- package/dist/src/ui/hooks/useFolderTrust.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +2 -2
- package/dist/src/ui/hooks/useGeminiStream.integration.test.d.ts +1 -1
- package/dist/src/ui/hooks/useGeminiStream.integration.test.js +2 -2
- package/dist/src/ui/hooks/useGeminiStream.integration.test.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.js +77 -348
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +1 -1
- package/dist/src/ui/hooks/useGitBranchName.js +1 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +1 -1
- package/dist/src/ui/hooks/useGitBranchName.test.js +1 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +1 -1
- package/dist/src/ui/hooks/useHistoryManager.js +1 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +1 -1
- package/dist/src/ui/hooks/useHistoryManager.test.js +1 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +1 -1
- package/dist/src/ui/hooks/useInputHistory.js +1 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +1 -1
- package/dist/src/ui/hooks/useInputHistory.test.js +1 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +1 -1
- package/dist/src/ui/hooks/useKeypress.js +1 -1
- package/dist/src/ui/hooks/useKeypress.test.d.ts +1 -1
- package/dist/src/ui/hooks/useKeypress.test.js +1 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +1 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +1 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +1 -1
- package/dist/src/ui/hooks/useLoadingIndicator.js +1 -1
- package/dist/src/ui/hooks/useLogger.d.ts +3 -3
- package/dist/src/ui/hooks/useLogger.js +4 -4
- package/dist/src/ui/hooks/useLogger.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.js +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.js +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.js +1 -1
- 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/useProviderModelDialog.d.ts +1 -1
- package/dist/src/ui/hooks/useProviderModelDialog.js +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.js +3 -4
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +1 -1
- package/dist/src/ui/hooks/useResponsive.d.ts +1 -1
- package/dist/src/ui/hooks/useResponsive.js +1 -1
- package/dist/src/ui/hooks/useResponsive.test.d.ts +1 -1
- package/dist/src/ui/hooks/useResponsive.test.js +1 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +1 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +1 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +1 -1
- package/dist/src/ui/hooks/useSession.d.ts +1 -1
- package/dist/src/ui/hooks/useSession.js +1 -1
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useSettingsCommand.js +1 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +3 -2
- package/dist/src/ui/hooks/useShellHistory.js +8 -9
- package/dist/src/ui/hooks/useShellHistory.js.map +1 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +1 -1
- package/dist/src/ui/hooks/useShellHistory.test.js +32 -2
- package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.js +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.js +14 -3
- package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.js +1 -1
- package/dist/src/ui/hooks/useStableCallback.d.ts +1 -1
- package/dist/src/ui/hooks/useStableCallback.js +1 -1
- package/dist/src/ui/hooks/useStableCallback.test.d.ts +1 -1
- package/dist/src/ui/hooks/useStableCallback.test.js +1 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +1 -1
- package/dist/src/ui/hooks/useStateAndRef.js +1 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +1 -1
- package/dist/src/ui/hooks/useTerminalSize.js +1 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useThemeCommand.js +1 -1
- package/dist/src/ui/hooks/useTimer.d.ts +1 -1
- package/dist/src/ui/hooks/useTimer.js +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +23 -11
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +13 -0
- package/dist/src/ui/hooks/useWorkspaceMigration.js +50 -0
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -0
- package/dist/src/ui/hooks/vim.d.ts +1 -1
- package/dist/src/ui/hooks/vim.js +1 -1
- package/dist/src/ui/keyMatchers.d.ts +1 -1
- package/dist/src/ui/keyMatchers.js +1 -1
- package/dist/src/ui/keyMatchers.test.d.ts +1 -1
- package/dist/src/ui/keyMatchers.test.js +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +1 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +1 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +1 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +1 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +1 -1
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +1 -1
- package/dist/src/ui/privacy/PrivacyNotice.js +1 -1
- package/dist/src/ui/reducers/appReducer.d.ts +1 -1
- package/dist/src/ui/reducers/appReducer.js +1 -1
- package/dist/src/ui/reducers/appReducer.test.d.ts +1 -1
- package/dist/src/ui/reducers/appReducer.test.js +1 -1
- package/dist/src/ui/reducers/sessionReducer.d.ts +1 -1
- package/dist/src/ui/reducers/sessionReducer.js +1 -1
- package/dist/src/ui/semantic-colors.d.ts +6 -0
- package/dist/src/ui/semantic-colors.js +8 -0
- package/dist/src/ui/semantic-colors.js.map +1 -0
- package/dist/src/ui/themes/ansi-light.d.ts +1 -1
- package/dist/src/ui/themes/ansi-light.js +1 -1
- package/dist/src/ui/themes/ansi.d.ts +1 -1
- package/dist/src/ui/themes/ansi.js +1 -1
- package/dist/src/ui/themes/atom-one-dark.d.ts +1 -1
- package/dist/src/ui/themes/atom-one-dark.js +1 -1
- package/dist/src/ui/themes/ayu-light.d.ts +1 -1
- package/dist/src/ui/themes/ayu-light.js +1 -1
- package/dist/src/ui/themes/ayu.d.ts +1 -1
- package/dist/src/ui/themes/ayu.js +1 -1
- package/dist/src/ui/themes/color-utils.d.ts +1 -1
- package/dist/src/ui/themes/color-utils.js +1 -1
- package/dist/src/ui/themes/color-utils.test.d.ts +1 -1
- package/dist/src/ui/themes/color-utils.test.js +1 -1
- package/dist/src/ui/themes/default-light.d.ts +1 -1
- package/dist/src/ui/themes/default-light.js +1 -1
- package/dist/src/ui/themes/default.d.ts +1 -1
- package/dist/src/ui/themes/default.js +1 -1
- package/dist/src/ui/themes/dracula.d.ts +1 -1
- package/dist/src/ui/themes/dracula.js +1 -1
- package/dist/src/ui/themes/github-dark.d.ts +1 -1
- package/dist/src/ui/themes/github-dark.js +1 -1
- package/dist/src/ui/themes/github-light.d.ts +1 -1
- package/dist/src/ui/themes/github-light.js +1 -1
- package/dist/src/ui/themes/googlecode.d.ts +1 -1
- package/dist/src/ui/themes/googlecode.js +2 -2
- package/dist/src/ui/themes/googlecode.js.map +1 -1
- package/dist/src/ui/themes/green-screen.d.ts +1 -1
- package/dist/src/ui/themes/green-screen.js +1 -1
- package/dist/src/ui/themes/no-color.d.ts +1 -1
- package/dist/src/ui/themes/no-color.js +1 -1
- package/dist/src/ui/themes/semantic-resolver.d.ts +1 -1
- package/dist/src/ui/themes/semantic-resolver.js +1 -1
- package/dist/src/ui/themes/semantic-resolver.test.d.ts +1 -1
- package/dist/src/ui/themes/semantic-resolver.test.js +1 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +1 -1
- package/dist/src/ui/themes/semantic-tokens.js +1 -1
- package/dist/src/ui/themes/semantic-tokens.test.d.ts +1 -1
- package/dist/src/ui/themes/semantic-tokens.test.js +1 -1
- package/dist/src/ui/themes/shades-of-purple.d.ts +1 -1
- package/dist/src/ui/themes/shades-of-purple.js +1 -1
- package/dist/src/ui/themes/theme-compat.d.ts +1 -1
- package/dist/src/ui/themes/theme-compat.js +1 -1
- package/dist/src/ui/themes/theme-manager.d.ts +3 -1
- package/dist/src/ui/themes/theme-manager.js +73 -6
- package/dist/src/ui/themes/theme-manager.js.map +1 -1
- package/dist/src/ui/themes/theme-manager.test.d.ts +1 -1
- package/dist/src/ui/themes/theme-manager.test.js +61 -2
- package/dist/src/ui/themes/theme-manager.test.js.map +1 -1
- package/dist/src/ui/themes/theme.d.ts +4 -2
- package/dist/src/ui/themes/theme.js +32 -2
- package/dist/src/ui/themes/theme.js.map +1 -1
- package/dist/src/ui/themes/xcode.d.ts +1 -1
- package/dist/src/ui/themes/xcode.js +1 -1
- package/dist/src/ui/types.d.ts +3 -2
- package/dist/src/ui/types.js +1 -1
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +1 -1
- package/dist/src/ui/utils/CodeColorizer.js +1 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +1 -1
- package/dist/src/ui/utils/ConsolePatcher.js +1 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +1 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.js +9 -11
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.js +18 -17
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +1 -1
- package/dist/src/ui/utils/TableRenderer.js +6 -6
- package/dist/src/ui/utils/TableRenderer.js.map +1 -1
- package/dist/src/ui/utils/clipboardUtils.d.ts +1 -1
- package/dist/src/ui/utils/clipboardUtils.js +1 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +1 -1
- package/dist/src/ui/utils/clipboardUtils.test.js +1 -1
- package/dist/src/ui/utils/commandUtils.d.ts +2 -2
- package/dist/src/ui/utils/commandUtils.js +52 -14
- package/dist/src/ui/utils/commandUtils.js.map +1 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +1 -1
- package/dist/src/ui/utils/commandUtils.test.js +75 -20
- package/dist/src/ui/utils/commandUtils.test.js.map +1 -1
- package/dist/src/ui/utils/computeStats.d.ts +1 -1
- package/dist/src/ui/utils/computeStats.js +1 -1
- package/dist/src/ui/utils/displayUtils.d.ts +1 -1
- package/dist/src/ui/utils/displayUtils.js +1 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +1 -1
- package/dist/src/ui/utils/displayUtils.test.js +1 -1
- package/dist/src/ui/utils/formatters.d.ts +1 -1
- package/dist/src/ui/utils/formatters.js +1 -1
- package/dist/src/ui/utils/formatters.test.d.ts +1 -1
- package/dist/src/ui/utils/formatters.test.js +1 -1
- package/dist/src/ui/utils/kittyProtocolDetector.d.ts +1 -1
- package/dist/src/ui/utils/kittyProtocolDetector.js +1 -1
- package/dist/src/ui/utils/markdownUtilities.d.ts +1 -1
- package/dist/src/ui/utils/markdownUtilities.js +1 -1
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +1 -1
- package/dist/src/ui/utils/markdownUtilities.test.js +1 -1
- package/dist/src/ui/utils/platformConstants.d.ts +8 -1
- package/dist/src/ui/utils/platformConstants.js +8 -1
- package/dist/src/ui/utils/platformConstants.js.map +1 -1
- package/dist/src/ui/utils/renderLoopDetector.d.ts +1 -1
- package/dist/src/ui/utils/renderLoopDetector.js +1 -1
- package/dist/src/ui/utils/responsive.d.ts +1 -1
- package/dist/src/ui/utils/responsive.js +1 -1
- package/dist/src/ui/utils/responsive.test.d.ts +1 -1
- package/dist/src/ui/utils/responsive.test.js +1 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +1 -1
- package/dist/src/ui/utils/terminalSetup.js +1 -1
- package/dist/src/ui/utils/textUtils.d.ts +19 -1
- package/dist/src/ui/utils/textUtils.js +45 -1
- package/dist/src/ui/utils/textUtils.js.map +1 -1
- package/dist/src/ui/utils/updateCheck.d.ts +1 -1
- package/dist/src/ui/utils/updateCheck.js +1 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +1 -1
- package/dist/src/ui/utils/updateCheck.test.js +1 -1
- package/dist/src/utils/ConversationContext.d.ts +2 -12
- package/dist/src/utils/ConversationContext.js +2 -12
- package/dist/src/utils/ConversationContext.js.map +1 -1
- package/dist/src/utils/ConversationContext.test.d.ts +1 -1
- package/dist/src/utils/ConversationContext.test.js +1 -1
- package/dist/src/utils/checks.d.ts +1 -1
- package/dist/src/utils/checks.js +1 -1
- package/dist/src/utils/cleanup.d.ts +1 -1
- package/dist/src/utils/cleanup.js +4 -3
- package/dist/src/utils/cleanup.js.map +1 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +1 -1
- package/dist/src/utils/dialogScopeUtils.js +1 -1
- package/dist/src/utils/events.d.ts +1 -1
- package/dist/src/utils/events.js +1 -1
- package/dist/src/utils/gitUtils.d.ts +1 -1
- package/dist/src/utils/gitUtils.js +1 -1
- package/dist/src/utils/gitUtils.test.d.ts +1 -1
- package/dist/src/utils/gitUtils.test.js +4 -4
- package/dist/src/utils/gitUtils.test.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +1 -1
- package/dist/src/utils/handleAutoUpdate.js +1 -1
- package/dist/src/utils/installationInfo.d.ts +1 -1
- package/dist/src/utils/installationInfo.js +1 -1
- package/dist/src/utils/installationInfo.test.d.ts +1 -1
- package/dist/src/utils/installationInfo.test.js +1 -1
- package/dist/src/utils/package.d.ts +1 -1
- package/dist/src/utils/package.js +1 -1
- package/dist/src/utils/readStdin.d.ts +1 -1
- package/dist/src/utils/readStdin.js +16 -1
- 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.d.ts +1 -1
- package/dist/src/utils/resolvePath.js +1 -1
- package/dist/src/utils/sandbox.d.ts +3 -3
- package/dist/src/utils/sandbox.js +22 -29
- package/dist/src/utils/sandbox.js.map +1 -1
- package/dist/src/utils/settingsUtils.d.ts +1 -1
- package/dist/src/utils/settingsUtils.js +1 -1
- package/dist/src/utils/settingsUtils.test.d.ts +1 -1
- package/dist/src/utils/settingsUtils.test.js +1 -1
- package/dist/src/utils/spawnWrapper.d.ts +1 -1
- package/dist/src/utils/spawnWrapper.js +1 -1
- package/dist/src/utils/startupWarnings.d.ts +1 -1
- package/dist/src/utils/startupWarnings.js +1 -1
- package/dist/src/utils/updateEventEmitter.d.ts +1 -1
- package/dist/src/utils/updateEventEmitter.js +1 -1
- package/dist/src/utils/userStartupWarnings.d.ts +1 -1
- package/dist/src/utils/userStartupWarnings.js +1 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +1 -1
- package/dist/src/utils/userStartupWarnings.test.js +1 -1
- package/dist/src/utils/version.d.ts +1 -1
- package/dist/src/utils/version.js +1 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +1 -1
- package/dist/src/validateNonInterActiveAuth.js +1 -1
- package/dist/src/zed-integration/acp.d.ts +1 -1
- package/dist/src/zed-integration/acp.js +3 -2
- package/dist/src/zed-integration/acp.js.map +1 -1
- package/dist/src/zed-integration/fileSystemService.d.ts +1 -1
- package/dist/src/zed-integration/fileSystemService.js +1 -1
- package/dist/src/zed-integration/schema.d.ts +79 -79
- package/dist/src/zed-integration/schema.js +1 -1
- package/dist/src/zed-integration/zedIntegration.d.ts +1 -1
- package/dist/src/zed-integration/zedIntegration.js +5 -13
- package/dist/src/zed-integration/zedIntegration.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -5
@@ -0,0 +1,256 @@
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* @license
|
4
|
+
* Copyright 2025 Vybestack LLC
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
6
|
+
*/
|
7
|
+
import { render } from 'ink-testing-library';
|
8
|
+
import { describe, it, expect, vi } from 'vitest';
|
9
|
+
import { Text } from 'ink';
|
10
|
+
import { ToolGroupMessage } from './ToolGroupMessage.js';
|
11
|
+
import { ToolCallStatus } from '../../types.js';
|
12
|
+
// Mock child components to isolate ToolGroupMessage behavior
|
13
|
+
vi.mock('./ToolMessage.js', () => ({
|
14
|
+
ToolMessage: function MockToolMessage({ callId, name, description, status, emphasis, }) {
|
15
|
+
const statusSymbol = {
|
16
|
+
[ToolCallStatus.Success]: '✓',
|
17
|
+
[ToolCallStatus.Pending]: 'o',
|
18
|
+
[ToolCallStatus.Executing]: '⊷',
|
19
|
+
[ToolCallStatus.Confirming]: '?',
|
20
|
+
[ToolCallStatus.Canceled]: '-',
|
21
|
+
[ToolCallStatus.Error]: 'x',
|
22
|
+
}[status];
|
23
|
+
return (_jsxs(Text, { children: ["MockTool[", callId, "]: ", statusSymbol, " ", name, " - ", description, " (", emphasis, ")"] }));
|
24
|
+
},
|
25
|
+
}));
|
26
|
+
vi.mock('./ToolConfirmationMessage.js', () => ({
|
27
|
+
ToolConfirmationMessage: function MockToolConfirmationMessage({ confirmationDetails, }) {
|
28
|
+
const displayText = confirmationDetails?.type === 'info'
|
29
|
+
? confirmationDetails.prompt
|
30
|
+
: confirmationDetails?.title || 'confirm';
|
31
|
+
return _jsxs(Text, { children: ["MockConfirmation: ", displayText] });
|
32
|
+
},
|
33
|
+
}));
|
34
|
+
describe('<ToolGroupMessage />', () => {
|
35
|
+
const mockConfig = {};
|
36
|
+
const createToolCall = (overrides = {}) => ({
|
37
|
+
callId: 'tool-123',
|
38
|
+
name: 'test-tool',
|
39
|
+
description: 'A tool for testing',
|
40
|
+
resultDisplay: 'Test result',
|
41
|
+
status: ToolCallStatus.Success,
|
42
|
+
confirmationDetails: undefined,
|
43
|
+
renderOutputAsMarkdown: false,
|
44
|
+
...overrides,
|
45
|
+
});
|
46
|
+
const baseProps = {
|
47
|
+
groupId: 1,
|
48
|
+
terminalWidth: 80,
|
49
|
+
config: mockConfig,
|
50
|
+
isFocused: true,
|
51
|
+
};
|
52
|
+
describe('Golden Snapshots', () => {
|
53
|
+
it('renders single successful tool call', () => {
|
54
|
+
const toolCalls = [createToolCall()];
|
55
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
56
|
+
expect(lastFrame()).toMatchSnapshot();
|
57
|
+
});
|
58
|
+
it('renders multiple tool calls with different statuses', () => {
|
59
|
+
const toolCalls = [
|
60
|
+
createToolCall({
|
61
|
+
callId: 'tool-1',
|
62
|
+
name: 'successful-tool',
|
63
|
+
description: 'This tool succeeded',
|
64
|
+
status: ToolCallStatus.Success,
|
65
|
+
}),
|
66
|
+
createToolCall({
|
67
|
+
callId: 'tool-2',
|
68
|
+
name: 'pending-tool',
|
69
|
+
description: 'This tool is pending',
|
70
|
+
status: ToolCallStatus.Pending,
|
71
|
+
}),
|
72
|
+
createToolCall({
|
73
|
+
callId: 'tool-3',
|
74
|
+
name: 'error-tool',
|
75
|
+
description: 'This tool failed',
|
76
|
+
status: ToolCallStatus.Error,
|
77
|
+
}),
|
78
|
+
];
|
79
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
80
|
+
expect(lastFrame()).toMatchSnapshot();
|
81
|
+
});
|
82
|
+
it('renders tool call awaiting confirmation', () => {
|
83
|
+
const toolCalls = [
|
84
|
+
createToolCall({
|
85
|
+
callId: 'tool-confirm',
|
86
|
+
name: 'confirmation-tool',
|
87
|
+
description: 'This tool needs confirmation',
|
88
|
+
status: ToolCallStatus.Confirming,
|
89
|
+
confirmationDetails: {
|
90
|
+
type: 'info',
|
91
|
+
title: 'Confirm Tool Execution',
|
92
|
+
prompt: 'Are you sure you want to proceed?',
|
93
|
+
onConfirm: vi.fn(),
|
94
|
+
},
|
95
|
+
}),
|
96
|
+
];
|
97
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
98
|
+
expect(lastFrame()).toMatchSnapshot();
|
99
|
+
});
|
100
|
+
it('renders shell command with yellow border', () => {
|
101
|
+
const toolCalls = [
|
102
|
+
createToolCall({
|
103
|
+
callId: 'shell-1',
|
104
|
+
name: 'run_shell_command',
|
105
|
+
description: 'Execute shell command',
|
106
|
+
status: ToolCallStatus.Success,
|
107
|
+
}),
|
108
|
+
];
|
109
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
110
|
+
expect(lastFrame()).toMatchSnapshot();
|
111
|
+
});
|
112
|
+
it('renders mixed tool calls including shell command', () => {
|
113
|
+
const toolCalls = [
|
114
|
+
createToolCall({
|
115
|
+
callId: 'tool-1',
|
116
|
+
name: 'read_file',
|
117
|
+
description: 'Read a file',
|
118
|
+
status: ToolCallStatus.Success,
|
119
|
+
}),
|
120
|
+
createToolCall({
|
121
|
+
callId: 'tool-2',
|
122
|
+
name: 'run_shell_command',
|
123
|
+
description: 'Run command',
|
124
|
+
status: ToolCallStatus.Executing,
|
125
|
+
}),
|
126
|
+
createToolCall({
|
127
|
+
callId: 'tool-3',
|
128
|
+
name: 'write_file',
|
129
|
+
description: 'Write to file',
|
130
|
+
status: ToolCallStatus.Pending,
|
131
|
+
}),
|
132
|
+
];
|
133
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
134
|
+
expect(lastFrame()).toMatchSnapshot();
|
135
|
+
});
|
136
|
+
it('renders with limited terminal height', () => {
|
137
|
+
const toolCalls = [
|
138
|
+
createToolCall({
|
139
|
+
callId: 'tool-1',
|
140
|
+
name: 'tool-with-result',
|
141
|
+
description: 'Tool with output',
|
142
|
+
resultDisplay: 'This is a long result that might need height constraints',
|
143
|
+
}),
|
144
|
+
createToolCall({
|
145
|
+
callId: 'tool-2',
|
146
|
+
name: 'another-tool',
|
147
|
+
description: 'Another tool',
|
148
|
+
resultDisplay: 'More output here',
|
149
|
+
}),
|
150
|
+
];
|
151
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls, availableTerminalHeight: 10 }));
|
152
|
+
expect(lastFrame()).toMatchSnapshot();
|
153
|
+
});
|
154
|
+
it('renders when not focused', () => {
|
155
|
+
const toolCalls = [createToolCall()];
|
156
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls, isFocused: false }));
|
157
|
+
expect(lastFrame()).toMatchSnapshot();
|
158
|
+
});
|
159
|
+
it('renders with narrow terminal width', () => {
|
160
|
+
const toolCalls = [
|
161
|
+
createToolCall({
|
162
|
+
name: 'very-long-tool-name-that-might-wrap',
|
163
|
+
description: 'This is a very long description that might cause wrapping issues',
|
164
|
+
}),
|
165
|
+
];
|
166
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls, terminalWidth: 40 }));
|
167
|
+
expect(lastFrame()).toMatchSnapshot();
|
168
|
+
});
|
169
|
+
it('renders empty tool calls array', () => {
|
170
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: [] }));
|
171
|
+
expect(lastFrame()).toMatchSnapshot();
|
172
|
+
});
|
173
|
+
});
|
174
|
+
describe('Border Color Logic', () => {
|
175
|
+
it('uses yellow border when tools are pending', () => {
|
176
|
+
const toolCalls = [createToolCall({ status: ToolCallStatus.Pending })];
|
177
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
178
|
+
// The snapshot will capture the visual appearance including border color
|
179
|
+
expect(lastFrame()).toMatchSnapshot();
|
180
|
+
});
|
181
|
+
it('uses yellow border for shell commands even when successful', () => {
|
182
|
+
const toolCalls = [
|
183
|
+
createToolCall({
|
184
|
+
name: 'run_shell_command',
|
185
|
+
status: ToolCallStatus.Success,
|
186
|
+
}),
|
187
|
+
];
|
188
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
189
|
+
expect(lastFrame()).toMatchSnapshot();
|
190
|
+
});
|
191
|
+
it('uses gray border when all tools are successful and no shell commands', () => {
|
192
|
+
const toolCalls = [
|
193
|
+
createToolCall({ status: ToolCallStatus.Success }),
|
194
|
+
createToolCall({
|
195
|
+
callId: 'tool-2',
|
196
|
+
name: 'another-tool',
|
197
|
+
status: ToolCallStatus.Success,
|
198
|
+
}),
|
199
|
+
];
|
200
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
201
|
+
expect(lastFrame()).toMatchSnapshot();
|
202
|
+
});
|
203
|
+
});
|
204
|
+
describe('Height Calculation', () => {
|
205
|
+
it('calculates available height correctly with multiple tools with results', () => {
|
206
|
+
const toolCalls = [
|
207
|
+
createToolCall({
|
208
|
+
callId: 'tool-1',
|
209
|
+
resultDisplay: 'Result 1',
|
210
|
+
}),
|
211
|
+
createToolCall({
|
212
|
+
callId: 'tool-2',
|
213
|
+
resultDisplay: 'Result 2',
|
214
|
+
}),
|
215
|
+
createToolCall({
|
216
|
+
callId: 'tool-3',
|
217
|
+
resultDisplay: '', // No result
|
218
|
+
}),
|
219
|
+
];
|
220
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls, availableTerminalHeight: 20 }));
|
221
|
+
expect(lastFrame()).toMatchSnapshot();
|
222
|
+
});
|
223
|
+
});
|
224
|
+
describe('Confirmation Handling', () => {
|
225
|
+
it('shows confirmation dialog for first confirming tool only', () => {
|
226
|
+
const toolCalls = [
|
227
|
+
createToolCall({
|
228
|
+
callId: 'tool-1',
|
229
|
+
name: 'first-confirm',
|
230
|
+
status: ToolCallStatus.Confirming,
|
231
|
+
confirmationDetails: {
|
232
|
+
type: 'info',
|
233
|
+
title: 'Confirm First Tool',
|
234
|
+
prompt: 'Confirm first tool',
|
235
|
+
onConfirm: vi.fn(),
|
236
|
+
},
|
237
|
+
}),
|
238
|
+
createToolCall({
|
239
|
+
callId: 'tool-2',
|
240
|
+
name: 'second-confirm',
|
241
|
+
status: ToolCallStatus.Confirming,
|
242
|
+
confirmationDetails: {
|
243
|
+
type: 'info',
|
244
|
+
title: 'Confirm Second Tool',
|
245
|
+
prompt: 'Confirm second tool',
|
246
|
+
onConfirm: vi.fn(),
|
247
|
+
},
|
248
|
+
}),
|
249
|
+
];
|
250
|
+
const { lastFrame } = render(_jsx(ToolGroupMessage, { ...baseProps, toolCalls: toolCalls }));
|
251
|
+
// Should only show confirmation for the first tool
|
252
|
+
expect(lastFrame()).toMatchSnapshot();
|
253
|
+
});
|
254
|
+
});
|
255
|
+
});
|
256
|
+
//# sourceMappingURL=ToolGroupMessage.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ToolGroupMessage.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/ToolGroupMessage.test.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,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AAC;aACH,CAAC;YACF,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,KAAC,gBAAgB,OAAK,SAAS,EAAE,SAAS,EAAE,SAAS,GAAI,CAC1D,CAAC;YACF,mDAAmD;YACnD,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;QACxC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
/**
|
3
3
|
* @license
|
4
|
-
* Copyright 2025
|
4
|
+
* Copyright 2025 Vybestack LLC
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
6
6
|
*/
|
7
7
|
import React from 'react';
|
@@ -39,7 +39,7 @@ export const ToolMessage = ({ name, description, resultDisplay, status, availabl
|
|
39
39
|
}
|
40
40
|
return (_jsxs(Box, { paddingX: 1, paddingY: 0, flexDirection: "column", children: [_jsxs(Box, { minHeight: 1, children: [_jsx(ToolStatusIndicator, { status: status }), _jsx(ToolInfo, { name: name, status: status, description: description, emphasis: emphasis }), emphasis === 'high' && _jsx(TrailingIndicator, {})] }), resultDisplay && (_jsx(Box, { paddingLeft: STATUS_INDICATOR_WIDTH, width: "100%", marginTop: 1, children: _jsxs(Box, { flexDirection: "column", children: [typeof resultDisplay === 'string' && renderOutputAsMarkdown && (_jsx(Box, { flexDirection: "column", children: _jsx(MarkdownDisplay, { text: resultDisplay, isPending: false, availableTerminalHeight: availableHeight, terminalWidth: childWidth }) })), typeof resultDisplay === 'string' && !renderOutputAsMarkdown && (_jsx(MaxSizedBox, { maxHeight: availableHeight, maxWidth: childWidth, children: _jsx(Box, { children: _jsx(Text, { color: Colors.Foreground, wrap: "wrap", children: resultDisplay }) }) })), typeof resultDisplay !== 'string' && (_jsx(DiffRenderer, { diffContent: resultDisplay.fileDiff, filename: resultDisplay.fileName, availableTerminalHeight: availableHeight, terminalWidth: childWidth }))] }) }))] }));
|
41
41
|
};
|
42
|
-
const ToolStatusIndicator = ({ status, }) => (_jsxs(Box, { minWidth: STATUS_INDICATOR_WIDTH, children: [status === ToolCallStatus.Pending && (_jsx(Text, { color: Colors.AccentGreen, children: "o" })), status === ToolCallStatus.Executing && (_jsx(GeminiRespondingSpinner, { spinnerType: "toggle", nonRespondingDisplay: '⊷' })), status === ToolCallStatus.Success && (_jsx(Text, { color: Colors.AccentGreen, children: "\
|
42
|
+
const ToolStatusIndicator = ({ status, }) => (_jsxs(Box, { minWidth: STATUS_INDICATOR_WIDTH, children: [status === ToolCallStatus.Pending && (_jsx(Text, { color: Colors.AccentGreen, children: "o" })), status === ToolCallStatus.Executing && (_jsx(GeminiRespondingSpinner, { spinnerType: "toggle", nonRespondingDisplay: '⊷' })), status === ToolCallStatus.Success && (_jsx(Text, { color: Colors.AccentGreen, children: "\u2713" })), status === ToolCallStatus.Confirming && (_jsx(Text, { color: Colors.AccentYellow, children: "?" })), status === ToolCallStatus.Canceled && (_jsx(Text, { color: Colors.AccentYellow, bold: true, children: "-" })), status === ToolCallStatus.Error && (_jsx(Text, { color: Colors.AccentRed, bold: true, children: "x" }))] }));
|
43
43
|
const ToolInfo = ({ name, description, status, emphasis, }) => {
|
44
44
|
const nameColor = React.useMemo(() => {
|
45
45
|
switch (emphasis) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
/**
|
3
3
|
* @license
|
4
|
-
* Copyright 2025
|
4
|
+
* Copyright 2025 Vybestack LLC
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
6
6
|
*/
|
7
7
|
import React from 'react';
|
@@ -49,15 +49,15 @@ describe('<ToolMessage />', () => {
|
|
49
49
|
it('renders basic tool information', () => {
|
50
50
|
const { lastFrame } = renderWithContext(_jsx(ToolMessage, { ...baseProps }), StreamingState.Idle);
|
51
51
|
const output = lastFrame();
|
52
|
-
expect(output).toContain('
|
52
|
+
expect(output).toContain('✓'); // Success indicator
|
53
53
|
expect(output).toContain('test-tool');
|
54
54
|
expect(output).toContain('A tool for testing');
|
55
55
|
expect(output).toContain('MockMarkdown:Test result');
|
56
56
|
});
|
57
57
|
describe('ToolStatusIndicator rendering', () => {
|
58
|
-
it('shows
|
58
|
+
it('shows ✓ for Success status', () => {
|
59
59
|
const { lastFrame } = renderWithContext(_jsx(ToolMessage, { ...baseProps, status: ToolCallStatus.Success }), StreamingState.Idle);
|
60
|
-
expect(lastFrame()).toContain('
|
60
|
+
expect(lastFrame()).toContain('✓');
|
61
61
|
});
|
62
62
|
it('shows o for Pending status', () => {
|
63
63
|
const { lastFrame } = renderWithContext(_jsx(ToolMessage, { ...baseProps, status: ToolCallStatus.Pending }), StreamingState.Idle);
|
@@ -79,18 +79,18 @@ describe('<ToolMessage />', () => {
|
|
79
79
|
const { lastFrame } = renderWithContext(_jsx(ToolMessage, { ...baseProps, status: ToolCallStatus.Executing }), StreamingState.Idle);
|
80
80
|
expect(lastFrame()).toContain('⊷');
|
81
81
|
expect(lastFrame()).not.toContain('MockRespondingSpinner');
|
82
|
-
expect(lastFrame()).not.toContain('
|
82
|
+
expect(lastFrame()).not.toContain('✓');
|
83
83
|
});
|
84
84
|
it('shows paused spinner for Executing status when streamingState is WaitingForConfirmation', () => {
|
85
85
|
const { lastFrame } = renderWithContext(_jsx(ToolMessage, { ...baseProps, status: ToolCallStatus.Executing }), StreamingState.WaitingForConfirmation);
|
86
86
|
expect(lastFrame()).toContain('⊷');
|
87
87
|
expect(lastFrame()).not.toContain('MockRespondingSpinner');
|
88
|
-
expect(lastFrame()).not.toContain('
|
88
|
+
expect(lastFrame()).not.toContain('✓');
|
89
89
|
});
|
90
90
|
it('shows MockRespondingSpinner for Executing status when streamingState is Responding', () => {
|
91
91
|
const { lastFrame } = renderWithContext(_jsx(ToolMessage, { ...baseProps, status: ToolCallStatus.Executing }), StreamingState.Responding);
|
92
92
|
expect(lastFrame()).toContain('MockRespondingSpinner');
|
93
|
-
expect(lastFrame()).not.toContain('
|
93
|
+
expect(lastFrame()).not.toContain('✓');
|
94
94
|
});
|
95
95
|
});
|
96
96
|
it('renders DiffRenderer for diff results', () => {
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { Text, Box } from 'ink';
|
3
3
|
import { Colors } from '../../colors.js';
|
4
|
+
import { SCREEN_READER_USER_PREFIX } from '../../constants.js';
|
5
|
+
import { isSlashCommand as checkIsSlashCommand } from '../../utils/commandUtils.js';
|
4
6
|
export const UserMessage = ({ text }) => {
|
5
7
|
const prefix = '> ';
|
6
8
|
const prefixWidth = prefix.length;
|
7
|
-
const isSlashCommand = text
|
9
|
+
const isSlashCommand = checkIsSlashCommand(text);
|
8
10
|
const textColor = isSlashCommand ? Colors.AccentPurple : Colors.Gray;
|
9
11
|
const borderColor = isSlashCommand ? Colors.AccentPurple : Colors.Gray;
|
10
|
-
return (_jsxs(Box, { borderStyle: "round", borderColor: borderColor, flexDirection: "row", paddingX: 2, paddingY: 0, marginY: 1, alignSelf: "flex-start", children: [_jsx(Box, { width: prefixWidth, children: _jsx(Text, { color: textColor, children: prefix }) }), _jsx(Box, { flexGrow: 1, children: _jsx(Text, { wrap: "wrap", color: textColor, children: text }) })] }));
|
12
|
+
return (_jsxs(Box, { borderStyle: "round", borderColor: borderColor, flexDirection: "row", paddingX: 2, paddingY: 0, marginY: 1, alignSelf: "flex-start", children: [_jsx(Box, { width: prefixWidth, children: _jsx(Text, { color: textColor, "aria-label": SCREEN_READER_USER_PREFIX, children: prefix }) }), _jsx(Box, { flexGrow: 1, children: _jsx(Text, { wrap: "wrap", color: textColor, children: text }) })] }));
|
11
13
|
};
|
12
14
|
//# sourceMappingURL=UserMessage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"UserMessage.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/UserMessage.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"UserMessage.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/UserMessage.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAMpF,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAClE,MAAM,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;IAClC,MAAM,cAAc,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAEjD,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;IACrE,MAAM,WAAW,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;IAEvE,OAAO,CACL,MAAC,GAAG,IACF,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAC,KAAK,EACnB,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,CAAC,EACV,SAAS,EAAC,YAAY,aAEtB,KAAC,GAAG,IAAC,KAAK,EAAE,WAAW,YACrB,KAAC,IAAI,IAAC,KAAK,EAAE,SAAS,gBAAc,yBAAyB,YAC1D,MAAM,GACF,GACH,EACN,KAAC,GAAG,IAAC,QAAQ,EAAE,CAAC,YACd,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,SAAS,YAC/B,IAAI,GACA,GACH,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
/**
|
2
2
|
* @license
|
3
|
-
* Copyright 2025
|
3
|
+
* Copyright 2025 Vybestack LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
5
|
*/
|
6
|
-
import stripAnsi from 'strip-ansi';
|
7
|
-
import { stripVTControlCharacters } from 'util';
|
8
6
|
import { spawnSync } from 'child_process';
|
9
7
|
import fs from 'fs';
|
10
8
|
import os from 'os';
|
@@ -12,7 +10,7 @@ import pathMod from 'path';
|
|
12
10
|
import { useState, useCallback, useEffect, useMemo, useReducer } from 'react';
|
13
11
|
import stringWidth from 'string-width';
|
14
12
|
import { unescapePath } from '@vybestack/llxprt-code-core';
|
15
|
-
import { toCodePoints, cpLen, cpSlice } from '../../utils/textUtils.js';
|
13
|
+
import { toCodePoints, cpLen, cpSlice, stripUnsafeCharacters, } from '../../utils/textUtils.js';
|
16
14
|
import { handleVimAction } from './vim-buffer-actions.js';
|
17
15
|
// Simple helper for word‑wise ops.
|
18
16
|
function isWordChar(ch) {
|
@@ -373,48 +371,6 @@ export const replaceRangeInternal = (state, startRow, startCol, endRow, endCol,
|
|
373
371
|
preferredCol: null,
|
374
372
|
};
|
375
373
|
};
|
376
|
-
/**
|
377
|
-
* Strip characters that can break terminal rendering.
|
378
|
-
*
|
379
|
-
* Uses Node.js built-in stripVTControlCharacters to handle VT sequences,
|
380
|
-
* then filters remaining control characters that can disrupt display.
|
381
|
-
*
|
382
|
-
* Characters stripped:
|
383
|
-
* - ANSI escape sequences (via strip-ansi)
|
384
|
-
* - VT control sequences (via Node.js util.stripVTControlCharacters)
|
385
|
-
* - C0 control chars (0x00-0x1F) except CR/LF which are handled elsewhere
|
386
|
-
* - C1 control chars (0x80-0x9F) that can cause display issues
|
387
|
-
*
|
388
|
-
* Characters preserved:
|
389
|
-
* - All printable Unicode including emojis
|
390
|
-
* - DEL (0x7F) - handled functionally by applyOperations, not a display issue
|
391
|
-
* - CR/LF (0x0D/0x0A) - needed for line breaks
|
392
|
-
*/
|
393
|
-
function stripUnsafeCharacters(str) {
|
394
|
-
const strippedAnsi = stripAnsi(str);
|
395
|
-
const strippedVT = stripVTControlCharacters(strippedAnsi);
|
396
|
-
return toCodePoints(strippedVT)
|
397
|
-
.filter((char) => {
|
398
|
-
const code = char.codePointAt(0);
|
399
|
-
if (code === undefined)
|
400
|
-
return false;
|
401
|
-
// Preserve CR/LF for line handling
|
402
|
-
if (code === 0x0a || code === 0x0d)
|
403
|
-
return true;
|
404
|
-
// Remove C0 control chars (except CR/LF) that can break display
|
405
|
-
// Examples: BELL(0x07) makes noise, BS(0x08) moves cursor, VT(0x0B), FF(0x0C)
|
406
|
-
if (code >= 0x00 && code <= 0x1f)
|
407
|
-
return false;
|
408
|
-
// Remove C1 control chars (0x80-0x9F) - legacy 8-bit control codes
|
409
|
-
if (code >= 0x80 && code <= 0x9f)
|
410
|
-
return false;
|
411
|
-
// Preserve DEL (0x7F) - it's handled functionally by applyOperations as backspace
|
412
|
-
// and doesn't cause rendering issues when displayed
|
413
|
-
// Preserve all other characters including Unicode/emojis
|
414
|
-
return true;
|
415
|
-
})
|
416
|
-
.join('');
|
417
|
-
}
|
418
374
|
function clamp(v, min, max) {
|
419
375
|
return v < min ? min : v > max ? max : v;
|
420
376
|
}
|