@google/gemini-cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +320 -0
- package/dist/.last_build +0 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +84 -0
- package/dist/src/commands/extensions/disable.d.ts +14 -0
- package/dist/src/commands/extensions/disable.js +42 -0
- package/dist/src/commands/extensions/disable.js.map +1 -0
- package/dist/src/commands/extensions/enable.d.ts +14 -0
- package/dist/src/commands/extensions/enable.js +46 -0
- package/dist/src/commands/extensions/enable.js.map +1 -0
- package/dist/src/commands/extensions/examples/context/GEMINI.md +8 -0
- package/dist/src/commands/extensions/examples/context/gemini-extension.json +5 -0
- package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +6 -0
- package/dist/src/commands/extensions/examples/custom-commands/gemini-extension.json +4 -0
- package/dist/src/commands/extensions/examples/exclude-tools/gemini-extension.json +5 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.d.ts +6 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.js +46 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.js.map +1 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.ts +60 -0
- package/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +10 -0
- package/dist/src/commands/extensions/install.d.ts +14 -0
- package/dist/src/commands/extensions/install.js +77 -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 +95 -0
- package/dist/src/commands/extensions/install.test.js.map +1 -0
- package/dist/src/commands/extensions/link.d.ts +12 -0
- package/dist/src/commands/extensions/link.js +37 -0
- package/dist/src/commands/extensions/link.js.map +1 -0
- package/dist/src/commands/extensions/list.d.ts +8 -0
- package/dist/src/commands/extensions/list.js +32 -0
- package/dist/src/commands/extensions/list.js.map +1 -0
- package/dist/src/commands/extensions/new.d.ts +7 -0
- package/dist/src/commands/extensions/new.js +70 -0
- package/dist/src/commands/extensions/new.js.map +1 -0
- package/dist/src/commands/extensions/new.test.d.ts +6 -0
- package/dist/src/commands/extensions/new.test.js +50 -0
- package/dist/src/commands/extensions/new.test.js.map +1 -0
- package/dist/src/commands/extensions/uninstall.d.ts +12 -0
- package/dist/src/commands/extensions/uninstall.js +38 -0
- package/dist/src/commands/extensions/uninstall.js.map +1 -0
- package/dist/src/commands/extensions/uninstall.test.d.ts +6 -0
- package/dist/src/commands/extensions/uninstall.test.js +15 -0
- package/dist/src/commands/extensions/uninstall.test.js.map +1 -0
- package/dist/src/commands/extensions/update.d.ts +13 -0
- package/dist/src/commands/extensions/update.js +69 -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 +33 -0
- package/dist/src/commands/extensions.js.map +1 -0
- package/dist/src/commands/mcp/add.d.ts +7 -0
- package/dist/src/commands/mcp/add.js +166 -0
- package/dist/src/commands/mcp/add.js.map +1 -0
- package/dist/src/commands/mcp/list.d.ts +8 -0
- package/dist/src/commands/mcp/list.js +110 -0
- package/dist/src/commands/mcp/list.js.map +1 -0
- package/dist/src/commands/mcp/remove.d.ts +7 -0
- package/dist/src/commands/mcp/remove.js +44 -0
- package/dist/src/commands/mcp/remove.js.map +1 -0
- package/dist/src/commands/mcp.d.ts +7 -0
- package/dist/src/commands/mcp.js +23 -0
- package/dist/src/commands/mcp.js.map +1 -0
- package/dist/src/config/auth.d.ts +6 -0
- package/dist/src/config/auth.js +34 -0
- package/dist/src/config/auth.js.map +1 -0
- package/dist/src/config/auth.test.d.ts +6 -0
- package/dist/src/config/auth.test.js +65 -0
- package/dist/src/config/auth.test.js.map +1 -0
- package/dist/src/config/config.d.ts +45 -0
- package/dist/src/config/config.js +477 -0
- package/dist/src/config/config.js.map +1 -0
- package/dist/src/config/extension.d.ts +66 -0
- package/dist/src/config/extension.js +524 -0
- package/dist/src/config/extension.js.map +1 -0
- package/dist/src/config/extensions/extensionEnablement.d.ts +30 -0
- package/dist/src/config/extensions/extensionEnablement.js +113 -0
- package/dist/src/config/extensions/extensionEnablement.js.map +1 -0
- package/dist/src/config/extensions/extensionEnablement.test.d.ts +6 -0
- package/dist/src/config/extensions/extensionEnablement.test.js +116 -0
- package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -0
- package/dist/src/config/extensions/github.d.ts +21 -0
- package/dist/src/config/extensions/github.js +256 -0
- package/dist/src/config/extensions/github.js.map +1 -0
- package/dist/src/config/extensions/github.test.d.ts +6 -0
- package/dist/src/config/extensions/github.test.js +194 -0
- package/dist/src/config/extensions/github.test.js.map +1 -0
- package/dist/src/config/extensions/variableSchema.d.ts +36 -0
- package/dist/src/config/extensions/variableSchema.js +22 -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 +70 -0
- package/dist/src/config/keyBindings.js +130 -0
- package/dist/src/config/keyBindings.js.map +1 -0
- package/dist/src/config/keyBindings.test.d.ts +6 -0
- package/dist/src/config/keyBindings.test.js +51 -0
- package/dist/src/config/keyBindings.test.js.map +1 -0
- package/dist/src/config/sandboxConfig.d.ts +13 -0
- package/dist/src/config/sandboxConfig.js +73 -0
- package/dist/src/config/sandboxConfig.js.map +1 -0
- package/dist/src/config/settings.d.ts +65 -0
- package/dist/src/config/settings.js +553 -0
- package/dist/src/config/settings.js.map +1 -0
- package/dist/src/config/settingsSchema.d.ts +959 -0
- package/dist/src/config/settingsSchema.js +925 -0
- package/dist/src/config/settingsSchema.js.map +1 -0
- package/dist/src/config/settingsSchema.test.d.ts +6 -0
- package/dist/src/config/settingsSchema.test.js +206 -0
- package/dist/src/config/settingsSchema.test.js.map +1 -0
- package/dist/src/config/trustedFolders.d.ts +47 -0
- package/dist/src/config/trustedFolders.js +142 -0
- package/dist/src/config/trustedFolders.js.map +1 -0
- package/dist/src/config/trustedFolders.test.d.ts +6 -0
- package/dist/src/config/trustedFolders.test.js +259 -0
- package/dist/src/config/trustedFolders.test.js.map +1 -0
- package/dist/src/core/auth.d.ts +13 -0
- package/dist/src/core/auth.js +27 -0
- package/dist/src/core/auth.js.map +1 -0
- package/dist/src/core/initializer.d.ts +21 -0
- package/dist/src/core/initializer.js +33 -0
- package/dist/src/core/initializer.js.map +1 -0
- package/dist/src/core/theme.d.ts +12 -0
- package/dist/src/core/theme.js +20 -0
- package/dist/src/core/theme.js.map +1 -0
- package/dist/src/gemini.d.ts +12 -0
- package/dist/src/gemini.js +334 -0
- package/dist/src/gemini.js.map +1 -0
- package/dist/src/gemini.test.d.ts +6 -0
- package/dist/src/gemini.test.js +318 -0
- package/dist/src/gemini.test.js.map +1 -0
- package/dist/src/generated/git-commit.d.ts +7 -0
- package/dist/src/generated/git-commit.js +10 -0
- package/dist/src/generated/git-commit.js.map +1 -0
- package/dist/src/nonInteractiveCli.d.ts +7 -0
- package/dist/src/nonInteractiveCli.js +108 -0
- package/dist/src/nonInteractiveCli.js.map +1 -0
- package/dist/src/patches/is-in-ci.d.ts +7 -0
- package/dist/src/patches/is-in-ci.js +15 -0
- package/dist/src/patches/is-in-ci.js.map +1 -0
- package/dist/src/services/BuiltinCommandLoader.d.ts +24 -0
- package/dist/src/services/BuiltinCommandLoader.js +82 -0
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -0
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +6 -0
- package/dist/src/services/BuiltinCommandLoader.test.js +107 -0
- package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -0
- package/dist/src/services/CommandService.d.ts +55 -0
- package/dist/src/services/CommandService.js +90 -0
- package/dist/src/services/CommandService.js.map +1 -0
- package/dist/src/services/CommandService.test.d.ts +6 -0
- package/dist/src/services/CommandService.test.js +233 -0
- package/dist/src/services/CommandService.test.js.map +1 -0
- package/dist/src/services/FileCommandLoader.d.ts +51 -0
- package/dist/src/services/FileCommandLoader.js +227 -0
- package/dist/src/services/FileCommandLoader.js.map +1 -0
- package/dist/src/services/McpPromptLoader.d.ts +35 -0
- package/dist/src/services/McpPromptLoader.js +253 -0
- package/dist/src/services/McpPromptLoader.js.map +1 -0
- package/dist/src/services/McpPromptLoader.test.d.ts +6 -0
- package/dist/src/services/McpPromptLoader.test.js +341 -0
- package/dist/src/services/McpPromptLoader.test.js.map +1 -0
- package/dist/src/services/prompt-processors/argumentProcessor.d.ts +16 -0
- package/dist/src/services/prompt-processors/argumentProcessor.js +21 -0
- package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -0
- package/dist/src/services/prompt-processors/atFileProcessor.d.ts +12 -0
- package/dist/src/services/prompt-processors/atFileProcessor.js +62 -0
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -0
- package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +6 -0
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +174 -0
- package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +1 -0
- package/dist/src/services/prompt-processors/injectionParser.d.ts +29 -0
- package/dist/src/services/prompt-processors/injectionParser.js +60 -0
- package/dist/src/services/prompt-processors/injectionParser.js.map +1 -0
- package/dist/src/services/prompt-processors/injectionParser.test.d.ts +6 -0
- package/dist/src/services/prompt-processors/injectionParser.test.js +189 -0
- package/dist/src/services/prompt-processors/injectionParser.test.js.map +1 -0
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +27 -0
- package/dist/src/services/prompt-processors/shellProcessor.js +128 -0
- package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -0
- package/dist/src/services/prompt-processors/types.d.ts +45 -0
- package/dist/src/services/prompt-processors/types.js +20 -0
- package/dist/src/services/prompt-processors/types.js.map +1 -0
- package/dist/src/services/types.d.ts +22 -0
- package/dist/src/services/types.js +7 -0
- package/dist/src/services/types.js.map +1 -0
- package/dist/src/test-utils/customMatchers.d.ts +14 -0
- package/dist/src/test-utils/customMatchers.js +40 -0
- package/dist/src/test-utils/customMatchers.js.map +1 -0
- package/dist/src/test-utils/mockCommandContext.d.ts +18 -0
- package/dist/src/test-utils/mockCommandContext.js +86 -0
- package/dist/src/test-utils/mockCommandContext.js.map +1 -0
- package/dist/src/test-utils/mockCommandContext.test.d.ts +6 -0
- package/dist/src/test-utils/mockCommandContext.test.js +51 -0
- package/dist/src/test-utils/mockCommandContext.test.js.map +1 -0
- package/dist/src/test-utils/render.d.ts +8 -0
- package/dist/src/test-utils/render.js +10 -0
- package/dist/src/test-utils/render.js.map +1 -0
- package/dist/src/ui/App.d.ts +6 -0
- package/dist/src/ui/App.js +22 -0
- package/dist/src/ui/App.js.map +1 -0
- package/dist/src/ui/AppContainer.d.ts +17 -0
- package/dist/src/ui/AppContainer.js +879 -0
- package/dist/src/ui/AppContainer.js.map +1 -0
- package/dist/src/ui/AppContainer.test.d.ts +6 -0
- package/dist/src/ui/AppContainer.test.js +414 -0
- package/dist/src/ui/AppContainer.test.js.map +1 -0
- package/dist/src/ui/IdeIntegrationNudge.d.ts +16 -0
- package/dist/src/ui/IdeIntegrationNudge.js +47 -0
- package/dist/src/ui/IdeIntegrationNudge.js.map +1 -0
- package/dist/src/ui/auth/AuthDialog.d.ts +18 -0
- package/dist/src/ui/auth/AuthDialog.js +99 -0
- package/dist/src/ui/auth/AuthDialog.js.map +1 -0
- package/dist/src/ui/auth/AuthDialog.test.d.ts +6 -0
- package/dist/src/ui/auth/AuthDialog.test.js +184 -0
- package/dist/src/ui/auth/AuthDialog.test.js.map +1 -0
- package/dist/src/ui/auth/AuthInProgress.d.ts +11 -0
- package/dist/src/ui/auth/AuthInProgress.js +23 -0
- package/dist/src/ui/auth/AuthInProgress.js.map +1 -0
- package/dist/src/ui/auth/useAuth.d.ts +15 -0
- package/dist/src/ui/auth/useAuth.js +73 -0
- package/dist/src/ui/auth/useAuth.js.map +1 -0
- package/dist/src/ui/colors.d.ts +7 -0
- package/dist/src/ui/colors.js +54 -0
- package/dist/src/ui/colors.js.map +1 -0
- package/dist/src/ui/commands/aboutCommand.d.ts +7 -0
- package/dist/src/ui/commands/aboutCommand.js +49 -0
- package/dist/src/ui/commands/aboutCommand.js.map +1 -0
- package/dist/src/ui/commands/authCommand.d.ts +7 -0
- package/dist/src/ui/commands/authCommand.js +16 -0
- package/dist/src/ui/commands/authCommand.js.map +1 -0
- package/dist/src/ui/commands/bugCommand.d.ts +7 -0
- package/dist/src/ui/commands/bugCommand.js +76 -0
- package/dist/src/ui/commands/bugCommand.js.map +1 -0
- package/dist/src/ui/commands/chatCommand.d.ts +9 -0
- package/dist/src/ui/commands/chatCommand.js +314 -0
- package/dist/src/ui/commands/chatCommand.js.map +1 -0
- package/dist/src/ui/commands/clearCommand.d.ts +7 -0
- package/dist/src/ui/commands/clearCommand.js +27 -0
- package/dist/src/ui/commands/clearCommand.js.map +1 -0
- package/dist/src/ui/commands/compressCommand.d.ts +7 -0
- package/dist/src/ui/commands/compressCommand.js +66 -0
- package/dist/src/ui/commands/compressCommand.js.map +1 -0
- package/dist/src/ui/commands/copyCommand.d.ts +7 -0
- package/dist/src/ui/commands/copyCommand.js +59 -0
- package/dist/src/ui/commands/copyCommand.js.map +1 -0
- package/dist/src/ui/commands/corgiCommand.d.ts +7 -0
- package/dist/src/ui/commands/corgiCommand.js +16 -0
- package/dist/src/ui/commands/corgiCommand.js.map +1 -0
- package/dist/src/ui/commands/directoryCommand.d.ts +8 -0
- package/dist/src/ui/commands/directoryCommand.js +135 -0
- package/dist/src/ui/commands/directoryCommand.js.map +1 -0
- package/dist/src/ui/commands/docsCommand.d.ts +7 -0
- package/dist/src/ui/commands/docsCommand.js +31 -0
- package/dist/src/ui/commands/docsCommand.js.map +1 -0
- package/dist/src/ui/commands/editorCommand.d.ts +7 -0
- package/dist/src/ui/commands/editorCommand.js +16 -0
- package/dist/src/ui/commands/editorCommand.js.map +1 -0
- package/dist/src/ui/commands/extensionsCommand.d.ts +7 -0
- package/dist/src/ui/commands/extensionsCommand.js +85 -0
- package/dist/src/ui/commands/extensionsCommand.js.map +1 -0
- package/dist/src/ui/commands/helpCommand.d.ts +7 -0
- package/dist/src/ui/commands/helpCommand.js +21 -0
- package/dist/src/ui/commands/helpCommand.js.map +1 -0
- package/dist/src/ui/commands/ideCommand.d.ts +7 -0
- package/dist/src/ui/commands/ideCommand.js +225 -0
- package/dist/src/ui/commands/ideCommand.js.map +1 -0
- package/dist/src/ui/commands/initCommand.d.ts +7 -0
- package/dist/src/ui/commands/initCommand.js +76 -0
- package/dist/src/ui/commands/initCommand.js.map +1 -0
- package/dist/src/ui/commands/mcpCommand.d.ts +7 -0
- package/dist/src/ui/commands/mcpCommand.js +433 -0
- package/dist/src/ui/commands/mcpCommand.js.map +1 -0
- package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
- package/dist/src/ui/commands/memoryCommand.js +92 -0
- package/dist/src/ui/commands/memoryCommand.js.map +1 -0
- package/dist/src/ui/commands/privacyCommand.d.ts +7 -0
- package/dist/src/ui/commands/privacyCommand.js +16 -0
- package/dist/src/ui/commands/privacyCommand.js.map +1 -0
- package/dist/src/ui/commands/quitCommand.d.ts +7 -0
- package/dist/src/ui/commands/quitCommand.js +34 -0
- package/dist/src/ui/commands/quitCommand.js.map +1 -0
- package/dist/src/ui/commands/restoreCommand.d.ts +8 -0
- package/dist/src/ui/commands/restoreCommand.js +124 -0
- package/dist/src/ui/commands/restoreCommand.js.map +1 -0
- package/dist/src/ui/commands/settingsCommand.d.ts +7 -0
- package/dist/src/ui/commands/settingsCommand.js +16 -0
- package/dist/src/ui/commands/settingsCommand.js.map +1 -0
- package/dist/src/ui/commands/setupGithubCommand.d.ts +9 -0
- package/dist/src/ui/commands/setupGithubCommand.js +154 -0
- package/dist/src/ui/commands/setupGithubCommand.js.map +1 -0
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/setupGithubCommand.test.js +167 -0
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -0
- package/dist/src/ui/commands/statsCommand.d.ts +7 -0
- package/dist/src/ui/commands/statsCommand.js +54 -0
- package/dist/src/ui/commands/statsCommand.js.map +1 -0
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +13 -0
- package/dist/src/ui/commands/terminalSetupCommand.js +41 -0
- package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -0
- package/dist/src/ui/commands/themeCommand.d.ts +7 -0
- package/dist/src/ui/commands/themeCommand.js +16 -0
- package/dist/src/ui/commands/themeCommand.js.map +1 -0
- package/dist/src/ui/commands/toolsCommand.d.ts +7 -0
- package/dist/src/ui/commands/toolsCommand.js +56 -0
- package/dist/src/ui/commands/toolsCommand.js.map +1 -0
- package/dist/src/ui/commands/types.d.ts +152 -0
- package/dist/src/ui/commands/types.js +12 -0
- package/dist/src/ui/commands/types.js.map +1 -0
- package/dist/src/ui/commands/vimCommand.d.ts +7 -0
- package/dist/src/ui/commands/vimCommand.js +23 -0
- package/dist/src/ui/commands/vimCommand.js.map +1 -0
- package/dist/src/ui/components/AboutBox.d.ts +17 -0
- package/dist/src/ui/components/AboutBox.js +6 -0
- package/dist/src/ui/components/AboutBox.js.map +1 -0
- package/dist/src/ui/components/AnsiOutput.d.ts +13 -0
- package/dist/src/ui/components/AnsiOutput.js +12 -0
- package/dist/src/ui/components/AnsiOutput.js.map +1 -0
- package/dist/src/ui/components/AnsiOutput.test.d.ts +6 -0
- package/dist/src/ui/components/AnsiOutput.test.js +97 -0
- package/dist/src/ui/components/AnsiOutput.test.js.map +1 -0
- package/dist/src/ui/components/AppHeader.d.ts +10 -0
- package/dist/src/ui/components/AppHeader.js +22 -0
- package/dist/src/ui/components/AppHeader.js.map +1 -0
- package/dist/src/ui/components/AsciiArt.d.ts +8 -0
- package/dist/src/ui/components/AsciiArt.js +36 -0
- package/dist/src/ui/components/AsciiArt.js.map +1 -0
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +12 -0
- package/dist/src/ui/components/AutoAcceptIndicator.js +26 -0
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -0
- package/dist/src/ui/components/Composer.d.ts +6 -0
- package/dist/src/ui/components/Composer.js +73 -0
- package/dist/src/ui/components/Composer.js.map +1 -0
- package/dist/src/ui/components/Composer.test.d.ts +6 -0
- package/dist/src/ui/components/Composer.test.js +337 -0
- package/dist/src/ui/components/Composer.test.js.map +1 -0
- package/dist/src/ui/components/ConfigInitDisplay.d.ts +6 -0
- package/dist/src/ui/components/ConfigInitDisplay.js +38 -0
- package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +11 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +20 -0
- package/dist/src/ui/components/ContextSummaryDisplay.js +66 -0
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +9 -0
- package/dist/src/ui/components/ContextUsageDisplay.js +14 -0
- package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -0
- package/dist/src/ui/components/DebugProfiler.d.ts +6 -0
- package/dist/src/ui/components/DebugProfiler.js +27 -0
- package/dist/src/ui/components/DebugProfiler.js.map +1 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +14 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js +34 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
- package/dist/src/ui/components/DialogManager.d.ts +6 -0
- package/dist/src/ui/components/DialogManager.js +85 -0
- package/dist/src/ui/components/DialogManager.js.map +1 -0
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +16 -0
- package/dist/src/ui/components/EditorSettingsDialog.js +71 -0
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
- package/dist/src/ui/components/FolderTrustDialog.d.ts +17 -0
- package/dist/src/ui/components/FolderTrustDialog.js +55 -0
- package/dist/src/ui/components/FolderTrustDialog.js.map +1 -0
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +6 -0
- package/dist/src/ui/components/FolderTrustDialog.test.js +88 -0
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -0
- package/dist/src/ui/components/Footer.d.ts +25 -0
- package/dist/src/ui/components/Footer.js +30 -0
- package/dist/src/ui/components/Footer.js.map +1 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +22 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.js +23 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
- package/dist/src/ui/components/Header.d.ts +13 -0
- package/dist/src/ui/components/Header.js +28 -0
- package/dist/src/ui/components/Header.js.map +1 -0
- package/dist/src/ui/components/Header.test.d.ts +6 -0
- package/dist/src/ui/components/Header.test.js +37 -0
- package/dist/src/ui/components/Header.test.js.map +1 -0
- package/dist/src/ui/components/Help.d.ts +12 -0
- package/dist/src/ui/components/Help.js +13 -0
- package/dist/src/ui/components/Help.js.map +1 -0
- package/dist/src/ui/components/Help.test.d.ts +6 -0
- package/dist/src/ui/components/Help.test.js +57 -0
- package/dist/src/ui/components/Help.test.js.map +1 -0
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +20 -0
- package/dist/src/ui/components/HistoryItemDisplay.js +20 -0
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/HistoryItemDisplay.test.js +93 -0
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -0
- package/dist/src/ui/components/InputPrompt.d.ts +37 -0
- package/dist/src/ui/components/InputPrompt.js +700 -0
- package/dist/src/ui/components/InputPrompt.js.map +1 -0
- package/dist/src/ui/components/LoadingIndicator.d.ts +15 -0
- package/dist/src/ui/components/LoadingIndicator.js +25 -0
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +6 -0
- package/dist/src/ui/components/LoadingIndicator.test.js +190 -0
- package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +13 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.js +35 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +6 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +25 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -0
- package/dist/src/ui/components/MainContent.d.ts +6 -0
- package/dist/src/ui/components/MainContent.js +23 -0
- package/dist/src/ui/components/MainContent.js.map +1 -0
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +7 -0
- package/dist/src/ui/components/MemoryUsageDisplay.js +24 -0
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +7 -0
- package/dist/src/ui/components/ModelStatsDisplay.js +33 -0
- package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
- package/dist/src/ui/components/Notifications.d.ts +6 -0
- package/dist/src/ui/components/Notifications.js +23 -0
- package/dist/src/ui/components/Notifications.js.map +1 -0
- package/dist/src/ui/components/PrepareLabel.d.ts +15 -0
- package/dist/src/ui/components/PrepareLabel.js +72 -0
- package/dist/src/ui/components/PrepareLabel.js.map +1 -0
- package/dist/src/ui/components/PrepareLabel.test.d.ts +6 -0
- package/dist/src/ui/components/PrepareLabel.test.js +71 -0
- package/dist/src/ui/components/PrepareLabel.test.js.map +1 -0
- package/dist/src/ui/components/ProQuotaDialog.d.ts +13 -0
- package/dist/src/ui/components/ProQuotaDialog.js +21 -0
- package/dist/src/ui/components/ProQuotaDialog.js.map +1 -0
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +6 -0
- package/dist/src/ui/components/ProQuotaDialog.test.js +56 -0
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -0
- package/dist/src/ui/components/QueuedMessageDisplay.d.ts +9 -0
- package/dist/src/ui/components/QueuedMessageDisplay.js +20 -0
- package/dist/src/ui/components/QueuedMessageDisplay.js.map +1 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +56 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -0
- package/dist/src/ui/components/QuittingDisplay.d.ts +6 -0
- package/dist/src/ui/components/QuittingDisplay.js +20 -0
- package/dist/src/ui/components/QuittingDisplay.js.map +1 -0
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +11 -0
- package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/SettingsDialog.d.ts +16 -0
- package/dist/src/ui/components/SettingsDialog.js +621 -0
- package/dist/src/ui/components/SettingsDialog.js.map +1 -0
- package/dist/src/ui/components/SettingsDialog.test.d.ts +6 -0
- package/dist/src/ui/components/SettingsDialog.test.js +1002 -0
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -0
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +15 -0
- package/dist/src/ui/components/ShellConfirmationDialog.js +46 -0
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -0
- package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +6 -0
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +40 -0
- package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +1 -0
- package/dist/src/ui/components/ShellInputPrompt.d.ts +11 -0
- package/dist/src/ui/components/ShellInputPrompt.js +36 -0
- package/dist/src/ui/components/ShellInputPrompt.js.map +1 -0
- package/dist/src/ui/components/ShellModeIndicator.d.ts +7 -0
- package/dist/src/ui/components/ShellModeIndicator.js +5 -0
- package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
- package/dist/src/ui/components/ShowMoreLines.d.ts +10 -0
- package/dist/src/ui/components/ShowMoreLines.js +24 -0
- package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
- package/dist/src/ui/components/StatsDisplay.d.ts +12 -0
- package/dist/src/ui/components/StatsDisplay.js +43 -0
- package/dist/src/ui/components/StatsDisplay.js.map +1 -0
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +27 -0
- package/dist/src/ui/components/SuggestionsDisplay.js +40 -0
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
- package/dist/src/ui/components/ThemeDialog.d.ts +20 -0
- package/dist/src/ui/components/ThemeDialog.js +121 -0
- package/dist/src/ui/components/ThemeDialog.js.map +1 -0
- package/dist/src/ui/components/ThemeDialog.test.d.ts +6 -0
- package/dist/src/ui/components/ThemeDialog.test.js +75 -0
- package/dist/src/ui/components/ThemeDialog.test.js.map +1 -0
- package/dist/src/ui/components/Tips.d.ts +12 -0
- package/dist/src/ui/components/Tips.js +9 -0
- package/dist/src/ui/components/Tips.js.map +1 -0
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +7 -0
- package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
- package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
- package/dist/src/ui/components/UpdateNotification.d.ts +10 -0
- package/dist/src/ui/components/UpdateNotification.js +10 -0
- package/dist/src/ui/components/UpdateNotification.js.map +1 -0
- package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +11 -0
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +42 -0
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -0
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +10 -0
- package/dist/src/ui/components/messages/CompressionMessage.js +46 -0
- package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.js +160 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +17 -0
- package/dist/src/ui/components/messages/DiffRenderer.js +218 -0
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +6 -0
- package/dist/src/ui/components/messages/DiffRenderer.test.js +239 -0
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -0
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
- package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +14 -0
- package/dist/src/ui/components/messages/GeminiMessage.js +11 -0
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +14 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.js +15 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
- package/dist/src/ui/components/messages/InfoMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/InfoMessage.js +10 -0
- package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +15 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +174 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +114 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +19 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.js +56 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +261 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolMessage.d.ts +19 -0
- package/dist/src/ui/components/messages/ToolMessage.js +69 -0
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolMessage.test.js +150 -0
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/UserMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/UserMessage.js +14 -0
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
- package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
- package/dist/src/ui/components/messages/WarningMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/WarningMessage.js +10 -0
- package/dist/src/ui/components/messages/WarningMessage.js.map +1 -0
- package/dist/src/ui/components/shared/EnumSelector.d.ts +18 -0
- package/dist/src/ui/components/shared/EnumSelector.js +44 -0
- package/dist/src/ui/components/shared/EnumSelector.js.map +1 -0
- package/dist/src/ui/components/shared/EnumSelector.test.d.ts +6 -0
- package/dist/src/ui/components/shared/EnumSelector.test.js +70 -0
- package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -0
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +61 -0
- package/dist/src/ui/components/shared/MaxSizedBox.js +451 -0
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +6 -0
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +154 -0
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +46 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.js +116 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +6 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +111 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -0
- package/dist/src/ui/components/shared/ScopeSelector.d.ts +19 -0
- package/dist/src/ui/components/shared/ScopeSelector.js +11 -0
- package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -0
- package/dist/src/ui/components/shared/text-buffer.d.ts +490 -0
- package/dist/src/ui/components/shared/text-buffer.js +1598 -0
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +72 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.js +552 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionsList.d.ts +6 -0
- package/dist/src/ui/components/views/ExtensionsList.js +47 -0
- package/dist/src/ui/components/views/ExtensionsList.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionsList.test.d.ts +6 -0
- package/dist/src/ui/components/views/ExtensionsList.test.js +97 -0
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -0
- package/dist/src/ui/constants.d.ts +17 -0
- package/dist/src/ui/constants.js +22 -0
- package/dist/src/ui/constants.js.map +1 -0
- package/dist/src/ui/contexts/AppContext.d.ts +11 -0
- package/dist/src/ui/contexts/AppContext.js +15 -0
- package/dist/src/ui/contexts/AppContext.js.map +1 -0
- package/dist/src/ui/contexts/ConfigContext.d.ts +9 -0
- package/dist/src/ui/contexts/ConfigContext.js +16 -0
- package/dist/src/ui/contexts/ConfigContext.js.map +1 -0
- package/dist/src/ui/contexts/FocusContext.d.ts +7 -0
- package/dist/src/ui/contexts/FocusContext.js +9 -0
- package/dist/src/ui/contexts/FocusContext.js.map +1 -0
- package/dist/src/ui/contexts/KeypressContext.d.ts +34 -0
- package/dist/src/ui/contexts/KeypressContext.js +580 -0
- package/dist/src/ui/contexts/KeypressContext.js.map +1 -0
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +6 -0
- package/dist/src/ui/contexts/KeypressContext.test.js +671 -0
- package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -0
- package/dist/src/ui/contexts/OverflowContext.d.ts +19 -0
- package/dist/src/ui/contexts/OverflowContext.js +38 -0
- package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
- package/dist/src/ui/contexts/SessionContext.d.ts +45 -0
- package/dist/src/ui/contexts/SessionContext.js +157 -0
- package/dist/src/ui/contexts/SessionContext.js.map +1 -0
- package/dist/src/ui/contexts/SettingsContext.d.ts +9 -0
- package/dist/src/ui/contexts/SettingsContext.js +15 -0
- package/dist/src/ui/contexts/SettingsContext.js.map +1 -0
- package/dist/src/ui/contexts/StreamingContext.d.ts +9 -0
- package/dist/src/ui/contexts/StreamingContext.js +15 -0
- package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
- package/dist/src/ui/contexts/UIActionsContext.d.ts +36 -0
- package/dist/src/ui/contexts/UIActionsContext.js +20 -0
- package/dist/src/ui/contexts/UIActionsContext.js.map +1 -0
- package/dist/src/ui/contexts/UIStateContext.d.ts +95 -0
- package/dist/src/ui/contexts/UIStateContext.js +15 -0
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -0
- package/dist/src/ui/contexts/VimModeContext.d.ts +19 -0
- package/dist/src/ui/contexts/VimModeContext.js +48 -0
- package/dist/src/ui/contexts/VimModeContext.js.map +1 -0
- package/dist/src/ui/editors/editorSettingsManager.d.ts +19 -0
- package/dist/src/ui/editors/editorSettingsManager.js +47 -0
- package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +31 -0
- package/dist/src/ui/hooks/atCommandProcessor.js +364 -0
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +6 -0
- package/dist/src/ui/hooks/atCommandProcessor.test.js +834 -0
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -0
- package/dist/src/ui/hooks/keyToAnsi.d.ts +15 -0
- package/dist/src/ui/hooks/keyToAnsi.js +67 -0
- package/dist/src/ui/hooks/keyToAnsi.js.map +1 -0
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +18 -0
- package/dist/src/ui/hooks/shellCommandProcessor.js +277 -0
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +6 -0
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +504 -0
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -0
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +42 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js +406 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/useAtCompletion.d.ts +23 -0
- package/dist/src/ui/hooks/useAtCompletion.js +179 -0
- package/dist/src/ui/hooks/useAtCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +13 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +50 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +6 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +380 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -0
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +12 -0
- package/dist/src/ui/hooks/useBracketedPaste.js +32 -0
- package/dist/src/ui/hooks/useBracketedPaste.js.map +1 -0
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +32 -0
- package/dist/src/ui/hooks/useCommandCompletion.js +186 -0
- package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useCompletion.d.ts +24 -0
- package/dist/src/ui/hooks/useCompletion.js +88 -0
- package/dist/src/ui/hooks/useCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +12 -0
- package/dist/src/ui/hooks/useConsoleMessages.js +76 -0
- package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
- package/dist/src/ui/hooks/useEditorSettings.d.ts +16 -0
- package/dist/src/ui/hooks/useEditorSettings.js +43 -0
- package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +6 -0
- package/dist/src/ui/hooks/useEditorSettings.test.js +164 -0
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -0
- package/dist/src/ui/hooks/useFocus.d.ts +10 -0
- package/dist/src/ui/hooks/useFocus.js +41 -0
- package/dist/src/ui/hooks/useFocus.js.map +1 -0
- package/dist/src/ui/hooks/useFolderTrust.d.ts +13 -0
- package/dist/src/ui/hooks/useFolderTrust.js +65 -0
- package/dist/src/ui/hooks/useFolderTrust.js.map +1 -0
- package/dist/src/ui/hooks/useGeminiStream.d.ts +35 -0
- package/dist/src/ui/hooks/useGeminiStream.js +724 -0
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
- package/dist/src/ui/hooks/useGitBranchName.d.ts +6 -0
- package/dist/src/ui/hooks/useGitBranchName.js +58 -0
- package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +6 -0
- package/dist/src/ui/hooks/useGitBranchName.test.js +171 -0
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -0
- package/dist/src/ui/hooks/useHistoryManager.d.ts +22 -0
- package/dist/src/ui/hooks/useHistoryManager.js +72 -0
- package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +6 -0
- package/dist/src/ui/hooks/useHistoryManager.test.js +171 -0
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -0
- package/dist/src/ui/hooks/useIdeTrustListener.d.ts +14 -0
- package/dist/src/ui/hooks/useIdeTrustListener.js +39 -0
- package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistory.d.ts +19 -0
- package/dist/src/ui/hooks/useInputHistory.js +84 -0
- package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +6 -0
- package/dist/src/ui/hooks/useInputHistory.test.js +207 -0
- package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistoryStore.d.ts +19 -0
- package/dist/src/ui/hooks/useInputHistoryStore.js +81 -0
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +6 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +234 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -0
- package/dist/src/ui/hooks/useKeypress.d.ts +17 -0
- package/dist/src/ui/hooks/useKeypress.js +27 -0
- package/dist/src/ui/hooks/useKeypress.js.map +1 -0
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +15 -0
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +20 -0
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +1 -0
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +10 -0
- package/dist/src/ui/hooks/useLoadingIndicator.js +44 -0
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +6 -0
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +91 -0
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -0
- package/dist/src/ui/hooks/useLogger.d.ts +11 -0
- package/dist/src/ui/hooks/useLogger.js +29 -0
- package/dist/src/ui/hooks/useLogger.js.map +1 -0
- package/dist/src/ui/hooks/useMemoryMonitor.d.ts +13 -0
- package/dist/src/ui/hooks/useMemoryMonitor.js +28 -0
- package/dist/src/ui/hooks/useMemoryMonitor.js.map +1 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +6 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +57 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -0
- package/dist/src/ui/hooks/useMessageQueue.d.ts +23 -0
- package/dist/src/ui/hooks/useMessageQueue.js +51 -0
- package/dist/src/ui/hooks/useMessageQueue.js.map +1 -0
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +6 -0
- package/dist/src/ui/hooks/useMessageQueue.test.js +167 -0
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -0
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +14 -0
- package/dist/src/ui/hooks/usePhraseCycler.js +190 -0
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +16 -0
- package/dist/src/ui/hooks/usePrivacySettings.js +114 -0
- package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +6 -0
- package/dist/src/ui/hooks/usePrivacySettings.test.js +90 -0
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -0
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +23 -0
- package/dist/src/ui/hooks/usePromptCompletion.js +177 -0
- package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +21 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.js +122 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +6 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +267 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -0
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +34 -0
- package/dist/src/ui/hooks/useReactToolScheduler.js +192 -0
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +6 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +7 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +19 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +103 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +6 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +163 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -0
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +10 -0
- package/dist/src/ui/hooks/useSettingsCommand.js +21 -0
- package/dist/src/ui/hooks/useSettingsCommand.js.map +1 -0
- package/dist/src/ui/hooks/useShellHistory.d.ts +14 -0
- package/dist/src/ui/hooks/useShellHistory.js +111 -0
- package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +6 -0
- package/dist/src/ui/hooks/useShellHistory.test.js +187 -0
- package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +9 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.js +58 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +20 -0
- package/dist/src/ui/hooks/useSlashCompletion.js +344 -0
- package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +9 -0
- package/dist/src/ui/hooks/useSlashCompletion.test.js +564 -0
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -0
- package/dist/src/ui/hooks/useStateAndRef.d.ts +7 -0
- package/dist/src/ui/hooks/useStateAndRef.js +26 -0
- package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
- package/dist/src/ui/hooks/useTerminalSize.d.ts +9 -0
- package/dist/src/ui/hooks/useTerminalSize.js +27 -0
- package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
- package/dist/src/ui/hooks/useThemeCommand.d.ts +15 -0
- package/dist/src/ui/hooks/useThemeCommand.js +68 -0
- package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
- package/dist/src/ui/hooks/useTimer.d.ts +12 -0
- package/dist/src/ui/hooks/useTimer.js +58 -0
- package/dist/src/ui/hooks/useTimer.js.map +1 -0
- package/dist/src/ui/hooks/useTimer.test.d.ts +6 -0
- package/dist/src/ui/hooks/useTimer.test.js +90 -0
- package/dist/src/ui/hooks/useTimer.test.js.map +1 -0
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +6 -0
- package/dist/src/ui/hooks/useToolScheduler.test.js +855 -0
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -0
- package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +13 -0
- package/dist/src/ui/hooks/useWorkspaceMigration.js +54 -0
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -0
- package/dist/src/ui/hooks/vim.d.ts +28 -0
- package/dist/src/ui/hooks/vim.js +639 -0
- package/dist/src/ui/hooks/vim.js.map +1 -0
- package/dist/src/ui/keyMatchers.d.ts +27 -0
- package/dist/src/ui/keyMatchers.js +68 -0
- package/dist/src/ui/keyMatchers.js.map +1 -0
- package/dist/src/ui/keyMatchers.test.d.ts +6 -0
- package/dist/src/ui/keyMatchers.test.js +293 -0
- package/dist/src/ui/keyMatchers.test.js.map +1 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +12 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +41 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +10 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +18 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +10 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +18 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +12 -0
- package/dist/src/ui/privacy/PrivacyNotice.js +25 -0
- package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
- package/dist/src/ui/semantic-colors.d.ts +7 -0
- package/dist/src/ui/semantic-colors.js +24 -0
- package/dist/src/ui/semantic-colors.js.map +1 -0
- package/dist/src/ui/state/extensions.d.ts +14 -0
- package/dist/src/ui/state/extensions.js +16 -0
- package/dist/src/ui/state/extensions.js.map +1 -0
- package/dist/src/ui/textConstants.d.ts +9 -0
- package/dist/src/ui/textConstants.js +10 -0
- package/dist/src/ui/textConstants.js.map +1 -0
- package/dist/src/ui/themes/ansi-light.d.ts +7 -0
- package/dist/src/ui/themes/ansi-light.js +142 -0
- package/dist/src/ui/themes/ansi-light.js.map +1 -0
- package/dist/src/ui/themes/ansi.d.ts +7 -0
- package/dist/src/ui/themes/ansi.js +152 -0
- package/dist/src/ui/themes/ansi.js.map +1 -0
- package/dist/src/ui/themes/atom-one-dark.d.ts +7 -0
- package/dist/src/ui/themes/atom-one-dark.js +138 -0
- package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
- package/dist/src/ui/themes/ayu-light.d.ts +7 -0
- package/dist/src/ui/themes/ayu-light.js +130 -0
- package/dist/src/ui/themes/ayu-light.js.map +1 -0
- package/dist/src/ui/themes/ayu.d.ts +7 -0
- package/dist/src/ui/themes/ayu.js +104 -0
- package/dist/src/ui/themes/ayu.js.map +1 -0
- package/dist/src/ui/themes/color-utils.d.ts +21 -0
- package/dist/src/ui/themes/color-utils.js +221 -0
- package/dist/src/ui/themes/color-utils.js.map +1 -0
- package/dist/src/ui/themes/color-utils.test.d.ts +6 -0
- package/dist/src/ui/themes/color-utils.test.js +197 -0
- package/dist/src/ui/themes/color-utils.test.js.map +1 -0
- package/dist/src/ui/themes/default-light.d.ts +7 -0
- package/dist/src/ui/themes/default-light.js +100 -0
- package/dist/src/ui/themes/default-light.js.map +1 -0
- package/dist/src/ui/themes/default.d.ts +7 -0
- package/dist/src/ui/themes/default.js +143 -0
- package/dist/src/ui/themes/default.js.map +1 -0
- package/dist/src/ui/themes/dracula.d.ts +7 -0
- package/dist/src/ui/themes/dracula.js +115 -0
- package/dist/src/ui/themes/dracula.js.map +1 -0
- package/dist/src/ui/themes/github-dark.d.ts +7 -0
- package/dist/src/ui/themes/github-dark.js +138 -0
- package/dist/src/ui/themes/github-dark.js.map +1 -0
- package/dist/src/ui/themes/github-light.d.ts +7 -0
- package/dist/src/ui/themes/github-light.js +140 -0
- package/dist/src/ui/themes/github-light.js.map +1 -0
- package/dist/src/ui/themes/googlecode.d.ts +7 -0
- package/dist/src/ui/themes/googlecode.js +137 -0
- package/dist/src/ui/themes/googlecode.js.map +1 -0
- package/dist/src/ui/themes/no-color.d.ts +7 -0
- package/dist/src/ui/themes/no-color.js +115 -0
- package/dist/src/ui/themes/no-color.js.map +1 -0
- package/dist/src/ui/themes/semantic-tokens.d.ts +37 -0
- package/dist/src/ui/themes/semantic-tokens.js +94 -0
- package/dist/src/ui/themes/semantic-tokens.js.map +1 -0
- package/dist/src/ui/themes/shades-of-purple.d.ts +11 -0
- package/dist/src/ui/themes/shades-of-purple.js +304 -0
- package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
- package/dist/src/ui/themes/theme-manager.d.ts +66 -0
- package/dist/src/ui/themes/theme-manager.js +262 -0
- package/dist/src/ui/themes/theme-manager.js.map +1 -0
- package/dist/src/ui/themes/theme-manager.test.d.ts +6 -0
- package/dist/src/ui/themes/theme-manager.test.js +142 -0
- package/dist/src/ui/themes/theme-manager.test.js.map +1 -0
- package/dist/src/ui/themes/theme.d.ts +130 -0
- package/dist/src/ui/themes/theme.js +379 -0
- package/dist/src/ui/themes/theme.js.map +1 -0
- package/dist/src/ui/themes/xcode.d.ts +7 -0
- package/dist/src/ui/themes/xcode.js +145 -0
- package/dist/src/ui/themes/xcode.js.map +1 -0
- package/dist/src/ui/types.d.ts +224 -0
- package/dist/src/ui/types.js +56 -0
- package/dist/src/ui/types.js.map +1 -0
- package/dist/src/ui/utils/CodeColorizer.d.ts +17 -0
- package/dist/src/ui/utils/CodeColorizer.js +111 -0
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
- package/dist/src/ui/utils/ConsolePatcher.d.ts +25 -0
- package/dist/src/ui/utils/ConsolePatcher.js +52 -0
- package/dist/src/ui/utils/ConsolePatcher.js.map +1 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +16 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +111 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +14 -0
- package/dist/src/ui/utils/MarkdownDisplay.js +208 -0
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +6 -0
- package/dist/src/ui/utils/MarkdownDisplay.test.js +156 -0
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -0
- package/dist/src/ui/utils/TableRenderer.d.ts +17 -0
- package/dist/src/ui/utils/TableRenderer.js +84 -0
- package/dist/src/ui/utils/TableRenderer.js.map +1 -0
- package/dist/src/ui/utils/clipboardUtils.d.ts +22 -0
- package/dist/src/ui/utils/clipboardUtils.js +126 -0
- package/dist/src/ui/utils/clipboardUtils.js.map +1 -0
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +6 -0
- package/dist/src/ui/utils/clipboardUtils.test.js +65 -0
- package/dist/src/ui/utils/clipboardUtils.test.js.map +1 -0
- package/dist/src/ui/utils/commandUtils.d.ts +24 -0
- package/dist/src/ui/utils/commandUtils.js +131 -0
- package/dist/src/ui/utils/commandUtils.js.map +1 -0
- package/dist/src/ui/utils/commandUtils.test.d.ts +6 -0
- package/dist/src/ui/utils/commandUtils.test.js +349 -0
- package/dist/src/ui/utils/commandUtils.test.js.map +1 -0
- package/dist/src/ui/utils/computeStats.d.ts +10 -0
- package/dist/src/ui/utils/computeStats.js +57 -0
- package/dist/src/ui/utils/computeStats.js.map +1 -0
- package/dist/src/ui/utils/displayUtils.d.ts +17 -0
- package/dist/src/ui/utils/displayUtils.js +24 -0
- package/dist/src/ui/utils/displayUtils.js.map +1 -0
- package/dist/src/ui/utils/displayUtils.test.d.ts +6 -0
- package/dist/src/ui/utils/displayUtils.test.js +42 -0
- package/dist/src/ui/utils/displayUtils.test.js.map +1 -0
- package/dist/src/ui/utils/formatters.d.ts +13 -0
- package/dist/src/ui/utils/formatters.js +56 -0
- package/dist/src/ui/utils/formatters.js.map +1 -0
- package/dist/src/ui/utils/formatters.test.d.ts +6 -0
- package/dist/src/ui/utils/formatters.test.js +56 -0
- package/dist/src/ui/utils/formatters.test.js.map +1 -0
- package/dist/src/ui/utils/highlight.d.ts +11 -0
- package/dist/src/ui/utils/highlight.js +78 -0
- package/dist/src/ui/utils/highlight.js.map +1 -0
- package/dist/src/ui/utils/highlight.test.d.ts +6 -0
- package/dist/src/ui/utils/highlight.test.js +120 -0
- package/dist/src/ui/utils/highlight.test.js.map +1 -0
- package/dist/src/ui/utils/isNarrowWidth.d.ts +6 -0
- package/dist/src/ui/utils/isNarrowWidth.js +9 -0
- package/dist/src/ui/utils/isNarrowWidth.js.map +1 -0
- package/dist/src/ui/utils/kittyProtocolDetector.d.ts +13 -0
- package/dist/src/ui/utils/kittyProtocolDetector.js +98 -0
- package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -0
- package/dist/src/ui/utils/markdownUtilities.d.ts +6 -0
- package/dist/src/ui/utils/markdownUtilities.js +110 -0
- package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +6 -0
- package/dist/src/ui/utils/markdownUtilities.test.js +42 -0
- package/dist/src/ui/utils/markdownUtilities.test.js.map +1 -0
- package/dist/src/ui/utils/platformConstants.d.ts +75 -0
- package/dist/src/ui/utils/platformConstants.js +78 -0
- package/dist/src/ui/utils/platformConstants.js.map +1 -0
- package/dist/src/ui/utils/terminalSetup.d.ts +30 -0
- package/dist/src/ui/utils/terminalSetup.js +281 -0
- package/dist/src/ui/utils/terminalSetup.js.map +1 -0
- package/dist/src/ui/utils/textUtils.d.ts +41 -0
- package/dist/src/ui/utils/textUtils.js +129 -0
- package/dist/src/ui/utils/textUtils.js.map +1 -0
- package/dist/src/ui/utils/updateCheck.d.ts +12 -0
- package/dist/src/ui/utils/updateCheck.js +78 -0
- package/dist/src/ui/utils/updateCheck.js.map +1 -0
- package/dist/src/ui/utils/updateCheck.test.d.ts +6 -0
- package/dist/src/ui/utils/updateCheck.test.js +145 -0
- package/dist/src/ui/utils/updateCheck.test.js.map +1 -0
- package/dist/src/utils/checks.d.ts +19 -0
- package/dist/src/utils/checks.js +24 -0
- package/dist/src/utils/checks.js.map +1 -0
- package/dist/src/utils/cleanup.d.ts +8 -0
- package/dist/src/utils/cleanup.js +35 -0
- package/dist/src/utils/cleanup.js.map +1 -0
- package/dist/src/utils/commands.d.ts +20 -0
- package/dist/src/utils/commands.js +53 -0
- package/dist/src/utils/commands.js.map +1 -0
- package/dist/src/utils/commands.test.d.ts +6 -0
- package/dist/src/utils/commands.test.js +115 -0
- package/dist/src/utils/commands.test.js.map +1 -0
- package/dist/src/utils/commentJson.d.ts +9 -0
- package/dist/src/utils/commentJson.js +48 -0
- package/dist/src/utils/commentJson.js.map +1 -0
- package/dist/src/utils/commentJson.test.d.ts +6 -0
- package/dist/src/utils/commentJson.test.js +146 -0
- package/dist/src/utils/commentJson.test.js.map +1 -0
- package/dist/src/utils/deepMerge.d.ts +10 -0
- package/dist/src/utils/deepMerge.js +58 -0
- package/dist/src/utils/deepMerge.js.map +1 -0
- package/dist/src/utils/deepMerge.test.d.ts +6 -0
- package/dist/src/utils/deepMerge.test.js +143 -0
- package/dist/src/utils/deepMerge.test.js.map +1 -0
- package/dist/src/utils/dialogScopeUtils.d.ts +32 -0
- package/dist/src/utils/dialogScopeUtils.js +48 -0
- package/dist/src/utils/dialogScopeUtils.js.map +1 -0
- package/dist/src/utils/envVarResolver.d.ts +39 -0
- package/dist/src/utils/envVarResolver.js +97 -0
- package/dist/src/utils/envVarResolver.js.map +1 -0
- package/dist/src/utils/envVarResolver.test.d.ts +6 -0
- package/dist/src/utils/envVarResolver.test.js +221 -0
- package/dist/src/utils/envVarResolver.test.js.map +1 -0
- package/dist/src/utils/errors.d.ts +27 -0
- package/dist/src/utils/errors.js +105 -0
- package/dist/src/utils/errors.js.map +1 -0
- package/dist/src/utils/errors.test.d.ts +6 -0
- package/dist/src/utils/errors.test.js +303 -0
- package/dist/src/utils/errors.test.js.map +1 -0
- package/dist/src/utils/events.d.ts +12 -0
- package/dist/src/utils/events.js +14 -0
- package/dist/src/utils/events.js.map +1 -0
- package/dist/src/utils/gitUtils.d.ts +30 -0
- package/dist/src/utils/gitUtils.js +89 -0
- package/dist/src/utils/gitUtils.js.map +1 -0
- package/dist/src/utils/gitUtils.test.d.ts +6 -0
- package/dist/src/utils/gitUtils.test.js +113 -0
- package/dist/src/utils/gitUtils.test.js.map +1 -0
- package/dist/src/utils/handleAutoUpdate.d.ts +11 -0
- package/dist/src/utils/handleAutoUpdate.js +102 -0
- package/dist/src/utils/handleAutoUpdate.js.map +1 -0
- package/dist/src/utils/installationInfo.d.ts +23 -0
- package/dist/src/utils/installationInfo.js +154 -0
- package/dist/src/utils/installationInfo.js.map +1 -0
- package/dist/src/utils/installationInfo.test.d.ts +6 -0
- package/dist/src/utils/installationInfo.test.js +242 -0
- package/dist/src/utils/installationInfo.test.js.map +1 -0
- package/dist/src/utils/package.d.ts +12 -0
- package/dist/src/utils/package.js +24 -0
- package/dist/src/utils/package.js.map +1 -0
- package/dist/src/utils/processUtils.d.ts +13 -0
- package/dist/src/utils/processUtils.js +18 -0
- package/dist/src/utils/processUtils.js.map +1 -0
- package/dist/src/utils/processUtils.test.d.ts +6 -0
- package/dist/src/utils/processUtils.test.js +20 -0
- package/dist/src/utils/processUtils.test.js.map +1 -0
- package/dist/src/utils/readStdin.d.ts +6 -0
- package/dist/src/utils/readStdin.js +59 -0
- package/dist/src/utils/readStdin.js.map +1 -0
- 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 +6 -0
- package/dist/src/utils/resolvePath.js +21 -0
- package/dist/src/utils/resolvePath.js.map +1 -0
- package/dist/src/utils/sandbox-macos-permissive-closed.sb +32 -0
- package/dist/src/utils/sandbox-macos-permissive-open.sb +25 -0
- package/dist/src/utils/sandbox-macos-permissive-proxied.sb +37 -0
- package/dist/src/utils/sandbox-macos-restrictive-closed.sb +93 -0
- package/dist/src/utils/sandbox-macos-restrictive-open.sb +96 -0
- package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +98 -0
- package/dist/src/utils/sandbox.d.ts +7 -0
- package/dist/src/utils/sandbox.js +735 -0
- package/dist/src/utils/sandbox.js.map +1 -0
- package/dist/src/utils/settingsUtils.d.ts +144 -0
- package/dist/src/utils/settingsUtils.js +340 -0
- package/dist/src/utils/settingsUtils.js.map +1 -0
- package/dist/src/utils/settingsUtils.test.d.ts +6 -0
- package/dist/src/utils/settingsUtils.test.js +808 -0
- package/dist/src/utils/settingsUtils.test.js.map +1 -0
- package/dist/src/utils/spawnWrapper.d.ts +7 -0
- package/dist/src/utils/spawnWrapper.js +8 -0
- package/dist/src/utils/spawnWrapper.js.map +1 -0
- package/dist/src/utils/startupWarnings.d.ts +6 -0
- package/dist/src/utils/startupWarnings.js +40 -0
- package/dist/src/utils/startupWarnings.js.map +1 -0
- package/dist/src/utils/updateEventEmitter.d.ts +11 -0
- package/dist/src/utils/updateEventEmitter.js +12 -0
- package/dist/src/utils/updateEventEmitter.js.map +1 -0
- package/dist/src/utils/userStartupWarnings.d.ts +6 -0
- package/dist/src/utils/userStartupWarnings.js +54 -0
- package/dist/src/utils/userStartupWarnings.js.map +1 -0
- package/dist/src/utils/userStartupWarnings.test.d.ts +6 -0
- package/dist/src/utils/userStartupWarnings.test.js +67 -0
- package/dist/src/utils/userStartupWarnings.test.js.map +1 -0
- package/dist/src/utils/version.d.ts +6 -0
- package/dist/src/utils/version.js +11 -0
- package/dist/src/utils/version.js.map +1 -0
- package/dist/src/validateNonInterActiveAuth.d.ts +9 -0
- package/dist/src/validateNonInterActiveAuth.js +58 -0
- package/dist/src/validateNonInterActiveAuth.js.map +1 -0
- package/dist/src/zed-integration/acp.d.ts +63 -0
- package/dist/src/zed-integration/acp.js +226 -0
- package/dist/src/zed-integration/acp.js.map +1 -0
- package/dist/src/zed-integration/fileSystemService.d.ts +19 -0
- package/dist/src/zed-integration/fileSystemService.js +43 -0
- package/dist/src/zed-integration/fileSystemService.js.map +1 -0
- package/dist/src/zed-integration/schema.d.ts +11782 -0
- package/dist/src/zed-integration/schema.js +311 -0
- package/dist/src/zed-integration/schema.js.map +1 -0
- package/dist/src/zed-integration/zedIntegration.d.ts +10 -0
- package/dist/src/zed-integration/zedIntegration.js +745 -0
- package/dist/src/zed-integration/zedIntegration.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/npm-shrinkwrap.json +17168 -0
- package/package.json +84 -0
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { renderHook, act, waitFor } from '@testing-library/react';
|
|
3
|
+
import { vi } from 'vitest';
|
|
4
|
+
import { KeypressProvider, useKeypressContext, DRAG_COMPLETION_TIMEOUT_MS,
|
|
5
|
+
// CSI_END_O,
|
|
6
|
+
// SS3_END,
|
|
7
|
+
SINGLE_QUOTE, DOUBLE_QUOTE, } from './KeypressContext.js';
|
|
8
|
+
import { useStdin } from 'ink';
|
|
9
|
+
import { EventEmitter } from 'node:events';
|
|
10
|
+
// Mock the 'ink' module to control stdin
|
|
11
|
+
vi.mock('ink', async (importOriginal) => {
|
|
12
|
+
const original = await importOriginal();
|
|
13
|
+
return {
|
|
14
|
+
...original,
|
|
15
|
+
useStdin: vi.fn(),
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
class MockStdin extends EventEmitter {
|
|
19
|
+
isTTY = true;
|
|
20
|
+
setRawMode = vi.fn();
|
|
21
|
+
on = this.addListener;
|
|
22
|
+
removeListener = super.removeListener;
|
|
23
|
+
write = vi.fn();
|
|
24
|
+
resume = vi.fn();
|
|
25
|
+
pause = vi.fn();
|
|
26
|
+
// Helper to simulate a keypress event
|
|
27
|
+
pressKey(key) {
|
|
28
|
+
this.emit('keypress', null, key);
|
|
29
|
+
}
|
|
30
|
+
// Helper to simulate a kitty protocol sequence
|
|
31
|
+
sendKittySequence(sequence) {
|
|
32
|
+
this.emit('data', Buffer.from(sequence));
|
|
33
|
+
}
|
|
34
|
+
// Helper to simulate a paste event
|
|
35
|
+
sendPaste(text) {
|
|
36
|
+
const PASTE_MODE_PREFIX = `\x1b[200~`;
|
|
37
|
+
const PASTE_MODE_SUFFIX = `\x1b[201~`;
|
|
38
|
+
this.emit('data', Buffer.from(PASTE_MODE_PREFIX));
|
|
39
|
+
this.emit('data', Buffer.from(text));
|
|
40
|
+
this.emit('data', Buffer.from(PASTE_MODE_SUFFIX));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
describe('KeypressContext - Kitty Protocol', () => {
|
|
44
|
+
let stdin;
|
|
45
|
+
const mockSetRawMode = vi.fn();
|
|
46
|
+
const wrapper = ({ children, kittyProtocolEnabled = true, }) => (_jsx(KeypressProvider, { kittyProtocolEnabled: kittyProtocolEnabled, children: children }));
|
|
47
|
+
beforeEach(() => {
|
|
48
|
+
vi.clearAllMocks();
|
|
49
|
+
stdin = new MockStdin();
|
|
50
|
+
useStdin.mockReturnValue({
|
|
51
|
+
stdin,
|
|
52
|
+
setRawMode: mockSetRawMode,
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
describe('Enter key handling', () => {
|
|
56
|
+
it('should recognize regular enter key (keycode 13) in kitty protocol', async () => {
|
|
57
|
+
const keyHandler = vi.fn();
|
|
58
|
+
const { result } = renderHook(() => useKeypressContext(), {
|
|
59
|
+
wrapper: ({ children }) => wrapper({ children, kittyProtocolEnabled: true }),
|
|
60
|
+
});
|
|
61
|
+
act(() => {
|
|
62
|
+
result.current.subscribe(keyHandler);
|
|
63
|
+
});
|
|
64
|
+
// Send kitty protocol sequence for regular enter: ESC[13u
|
|
65
|
+
act(() => {
|
|
66
|
+
stdin.sendKittySequence(`\x1b[13u`);
|
|
67
|
+
});
|
|
68
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
69
|
+
name: 'return',
|
|
70
|
+
kittyProtocol: true,
|
|
71
|
+
ctrl: false,
|
|
72
|
+
meta: false,
|
|
73
|
+
shift: false,
|
|
74
|
+
}));
|
|
75
|
+
});
|
|
76
|
+
it('should recognize numpad enter key (keycode 57414) in kitty protocol', async () => {
|
|
77
|
+
const keyHandler = vi.fn();
|
|
78
|
+
const { result } = renderHook(() => useKeypressContext(), {
|
|
79
|
+
wrapper: ({ children }) => wrapper({ children, kittyProtocolEnabled: true }),
|
|
80
|
+
});
|
|
81
|
+
act(() => {
|
|
82
|
+
result.current.subscribe(keyHandler);
|
|
83
|
+
});
|
|
84
|
+
// Send kitty protocol sequence for numpad enter: ESC[57414u
|
|
85
|
+
act(() => {
|
|
86
|
+
stdin.sendKittySequence(`\x1b[57414u`);
|
|
87
|
+
});
|
|
88
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
89
|
+
name: 'return',
|
|
90
|
+
kittyProtocol: true,
|
|
91
|
+
ctrl: false,
|
|
92
|
+
meta: false,
|
|
93
|
+
shift: false,
|
|
94
|
+
}));
|
|
95
|
+
});
|
|
96
|
+
it('should handle numpad enter with modifiers', async () => {
|
|
97
|
+
const keyHandler = vi.fn();
|
|
98
|
+
const { result } = renderHook(() => useKeypressContext(), {
|
|
99
|
+
wrapper: ({ children }) => wrapper({ children, kittyProtocolEnabled: true }),
|
|
100
|
+
});
|
|
101
|
+
act(() => {
|
|
102
|
+
result.current.subscribe(keyHandler);
|
|
103
|
+
});
|
|
104
|
+
// Send kitty protocol sequence for numpad enter with Shift (modifier 2): ESC[57414;2u
|
|
105
|
+
act(() => {
|
|
106
|
+
stdin.sendKittySequence(`\x1b[57414;2u`);
|
|
107
|
+
});
|
|
108
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
109
|
+
name: 'return',
|
|
110
|
+
kittyProtocol: true,
|
|
111
|
+
ctrl: false,
|
|
112
|
+
meta: false,
|
|
113
|
+
shift: true,
|
|
114
|
+
}));
|
|
115
|
+
});
|
|
116
|
+
it('should handle numpad enter with Ctrl modifier', async () => {
|
|
117
|
+
const keyHandler = vi.fn();
|
|
118
|
+
const { result } = renderHook(() => useKeypressContext(), {
|
|
119
|
+
wrapper: ({ children }) => wrapper({ children, kittyProtocolEnabled: true }),
|
|
120
|
+
});
|
|
121
|
+
act(() => {
|
|
122
|
+
result.current.subscribe(keyHandler);
|
|
123
|
+
});
|
|
124
|
+
// Send kitty protocol sequence for numpad enter with Ctrl (modifier 5): ESC[57414;5u
|
|
125
|
+
act(() => {
|
|
126
|
+
stdin.sendKittySequence(`\x1b[57414;5u`);
|
|
127
|
+
});
|
|
128
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
129
|
+
name: 'return',
|
|
130
|
+
kittyProtocol: true,
|
|
131
|
+
ctrl: true,
|
|
132
|
+
meta: false,
|
|
133
|
+
shift: false,
|
|
134
|
+
}));
|
|
135
|
+
});
|
|
136
|
+
it('should handle numpad enter with Alt modifier', async () => {
|
|
137
|
+
const keyHandler = vi.fn();
|
|
138
|
+
const { result } = renderHook(() => useKeypressContext(), {
|
|
139
|
+
wrapper: ({ children }) => wrapper({ children, kittyProtocolEnabled: true }),
|
|
140
|
+
});
|
|
141
|
+
act(() => {
|
|
142
|
+
result.current.subscribe(keyHandler);
|
|
143
|
+
});
|
|
144
|
+
// Send kitty protocol sequence for numpad enter with Alt (modifier 3): ESC[57414;3u
|
|
145
|
+
act(() => {
|
|
146
|
+
stdin.sendKittySequence(`\x1b[57414;3u`);
|
|
147
|
+
});
|
|
148
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
149
|
+
name: 'return',
|
|
150
|
+
kittyProtocol: true,
|
|
151
|
+
ctrl: false,
|
|
152
|
+
meta: true,
|
|
153
|
+
shift: false,
|
|
154
|
+
}));
|
|
155
|
+
});
|
|
156
|
+
it('should not process kitty sequences when kitty protocol is disabled', async () => {
|
|
157
|
+
const keyHandler = vi.fn();
|
|
158
|
+
const { result } = renderHook(() => useKeypressContext(), {
|
|
159
|
+
wrapper: ({ children }) => wrapper({ children, kittyProtocolEnabled: false }),
|
|
160
|
+
});
|
|
161
|
+
act(() => {
|
|
162
|
+
result.current.subscribe(keyHandler);
|
|
163
|
+
});
|
|
164
|
+
// Send kitty protocol sequence for numpad enter
|
|
165
|
+
act(() => {
|
|
166
|
+
stdin.sendKittySequence(`\x1b[57414u`);
|
|
167
|
+
});
|
|
168
|
+
// When kitty protocol is disabled, the sequence should be passed through
|
|
169
|
+
// as individual keypresses, not recognized as a single enter key
|
|
170
|
+
expect(keyHandler).not.toHaveBeenCalledWith(expect.objectContaining({
|
|
171
|
+
name: 'return',
|
|
172
|
+
kittyProtocol: true,
|
|
173
|
+
}));
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
describe('Escape key handling', () => {
|
|
177
|
+
it('should recognize escape key (keycode 27) in kitty protocol', async () => {
|
|
178
|
+
const keyHandler = vi.fn();
|
|
179
|
+
const { result } = renderHook(() => useKeypressContext(), {
|
|
180
|
+
wrapper: ({ children }) => wrapper({ children, kittyProtocolEnabled: true }),
|
|
181
|
+
});
|
|
182
|
+
act(() => {
|
|
183
|
+
result.current.subscribe(keyHandler);
|
|
184
|
+
});
|
|
185
|
+
// Send kitty protocol sequence for escape: ESC[27u
|
|
186
|
+
act(() => {
|
|
187
|
+
stdin.sendKittySequence('\x1b[27u');
|
|
188
|
+
});
|
|
189
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
190
|
+
name: 'escape',
|
|
191
|
+
kittyProtocol: true,
|
|
192
|
+
}));
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
describe('Tab and Backspace handling', () => {
|
|
196
|
+
it('should recognize Tab key in kitty protocol', async () => {
|
|
197
|
+
const keyHandler = vi.fn();
|
|
198
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
199
|
+
act(() => result.current.subscribe(keyHandler));
|
|
200
|
+
act(() => {
|
|
201
|
+
stdin.sendKittySequence(`\x1b[9u`);
|
|
202
|
+
});
|
|
203
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
204
|
+
name: 'tab',
|
|
205
|
+
kittyProtocol: true,
|
|
206
|
+
shift: false,
|
|
207
|
+
}));
|
|
208
|
+
});
|
|
209
|
+
it('should recognize Shift+Tab in kitty protocol', async () => {
|
|
210
|
+
const keyHandler = vi.fn();
|
|
211
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
212
|
+
act(() => result.current.subscribe(keyHandler));
|
|
213
|
+
// Modifier 2 is Shift
|
|
214
|
+
act(() => {
|
|
215
|
+
stdin.sendKittySequence(`\x1b[9;2u`);
|
|
216
|
+
});
|
|
217
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
218
|
+
name: 'tab',
|
|
219
|
+
kittyProtocol: true,
|
|
220
|
+
shift: true,
|
|
221
|
+
}));
|
|
222
|
+
});
|
|
223
|
+
it('should recognize Backspace key in kitty protocol', async () => {
|
|
224
|
+
const keyHandler = vi.fn();
|
|
225
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
226
|
+
act(() => result.current.subscribe(keyHandler));
|
|
227
|
+
act(() => {
|
|
228
|
+
stdin.sendKittySequence(`\x1b[127u`);
|
|
229
|
+
});
|
|
230
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
231
|
+
name: 'backspace',
|
|
232
|
+
kittyProtocol: true,
|
|
233
|
+
meta: false,
|
|
234
|
+
}));
|
|
235
|
+
});
|
|
236
|
+
it('should recognize Option+Backspace in kitty protocol', async () => {
|
|
237
|
+
const keyHandler = vi.fn();
|
|
238
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
239
|
+
act(() => result.current.subscribe(keyHandler));
|
|
240
|
+
// Modifier 3 is Alt/Option
|
|
241
|
+
act(() => {
|
|
242
|
+
stdin.sendKittySequence(`\x1b[127;3u`);
|
|
243
|
+
});
|
|
244
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
245
|
+
name: 'backspace',
|
|
246
|
+
kittyProtocol: true,
|
|
247
|
+
meta: true,
|
|
248
|
+
}));
|
|
249
|
+
});
|
|
250
|
+
it('should recognize Ctrl+Backspace in kitty protocol', async () => {
|
|
251
|
+
const keyHandler = vi.fn();
|
|
252
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
253
|
+
act(() => result.current.subscribe(keyHandler));
|
|
254
|
+
// Modifier 5 is Ctrl
|
|
255
|
+
act(() => {
|
|
256
|
+
stdin.sendKittySequence(`\x1b[127;5u`);
|
|
257
|
+
});
|
|
258
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
259
|
+
name: 'backspace',
|
|
260
|
+
kittyProtocol: true,
|
|
261
|
+
ctrl: true,
|
|
262
|
+
}));
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
describe('paste mode', () => {
|
|
266
|
+
it('should handle multiline paste as a single event', async () => {
|
|
267
|
+
const keyHandler = vi.fn();
|
|
268
|
+
const pastedText = 'This \n is \n a \n multiline \n paste.';
|
|
269
|
+
const { result } = renderHook(() => useKeypressContext(), {
|
|
270
|
+
wrapper,
|
|
271
|
+
});
|
|
272
|
+
act(() => {
|
|
273
|
+
result.current.subscribe(keyHandler);
|
|
274
|
+
});
|
|
275
|
+
// Simulate a bracketed paste event
|
|
276
|
+
act(() => {
|
|
277
|
+
stdin.sendPaste(pastedText);
|
|
278
|
+
});
|
|
279
|
+
await waitFor(() => {
|
|
280
|
+
// Expect the handler to be called exactly once for the entire paste
|
|
281
|
+
expect(keyHandler).toHaveBeenCalledTimes(1);
|
|
282
|
+
});
|
|
283
|
+
// Verify the single event contains the full pasted text
|
|
284
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
285
|
+
paste: true,
|
|
286
|
+
sequence: pastedText,
|
|
287
|
+
}));
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
describe('debug keystroke logging', () => {
|
|
291
|
+
let consoleLogSpy;
|
|
292
|
+
let consoleWarnSpy;
|
|
293
|
+
beforeEach(() => {
|
|
294
|
+
consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
|
|
295
|
+
consoleWarnSpy = vi.spyOn(console, 'warn').mockImplementation(() => { });
|
|
296
|
+
});
|
|
297
|
+
afterEach(() => {
|
|
298
|
+
consoleLogSpy.mockRestore();
|
|
299
|
+
consoleWarnSpy.mockRestore();
|
|
300
|
+
});
|
|
301
|
+
it('should not log keystrokes when debugKeystrokeLogging is false', async () => {
|
|
302
|
+
const keyHandler = vi.fn();
|
|
303
|
+
const wrapper = ({ children }) => (_jsx(KeypressProvider, { kittyProtocolEnabled: true, debugKeystrokeLogging: false, children: children }));
|
|
304
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
305
|
+
act(() => {
|
|
306
|
+
result.current.subscribe(keyHandler);
|
|
307
|
+
});
|
|
308
|
+
// Send a kitty sequence
|
|
309
|
+
act(() => {
|
|
310
|
+
stdin.sendKittySequence('\x1b[27u');
|
|
311
|
+
});
|
|
312
|
+
expect(keyHandler).toHaveBeenCalled();
|
|
313
|
+
expect(consoleLogSpy).not.toHaveBeenCalledWith(expect.stringContaining('[DEBUG] Kitty'));
|
|
314
|
+
});
|
|
315
|
+
it('should log kitty buffer accumulation when debugKeystrokeLogging is true', async () => {
|
|
316
|
+
const keyHandler = vi.fn();
|
|
317
|
+
const wrapper = ({ children }) => (_jsx(KeypressProvider, { kittyProtocolEnabled: true, debugKeystrokeLogging: true, children: children }));
|
|
318
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
319
|
+
act(() => {
|
|
320
|
+
result.current.subscribe(keyHandler);
|
|
321
|
+
});
|
|
322
|
+
// Send a complete kitty sequence for escape
|
|
323
|
+
act(() => {
|
|
324
|
+
stdin.sendKittySequence('\x1b[27u');
|
|
325
|
+
});
|
|
326
|
+
expect(consoleLogSpy).toHaveBeenCalledWith('[DEBUG] Kitty buffer accumulating:', expect.stringContaining('\x1b[27u'));
|
|
327
|
+
const parsedCall = consoleLogSpy.mock.calls.find((args) => typeof args[0] === 'string' &&
|
|
328
|
+
args[0].includes('[DEBUG] Kitty sequence parsed successfully'));
|
|
329
|
+
expect(parsedCall).toBeTruthy();
|
|
330
|
+
expect(parsedCall?.[1]).toEqual(expect.stringContaining('\x1b[27u'));
|
|
331
|
+
});
|
|
332
|
+
it('should log kitty buffer overflow when debugKeystrokeLogging is true', async () => {
|
|
333
|
+
const keyHandler = vi.fn();
|
|
334
|
+
const wrapper = ({ children }) => (_jsx(KeypressProvider, { kittyProtocolEnabled: true, debugKeystrokeLogging: true, children: children }));
|
|
335
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
336
|
+
act(() => {
|
|
337
|
+
result.current.subscribe(keyHandler);
|
|
338
|
+
});
|
|
339
|
+
// Send an invalid long sequence to trigger overflow
|
|
340
|
+
const longInvalidSequence = '\x1b[' + 'x'.repeat(100);
|
|
341
|
+
act(() => {
|
|
342
|
+
stdin.sendKittySequence(longInvalidSequence);
|
|
343
|
+
});
|
|
344
|
+
expect(consoleLogSpy).toHaveBeenCalledWith('[DEBUG] Kitty buffer overflow, clearing:', expect.any(String));
|
|
345
|
+
});
|
|
346
|
+
it('should log kitty buffer clear on Ctrl+C when debugKeystrokeLogging is true', async () => {
|
|
347
|
+
const keyHandler = vi.fn();
|
|
348
|
+
const wrapper = ({ children }) => (_jsx(KeypressProvider, { kittyProtocolEnabled: true, debugKeystrokeLogging: true, children: children }));
|
|
349
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
350
|
+
act(() => {
|
|
351
|
+
result.current.subscribe(keyHandler);
|
|
352
|
+
});
|
|
353
|
+
// Send incomplete kitty sequence
|
|
354
|
+
act(() => {
|
|
355
|
+
stdin.pressKey({
|
|
356
|
+
name: undefined,
|
|
357
|
+
ctrl: false,
|
|
358
|
+
meta: false,
|
|
359
|
+
shift: false,
|
|
360
|
+
sequence: '\x1b[1',
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
// Send Ctrl+C
|
|
364
|
+
act(() => {
|
|
365
|
+
stdin.pressKey({
|
|
366
|
+
name: 'c',
|
|
367
|
+
ctrl: true,
|
|
368
|
+
meta: false,
|
|
369
|
+
shift: false,
|
|
370
|
+
sequence: '\x03',
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
expect(consoleLogSpy).toHaveBeenCalledWith('[DEBUG] Kitty buffer cleared on Ctrl+C:', '\x1b[1');
|
|
374
|
+
// Verify Ctrl+C was handled
|
|
375
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
376
|
+
name: 'c',
|
|
377
|
+
ctrl: true,
|
|
378
|
+
}));
|
|
379
|
+
});
|
|
380
|
+
it('should show char codes when debugKeystrokeLogging is true even without debug mode', async () => {
|
|
381
|
+
const keyHandler = vi.fn();
|
|
382
|
+
const wrapper = ({ children }) => (_jsx(KeypressProvider, { kittyProtocolEnabled: true, debugKeystrokeLogging: true, children: children }));
|
|
383
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
384
|
+
act(() => {
|
|
385
|
+
result.current.subscribe(keyHandler);
|
|
386
|
+
});
|
|
387
|
+
// Send incomplete kitty sequence
|
|
388
|
+
const sequence = '\x1b[12';
|
|
389
|
+
act(() => {
|
|
390
|
+
stdin.pressKey({
|
|
391
|
+
name: undefined,
|
|
392
|
+
ctrl: false,
|
|
393
|
+
meta: false,
|
|
394
|
+
shift: false,
|
|
395
|
+
sequence,
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
// Verify debug logging for accumulation
|
|
399
|
+
expect(consoleLogSpy).toHaveBeenCalledWith('[DEBUG] Kitty buffer accumulating:', sequence);
|
|
400
|
+
// Verify warning for char codes
|
|
401
|
+
expect(consoleWarnSpy).toHaveBeenCalledWith('Kitty sequence buffer has char codes:', [27, 91, 49, 50]);
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
describe('Parameterized functional keys', () => {
|
|
405
|
+
it.each([
|
|
406
|
+
// Parameterized
|
|
407
|
+
{ sequence: `\x1b[1;2H`, expected: { name: 'home', shift: true } },
|
|
408
|
+
{ sequence: `\x1b[1;5F`, expected: { name: 'end', ctrl: true } },
|
|
409
|
+
{ sequence: `\x1b[1;1P`, expected: { name: 'f1' } },
|
|
410
|
+
{ sequence: `\x1b[1;3Q`, expected: { name: 'f2', meta: true } },
|
|
411
|
+
{ sequence: `\x1b[3~`, expected: { name: 'delete' } },
|
|
412
|
+
{ sequence: `\x1b[5~`, expected: { name: 'pageup' } },
|
|
413
|
+
{ sequence: `\x1b[6~`, expected: { name: 'pagedown' } },
|
|
414
|
+
{ sequence: `\x1b[1~`, expected: { name: 'home' } },
|
|
415
|
+
{ sequence: `\x1b[4~`, expected: { name: 'end' } },
|
|
416
|
+
{ sequence: `\x1b[2~`, expected: { name: 'insert' } },
|
|
417
|
+
// Legacy Arrows
|
|
418
|
+
{
|
|
419
|
+
sequence: `\x1b[A`,
|
|
420
|
+
expected: { name: 'up', ctrl: false, meta: false, shift: false },
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
sequence: `\x1b[B`,
|
|
424
|
+
expected: { name: 'down', ctrl: false, meta: false, shift: false },
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
sequence: `\x1b[C`,
|
|
428
|
+
expected: { name: 'right', ctrl: false, meta: false, shift: false },
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
sequence: `\x1b[D`,
|
|
432
|
+
expected: { name: 'left', ctrl: false, meta: false, shift: false },
|
|
433
|
+
},
|
|
434
|
+
// Legacy Home/End
|
|
435
|
+
{
|
|
436
|
+
sequence: `\x1b[H`,
|
|
437
|
+
expected: { name: 'home', ctrl: false, meta: false, shift: false },
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
sequence: `\x1b[F`,
|
|
441
|
+
expected: { name: 'end', ctrl: false, meta: false, shift: false },
|
|
442
|
+
},
|
|
443
|
+
])('should recognize sequence "$sequence" as $expected.name', ({ sequence, expected }) => {
|
|
444
|
+
const keyHandler = vi.fn();
|
|
445
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
446
|
+
act(() => result.current.subscribe(keyHandler));
|
|
447
|
+
act(() => stdin.sendKittySequence(sequence));
|
|
448
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining(expected));
|
|
449
|
+
});
|
|
450
|
+
});
|
|
451
|
+
describe('Shift+Tab forms', () => {
|
|
452
|
+
it.each([
|
|
453
|
+
{ sequence: `\x1b[Z`, description: 'legacy reverse Tab' },
|
|
454
|
+
{ sequence: `\x1b[1;2Z`, description: 'parameterized reverse Tab' },
|
|
455
|
+
])('should recognize $description "$sequence" as Shift+Tab', ({ sequence }) => {
|
|
456
|
+
const keyHandler = vi.fn();
|
|
457
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
458
|
+
act(() => result.current.subscribe(keyHandler));
|
|
459
|
+
act(() => stdin.sendKittySequence(sequence));
|
|
460
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({ name: 'tab', shift: true }));
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
describe('Double-tap and batching', () => {
|
|
464
|
+
it('should emit two delete events for double-tap CSI[3~', async () => {
|
|
465
|
+
const keyHandler = vi.fn();
|
|
466
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
467
|
+
act(() => result.current.subscribe(keyHandler));
|
|
468
|
+
act(() => stdin.sendKittySequence(`\x1b[3~`));
|
|
469
|
+
act(() => stdin.sendKittySequence(`\x1b[3~`));
|
|
470
|
+
expect(keyHandler).toHaveBeenNthCalledWith(1, expect.objectContaining({ name: 'delete' }));
|
|
471
|
+
expect(keyHandler).toHaveBeenNthCalledWith(2, expect.objectContaining({ name: 'delete' }));
|
|
472
|
+
});
|
|
473
|
+
it('should parse two concatenated tilde-coded sequences in one chunk', async () => {
|
|
474
|
+
const keyHandler = vi.fn();
|
|
475
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
476
|
+
act(() => result.current.subscribe(keyHandler));
|
|
477
|
+
act(() => stdin.sendKittySequence(`\x1b[3~\x1b[5~`));
|
|
478
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({ name: 'delete' }));
|
|
479
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({ name: 'pageup' }));
|
|
480
|
+
});
|
|
481
|
+
it('should ignore incomplete CSI then parse the next complete sequence', async () => {
|
|
482
|
+
const keyHandler = vi.fn();
|
|
483
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
484
|
+
act(() => result.current.subscribe(keyHandler));
|
|
485
|
+
// Incomplete ESC sequence then a complete Delete
|
|
486
|
+
act(() => {
|
|
487
|
+
// Provide an incomplete ESC sequence chunk with a real ESC character
|
|
488
|
+
stdin.pressKey({
|
|
489
|
+
name: undefined,
|
|
490
|
+
ctrl: false,
|
|
491
|
+
meta: false,
|
|
492
|
+
shift: false,
|
|
493
|
+
sequence: '\x1b[1;',
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
act(() => stdin.sendKittySequence(`\x1b[3~`));
|
|
497
|
+
expect(keyHandler).toHaveBeenCalledTimes(1);
|
|
498
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({ name: 'delete' }));
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
});
|
|
502
|
+
describe('Drag and Drop Handling', () => {
|
|
503
|
+
let stdin;
|
|
504
|
+
const mockSetRawMode = vi.fn();
|
|
505
|
+
const wrapper = ({ children }) => (_jsx(KeypressProvider, { kittyProtocolEnabled: true, children: children }));
|
|
506
|
+
beforeEach(() => {
|
|
507
|
+
vi.clearAllMocks();
|
|
508
|
+
vi.useFakeTimers();
|
|
509
|
+
stdin = new MockStdin();
|
|
510
|
+
useStdin.mockReturnValue({
|
|
511
|
+
stdin,
|
|
512
|
+
setRawMode: mockSetRawMode,
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
afterEach(() => {
|
|
516
|
+
vi.useRealTimers();
|
|
517
|
+
});
|
|
518
|
+
describe('drag start by quotes', () => {
|
|
519
|
+
it('should start collecting when single quote arrives and not broadcast immediately', async () => {
|
|
520
|
+
const keyHandler = vi.fn();
|
|
521
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
522
|
+
act(() => {
|
|
523
|
+
result.current.subscribe(keyHandler);
|
|
524
|
+
});
|
|
525
|
+
act(() => {
|
|
526
|
+
stdin.pressKey({
|
|
527
|
+
name: undefined,
|
|
528
|
+
ctrl: false,
|
|
529
|
+
meta: false,
|
|
530
|
+
shift: false,
|
|
531
|
+
paste: false,
|
|
532
|
+
sequence: SINGLE_QUOTE,
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
expect(keyHandler).not.toHaveBeenCalled();
|
|
536
|
+
});
|
|
537
|
+
it('should start collecting when double quote arrives and not broadcast immediately', async () => {
|
|
538
|
+
const keyHandler = vi.fn();
|
|
539
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
540
|
+
act(() => {
|
|
541
|
+
result.current.subscribe(keyHandler);
|
|
542
|
+
});
|
|
543
|
+
act(() => {
|
|
544
|
+
stdin.pressKey({
|
|
545
|
+
name: undefined,
|
|
546
|
+
ctrl: false,
|
|
547
|
+
meta: false,
|
|
548
|
+
shift: false,
|
|
549
|
+
paste: false,
|
|
550
|
+
sequence: DOUBLE_QUOTE,
|
|
551
|
+
});
|
|
552
|
+
});
|
|
553
|
+
expect(keyHandler).not.toHaveBeenCalled();
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
describe('drag collection and completion', () => {
|
|
557
|
+
it('should collect single character inputs during drag mode', async () => {
|
|
558
|
+
const keyHandler = vi.fn();
|
|
559
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
560
|
+
act(() => {
|
|
561
|
+
result.current.subscribe(keyHandler);
|
|
562
|
+
});
|
|
563
|
+
// Start by single quote
|
|
564
|
+
act(() => {
|
|
565
|
+
stdin.pressKey({
|
|
566
|
+
name: undefined,
|
|
567
|
+
ctrl: false,
|
|
568
|
+
meta: false,
|
|
569
|
+
shift: false,
|
|
570
|
+
paste: false,
|
|
571
|
+
sequence: SINGLE_QUOTE,
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
// Send single character
|
|
575
|
+
act(() => {
|
|
576
|
+
stdin.pressKey({
|
|
577
|
+
name: undefined,
|
|
578
|
+
ctrl: false,
|
|
579
|
+
meta: false,
|
|
580
|
+
shift: false,
|
|
581
|
+
paste: false,
|
|
582
|
+
sequence: 'a',
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
// Character should not be immediately broadcast
|
|
586
|
+
expect(keyHandler).not.toHaveBeenCalled();
|
|
587
|
+
// Fast-forward to completion timeout
|
|
588
|
+
act(() => {
|
|
589
|
+
vi.advanceTimersByTime(DRAG_COMPLETION_TIMEOUT_MS + 10);
|
|
590
|
+
});
|
|
591
|
+
// Should broadcast the collected path as paste (includes starting quote)
|
|
592
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
593
|
+
name: '',
|
|
594
|
+
paste: true,
|
|
595
|
+
sequence: `${SINGLE_QUOTE}a`,
|
|
596
|
+
}));
|
|
597
|
+
});
|
|
598
|
+
it('should collect multiple characters and complete on timeout', async () => {
|
|
599
|
+
const keyHandler = vi.fn();
|
|
600
|
+
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
601
|
+
act(() => {
|
|
602
|
+
result.current.subscribe(keyHandler);
|
|
603
|
+
});
|
|
604
|
+
// Start by single quote
|
|
605
|
+
act(() => {
|
|
606
|
+
stdin.pressKey({
|
|
607
|
+
name: undefined,
|
|
608
|
+
ctrl: false,
|
|
609
|
+
meta: false,
|
|
610
|
+
shift: false,
|
|
611
|
+
paste: false,
|
|
612
|
+
sequence: SINGLE_QUOTE,
|
|
613
|
+
});
|
|
614
|
+
});
|
|
615
|
+
// Send multiple characters
|
|
616
|
+
act(() => {
|
|
617
|
+
stdin.pressKey({
|
|
618
|
+
name: undefined,
|
|
619
|
+
ctrl: false,
|
|
620
|
+
meta: false,
|
|
621
|
+
shift: false,
|
|
622
|
+
paste: false,
|
|
623
|
+
sequence: 'p',
|
|
624
|
+
});
|
|
625
|
+
});
|
|
626
|
+
act(() => {
|
|
627
|
+
stdin.pressKey({
|
|
628
|
+
name: undefined,
|
|
629
|
+
ctrl: false,
|
|
630
|
+
meta: false,
|
|
631
|
+
shift: false,
|
|
632
|
+
paste: false,
|
|
633
|
+
sequence: 'a',
|
|
634
|
+
});
|
|
635
|
+
});
|
|
636
|
+
act(() => {
|
|
637
|
+
stdin.pressKey({
|
|
638
|
+
name: undefined,
|
|
639
|
+
ctrl: false,
|
|
640
|
+
meta: false,
|
|
641
|
+
shift: false,
|
|
642
|
+
paste: false,
|
|
643
|
+
sequence: 't',
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
act(() => {
|
|
647
|
+
stdin.pressKey({
|
|
648
|
+
name: undefined,
|
|
649
|
+
ctrl: false,
|
|
650
|
+
meta: false,
|
|
651
|
+
shift: false,
|
|
652
|
+
paste: false,
|
|
653
|
+
sequence: 'h',
|
|
654
|
+
});
|
|
655
|
+
});
|
|
656
|
+
// Characters should not be immediately broadcast
|
|
657
|
+
expect(keyHandler).not.toHaveBeenCalled();
|
|
658
|
+
// Fast-forward to completion timeout
|
|
659
|
+
act(() => {
|
|
660
|
+
vi.advanceTimersByTime(DRAG_COMPLETION_TIMEOUT_MS + 10);
|
|
661
|
+
});
|
|
662
|
+
// Should broadcast the collected path as paste (includes starting quote)
|
|
663
|
+
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
664
|
+
name: '',
|
|
665
|
+
paste: true,
|
|
666
|
+
sequence: `${SINGLE_QUOTE}path`,
|
|
667
|
+
}));
|
|
668
|
+
});
|
|
669
|
+
});
|
|
670
|
+
});
|
|
671
|
+
//# sourceMappingURL=KeypressContext.test.js.map
|