@machina.ai/cell-cli 1.13.0-rc5 → 1.16.0-rc2
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/package.json +4 -4
- package/dist/src/commands/extensions/disable.js +2 -2
- package/dist/src/commands/extensions/disable.js.map +1 -1
- package/dist/src/commands/extensions/enable.js +4 -4
- package/dist/src/commands/extensions/enable.js.map +1 -1
- package/dist/src/commands/extensions/examples/mcp-server/package.json +1 -1
- package/dist/src/commands/extensions.js +1 -1
- package/dist/src/commands/extensions.js.map +1 -1
- package/dist/src/config/config.d.ts +4 -8
- package/dist/src/config/config.js +37 -24
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/config.test.js +31 -11
- package/dist/src/config/config.test.js.map +1 -1
- package/dist/src/config/extension-manager.js +39 -14
- package/dist/src/config/extension-manager.js.map +1 -1
- package/dist/src/config/extension.test.js +65 -0
- package/dist/src/config/extension.test.js.map +1 -1
- package/dist/src/config/extensions/extensionSettings.js +3 -2
- package/dist/src/config/extensions/extensionSettings.js.map +1 -1
- package/dist/src/config/extensions/github.d.ts +1 -1
- package/dist/src/config/extensions/github.js +8 -2
- package/dist/src/config/extensions/github.js.map +1 -1
- package/dist/src/config/extensions/github.test.js +8 -10
- package/dist/src/config/extensions/github.test.js.map +1 -1
- package/dist/src/config/keyBindings.d.ts +19 -0
- package/dist/src/config/keyBindings.js +151 -0
- package/dist/src/config/keyBindings.js.map +1 -1
- package/dist/src/config/keyBindings.test.js +26 -1
- package/dist/src/config/keyBindings.test.js.map +1 -1
- package/dist/src/config/policy-engine.integration.test.js +62 -44
- package/dist/src/config/policy-engine.integration.test.js.map +1 -1
- package/dist/src/config/settingPaths.d.ts +10 -0
- package/dist/src/config/settingPaths.js +11 -0
- package/dist/src/config/settingPaths.js.map +1 -0
- package/dist/src/config/settings.d.ts +15 -5
- package/dist/src/config/settings.js +28 -8
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/config/settingsSchema.d.ts +64 -7
- package/dist/src/config/settingsSchema.js +68 -11
- package/dist/src/config/settingsSchema.js.map +1 -1
- package/dist/src/config/settingsSchema.test.js +9 -0
- package/dist/src/config/settingsSchema.test.js.map +1 -1
- package/dist/src/gemini.d.ts +2 -2
- package/dist/src/gemini.js +56 -27
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.js +18 -7
- package/dist/src/gemini.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/nonInteractiveCli.d.ts +3 -2
- package/dist/src/nonInteractiveCli.js +6 -1
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/nonInteractiveCli.test.js +2 -1
- package/dist/src/nonInteractiveCli.test.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +1 -1
- package/dist/src/services/BuiltinCommandLoader.js +2 -2
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.test.js +3 -1
- package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
- package/dist/src/services/FileCommandLoader.js +9 -6
- package/dist/src/services/FileCommandLoader.js.map +1 -1
- package/dist/src/services/FileCommandLoader.test.js +76 -1
- package/dist/src/services/FileCommandLoader.test.js.map +1 -1
- package/dist/src/test-utils/render.d.ts +2 -2
- package/dist/src/test-utils/render.js +18 -3
- package/dist/src/test-utils/render.js.map +1 -1
- package/dist/src/ui/App.js +9 -1
- package/dist/src/ui/App.js.map +1 -1
- package/dist/src/ui/App.test.js +37 -1
- package/dist/src/ui/App.test.js.map +1 -1
- package/dist/src/ui/AppContainer.d.ts +2 -3
- package/dist/src/ui/AppContainer.js +126 -29
- package/dist/src/ui/AppContainer.js.map +1 -1
- package/dist/src/ui/AppContainer.test.js +356 -48
- package/dist/src/ui/AppContainer.test.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.js +1 -1
- package/dist/src/ui/auth/AuthDialog.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.test.js +1 -1
- package/dist/src/ui/auth/AuthDialog.test.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.js +15 -3
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.test.js +44 -5
- package/dist/src/ui/commands/chatCommand.test.js.map +1 -1
- package/dist/src/ui/commands/directoryCommand.js +2 -10
- 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/extensionsCommand.d.ts +7 -2
- package/dist/src/ui/commands/extensionsCommand.js +238 -24
- package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
- package/dist/src/ui/commands/extensionsCommand.test.js +323 -82
- package/dist/src/ui/commands/extensionsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/ideCommand.js +6 -4
- package/dist/src/ui/commands/ideCommand.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.js +2 -10
- package/dist/src/ui/commands/memoryCommand.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.test.js +11 -28
- package/dist/src/ui/commands/memoryCommand.test.js.map +1 -1
- package/dist/src/ui/commands/settingsCommand.js +1 -1
- package/dist/src/ui/commands/settingsCommand.js.map +1 -1
- package/dist/src/ui/commands/settingsCommand.test.js +1 -1
- package/dist/src/ui/commands/settingsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/setupGithubCommand.js +1 -1
- package/dist/src/ui/commands/setupGithubCommand.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 +1 -2
- package/dist/src/ui/commands/types.js.map +1 -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/AlternateBufferQuittingDisplay.d.ts +6 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js +24 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js.map +1 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +110 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js.map +1 -0
- package/dist/src/ui/components/AppHeader.js +25 -3
- package/dist/src/ui/components/AppHeader.js.map +1 -1
- package/dist/src/ui/components/AppHeader.test.d.ts +6 -0
- package/dist/src/ui/components/AppHeader.test.js +138 -0
- package/dist/src/ui/components/AppHeader.test.js.map +1 -0
- package/dist/src/ui/components/AsciiArt.d.ts +6 -3
- package/dist/src/ui/components/AsciiArt.js +40 -3
- package/dist/src/ui/components/AsciiArt.js.map +1 -1
- package/dist/src/ui/components/Banner.d.ts +12 -0
- package/dist/src/ui/components/Banner.js +14 -0
- package/dist/src/ui/components/Banner.js.map +1 -0
- package/dist/src/ui/components/CliSpinner.d.ts +0 -1
- package/dist/src/ui/components/CliSpinner.js +3 -4
- package/dist/src/ui/components/CliSpinner.js.map +1 -1
- package/dist/src/ui/components/CliSpinner.test.d.ts +6 -0
- package/dist/src/ui/components/CliSpinner.test.js +23 -0
- package/dist/src/ui/components/CliSpinner.test.js.map +1 -0
- package/dist/src/ui/components/Composer.js +11 -4
- package/dist/src/ui/components/Composer.js.map +1 -1
- package/dist/src/ui/components/CopyModeWarning.d.ts +7 -0
- package/dist/src/ui/components/CopyModeWarning.js +12 -0
- package/dist/src/ui/components/CopyModeWarning.js.map +1 -0
- package/dist/src/ui/components/DebugProfiler.js +2 -2
- package/dist/src/ui/components/DebugProfiler.js.map +1 -1
- package/dist/src/ui/components/DebugProfiler.test.js +15 -0
- package/dist/src/ui/components/DebugProfiler.test.js.map +1 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +1 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js +47 -27
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -1
- package/dist/src/ui/components/DialogManager.js +1 -1
- package/dist/src/ui/components/DialogManager.js.map +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +3 -4
- package/dist/src/ui/components/EditorSettingsDialog.js +2 -2
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.js +1 -1
- package/dist/src/ui/components/FolderTrustDialog.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.js +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/Footer.js +2 -2
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/GradientRegression.test.d.ts +6 -0
- package/dist/src/ui/components/GradientRegression.test.js +84 -0
- package/dist/src/ui/components/GradientRegression.test.js.map +1 -0
- package/dist/src/ui/components/Header.js +9 -8
- package/dist/src/ui/components/Header.js.map +1 -1
- package/dist/src/ui/components/Header.test.js +102 -34
- package/dist/src/ui/components/Header.test.js.map +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/Help.test.js +9 -0
- package/dist/src/ui/components/Help.test.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.js +51 -40
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.d.ts +3 -0
- package/dist/src/ui/components/InputPrompt.js +18 -8
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.test.js +99 -116
- package/dist/src/ui/components/InputPrompt.test.js.map +1 -1
- package/dist/src/ui/components/MainContent.js +52 -15
- package/dist/src/ui/components/MainContent.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.js +38 -29
- package/dist/src/ui/components/ModelDialog.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.test.js +22 -11
- package/dist/src/ui/components/ModelDialog.test.js.map +1 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js +1 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -1
- package/dist/src/ui/components/ProQuotaDialog.d.ts +7 -2
- package/dist/src/ui/components/ProQuotaDialog.js +80 -15
- package/dist/src/ui/components/ProQuotaDialog.js.map +1 -1
- package/dist/src/ui/components/ProQuotaDialog.test.js +146 -40
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.js +1 -1
- package/dist/src/ui/components/SettingsDialog.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.test.js +12 -12
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/StatsDisplay.js +2 -2
- package/dist/src/ui/components/StatsDisplay.js.map +1 -1
- package/dist/src/ui/components/StickyHeader.d.ts +14 -0
- package/dist/src/ui/components/StickyHeader.js +5 -0
- package/dist/src/ui/components/StickyHeader.js.map +1 -0
- package/dist/src/ui/components/StickyHeader.test.d.ts +6 -0
- package/dist/src/ui/components/StickyHeader.test.js +17 -0
- package/dist/src/ui/components/StickyHeader.test.js.map +1 -0
- package/dist/src/ui/components/ThemeDialog.d.ts +2 -3
- package/dist/src/ui/components/ThemeDialog.js +11 -3
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.test.js +3 -3
- package/dist/src/ui/components/ThemeDialog.test.js.map +1 -1
- package/dist/src/ui/components/ThemedGradient.d.ts +8 -0
- package/dist/src/ui/components/ThemedGradient.js +15 -0
- package/dist/src/ui/components/ThemedGradient.js.map +1 -0
- package/dist/src/ui/components/messages/DiffRenderer.js +129 -89
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.js +107 -115
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.js +3 -1
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.js +3 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +2 -0
- package/dist/src/ui/components/messages/InfoMessage.js +4 -3
- package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
- package/dist/src/ui/components/messages/Todo.test.js +1 -1
- package/dist/src/ui/components/messages/Todo.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +151 -122
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.js +18 -14
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +57 -32
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +3 -0
- package/dist/src/ui/components/messages/ToolMessage.js +36 -17
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.test.js +3 -0
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +36 -4
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +1 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +1 -0
- package/dist/src/ui/components/messages/UserMessage.js +2 -2
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
- package/dist/src/ui/components/shared/ScopeSelector.d.ts +4 -4
- package/dist/src/ui/components/shared/Scrollable.d.ts +18 -0
- package/dist/src/ui/components/shared/Scrollable.js +84 -0
- package/dist/src/ui/components/shared/Scrollable.js.map +1 -0
- package/dist/src/ui/components/shared/Scrollable.test.d.ts +6 -0
- package/dist/src/ui/components/shared/Scrollable.test.js +74 -0
- package/dist/src/ui/components/shared/Scrollable.test.js.map +1 -0
- package/dist/src/ui/components/shared/ScrollableList.d.ts +26 -0
- package/dist/src/ui/components/shared/ScrollableList.js +152 -0
- package/dist/src/ui/components/shared/ScrollableList.js.map +1 -0
- package/dist/src/ui/components/shared/ScrollableList.test.d.ts +6 -0
- package/dist/src/ui/components/shared/ScrollableList.test.js +228 -0
- package/dist/src/ui/components/shared/ScrollableList.test.js.map +1 -0
- package/dist/src/ui/components/shared/VirtualizedList.d.ts +44 -0
- package/dist/src/ui/components/shared/VirtualizedList.js +312 -0
- package/dist/src/ui/components/shared/VirtualizedList.js.map +1 -0
- package/dist/src/ui/components/shared/VirtualizedList.test.d.ts +6 -0
- package/dist/src/ui/components/shared/VirtualizedList.test.js +171 -0
- package/dist/src/ui/components/shared/VirtualizedList.test.js.map +1 -0
- package/dist/src/ui/components/shared/text-buffer.d.ts +2 -8
- package/dist/src/ui/components/shared/text-buffer.js +1 -1
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
- package/dist/src/ui/components/shared/text-buffer.test.js +35 -0
- package/dist/src/ui/components/shared/text-buffer.test.js.map +1 -1
- package/dist/src/ui/components/views/ToolsList.js +1 -1
- package/dist/src/ui/components/views/ToolsList.js.map +1 -1
- package/dist/src/ui/constants.d.ts +1 -0
- package/dist/src/ui/constants.js +5 -0
- package/dist/src/ui/constants.js.map +1 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +6 -11
- package/dist/src/ui/contexts/KeypressContext.js +456 -756
- package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
- package/dist/src/ui/contexts/KeypressContext.test.js +103 -334
- package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -1
- package/dist/src/ui/contexts/MouseContext.js +16 -1
- package/dist/src/ui/contexts/MouseContext.js.map +1 -1
- package/dist/src/ui/contexts/MouseContext.test.js +34 -0
- package/dist/src/ui/contexts/MouseContext.test.js.map +1 -1
- package/dist/src/ui/contexts/ScrollProvider.d.ts +25 -0
- package/dist/src/ui/contexts/ScrollProvider.drag.test.d.ts +6 -0
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js +319 -0
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js.map +1 -0
- package/dist/src/ui/contexts/ScrollProvider.js +242 -0
- package/dist/src/ui/contexts/ScrollProvider.js.map +1 -0
- package/dist/src/ui/contexts/ScrollProvider.test.d.ts +6 -0
- package/dist/src/ui/contexts/ScrollProvider.test.js +377 -0
- package/dist/src/ui/contexts/ScrollProvider.test.js.map +1 -0
- package/dist/src/ui/contexts/UIActionsContext.d.ts +6 -5
- package/dist/src/ui/contexts/UIActionsContext.js.map +1 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +10 -0
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -1
- package/dist/src/ui/debug.d.ts +8 -0
- package/dist/src/ui/debug.js +11 -0
- package/dist/src/ui/debug.js.map +1 -0
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -1
- package/dist/src/ui/editors/editorSettingsManager.js +1 -11
- package/dist/src/ui/editors/editorSettingsManager.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.js +3 -3
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js +2 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.js +23 -5
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +103 -68
- package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/useAlternateBuffer.d.ts +8 -0
- package/dist/src/ui/hooks/useAlternateBuffer.js +12 -0
- package/dist/src/ui/hooks/useAlternateBuffer.js.map +1 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.d.ts +10 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.js +91 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.js.map +1 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.d.ts +6 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js +85 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js.map +1 -0
- package/dist/src/ui/hooks/useBatchedScroll.d.ts +14 -0
- package/dist/src/ui/hooks/useBatchedScroll.js +27 -0
- package/dist/src/ui/hooks/useBatchedScroll.js.map +1 -0
- package/dist/src/ui/hooks/useBatchedScroll.test.d.ts +6 -0
- package/dist/src/ui/hooks/useBatchedScroll.test.js +62 -0
- package/dist/src/ui/hooks/useBatchedScroll.test.js.map +1 -0
- package/dist/src/ui/hooks/useEditorSettings.d.ts +2 -2
- package/dist/src/ui/hooks/useEditorSettings.js +4 -3
- package/dist/src/ui/hooks/useEditorSettings.js.map +1 -1
- package/dist/src/ui/hooks/useEditorSettings.test.js +17 -8
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -1
- package/dist/src/ui/hooks/useFocus.test.js +10 -10
- package/dist/src/ui/hooks/useFocus.test.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.js +2 -2
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.test.js +4 -0
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +1 -1
- package/dist/src/ui/hooks/useKeypress.test.js +9 -32
- package/dist/src/ui/hooks/useKeypress.test.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.js +2 -2
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
- package/dist/src/ui/hooks/usePromptCompletion.js +2 -9
- package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +3 -5
- package/dist/src/ui/hooks/useQuotaAndFallback.js +62 -77
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +142 -106
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -1
- package/dist/src/ui/hooks/useSelectionList.test.js +3 -0
- package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -1
- package/dist/src/ui/hooks/useSessionBrowser.d.ts +18 -0
- package/dist/src/ui/hooks/useSessionBrowser.js +152 -0
- package/dist/src/ui/hooks/useSessionBrowser.js.map +1 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.d.ts +6 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.js +544 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.js.map +1 -0
- package/dist/src/ui/hooks/useSessionResume.d.ts +30 -0
- package/dist/src/ui/hooks/useSessionResume.js +56 -0
- package/dist/src/ui/hooks/useSessionResume.js.map +1 -0
- package/dist/src/ui/hooks/useSessionResume.test.d.ts +6 -0
- package/dist/src/ui/hooks/useSessionResume.test.js +325 -0
- package/dist/src/ui/hooks/useSessionResume.test.js.map +1 -0
- package/dist/src/ui/hooks/useThemeCommand.d.ts +2 -2
- package/dist/src/ui/hooks/useThemeCommand.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +1 -0
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/hooks/vim.js +1 -0
- package/dist/src/ui/hooks/vim.js.map +1 -1
- package/dist/src/ui/hooks/vim.test.js +1 -0
- package/dist/src/ui/hooks/vim.test.js.map +1 -1
- package/dist/src/ui/keyMatchers.test.js +38 -0
- package/dist/src/ui/keyMatchers.test.js.map +1 -1
- package/dist/src/ui/layouts/DefaultAppLayout.js +9 -1
- package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -1
- package/dist/src/ui/noninteractive/nonInteractiveUi.js +0 -1
- package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -1
- package/dist/src/ui/state/extensions.d.ts +5 -0
- package/dist/src/ui/state/extensions.js +12 -0
- package/dist/src/ui/state/extensions.js.map +1 -1
- package/dist/src/ui/state/extensions.test.d.ts +6 -0
- package/dist/src/ui/state/extensions.test.js +62 -0
- package/dist/src/ui/state/extensions.test.js.map +1 -0
- package/dist/src/ui/themes/color-utils.js +9 -0
- package/dist/src/ui/themes/color-utils.js.map +1 -1
- package/dist/src/ui/themes/color-utils.test.js +17 -0
- package/dist/src/ui/themes/color-utils.test.js.map +1 -1
- package/dist/src/ui/types.d.ts +6 -0
- package/dist/src/ui/types.js +4 -0
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +11 -3
- package/dist/src/ui/utils/CodeColorizer.js +18 -9
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.test.d.ts +6 -0
- package/dist/src/ui/utils/CodeColorizer.test.js +38 -0
- package/dist/src/ui/utils/CodeColorizer.test.js.map +1 -0
- package/dist/src/ui/utils/MarkdownDisplay.js +32 -6
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/mouse.d.ts +2 -1
- package/dist/src/ui/utils/mouse.js +27 -1
- package/dist/src/ui/utils/mouse.js.map +1 -1
- package/dist/src/ui/utils/mouse.test.js +5 -0
- package/dist/src/ui/utils/mouse.test.js.map +1 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +4 -0
- package/dist/src/ui/utils/terminalSetup.js +10 -3
- package/dist/src/ui/utils/terminalSetup.js.map +1 -1
- package/dist/src/ui/utils/textUtils.d.ts +1 -0
- package/dist/src/ui/utils/textUtils.js +3 -2
- package/dist/src/ui/utils/textUtils.js.map +1 -1
- package/dist/src/ui/utils/textUtils.test.js +7 -1
- package/dist/src/ui/utils/textUtils.test.js.map +1 -1
- package/dist/src/ui/utils/ui-sizing.js +10 -3
- package/dist/src/ui/utils/ui-sizing.js.map +1 -1
- package/dist/src/utils/cleanup.test.js +1 -1
- package/dist/src/utils/cleanup.test.js.map +1 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +6 -13
- package/dist/src/utils/dialogScopeUtils.js +4 -2
- package/dist/src/utils/dialogScopeUtils.js.map +1 -1
- package/dist/src/utils/events.d.ts +5 -1
- package/dist/src/utils/events.js +2 -0
- package/dist/src/utils/events.js.map +1 -1
- package/dist/src/utils/persistentState.d.ts +19 -0
- package/dist/src/utils/persistentState.js +65 -0
- package/dist/src/utils/persistentState.js.map +1 -0
- package/dist/src/utils/sessionCleanup.test.js +76 -0
- package/dist/src/utils/sessionCleanup.test.js.map +1 -1
- package/dist/src/utils/sessionUtils.d.ts +54 -0
- package/dist/src/utils/sessionUtils.js +141 -1
- package/dist/src/utils/sessionUtils.js.map +1 -1
- package/dist/src/utils/sessionUtils.test.d.ts +6 -0
- package/dist/src/utils/sessionUtils.test.js +260 -0
- package/dist/src/utils/sessionUtils.test.js.map +1 -0
- package/dist/src/utils/sessions.d.ts +8 -0
- package/dist/src/utils/sessions.js +64 -0
- package/dist/src/utils/sessions.js.map +1 -0
- package/dist/src/utils/settingsUtils.d.ts +2 -2
- package/dist/src/utils/settingsUtils.js.map +1 -1
- package/dist/src/utils/userStartupWarnings.js +2 -2
- package/dist/src/utils/userStartupWarnings.js.map +1 -1
- package/dist/src/utils/windowTitle.d.ts +1 -1
- package/dist/src/utils/windowTitle.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/src/config/policies/read-only.toml +0 -56
- package/dist/src/config/policies/write.toml +0 -63
- package/dist/src/config/policies/yolo.toml +0 -31
- package/dist/src/ui/utils/platformConstants.d.ts +0 -75
- package/dist/src/ui/utils/platformConstants.js +0 -78
- package/dist/src/ui/utils/platformConstants.js.map +0 -1
|
@@ -207,6 +207,7 @@ describe('InputPrompt', () => {
|
|
|
207
207
|
focus: true,
|
|
208
208
|
setQueueErrorMessage: vi.fn(),
|
|
209
209
|
streamingState: StreamingState.Idle,
|
|
210
|
+
setBannerVisible: vi.fn(),
|
|
210
211
|
};
|
|
211
212
|
});
|
|
212
213
|
it('should call shellHistory.getPreviousCommand on up arrow in shell mode', async () => {
|
|
@@ -436,77 +437,48 @@ describe('InputPrompt', () => {
|
|
|
436
437
|
unmount();
|
|
437
438
|
});
|
|
438
439
|
});
|
|
439
|
-
it(
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
showSuggestions: true,
|
|
440
|
+
it.each([
|
|
441
|
+
{
|
|
442
|
+
name: 'should complete a partial parent command',
|
|
443
|
+
bufferText: '/mem',
|
|
444
444
|
suggestions: [{ label: 'memory', value: 'memory', description: '...' }],
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
stdin.write('\t'); // Press Tab
|
|
451
|
-
});
|
|
452
|
-
await waitFor(() => expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0));
|
|
453
|
-
unmount();
|
|
454
|
-
});
|
|
455
|
-
it('should append a sub-command when the parent command is already complete', async () => {
|
|
456
|
-
// SCENARIO: /memory -> Tab (to accept 'add')
|
|
457
|
-
mockedUseCommandCompletion.mockReturnValue({
|
|
458
|
-
...mockCommandCompletion,
|
|
459
|
-
showSuggestions: true,
|
|
445
|
+
activeIndex: 0,
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
name: 'should append a sub-command when parent command is complete',
|
|
449
|
+
bufferText: '/memory ',
|
|
460
450
|
suggestions: [
|
|
461
451
|
{ label: 'show', value: 'show' },
|
|
462
452
|
{ label: 'add', value: 'add' },
|
|
463
453
|
],
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
stdin.write('\t'); // Press Tab
|
|
470
|
-
});
|
|
471
|
-
await waitFor(() => expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(1));
|
|
472
|
-
unmount();
|
|
473
|
-
});
|
|
474
|
-
it('should handle the "backspace" edge case correctly', async () => {
|
|
475
|
-
// SCENARIO: /memory -> Backspace -> /memory -> Tab (to accept 'show')
|
|
476
|
-
mockedUseCommandCompletion.mockReturnValue({
|
|
477
|
-
...mockCommandCompletion,
|
|
478
|
-
showSuggestions: true,
|
|
454
|
+
activeIndex: 1,
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
name: 'should handle the backspace edge case correctly',
|
|
458
|
+
bufferText: '/memory',
|
|
479
459
|
suggestions: [
|
|
480
460
|
{ label: 'show', value: 'show' },
|
|
481
461
|
{ label: 'add', value: 'add' },
|
|
482
462
|
],
|
|
483
|
-
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
// It should NOT become '/show'. It should correctly become '/memory show'.
|
|
493
|
-
expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0));
|
|
494
|
-
unmount();
|
|
495
|
-
});
|
|
496
|
-
it('should complete a partial argument for a command', async () => {
|
|
497
|
-
// SCENARIO: /chat resume fi- -> Tab
|
|
463
|
+
activeIndex: 0,
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
name: 'should complete a partial argument for a command',
|
|
467
|
+
bufferText: '/chat resume fi-',
|
|
468
|
+
suggestions: [{ label: 'fix-foo', value: 'fix-foo' }],
|
|
469
|
+
activeIndex: 0,
|
|
470
|
+
},
|
|
471
|
+
])('$name', async ({ bufferText, suggestions, activeIndex }) => {
|
|
498
472
|
mockedUseCommandCompletion.mockReturnValue({
|
|
499
473
|
...mockCommandCompletion,
|
|
500
474
|
showSuggestions: true,
|
|
501
|
-
suggestions
|
|
502
|
-
activeSuggestionIndex:
|
|
475
|
+
suggestions,
|
|
476
|
+
activeSuggestionIndex: activeIndex,
|
|
503
477
|
});
|
|
504
|
-
props.buffer.setText(
|
|
478
|
+
props.buffer.setText(bufferText);
|
|
505
479
|
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
506
|
-
await act(async () =>
|
|
507
|
-
|
|
508
|
-
});
|
|
509
|
-
await waitFor(() => expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0));
|
|
480
|
+
await act(async () => stdin.write('\t'));
|
|
481
|
+
await waitFor(() => expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(activeIndex));
|
|
510
482
|
unmount();
|
|
511
483
|
});
|
|
512
484
|
it('should autocomplete on Enter when suggestions are active, without submitting', async () => {
|
|
@@ -648,6 +620,16 @@ describe('InputPrompt', () => {
|
|
|
648
620
|
});
|
|
649
621
|
unmount();
|
|
650
622
|
});
|
|
623
|
+
it('should call setBannerVisible(false) when clear screen key is pressed', async () => {
|
|
624
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
625
|
+
await act(async () => {
|
|
626
|
+
stdin.write('\x0C'); // Ctrl+L
|
|
627
|
+
});
|
|
628
|
+
await waitFor(() => {
|
|
629
|
+
expect(props.setBannerVisible).toHaveBeenCalledWith(false);
|
|
630
|
+
});
|
|
631
|
+
unmount();
|
|
632
|
+
});
|
|
651
633
|
describe('cursor-based completion trigger', () => {
|
|
652
634
|
it.each([
|
|
653
635
|
{
|
|
@@ -747,40 +729,34 @@ describe('InputPrompt', () => {
|
|
|
747
729
|
});
|
|
748
730
|
});
|
|
749
731
|
describe('vim mode', () => {
|
|
750
|
-
it
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
await waitFor(() => {
|
|
769
|
-
expect(props.vimHandleInput).toHaveBeenCalled();
|
|
770
|
-
expect(mockBuffer.handleInput).toHaveBeenCalled();
|
|
771
|
-
});
|
|
772
|
-
unmount();
|
|
773
|
-
});
|
|
774
|
-
it('should call handleInput when vim mode is disabled', async () => {
|
|
775
|
-
// Mock vimHandleInput to return false (vim didn't handle the input)
|
|
776
|
-
props.vimHandleInput = vi.fn().mockReturnValue(false);
|
|
732
|
+
it.each([
|
|
733
|
+
{
|
|
734
|
+
name: 'should not call buffer.handleInput when vim handles input',
|
|
735
|
+
vimHandled: true,
|
|
736
|
+
expectBufferHandleInput: false,
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
name: 'should call buffer.handleInput when vim does not handle input',
|
|
740
|
+
vimHandled: false,
|
|
741
|
+
expectBufferHandleInput: true,
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
name: 'should call handleInput when vim mode is disabled',
|
|
745
|
+
vimHandled: false,
|
|
746
|
+
expectBufferHandleInput: true,
|
|
747
|
+
},
|
|
748
|
+
])('$name', async ({ vimHandled, expectBufferHandleInput }) => {
|
|
749
|
+
props.vimHandleInput = vi.fn().mockReturnValue(vimHandled);
|
|
777
750
|
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
778
|
-
await act(async () =>
|
|
779
|
-
stdin.write('i');
|
|
780
|
-
});
|
|
751
|
+
await act(async () => stdin.write('i'));
|
|
781
752
|
await waitFor(() => {
|
|
782
753
|
expect(props.vimHandleInput).toHaveBeenCalled();
|
|
783
|
-
|
|
754
|
+
if (expectBufferHandleInput) {
|
|
755
|
+
expect(mockBuffer.handleInput).toHaveBeenCalled();
|
|
756
|
+
}
|
|
757
|
+
else {
|
|
758
|
+
expect(mockBuffer.handleInput).not.toHaveBeenCalled();
|
|
759
|
+
}
|
|
784
760
|
});
|
|
785
761
|
unmount();
|
|
786
762
|
});
|
|
@@ -1079,7 +1055,7 @@ describe('InputPrompt', () => {
|
|
|
1079
1055
|
])('should allow immediate submission for a trusted paste ($name)', async ({ setup }) => {
|
|
1080
1056
|
setup();
|
|
1081
1057
|
props.buffer.text = 'pasted command';
|
|
1082
|
-
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props })
|
|
1058
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1083
1059
|
await act(async () => {
|
|
1084
1060
|
await vi.runAllTimersAsync();
|
|
1085
1061
|
});
|
|
@@ -1121,23 +1097,36 @@ describe('InputPrompt', () => {
|
|
|
1121
1097
|
});
|
|
1122
1098
|
});
|
|
1123
1099
|
describe('enhanced input UX - double ESC clear functionality', () => {
|
|
1100
|
+
beforeEach(() => vi.useFakeTimers());
|
|
1101
|
+
afterEach(() => vi.useRealTimers());
|
|
1124
1102
|
it('should clear buffer on second ESC press', async () => {
|
|
1125
1103
|
const onEscapePromptChange = vi.fn();
|
|
1126
1104
|
props.onEscapePromptChange = onEscapePromptChange;
|
|
1127
1105
|
props.buffer.setText('text to clear');
|
|
1128
|
-
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props })
|
|
1106
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1129
1107
|
await act(async () => {
|
|
1130
1108
|
stdin.write('\x1B');
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
});
|
|
1109
|
+
vi.advanceTimersByTime(100);
|
|
1110
|
+
expect(onEscapePromptChange).toHaveBeenCalledWith(false);
|
|
1134
1111
|
});
|
|
1135
1112
|
await act(async () => {
|
|
1136
1113
|
stdin.write('\x1B');
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1114
|
+
vi.advanceTimersByTime(100);
|
|
1115
|
+
expect(props.buffer.setText).toHaveBeenCalledWith('');
|
|
1116
|
+
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
|
|
1117
|
+
});
|
|
1118
|
+
unmount();
|
|
1119
|
+
});
|
|
1120
|
+
it('should clear buffer on double ESC', async () => {
|
|
1121
|
+
const onEscapePromptChange = vi.fn();
|
|
1122
|
+
props.onEscapePromptChange = onEscapePromptChange;
|
|
1123
|
+
props.buffer.setText('text to clear');
|
|
1124
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1125
|
+
await act(async () => {
|
|
1126
|
+
stdin.write('\x1B\x1B');
|
|
1127
|
+
vi.advanceTimersByTime(100);
|
|
1128
|
+
expect(props.buffer.setText).toHaveBeenCalledWith('');
|
|
1129
|
+
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
|
|
1141
1130
|
});
|
|
1142
1131
|
unmount();
|
|
1143
1132
|
});
|
|
@@ -1145,7 +1134,7 @@ describe('InputPrompt', () => {
|
|
|
1145
1134
|
const onEscapePromptChange = vi.fn();
|
|
1146
1135
|
props.onEscapePromptChange = onEscapePromptChange;
|
|
1147
1136
|
props.buffer.setText('some text');
|
|
1148
|
-
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props })
|
|
1137
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1149
1138
|
await act(async () => {
|
|
1150
1139
|
stdin.write('\x1B');
|
|
1151
1140
|
await waitFor(() => {
|
|
@@ -1162,10 +1151,11 @@ describe('InputPrompt', () => {
|
|
|
1162
1151
|
});
|
|
1163
1152
|
it('should handle ESC in shell mode by disabling shell mode', async () => {
|
|
1164
1153
|
props.shellModeActive = true;
|
|
1165
|
-
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props })
|
|
1154
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1166
1155
|
await act(async () => {
|
|
1167
1156
|
stdin.write('\x1B');
|
|
1168
|
-
|
|
1157
|
+
vi.advanceTimersByTime(100);
|
|
1158
|
+
expect(props.setShellModeActive).toHaveBeenCalledWith(false);
|
|
1169
1159
|
});
|
|
1170
1160
|
unmount();
|
|
1171
1161
|
});
|
|
@@ -1175,18 +1165,18 @@ describe('InputPrompt', () => {
|
|
|
1175
1165
|
showSuggestions: true,
|
|
1176
1166
|
suggestions: [{ label: 'suggestion', value: 'suggestion' }],
|
|
1177
1167
|
});
|
|
1178
|
-
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props })
|
|
1168
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1179
1169
|
await act(async () => {
|
|
1180
1170
|
stdin.write('\x1B');
|
|
1171
|
+
vi.advanceTimersByTime(100);
|
|
1172
|
+
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
|
|
1181
1173
|
});
|
|
1182
|
-
await waitFor(() => expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled());
|
|
1183
1174
|
unmount();
|
|
1184
1175
|
});
|
|
1185
1176
|
it('should not call onEscapePromptChange when not provided', async () => {
|
|
1186
|
-
vi.useFakeTimers();
|
|
1187
1177
|
props.onEscapePromptChange = undefined;
|
|
1188
1178
|
props.buffer.setText('some text');
|
|
1189
|
-
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props })
|
|
1179
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1190
1180
|
await act(async () => {
|
|
1191
1181
|
await vi.runAllTimersAsync();
|
|
1192
1182
|
});
|
|
@@ -1196,11 +1186,10 @@ describe('InputPrompt', () => {
|
|
|
1196
1186
|
await act(async () => {
|
|
1197
1187
|
await vi.runAllTimersAsync();
|
|
1198
1188
|
});
|
|
1199
|
-
vi.useRealTimers();
|
|
1200
1189
|
unmount();
|
|
1201
1190
|
});
|
|
1202
1191
|
it('should not interfere with existing keyboard shortcuts', async () => {
|
|
1203
|
-
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props })
|
|
1192
|
+
const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1204
1193
|
await act(async () => {
|
|
1205
1194
|
stdin.write('\x0C');
|
|
1206
1195
|
});
|
|
@@ -1250,14 +1239,10 @@ describe('InputPrompt', () => {
|
|
|
1250
1239
|
unmount();
|
|
1251
1240
|
});
|
|
1252
1241
|
it.each([
|
|
1253
|
-
{ name: 'standard',
|
|
1254
|
-
{
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
escapeSequence: '\u001b[27u',
|
|
1258
|
-
},
|
|
1259
|
-
])('resets reverse search state on Escape ($name)', async ({ kittyProtocolEnabled, escapeSequence }) => {
|
|
1260
|
-
const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), { kittyProtocolEnabled });
|
|
1242
|
+
{ name: 'standard', escapeSequence: '\x1B' },
|
|
1243
|
+
{ name: 'kitty', escapeSequence: '\u001b[27u' },
|
|
1244
|
+
])('resets reverse search state on Escape ($name)', async ({ escapeSequence }) => {
|
|
1245
|
+
const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1261
1246
|
await act(async () => {
|
|
1262
1247
|
stdin.write('\x12');
|
|
1263
1248
|
});
|
|
@@ -1711,8 +1696,6 @@ describe('InputPrompt', () => {
|
|
|
1711
1696
|
const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
|
|
1712
1697
|
await waitFor(() => {
|
|
1713
1698
|
expect(stdout.lastFrame()).not.toContain(`{chalk.inverse(' ')}`);
|
|
1714
|
-
// This snapshot is good to make sure there was an input prompt but does
|
|
1715
|
-
// not show the inverted cursor because snapshots do not show colors.
|
|
1716
1699
|
expect(stdout.lastFrame()).toMatchSnapshot();
|
|
1717
1700
|
});
|
|
1718
1701
|
unmount();
|