@google/gemini-cli 0.0.4 → 0.0.44-beta.0
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/README.md +10 -4
- package/gemini.js +416261 -0
- package/package.json +13 -11
- package/dist/.last_build +0 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -29
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -84
- package/dist/src/commands/extensions/disable.d.ts +0 -14
- package/dist/src/commands/extensions/disable.js +0 -42
- package/dist/src/commands/extensions/disable.js.map +0 -1
- package/dist/src/commands/extensions/enable.d.ts +0 -14
- package/dist/src/commands/extensions/enable.js +0 -46
- package/dist/src/commands/extensions/enable.js.map +0 -1
- package/dist/src/commands/extensions/examples/context/GEMINI.md +0 -8
- package/dist/src/commands/extensions/examples/context/gemini-extension.json +0 -5
- package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +0 -6
- package/dist/src/commands/extensions/examples/custom-commands/gemini-extension.json +0 -4
- package/dist/src/commands/extensions/examples/exclude-tools/gemini-extension.json +0 -5
- package/dist/src/commands/extensions/examples/mcp-server/example.d.ts +0 -6
- package/dist/src/commands/extensions/examples/mcp-server/example.js +0 -46
- package/dist/src/commands/extensions/examples/mcp-server/example.js.map +0 -1
- package/dist/src/commands/extensions/examples/mcp-server/example.ts +0 -60
- package/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +0 -10
- package/dist/src/commands/extensions/install.d.ts +0 -14
- package/dist/src/commands/extensions/install.js +0 -77
- package/dist/src/commands/extensions/install.js.map +0 -1
- package/dist/src/commands/extensions/install.test.d.ts +0 -6
- package/dist/src/commands/extensions/install.test.js +0 -95
- package/dist/src/commands/extensions/install.test.js.map +0 -1
- package/dist/src/commands/extensions/link.d.ts +0 -12
- package/dist/src/commands/extensions/link.js +0 -37
- package/dist/src/commands/extensions/link.js.map +0 -1
- package/dist/src/commands/extensions/list.d.ts +0 -8
- package/dist/src/commands/extensions/list.js +0 -32
- package/dist/src/commands/extensions/list.js.map +0 -1
- package/dist/src/commands/extensions/new.d.ts +0 -7
- package/dist/src/commands/extensions/new.js +0 -70
- package/dist/src/commands/extensions/new.js.map +0 -1
- package/dist/src/commands/extensions/new.test.d.ts +0 -6
- package/dist/src/commands/extensions/new.test.js +0 -50
- package/dist/src/commands/extensions/new.test.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.d.ts +0 -12
- package/dist/src/commands/extensions/uninstall.js +0 -38
- package/dist/src/commands/extensions/uninstall.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.test.d.ts +0 -6
- package/dist/src/commands/extensions/uninstall.test.js +0 -15
- package/dist/src/commands/extensions/uninstall.test.js.map +0 -1
- package/dist/src/commands/extensions/update.d.ts +0 -13
- package/dist/src/commands/extensions/update.js +0 -69
- package/dist/src/commands/extensions/update.js.map +0 -1
- package/dist/src/commands/extensions.d.ts +0 -7
- package/dist/src/commands/extensions.js +0 -33
- package/dist/src/commands/extensions.js.map +0 -1
- package/dist/src/commands/mcp/add.d.ts +0 -7
- package/dist/src/commands/mcp/add.js +0 -166
- package/dist/src/commands/mcp/add.js.map +0 -1
- package/dist/src/commands/mcp/list.d.ts +0 -8
- package/dist/src/commands/mcp/list.js +0 -110
- package/dist/src/commands/mcp/list.js.map +0 -1
- package/dist/src/commands/mcp/remove.d.ts +0 -7
- package/dist/src/commands/mcp/remove.js +0 -44
- package/dist/src/commands/mcp/remove.js.map +0 -1
- package/dist/src/commands/mcp.d.ts +0 -7
- package/dist/src/commands/mcp.js +0 -23
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/config/auth.d.ts +0 -6
- package/dist/src/config/auth.js +0 -34
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/auth.test.d.ts +0 -6
- package/dist/src/config/auth.test.js +0 -65
- package/dist/src/config/auth.test.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -45
- package/dist/src/config/config.js +0 -480
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -66
- package/dist/src/config/extension.js +0 -524
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.d.ts +0 -30
- package/dist/src/config/extensions/extensionEnablement.js +0 -113
- package/dist/src/config/extensions/extensionEnablement.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionEnablement.test.js +0 -116
- package/dist/src/config/extensions/extensionEnablement.test.js.map +0 -1
- package/dist/src/config/extensions/github.d.ts +0 -25
- package/dist/src/config/extensions/github.js +0 -258
- package/dist/src/config/extensions/github.js.map +0 -1
- package/dist/src/config/extensions/github.test.d.ts +0 -6
- package/dist/src/config/extensions/github.test.js +0 -232
- package/dist/src/config/extensions/github.test.js.map +0 -1
- package/dist/src/config/extensions/variableSchema.d.ts +0 -36
- package/dist/src/config/extensions/variableSchema.js +0 -22
- package/dist/src/config/extensions/variableSchema.js.map +0 -1
- package/dist/src/config/extensions/variables.d.ts +0 -17
- package/dist/src/config/extensions/variables.js +0 -40
- package/dist/src/config/extensions/variables.js.map +0 -1
- package/dist/src/config/extensions/variables.test.d.ts +0 -6
- package/dist/src/config/extensions/variables.test.js +0 -17
- package/dist/src/config/extensions/variables.test.js.map +0 -1
- package/dist/src/config/keyBindings.d.ts +0 -70
- package/dist/src/config/keyBindings.js +0 -130
- package/dist/src/config/keyBindings.js.map +0 -1
- package/dist/src/config/keyBindings.test.d.ts +0 -6
- package/dist/src/config/keyBindings.test.js +0 -51
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/config/policy-engine.integration.test.d.ts +0 -6
- package/dist/src/config/policy-engine.integration.test.js +0 -270
- package/dist/src/config/policy-engine.integration.test.js.map +0 -1
- package/dist/src/config/policy.d.ts +0 -8
- package/dist/src/config/policy.js +0 -150
- package/dist/src/config/policy.js.map +0 -1
- package/dist/src/config/policy.test.d.ts +0 -6
- package/dist/src/config/policy.test.js +0 -336
- package/dist/src/config/policy.test.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -13
- package/dist/src/config/sandboxConfig.js +0 -73
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -65
- package/dist/src/config/settings.js +0 -553
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/config/settingsSchema.d.ts +0 -959
- package/dist/src/config/settingsSchema.js +0 -925
- package/dist/src/config/settingsSchema.js.map +0 -1
- package/dist/src/config/settingsSchema.test.d.ts +0 -6
- package/dist/src/config/settingsSchema.test.js +0 -206
- package/dist/src/config/settingsSchema.test.js.map +0 -1
- package/dist/src/config/trustedFolders.d.ts +0 -47
- package/dist/src/config/trustedFolders.js +0 -142
- package/dist/src/config/trustedFolders.js.map +0 -1
- package/dist/src/config/trustedFolders.test.d.ts +0 -6
- package/dist/src/config/trustedFolders.test.js +0 -259
- package/dist/src/config/trustedFolders.test.js.map +0 -1
- package/dist/src/core/auth.d.ts +0 -13
- package/dist/src/core/auth.js +0 -27
- package/dist/src/core/auth.js.map +0 -1
- package/dist/src/core/initializer.d.ts +0 -21
- package/dist/src/core/initializer.js +0 -33
- package/dist/src/core/initializer.js.map +0 -1
- package/dist/src/core/theme.d.ts +0 -12
- package/dist/src/core/theme.js +0 -20
- package/dist/src/core/theme.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -12
- package/dist/src/gemini.js +0 -334
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -318
- package/dist/src/gemini.test.js.map +0 -1
- package/dist/src/generated/git-commit.d.ts +0 -7
- package/dist/src/generated/git-commit.js +0 -10
- package/dist/src/generated/git-commit.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -7
- package/dist/src/nonInteractiveCli.js +0 -108
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/patches/is-in-ci.d.ts +0 -7
- package/dist/src/patches/is-in-ci.js +0 -15
- package/dist/src/patches/is-in-ci.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +0 -24
- package/dist/src/services/BuiltinCommandLoader.js +0 -82
- package/dist/src/services/BuiltinCommandLoader.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
- package/dist/src/services/BuiltinCommandLoader.test.js +0 -107
- package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -55
- package/dist/src/services/CommandService.js +0 -90
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/services/CommandService.test.d.ts +0 -6
- package/dist/src/services/CommandService.test.js +0 -233
- package/dist/src/services/CommandService.test.js.map +0 -1
- package/dist/src/services/FileCommandLoader.d.ts +0 -51
- package/dist/src/services/FileCommandLoader.js +0 -227
- package/dist/src/services/FileCommandLoader.js.map +0 -1
- package/dist/src/services/McpPromptLoader.d.ts +0 -35
- package/dist/src/services/McpPromptLoader.js +0 -253
- package/dist/src/services/McpPromptLoader.js.map +0 -1
- package/dist/src/services/McpPromptLoader.test.d.ts +0 -6
- package/dist/src/services/McpPromptLoader.test.js +0 -341
- package/dist/src/services/McpPromptLoader.test.js.map +0 -1
- package/dist/src/services/prompt-processors/argumentProcessor.d.ts +0 -16
- package/dist/src/services/prompt-processors/argumentProcessor.js +0 -21
- package/dist/src/services/prompt-processors/argumentProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.d.ts +0 -12
- package/dist/src/services/prompt-processors/atFileProcessor.js +0 -62
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +0 -174
- package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.d.ts +0 -29
- package/dist/src/services/prompt-processors/injectionParser.js +0 -60
- package/dist/src/services/prompt-processors/injectionParser.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/injectionParser.test.js +0 -189
- package/dist/src/services/prompt-processors/injectionParser.test.js.map +0 -1
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +0 -27
- package/dist/src/services/prompt-processors/shellProcessor.js +0 -128
- package/dist/src/services/prompt-processors/shellProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/types.d.ts +0 -45
- package/dist/src/services/prompt-processors/types.js +0 -20
- package/dist/src/services/prompt-processors/types.js.map +0 -1
- package/dist/src/services/types.d.ts +0 -22
- package/dist/src/services/types.js +0 -7
- package/dist/src/services/types.js.map +0 -1
- package/dist/src/test-utils/customMatchers.d.ts +0 -14
- package/dist/src/test-utils/customMatchers.js +0 -40
- package/dist/src/test-utils/customMatchers.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.d.ts +0 -18
- package/dist/src/test-utils/mockCommandContext.js +0 -86
- package/dist/src/test-utils/mockCommandContext.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.test.d.ts +0 -6
- package/dist/src/test-utils/mockCommandContext.test.js +0 -51
- package/dist/src/test-utils/mockCommandContext.test.js.map +0 -1
- package/dist/src/test-utils/render.d.ts +0 -8
- package/dist/src/test-utils/render.js +0 -10
- package/dist/src/test-utils/render.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -6
- package/dist/src/ui/App.js +0 -22
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/AppContainer.d.ts +0 -17
- package/dist/src/ui/AppContainer.js +0 -879
- package/dist/src/ui/AppContainer.js.map +0 -1
- package/dist/src/ui/AppContainer.test.d.ts +0 -6
- package/dist/src/ui/AppContainer.test.js +0 -414
- package/dist/src/ui/AppContainer.test.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -16
- package/dist/src/ui/IdeIntegrationNudge.js +0 -47
- package/dist/src/ui/IdeIntegrationNudge.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.d.ts +0 -18
- package/dist/src/ui/auth/AuthDialog.js +0 -99
- package/dist/src/ui/auth/AuthDialog.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/AuthDialog.test.js +0 -184
- package/dist/src/ui/auth/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/auth/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/auth/AuthInProgress.js +0 -23
- package/dist/src/ui/auth/AuthInProgress.js.map +0 -1
- package/dist/src/ui/auth/useAuth.d.ts +0 -15
- package/dist/src/ui/auth/useAuth.js +0 -73
- package/dist/src/ui/auth/useAuth.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -54
- package/dist/src/ui/colors.js.map +0 -1
- package/dist/src/ui/commands/aboutCommand.d.ts +0 -7
- package/dist/src/ui/commands/aboutCommand.js +0 -49
- package/dist/src/ui/commands/aboutCommand.js.map +0 -1
- package/dist/src/ui/commands/authCommand.d.ts +0 -7
- package/dist/src/ui/commands/authCommand.js +0 -16
- package/dist/src/ui/commands/authCommand.js.map +0 -1
- package/dist/src/ui/commands/bugCommand.d.ts +0 -7
- package/dist/src/ui/commands/bugCommand.js +0 -76
- package/dist/src/ui/commands/bugCommand.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.d.ts +0 -9
- package/dist/src/ui/commands/chatCommand.js +0 -314
- package/dist/src/ui/commands/chatCommand.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.d.ts +0 -7
- package/dist/src/ui/commands/clearCommand.js +0 -27
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.d.ts +0 -7
- package/dist/src/ui/commands/compressCommand.js +0 -66
- package/dist/src/ui/commands/compressCommand.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.d.ts +0 -7
- package/dist/src/ui/commands/copyCommand.js +0 -59
- package/dist/src/ui/commands/copyCommand.js.map +0 -1
- package/dist/src/ui/commands/corgiCommand.d.ts +0 -7
- package/dist/src/ui/commands/corgiCommand.js +0 -16
- package/dist/src/ui/commands/corgiCommand.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +0 -8
- package/dist/src/ui/commands/directoryCommand.js +0 -135
- package/dist/src/ui/commands/directoryCommand.js.map +0 -1
- package/dist/src/ui/commands/docsCommand.d.ts +0 -7
- package/dist/src/ui/commands/docsCommand.js +0 -31
- package/dist/src/ui/commands/docsCommand.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.d.ts +0 -7
- package/dist/src/ui/commands/editorCommand.js +0 -16
- package/dist/src/ui/commands/editorCommand.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.d.ts +0 -7
- package/dist/src/ui/commands/extensionsCommand.js +0 -85
- package/dist/src/ui/commands/extensionsCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -21
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.d.ts +0 -7
- package/dist/src/ui/commands/ideCommand.js +0 -225
- package/dist/src/ui/commands/ideCommand.js.map +0 -1
- package/dist/src/ui/commands/initCommand.d.ts +0 -7
- package/dist/src/ui/commands/initCommand.js +0 -76
- package/dist/src/ui/commands/initCommand.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.d.ts +0 -7
- package/dist/src/ui/commands/mcpCommand.js +0 -433
- package/dist/src/ui/commands/mcpCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/memoryCommand.js +0 -92
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/privacyCommand.d.ts +0 -7
- package/dist/src/ui/commands/privacyCommand.js +0 -16
- package/dist/src/ui/commands/privacyCommand.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.d.ts +0 -7
- package/dist/src/ui/commands/quitCommand.js +0 -34
- package/dist/src/ui/commands/quitCommand.js.map +0 -1
- package/dist/src/ui/commands/restoreCommand.d.ts +0 -8
- package/dist/src/ui/commands/restoreCommand.js +0 -124
- package/dist/src/ui/commands/restoreCommand.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +0 -7
- package/dist/src/ui/commands/settingsCommand.js +0 -16
- package/dist/src/ui/commands/settingsCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +0 -9
- package/dist/src/ui/commands/setupGithubCommand.js +0 -154
- package/dist/src/ui/commands/setupGithubCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/setupGithubCommand.test.js +0 -167
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.d.ts +0 -7
- package/dist/src/ui/commands/statsCommand.js +0 -54
- package/dist/src/ui/commands/statsCommand.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
- package/dist/src/ui/commands/terminalSetupCommand.js +0 -41
- package/dist/src/ui/commands/terminalSetupCommand.js.map +0 -1
- package/dist/src/ui/commands/themeCommand.d.ts +0 -7
- package/dist/src/ui/commands/themeCommand.js +0 -16
- package/dist/src/ui/commands/themeCommand.js.map +0 -1
- package/dist/src/ui/commands/toolsCommand.d.ts +0 -7
- package/dist/src/ui/commands/toolsCommand.js +0 -56
- package/dist/src/ui/commands/toolsCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -152
- package/dist/src/ui/commands/types.js +0 -12
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/commands/vimCommand.d.ts +0 -7
- package/dist/src/ui/commands/vimCommand.js +0 -23
- package/dist/src/ui/commands/vimCommand.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -17
- package/dist/src/ui/components/AboutBox.js +0 -6
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.d.ts +0 -13
- package/dist/src/ui/components/AnsiOutput.js +0 -12
- package/dist/src/ui/components/AnsiOutput.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.test.d.ts +0 -6
- package/dist/src/ui/components/AnsiOutput.test.js +0 -97
- package/dist/src/ui/components/AnsiOutput.test.js.map +0 -1
- package/dist/src/ui/components/AppHeader.d.ts +0 -10
- package/dist/src/ui/components/AppHeader.js +0 -22
- package/dist/src/ui/components/AppHeader.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -8
- package/dist/src/ui/components/AsciiArt.js +0 -36
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
- package/dist/src/ui/components/AutoAcceptIndicator.js +0 -26
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/components/Composer.d.ts +0 -6
- package/dist/src/ui/components/Composer.js +0 -73
- package/dist/src/ui/components/Composer.js.map +0 -1
- package/dist/src/ui/components/Composer.test.d.ts +0 -6
- package/dist/src/ui/components/Composer.test.js +0 -337
- package/dist/src/ui/components/Composer.test.js.map +0 -1
- package/dist/src/ui/components/ConfigInitDisplay.d.ts +0 -6
- package/dist/src/ui/components/ConfigInitDisplay.js +0 -38
- package/dist/src/ui/components/ConfigInitDisplay.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -20
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -66
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +0 -9
- package/dist/src/ui/components/ContextUsageDisplay.js +0 -14
- package/dist/src/ui/components/ContextUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.d.ts +0 -6
- package/dist/src/ui/components/DebugProfiler.js +0 -27
- package/dist/src/ui/components/DebugProfiler.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
- package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
- package/dist/src/ui/components/DialogManager.d.ts +0 -6
- package/dist/src/ui/components/DialogManager.js +0 -85
- package/dist/src/ui/components/DialogManager.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -16
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -71
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +0 -17
- package/dist/src/ui/components/FolderTrustDialog.js +0 -55
- package/dist/src/ui/components/FolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/FolderTrustDialog.test.js +0 -88
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -25
- package/dist/src/ui/components/Footer.js +0 -30
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -22
- package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -23
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -13
- package/dist/src/ui/components/Header.js +0 -28
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Header.test.d.ts +0 -6
- package/dist/src/ui/components/Header.test.js +0 -37
- package/dist/src/ui/components/Header.test.js.map +0 -1
- package/dist/src/ui/components/Help.d.ts +0 -12
- package/dist/src/ui/components/Help.js +0 -13
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/Help.test.d.ts +0 -6
- package/dist/src/ui/components/Help.test.js +0 -57
- package/dist/src/ui/components/Help.test.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -20
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -20
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -93
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -37
- package/dist/src/ui/components/InputPrompt.js +0 -700
- package/dist/src/ui/components/InputPrompt.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
- package/dist/src/ui/components/LoadingIndicator.js +0 -25
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/LoadingIndicator.test.js +0 -190
- package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +0 -13
- package/dist/src/ui/components/LoopDetectionConfirmation.js +0 -35
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +0 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +0 -25
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/MainContent.d.ts +0 -6
- package/dist/src/ui/components/MainContent.js +0 -23
- package/dist/src/ui/components/MainContent.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -24
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
- package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/Notifications.d.ts +0 -6
- package/dist/src/ui/components/Notifications.js +0 -23
- package/dist/src/ui/components/Notifications.js.map +0 -1
- package/dist/src/ui/components/PrepareLabel.d.ts +0 -15
- package/dist/src/ui/components/PrepareLabel.js +0 -72
- package/dist/src/ui/components/PrepareLabel.js.map +0 -1
- package/dist/src/ui/components/PrepareLabel.test.d.ts +0 -6
- package/dist/src/ui/components/PrepareLabel.test.js +0 -71
- package/dist/src/ui/components/PrepareLabel.test.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.d.ts +0 -13
- package/dist/src/ui/components/ProQuotaDialog.js +0 -21
- package/dist/src/ui/components/ProQuotaDialog.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ProQuotaDialog.test.js +0 -56
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.d.ts +0 -9
- package/dist/src/ui/components/QueuedMessageDisplay.js +0 -20
- package/dist/src/ui/components/QueuedMessageDisplay.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +0 -56
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/QuittingDisplay.d.ts +0 -6
- package/dist/src/ui/components/QuittingDisplay.js +0 -20
- package/dist/src/ui/components/QuittingDisplay.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +0 -16
- package/dist/src/ui/components/SettingsDialog.js +0 -621
- package/dist/src/ui/components/SettingsDialog.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/SettingsDialog.test.js +0 -1002
- package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +0 -15
- package/dist/src/ui/components/ShellConfirmationDialog.js +0 -46
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +0 -40
- package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellInputPrompt.d.ts +0 -11
- package/dist/src/ui/components/ShellInputPrompt.js +0 -36
- package/dist/src/ui/components/ShellInputPrompt.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
- package/dist/src/ui/components/ShellModeIndicator.js +0 -5
- package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
- package/dist/src/ui/components/ShowMoreLines.js +0 -24
- package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
- package/dist/src/ui/components/StatsDisplay.js +0 -43
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -27
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -40
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -20
- package/dist/src/ui/components/ThemeDialog.js +0 -121
- package/dist/src/ui/components/ThemeDialog.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ThemeDialog.test.js +0 -75
- package/dist/src/ui/components/ThemeDialog.test.js.map +0 -1
- package/dist/src/ui/components/Tips.d.ts +0 -12
- package/dist/src/ui/components/Tips.js +0 -9
- package/dist/src/ui/components/Tips.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
- package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
- package/dist/src/ui/components/UpdateNotification.js +0 -10
- package/dist/src/ui/components/UpdateNotification.js.map +0 -1
- package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +0 -11
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +0 -42
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -10
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -46
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/CompressionMessage.test.js +0 -160
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -17
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -218
- package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
- package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -239
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
- package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessage.js +0 -11
- package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -15
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/InfoMessage.js +0 -10
- package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -174
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -114
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -19
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -58
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +0 -261
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -19
- package/dist/src/ui/components/messages/ToolMessage.js +0 -76
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessage.test.js +0 -150
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserMessage.js +0 -14
- package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
- package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
- package/dist/src/ui/components/messages/WarningMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/WarningMessage.js +0 -10
- package/dist/src/ui/components/messages/WarningMessage.js.map +0 -1
- package/dist/src/ui/components/shared/EnumSelector.d.ts +0 -18
- package/dist/src/ui/components/shared/EnumSelector.js +0 -44
- package/dist/src/ui/components/shared/EnumSelector.js.map +0 -1
- package/dist/src/ui/components/shared/EnumSelector.test.d.ts +0 -6
- package/dist/src/ui/components/shared/EnumSelector.test.js +0 -70
- package/dist/src/ui/components/shared/EnumSelector.test.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
- package/dist/src/ui/components/shared/MaxSizedBox.js +0 -451
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -154
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -46
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -116
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +0 -111
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/ScopeSelector.d.ts +0 -19
- package/dist/src/ui/components/shared/ScopeSelector.js +0 -11
- package/dist/src/ui/components/shared/ScopeSelector.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -490
- package/dist/src/ui/components/shared/text-buffer.js +0 -1598
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +0 -72
- package/dist/src/ui/components/shared/vim-buffer-actions.js +0 -552
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionsList.d.ts +0 -6
- package/dist/src/ui/components/views/ExtensionsList.js +0 -47
- package/dist/src/ui/components/views/ExtensionsList.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ExtensionsList.test.js +0 -97
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -18
- package/dist/src/ui/constants.js +0 -23
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/AppContext.d.ts +0 -11
- package/dist/src/ui/contexts/AppContext.js +0 -15
- package/dist/src/ui/contexts/AppContext.js.map +0 -1
- package/dist/src/ui/contexts/ConfigContext.d.ts +0 -9
- package/dist/src/ui/contexts/ConfigContext.js +0 -16
- package/dist/src/ui/contexts/ConfigContext.js.map +0 -1
- package/dist/src/ui/contexts/FocusContext.d.ts +0 -7
- package/dist/src/ui/contexts/FocusContext.js +0 -9
- package/dist/src/ui/contexts/FocusContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +0 -34
- package/dist/src/ui/contexts/KeypressContext.js +0 -580
- package/dist/src/ui/contexts/KeypressContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/KeypressContext.test.js +0 -671
- package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -38
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -45
- package/dist/src/ui/contexts/SessionContext.js +0 -157
- package/dist/src/ui/contexts/SessionContext.js.map +0 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +0 -9
- package/dist/src/ui/contexts/SettingsContext.js +0 -15
- package/dist/src/ui/contexts/SettingsContext.js.map +0 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
- package/dist/src/ui/contexts/StreamingContext.js +0 -15
- package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +0 -36
- package/dist/src/ui/contexts/UIActionsContext.js +0 -20
- package/dist/src/ui/contexts/UIActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +0 -95
- package/dist/src/ui/contexts/UIStateContext.js +0 -15
- package/dist/src/ui/contexts/UIStateContext.js.map +0 -1
- package/dist/src/ui/contexts/VimModeContext.d.ts +0 -19
- package/dist/src/ui/contexts/VimModeContext.js +0 -48
- package/dist/src/ui/contexts/VimModeContext.js.map +0 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
- package/dist/src/ui/editors/editorSettingsManager.js +0 -47
- package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
- package/dist/src/ui/hooks/atCommandProcessor.js +0 -364
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -834
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/keyToAnsi.d.ts +0 -15
- package/dist/src/ui/hooks/keyToAnsi.js +0 -67
- package/dist/src/ui/hooks/keyToAnsi.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -18
- package/dist/src/ui/hooks/shellCommandProcessor.js +0 -279
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -504
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -42
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -406
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useAtCompletion.js +0 -179
- package/dist/src/ui/hooks/useAtCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -13
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -50
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +0 -380
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
- package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
- package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +0 -32
- package/dist/src/ui/hooks/useCommandCompletion.js +0 -186
- package/dist/src/ui/hooks/useCommandCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +0 -24
- package/dist/src/ui/hooks/useCompletion.js +0 -88
- package/dist/src/ui/hooks/useCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
- package/dist/src/ui/hooks/useConsoleMessages.js +0 -76
- package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
- package/dist/src/ui/hooks/useEditorSettings.js +0 -43
- package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/useEditorSettings.test.js +0 -164
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.d.ts +0 -10
- package/dist/src/ui/hooks/useFocus.js +0 -41
- package/dist/src/ui/hooks/useFocus.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +0 -13
- package/dist/src/ui/hooks/useFolderTrust.js +0 -65
- package/dist/src/ui/hooks/useFolderTrust.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -35
- package/dist/src/ui/hooks/useGeminiStream.js +0 -724
- package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.js +0 -58
- package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.test.js +0 -171
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
- package/dist/src/ui/hooks/useHistoryManager.js +0 -72
- package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHistoryManager.test.js +0 -171
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useIdeTrustListener.d.ts +0 -14
- package/dist/src/ui/hooks/useIdeTrustListener.js +0 -39
- package/dist/src/ui/hooks/useIdeTrustListener.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistory.js +0 -84
- package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistory.test.js +0 -207
- package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistoryStore.js +0 -81
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +0 -234
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +0 -17
- package/dist/src/ui/hooks/useKeypress.js +0 -27
- package/dist/src/ui/hooks/useKeypress.js.map +0 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +0 -15
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +0 -20
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -91
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useLogger.d.ts +0 -11
- package/dist/src/ui/hooks/useLogger.js +0 -29
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.d.ts +0 -13
- package/dist/src/ui/hooks/useMemoryMonitor.js +0 -28
- package/dist/src/ui/hooks/useMemoryMonitor.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +0 -57
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +0 -23
- package/dist/src/ui/hooks/useMessageQueue.js +0 -51
- package/dist/src/ui/hooks/useMessageQueue.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMessageQueue.test.js +0 -167
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -190
- package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
- package/dist/src/ui/hooks/usePrivacySettings.js +0 -114
- package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -90
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/usePromptCompletion.js +0 -177
- package/dist/src/ui/hooks/usePromptCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +0 -21
- package/dist/src/ui/hooks/useQuotaAndFallback.js +0 -122
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +0 -6
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +0 -267
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -34
- package/dist/src/ui/hooks/useReactToolScheduler.js +0 -192
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +0 -19
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +0 -103
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -163
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +0 -10
- package/dist/src/ui/hooks/useSettingsCommand.js +0 -21
- package/dist/src/ui/hooks/useSettingsCommand.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +0 -14
- package/dist/src/ui/hooks/useShellHistory.js +0 -111
- package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellHistory.test.js +0 -187
- package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
- package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +0 -20
- package/dist/src/ui/hooks/useSlashCompletion.js +0 -344
- package/dist/src/ui/hooks/useSlashCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -9
- package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -564
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
- package/dist/src/ui/hooks/useStateAndRef.js +0 -26
- package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
- package/dist/src/ui/hooks/useTerminalSize.js +0 -27
- package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
- package/dist/src/ui/hooks/useThemeCommand.js +0 -68
- package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.d.ts +0 -12
- package/dist/src/ui/hooks/useTimer.js +0 -58
- package/dist/src/ui/hooks/useTimer.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTimer.test.js +0 -90
- package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolScheduler.test.js +0 -855
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +0 -13
- package/dist/src/ui/hooks/useWorkspaceMigration.js +0 -54
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +0 -1
- package/dist/src/ui/hooks/vim.d.ts +0 -28
- package/dist/src/ui/hooks/vim.js +0 -639
- package/dist/src/ui/hooks/vim.js.map +0 -1
- package/dist/src/ui/keyMatchers.d.ts +0 -27
- package/dist/src/ui/keyMatchers.js +0 -68
- package/dist/src/ui/keyMatchers.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.d.ts +0 -6
- package/dist/src/ui/keyMatchers.test.js +0 -293
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -41
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -18
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -18
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
- package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
- package/dist/src/ui/semantic-colors.d.ts +0 -7
- package/dist/src/ui/semantic-colors.js +0 -24
- package/dist/src/ui/semantic-colors.js.map +0 -1
- package/dist/src/ui/state/extensions.d.ts +0 -14
- package/dist/src/ui/state/extensions.js +0 -16
- package/dist/src/ui/state/extensions.js.map +0 -1
- package/dist/src/ui/textConstants.d.ts +0 -9
- package/dist/src/ui/textConstants.js +0 -10
- package/dist/src/ui/textConstants.js.map +0 -1
- package/dist/src/ui/themes/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/ansi-light.js +0 -142
- package/dist/src/ui/themes/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/ansi.d.ts +0 -7
- package/dist/src/ui/themes/ansi.js +0 -152
- package/dist/src/ui/themes/ansi.js.map +0 -1
- package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
- package/dist/src/ui/themes/atom-one-dark.js +0 -138
- package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/ayu-light.d.ts +0 -7
- package/dist/src/ui/themes/ayu-light.js +0 -130
- package/dist/src/ui/themes/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/ayu.d.ts +0 -7
- package/dist/src/ui/themes/ayu.js +0 -104
- package/dist/src/ui/themes/ayu.js.map +0 -1
- package/dist/src/ui/themes/color-utils.d.ts +0 -21
- package/dist/src/ui/themes/color-utils.js +0 -221
- package/dist/src/ui/themes/color-utils.js.map +0 -1
- package/dist/src/ui/themes/color-utils.test.d.ts +0 -6
- package/dist/src/ui/themes/color-utils.test.js +0 -197
- package/dist/src/ui/themes/color-utils.test.js.map +0 -1
- package/dist/src/ui/themes/default-light.d.ts +0 -7
- package/dist/src/ui/themes/default-light.js +0 -100
- package/dist/src/ui/themes/default-light.js.map +0 -1
- package/dist/src/ui/themes/default.d.ts +0 -7
- package/dist/src/ui/themes/default.js +0 -143
- package/dist/src/ui/themes/default.js.map +0 -1
- package/dist/src/ui/themes/dracula.d.ts +0 -7
- package/dist/src/ui/themes/dracula.js +0 -115
- package/dist/src/ui/themes/dracula.js.map +0 -1
- package/dist/src/ui/themes/github-dark.d.ts +0 -7
- package/dist/src/ui/themes/github-dark.js +0 -138
- package/dist/src/ui/themes/github-dark.js.map +0 -1
- package/dist/src/ui/themes/github-light.d.ts +0 -7
- package/dist/src/ui/themes/github-light.js +0 -140
- package/dist/src/ui/themes/github-light.js.map +0 -1
- package/dist/src/ui/themes/googlecode.d.ts +0 -7
- package/dist/src/ui/themes/googlecode.js +0 -137
- package/dist/src/ui/themes/googlecode.js.map +0 -1
- package/dist/src/ui/themes/no-color.d.ts +0 -7
- package/dist/src/ui/themes/no-color.js +0 -115
- package/dist/src/ui/themes/no-color.js.map +0 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +0 -37
- package/dist/src/ui/themes/semantic-tokens.js +0 -94
- package/dist/src/ui/themes/semantic-tokens.js.map +0 -1
- package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
- package/dist/src/ui/themes/shades-of-purple.js +0 -304
- package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -66
- package/dist/src/ui/themes/theme-manager.js +0 -262
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.test.d.ts +0 -6
- package/dist/src/ui/themes/theme-manager.test.js +0 -142
- package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -130
- package/dist/src/ui/themes/theme.js +0 -379
- package/dist/src/ui/themes/theme.js.map +0 -1
- package/dist/src/ui/themes/xcode.d.ts +0 -7
- package/dist/src/ui/themes/xcode.js +0 -145
- package/dist/src/ui/themes/xcode.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -224
- package/dist/src/ui/types.js +0 -56
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -17
- package/dist/src/ui/utils/CodeColorizer.js +0 -111
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +0 -25
- package/dist/src/ui/utils/ConsolePatcher.js +0 -52
- package/dist/src/ui/utils/ConsolePatcher.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -111
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
- package/dist/src/ui/utils/MarkdownDisplay.js +0 -208
- package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
- package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -156
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
- package/dist/src/ui/utils/TableRenderer.js +0 -84
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.d.ts +0 -22
- package/dist/src/ui/utils/clipboardUtils.js +0 -126
- package/dist/src/ui/utils/clipboardUtils.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.test.js +0 -65
- package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -24
- package/dist/src/ui/utils/commandUtils.js +0 -131
- package/dist/src/ui/utils/commandUtils.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/commandUtils.test.js +0 -349
- package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
- package/dist/src/ui/utils/computeStats.d.ts +0 -10
- package/dist/src/ui/utils/computeStats.js +0 -57
- package/dist/src/ui/utils/computeStats.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.d.ts +0 -17
- package/dist/src/ui/utils/displayUtils.js +0 -24
- package/dist/src/ui/utils/displayUtils.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/displayUtils.test.js +0 -42
- package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
- package/dist/src/ui/utils/formatters.d.ts +0 -13
- package/dist/src/ui/utils/formatters.js +0 -56
- package/dist/src/ui/utils/formatters.js.map +0 -1
- package/dist/src/ui/utils/formatters.test.d.ts +0 -6
- package/dist/src/ui/utils/formatters.test.js +0 -56
- package/dist/src/ui/utils/formatters.test.js.map +0 -1
- package/dist/src/ui/utils/highlight.d.ts +0 -11
- package/dist/src/ui/utils/highlight.js +0 -78
- package/dist/src/ui/utils/highlight.js.map +0 -1
- package/dist/src/ui/utils/highlight.test.d.ts +0 -6
- package/dist/src/ui/utils/highlight.test.js +0 -120
- package/dist/src/ui/utils/highlight.test.js.map +0 -1
- package/dist/src/ui/utils/isNarrowWidth.d.ts +0 -6
- package/dist/src/ui/utils/isNarrowWidth.js +0 -9
- package/dist/src/ui/utils/isNarrowWidth.js.map +0 -1
- package/dist/src/ui/utils/kittyProtocolDetector.d.ts +0 -13
- package/dist/src/ui/utils/kittyProtocolDetector.js +0 -98
- package/dist/src/ui/utils/kittyProtocolDetector.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.js +0 -110
- package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.test.js +0 -42
- package/dist/src/ui/utils/markdownUtilities.test.js.map +0 -1
- package/dist/src/ui/utils/platformConstants.d.ts +0 -75
- package/dist/src/ui/utils/platformConstants.js +0 -78
- package/dist/src/ui/utils/platformConstants.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +0 -30
- package/dist/src/ui/utils/terminalSetup.js +0 -281
- package/dist/src/ui/utils/terminalSetup.js.map +0 -1
- package/dist/src/ui/utils/textUtils.d.ts +0 -41
- package/dist/src/ui/utils/textUtils.js +0 -129
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -12
- package/dist/src/ui/utils/updateCheck.js +0 -78
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.test.js +0 -145
- package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
- package/dist/src/utils/checks.d.ts +0 -19
- package/dist/src/utils/checks.js +0 -24
- package/dist/src/utils/checks.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -8
- package/dist/src/utils/cleanup.js +0 -35
- package/dist/src/utils/cleanup.js.map +0 -1
- package/dist/src/utils/commands.d.ts +0 -20
- package/dist/src/utils/commands.js +0 -53
- package/dist/src/utils/commands.js.map +0 -1
- package/dist/src/utils/commands.test.d.ts +0 -6
- package/dist/src/utils/commands.test.js +0 -115
- package/dist/src/utils/commands.test.js.map +0 -1
- package/dist/src/utils/commentJson.d.ts +0 -9
- package/dist/src/utils/commentJson.js +0 -48
- package/dist/src/utils/commentJson.js.map +0 -1
- package/dist/src/utils/commentJson.test.d.ts +0 -6
- package/dist/src/utils/commentJson.test.js +0 -146
- package/dist/src/utils/commentJson.test.js.map +0 -1
- package/dist/src/utils/deepMerge.d.ts +0 -10
- package/dist/src/utils/deepMerge.js +0 -58
- package/dist/src/utils/deepMerge.js.map +0 -1
- package/dist/src/utils/deepMerge.test.d.ts +0 -6
- package/dist/src/utils/deepMerge.test.js +0 -143
- package/dist/src/utils/deepMerge.test.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +0 -32
- package/dist/src/utils/dialogScopeUtils.js +0 -48
- package/dist/src/utils/dialogScopeUtils.js.map +0 -1
- package/dist/src/utils/envVarResolver.d.ts +0 -39
- package/dist/src/utils/envVarResolver.js +0 -97
- package/dist/src/utils/envVarResolver.js.map +0 -1
- package/dist/src/utils/envVarResolver.test.d.ts +0 -6
- package/dist/src/utils/envVarResolver.test.js +0 -221
- package/dist/src/utils/envVarResolver.test.js.map +0 -1
- package/dist/src/utils/errors.d.ts +0 -27
- package/dist/src/utils/errors.js +0 -105
- package/dist/src/utils/errors.js.map +0 -1
- package/dist/src/utils/errors.test.d.ts +0 -6
- package/dist/src/utils/errors.test.js +0 -303
- package/dist/src/utils/errors.test.js.map +0 -1
- package/dist/src/utils/events.d.ts +0 -12
- package/dist/src/utils/events.js +0 -14
- package/dist/src/utils/events.js.map +0 -1
- package/dist/src/utils/gitUtils.d.ts +0 -30
- package/dist/src/utils/gitUtils.js +0 -89
- package/dist/src/utils/gitUtils.js.map +0 -1
- package/dist/src/utils/gitUtils.test.d.ts +0 -6
- package/dist/src/utils/gitUtils.test.js +0 -113
- package/dist/src/utils/gitUtils.test.js.map +0 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +0 -11
- package/dist/src/utils/handleAutoUpdate.js +0 -102
- package/dist/src/utils/handleAutoUpdate.js.map +0 -1
- package/dist/src/utils/installationInfo.d.ts +0 -23
- package/dist/src/utils/installationInfo.js +0 -154
- package/dist/src/utils/installationInfo.js.map +0 -1
- package/dist/src/utils/installationInfo.test.d.ts +0 -6
- package/dist/src/utils/installationInfo.test.js +0 -242
- package/dist/src/utils/installationInfo.test.js.map +0 -1
- package/dist/src/utils/package.d.ts +0 -12
- package/dist/src/utils/package.js +0 -24
- package/dist/src/utils/package.js.map +0 -1
- package/dist/src/utils/processUtils.d.ts +0 -13
- package/dist/src/utils/processUtils.js +0 -18
- package/dist/src/utils/processUtils.js.map +0 -1
- package/dist/src/utils/processUtils.test.d.ts +0 -6
- package/dist/src/utils/processUtils.test.js +0 -20
- package/dist/src/utils/processUtils.test.js.map +0 -1
- package/dist/src/utils/readStdin.d.ts +0 -6
- package/dist/src/utils/readStdin.js +0 -59
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/readStdin.test.d.ts +0 -6
- package/dist/src/utils/readStdin.test.js +0 -88
- package/dist/src/utils/readStdin.test.js.map +0 -1
- package/dist/src/utils/resolvePath.d.ts +0 -6
- package/dist/src/utils/resolvePath.js +0 -21
- package/dist/src/utils/resolvePath.js.map +0 -1
- package/dist/src/utils/sandbox-macos-permissive-closed.sb +0 -32
- package/dist/src/utils/sandbox-macos-permissive-open.sb +0 -25
- package/dist/src/utils/sandbox-macos-permissive-proxied.sb +0 -37
- package/dist/src/utils/sandbox-macos-restrictive-closed.sb +0 -93
- package/dist/src/utils/sandbox-macos-restrictive-open.sb +0 -96
- package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +0 -98
- package/dist/src/utils/sandbox.d.ts +0 -7
- package/dist/src/utils/sandbox.js +0 -735
- package/dist/src/utils/sandbox.js.map +0 -1
- package/dist/src/utils/settingsUtils.d.ts +0 -144
- package/dist/src/utils/settingsUtils.js +0 -340
- package/dist/src/utils/settingsUtils.js.map +0 -1
- package/dist/src/utils/settingsUtils.test.d.ts +0 -6
- package/dist/src/utils/settingsUtils.test.js +0 -808
- package/dist/src/utils/settingsUtils.test.js.map +0 -1
- package/dist/src/utils/spawnWrapper.d.ts +0 -7
- package/dist/src/utils/spawnWrapper.js +0 -8
- package/dist/src/utils/spawnWrapper.js.map +0 -1
- package/dist/src/utils/startupWarnings.d.ts +0 -6
- package/dist/src/utils/startupWarnings.js +0 -40
- package/dist/src/utils/startupWarnings.js.map +0 -1
- package/dist/src/utils/updateEventEmitter.d.ts +0 -11
- package/dist/src/utils/updateEventEmitter.js +0 -12
- package/dist/src/utils/updateEventEmitter.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.js +0 -54
- package/dist/src/utils/userStartupWarnings.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.test.js +0 -67
- package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
- package/dist/src/utils/version.d.ts +0 -6
- package/dist/src/utils/version.js +0 -11
- package/dist/src/utils/version.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +0 -9
- package/dist/src/validateNonInterActiveAuth.js +0 -58
- package/dist/src/validateNonInterActiveAuth.js.map +0 -1
- package/dist/src/zed-integration/acp.d.ts +0 -63
- package/dist/src/zed-integration/acp.js +0 -226
- package/dist/src/zed-integration/acp.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.d.ts +0 -19
- package/dist/src/zed-integration/fileSystemService.js +0 -43
- package/dist/src/zed-integration/fileSystemService.js.map +0 -1
- package/dist/src/zed-integration/schema.d.ts +0 -11782
- package/dist/src/zed-integration/schema.js +0 -311
- package/dist/src/zed-integration/schema.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.d.ts +0 -10
- package/dist/src/zed-integration/zedIntegration.js +0 -745
- package/dist/src/zed-integration/zedIntegration.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/npm-shrinkwrap.json +0 -17168
|
@@ -1,671 +0,0 @@
|
|
|
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
|