@didim365/agent-cli 0.1.1 → 0.1.2
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/package.json +6 -3
- package/dist/src/commands/extensions/configure.test.d.ts +0 -1
- package/dist/src/commands/extensions/configure.test.js +0 -197
- package/dist/src/commands/extensions/configure.test.js.map +0 -1
- package/dist/src/commands/extensions/disable.test.d.ts +0 -6
- package/dist/src/commands/extensions/disable.test.js +0 -169
- package/dist/src/commands/extensions/disable.test.js.map +0 -1
- package/dist/src/commands/extensions/enable.test.d.ts +0 -6
- package/dist/src/commands/extensions/enable.test.js +0 -199
- package/dist/src/commands/extensions/enable.test.js.map +0 -1
- package/dist/src/commands/extensions/install.test.d.ts +0 -6
- package/dist/src/commands/extensions/install.test.js +0 -140
- package/dist/src/commands/extensions/install.test.js.map +0 -1
- package/dist/src/commands/extensions/link.test.d.ts +0 -6
- package/dist/src/commands/extensions/link.test.js +0 -137
- package/dist/src/commands/extensions/link.test.js.map +0 -1
- package/dist/src/commands/extensions/list.test.d.ts +0 -6
- package/dist/src/commands/extensions/list.test.js +0 -148
- package/dist/src/commands/extensions/list.test.js.map +0 -1
- package/dist/src/commands/extensions/new.test.d.ts +0 -6
- package/dist/src/commands/extensions/new.test.js +0 -62
- package/dist/src/commands/extensions/new.test.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.test.d.ts +0 -6
- package/dist/src/commands/extensions/uninstall.test.js +0 -199
- package/dist/src/commands/extensions/uninstall.test.js.map +0 -1
- package/dist/src/commands/extensions/update.test.d.ts +0 -6
- package/dist/src/commands/extensions/update.test.js +0 -170
- package/dist/src/commands/extensions/update.test.js.map +0 -1
- package/dist/src/commands/extensions/validate.test.d.ts +0 -6
- package/dist/src/commands/extensions/validate.test.js +0 -96
- package/dist/src/commands/extensions/validate.test.js.map +0 -1
- package/dist/src/commands/extensions.test.d.ts +0 -6
- package/dist/src/commands/extensions.test.js +0 -67
- package/dist/src/commands/extensions.test.js.map +0 -1
- package/dist/src/commands/hooks/migrate.test.d.ts +0 -6
- package/dist/src/commands/hooks/migrate.test.js +0 -388
- package/dist/src/commands/hooks/migrate.test.js.map +0 -1
- package/dist/src/commands/mcp/add.test.d.ts +0 -6
- package/dist/src/commands/mcp/add.test.js +0 -274
- package/dist/src/commands/mcp/add.test.js.map +0 -1
- package/dist/src/commands/mcp/list.test.d.ts +0 -6
- package/dist/src/commands/mcp/list.test.js +0 -150
- package/dist/src/commands/mcp/list.test.js.map +0 -1
- package/dist/src/commands/mcp/remove.test.d.ts +0 -6
- package/dist/src/commands/mcp/remove.test.js +0 -189
- package/dist/src/commands/mcp/remove.test.js.map +0 -1
- package/dist/src/commands/mcp.test.d.ts +0 -6
- package/dist/src/commands/mcp.test.js +0 -65
- package/dist/src/commands/mcp.test.js.map +0 -1
- package/dist/src/commands/skills/disable.test.d.ts +0 -6
- package/dist/src/commands/skills/disable.test.js +0 -96
- package/dist/src/commands/skills/disable.test.js.map +0 -1
- package/dist/src/commands/skills/enable.test.d.ts +0 -6
- package/dist/src/commands/skills/enable.test.js +0 -107
- package/dist/src/commands/skills/enable.test.js.map +0 -1
- package/dist/src/commands/skills/install.test.d.ts +0 -6
- package/dist/src/commands/skills/install.test.js +0 -95
- package/dist/src/commands/skills/install.test.js.map +0 -1
- package/dist/src/commands/skills/list.test.d.ts +0 -6
- package/dist/src/commands/skills/list.test.js +0 -136
- package/dist/src/commands/skills/list.test.js.map +0 -1
- package/dist/src/commands/skills/uninstall.test.d.ts +0 -6
- package/dist/src/commands/skills/uninstall.test.js +0 -61
- package/dist/src/commands/skills/uninstall.test.js.map +0 -1
- package/dist/src/commands/skills.test.d.ts +0 -6
- package/dist/src/commands/skills.test.js +0 -49
- package/dist/src/commands/skills.test.js.map +0 -1
- package/dist/src/commands/utils.test.d.ts +0 -6
- package/dist/src/commands/utils.test.js +0 -35
- package/dist/src/commands/utils.test.js.map +0 -1
- package/dist/src/config/auth.test.d.ts +0 -6
- package/dist/src/config/auth.test.js +0 -89
- package/dist/src/config/auth.test.js.map +0 -1
- package/dist/src/config/config.integration.test.d.ts +0 -6
- package/dist/src/config/config.integration.test.js +0 -205
- package/dist/src/config/config.integration.test.js.map +0 -1
- package/dist/src/config/config.test.d.ts +0 -6
- package/dist/src/config/config.test.js +0 -2413
- package/dist/src/config/config.test.js.map +0 -1
- package/dist/src/config/extension-manager-agents.test.d.ts +0 -6
- package/dist/src/config/extension-manager-agents.test.js +0 -114
- package/dist/src/config/extension-manager-agents.test.js.map +0 -1
- package/dist/src/config/extension-manager-scope.test.d.ts +0 -6
- package/dist/src/config/extension-manager-scope.test.js +0 -153
- package/dist/src/config/extension-manager-scope.test.js.map +0 -1
- package/dist/src/config/extension-manager-skills.test.d.ts +0 -6
- package/dist/src/config/extension-manager-skills.test.js +0 -148
- package/dist/src/config/extension-manager-skills.test.js.map +0 -1
- package/dist/src/config/extension.test.d.ts +0 -6
- package/dist/src/config/extension.test.js +0 -1671
- package/dist/src/config/extension.test.js.map +0 -1
- package/dist/src/config/extensions/consent.test.d.ts +0 -6
- package/dist/src/config/extensions/consent.test.js +0 -280
- package/dist/src/config/extensions/consent.test.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionEnablement.test.js +0 -404
- package/dist/src/config/extensions/extensionEnablement.test.js.map +0 -1
- package/dist/src/config/extensions/extensionSettings.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionSettings.test.js +0 -493
- package/dist/src/config/extensions/extensionSettings.test.js.map +0 -1
- package/dist/src/config/extensions/extensionUpdates.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionUpdates.test.js +0 -230
- package/dist/src/config/extensions/extensionUpdates.test.js.map +0 -1
- package/dist/src/config/extensions/github.test.d.ts +0 -6
- package/dist/src/config/extensions/github.test.js +0 -441
- package/dist/src/config/extensions/github.test.js.map +0 -1
- package/dist/src/config/extensions/github_fetch.test.d.ts +0 -6
- package/dist/src/config/extensions/github_fetch.test.js +0 -169
- package/dist/src/config/extensions/github_fetch.test.js.map +0 -1
- package/dist/src/config/extensions/storage.test.d.ts +0 -6
- package/dist/src/config/extensions/storage.test.js +0 -64
- package/dist/src/config/extensions/storage.test.js.map +0 -1
- package/dist/src/config/extensions/update.test.d.ts +0 -6
- package/dist/src/config/extensions/update.test.js +0 -231
- package/dist/src/config/extensions/update.test.js.map +0 -1
- package/dist/src/config/extensions/variables.test.d.ts +0 -6
- package/dist/src/config/extensions/variables.test.js +0 -103
- package/dist/src/config/extensions/variables.test.js.map +0 -1
- package/dist/src/config/keyBindings.test.d.ts +0 -6
- package/dist/src/config/keyBindings.test.js +0 -108
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/config/mcp/mcpServerEnablement.test.d.ts +0 -6
- package/dist/src/config/mcp/mcpServerEnablement.test.js +0 -147
- package/dist/src/config/mcp/mcpServerEnablement.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 -353
- package/dist/src/config/policy-engine.integration.test.js.map +0 -1
- package/dist/src/config/sandboxConfig.test.d.ts +0 -6
- package/dist/src/config/sandboxConfig.test.js +0 -184
- package/dist/src/config/sandboxConfig.test.js.map +0 -1
- package/dist/src/config/settingPaths.test.d.ts +0 -6
- package/dist/src/config/settingPaths.test.js +0 -22
- package/dist/src/config/settingPaths.test.js.map +0 -1
- package/dist/src/config/settings-validation.test.d.ts +0 -6
- package/dist/src/config/settings-validation.test.js +0 -370
- package/dist/src/config/settings-validation.test.js.map +0 -1
- package/dist/src/config/settings.test.d.ts +0 -6
- package/dist/src/config/settings.test.js +0 -1822
- package/dist/src/config/settings.test.js.map +0 -1
- package/dist/src/config/settingsSchema.test.d.ts +0 -6
- package/dist/src/config/settingsSchema.test.js +0 -309
- package/dist/src/config/settingsSchema.test.js.map +0 -1
- package/dist/src/config/settings_repro.test.d.ts +0 -6
- package/dist/src/config/settings_repro.test.js +0 -166
- package/dist/src/config/settings_repro.test.js.map +0 -1
- package/dist/src/config/settings_validation_warning.test.d.ts +0 -6
- package/dist/src/config/settings_validation_warning.test.js +0 -123
- package/dist/src/config/settings_validation_warning.test.js.map +0 -1
- package/dist/src/config/skills-backward-compatibility.test.d.ts +0 -6
- package/dist/src/config/skills-backward-compatibility.test.js +0 -99
- package/dist/src/config/skills-backward-compatibility.test.js.map +0 -1
- package/dist/src/config/trustedFolders.test.d.ts +0 -6
- package/dist/src/config/trustedFolders.test.js +0 -385
- package/dist/src/config/trustedFolders.test.js.map +0 -1
- package/dist/src/core/auth.test.d.ts +0 -6
- package/dist/src/core/auth.test.js +0 -47
- package/dist/src/core/auth.test.js.map +0 -1
- package/dist/src/core/initializer.test.d.ts +0 -6
- package/dist/src/core/initializer.test.js +0 -101
- package/dist/src/core/initializer.test.js.map +0 -1
- package/dist/src/core/theme.test.d.ts +0 -6
- package/dist/src/core/theme.test.js +0 -46
- package/dist/src/core/theme.test.js.map +0 -1
- package/dist/src/deferred.test.d.ts +0 -6
- package/dist/src/deferred.test.js +0 -164
- package/dist/src/deferred.test.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -1334
- package/dist/src/gemini.test.js.map +0 -1
- package/dist/src/gemini_cleanup.test.d.ts +0 -6
- package/dist/src/gemini_cleanup.test.js +0 -208
- package/dist/src/gemini_cleanup.test.js.map +0 -1
- package/dist/src/nonInteractiveCli.test.d.ts +0 -6
- package/dist/src/nonInteractiveCli.test.js +0 -1687
- package/dist/src/nonInteractiveCli.test.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
- package/dist/src/services/BuiltinCommandLoader.test.js +0 -254
- package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
- package/dist/src/services/CommandService.test.d.ts +0 -6
- package/dist/src/services/CommandService.test.js +0 -234
- package/dist/src/services/CommandService.test.js.map +0 -1
- package/dist/src/services/FileCommandLoader.test.d.ts +0 -6
- package/dist/src/services/FileCommandLoader.test.js +0 -1102
- package/dist/src/services/FileCommandLoader.test.js.map +0 -1
- package/dist/src/services/McpPromptLoader.test.d.ts +0 -6
- package/dist/src/services/McpPromptLoader.test.js +0 -411
- package/dist/src/services/McpPromptLoader.test.js.map +0 -1
- package/dist/src/services/prompt-processors/argumentProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/argumentProcessor.test.js +0 -40
- package/dist/src/services/prompt-processors/argumentProcessor.test.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.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.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/shellProcessor.test.js +0 -514
- package/dist/src/services/prompt-processors/shellProcessor.test.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.test.d.ts +0 -6
- package/dist/src/test-utils/render.test.js +0 -79
- package/dist/src/test-utils/render.test.js.map +0 -1
- package/dist/src/ui/App.test.d.ts +0 -6
- package/dist/src/ui/App.test.js +0 -218
- package/dist/src/ui/App.test.js.map +0 -1
- package/dist/src/ui/AppContainer.test.d.ts +0 -6
- package/dist/src/ui/AppContainer.test.js +0 -2072
- package/dist/src/ui/AppContainer.test.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.test.d.ts +0 -6
- package/dist/src/ui/IdeIntegrationNudge.test.js +0 -158
- package/dist/src/ui/IdeIntegrationNudge.test.js.map +0 -1
- package/dist/src/ui/auth/ApiAuthDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/ApiAuthDialog.test.js +0 -109
- package/dist/src/ui/auth/ApiAuthDialog.test.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/AuthDialog.test.js +0 -309
- package/dist/src/ui/auth/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/auth/AuthInProgress.test.d.ts +0 -6
- package/dist/src/ui/auth/AuthInProgress.test.js +0 -81
- package/dist/src/ui/auth/AuthInProgress.test.js.map +0 -1
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js +0 -66
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js.map +0 -1
- package/dist/src/ui/auth/useAuth.test.d.ts +0 -6
- package/dist/src/ui/auth/useAuth.test.js +0 -189
- package/dist/src/ui/auth/useAuth.test.js.map +0 -1
- package/dist/src/ui/commands/aboutCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/aboutCommand.test.js +0 -143
- package/dist/src/ui/commands/aboutCommand.test.js.map +0 -1
- package/dist/src/ui/commands/agentsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/agentsCommand.test.js +0 -344
- package/dist/src/ui/commands/agentsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/authCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/authCommand.test.js +0 -98
- package/dist/src/ui/commands/authCommand.test.js.map +0 -1
- package/dist/src/ui/commands/bugCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/bugCommand.test.js +0 -186
- package/dist/src/ui/commands/bugCommand.test.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/chatCommand.test.js +0 -620
- package/dist/src/ui/commands/chatCommand.test.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/clearCommand.test.js +0 -87
- package/dist/src/ui/commands/clearCommand.test.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/compressCommand.test.js +0 -98
- package/dist/src/ui/commands/compressCommand.test.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/copyCommand.test.js +0 -242
- package/dist/src/ui/commands/copyCommand.test.js.map +0 -1
- package/dist/src/ui/commands/corgiCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/corgiCommand.test.js +0 -28
- package/dist/src/ui/commands/corgiCommand.test.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/directoryCommand.test.js +0 -353
- package/dist/src/ui/commands/directoryCommand.test.js.map +0 -1
- package/dist/src/ui/commands/docsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/docsCommand.test.js +0 -72
- package/dist/src/ui/commands/docsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/editorCommand.test.js +0 -27
- package/dist/src/ui/commands/editorCommand.test.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/extensionsCommand.test.js +0 -778
- package/dist/src/ui/commands/extensionsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/helpCommand.test.js +0 -42
- package/dist/src/ui/commands/helpCommand.test.js.map +0 -1
- package/dist/src/ui/commands/hooksCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/hooksCommand.test.js +0 -572
- package/dist/src/ui/commands/hooksCommand.test.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/ideCommand.test.js +0 -203
- package/dist/src/ui/commands/ideCommand.test.js.map +0 -1
- package/dist/src/ui/commands/initCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/initCommand.test.js +0 -84
- package/dist/src/ui/commands/initCommand.test.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/mcpCommand.test.js +0 -189
- package/dist/src/ui/commands/mcpCommand.test.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/memoryCommand.test.js +0 -350
- package/dist/src/ui/commands/memoryCommand.test.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/modelCommand.test.js +0 -41
- package/dist/src/ui/commands/modelCommand.test.js.map +0 -1
- package/dist/src/ui/commands/permissionsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/permissionsCommand.test.js +0 -86
- package/dist/src/ui/commands/permissionsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/policiesCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/policiesCommand.test.js +0 -87
- package/dist/src/ui/commands/policiesCommand.test.js.map +0 -1
- package/dist/src/ui/commands/privacyCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/privacyCommand.test.js +0 -32
- package/dist/src/ui/commands/privacyCommand.test.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/quitCommand.test.js +0 -50
- package/dist/src/ui/commands/quitCommand.test.js.map +0 -1
- package/dist/src/ui/commands/restoreCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/restoreCommand.test.js +0 -190
- package/dist/src/ui/commands/restoreCommand.test.js.map +0 -1
- package/dist/src/ui/commands/rewindCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/rewindCommand.test.js +0 -242
- package/dist/src/ui/commands/rewindCommand.test.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/settingsCommand.test.js +0 -30
- package/dist/src/ui/commands/settingsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/setupGithubCommand.test.js +0 -238
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
- package/dist/src/ui/commands/skillsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/skillsCommand.test.js +0 -426
- package/dist/src/ui/commands/skillsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/statsCommand.test.js +0 -70
- package/dist/src/ui/commands/statsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/terminalSetupCommand.test.js +0 -66
- package/dist/src/ui/commands/terminalSetupCommand.test.js.map +0 -1
- package/dist/src/ui/commands/themeCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/themeCommand.test.js +0 -32
- package/dist/src/ui/commands/themeCommand.test.js.map +0 -1
- package/dist/src/ui/commands/toolsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/toolsCommand.test.js +0 -100
- package/dist/src/ui/commands/toolsCommand.test.js.map +0 -1
- package/dist/src/ui/components/AboutBox.test.d.ts +0 -6
- package/dist/src/ui/components/AboutBox.test.js +0 -59
- package/dist/src/ui/components/AboutBox.test.js.map +0 -1
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.js +0 -43
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.js.map +0 -1
- package/dist/src/ui/components/AgentConfigDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AgentConfigDialog.test.js +0 -241
- package/dist/src/ui/components/AgentConfigDialog.test.js.map +0 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +0 -190
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.test.d.ts +0 -6
- package/dist/src/ui/components/AnsiOutput.test.js +0 -92
- package/dist/src/ui/components/AnsiOutput.test.js.map +0 -1
- package/dist/src/ui/components/AppHeader.test.d.ts +0 -6
- package/dist/src/ui/components/AppHeader.test.js +0 -225
- package/dist/src/ui/components/AppHeader.test.js.map +0 -1
- package/dist/src/ui/components/ApprovalModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/ApprovalModeIndicator.test.js +0 -37
- package/dist/src/ui/components/ApprovalModeIndicator.test.js.map +0 -1
- package/dist/src/ui/components/AskUserDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AskUserDialog.test.js +0 -598
- package/dist/src/ui/components/AskUserDialog.test.js.map +0 -1
- package/dist/src/ui/components/Banner.test.d.ts +0 -6
- package/dist/src/ui/components/Banner.test.js +0 -24
- package/dist/src/ui/components/Banner.test.js.map +0 -1
- package/dist/src/ui/components/CliSpinner.test.d.ts +0 -6
- package/dist/src/ui/components/CliSpinner.test.js +0 -28
- package/dist/src/ui/components/CliSpinner.test.js.map +0 -1
- package/dist/src/ui/components/Composer.test.d.ts +0 -6
- package/dist/src/ui/components/Composer.test.js +0 -383
- package/dist/src/ui/components/Composer.test.js.map +0 -1
- package/dist/src/ui/components/ConfigInitDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ConfigInitDisplay.test.js +0 -117
- package/dist/src/ui/components/ConfigInitDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ConsentPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/ConsentPrompt.test.js +0 -77
- package/dist/src/ui/components/ConsentPrompt.test.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js +0 -26
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ContextSummaryDisplay.test.js +0 -102
- package/dist/src/ui/components/ContextSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ContextUsageDisplay.test.js +0 -43
- package/dist/src/ui/components/ContextUsageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/CopyModeWarning.test.d.ts +0 -6
- package/dist/src/ui/components/CopyModeWarning.test.js +0 -33
- package/dist/src/ui/components/CopyModeWarning.test.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.test.d.ts +0 -6
- package/dist/src/ui/components/DebugProfiler.test.js +0 -229
- package/dist/src/ui/components/DebugProfiler.test.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js +0 -39
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js.map +0 -1
- package/dist/src/ui/components/DialogManager.test.d.ts +0 -6
- package/dist/src/ui/components/DialogManager.test.js +0 -177
- package/dist/src/ui/components/DialogManager.test.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/EditorSettingsDialog.test.js +0 -119
- package/dist/src/ui/components/EditorSettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ExitWarning.test.d.ts +0 -6
- package/dist/src/ui/components/ExitWarning.test.js +0 -54
- package/dist/src/ui/components/ExitWarning.test.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/FolderTrustDialog.test.js +0 -102
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/Footer.test.d.ts +0 -6
- package/dist/src/ui/components/Footer.test.js +0 -321
- package/dist/src/ui/components/Footer.test.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.test.d.ts +0 -6
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js +0 -61
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js.map +0 -1
- package/dist/src/ui/components/GradientRegression.test.d.ts +0 -6
- package/dist/src/ui/components/GradientRegression.test.js +0 -105
- package/dist/src/ui/components/GradientRegression.test.js.map +0 -1
- package/dist/src/ui/components/Header.test.d.ts +0 -6
- package/dist/src/ui/components/Header.test.js +0 -147
- package/dist/src/ui/components/Header.test.js.map +0 -1
- package/dist/src/ui/components/Help.test.d.ts +0 -6
- package/dist/src/ui/components/Help.test.js +0 -67
- package/dist/src/ui/components/Help.test.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -207
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
- package/dist/src/ui/components/HookStatusDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HookStatusDisplay.test.js +0 -51
- package/dist/src/ui/components/HookStatusDisplay.test.js.map +0 -1
- package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js +0 -58
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/InputPrompt.test.js +0 -2596
- package/dist/src/ui/components/InputPrompt.test.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/LoadingIndicator.test.js +0 -207
- package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/components/LogoutConfirmationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js +0 -59
- package/dist/src/ui/components/LogoutConfirmationDialog.test.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.test.d.ts +0 -6
- package/dist/src/ui/components/MainContent.test.js +0 -83
- package/dist/src/ui/components/MainContent.test.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/MemoryUsageDisplay.test.js +0 -49
- package/dist/src/ui/components/MemoryUsageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ModelDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ModelDialog.test.js +0 -197
- package/dist/src/ui/components/ModelDialog.test.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ModelStatsDisplay.test.js +0 -343
- package/dist/src/ui/components/ModelStatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js +0 -162
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/NewAgentsNotification.test.d.ts +0 -6
- package/dist/src/ui/components/NewAgentsNotification.test.js +0 -48
- package/dist/src/ui/components/NewAgentsNotification.test.js.map +0 -1
- package/dist/src/ui/components/Notifications.test.d.ts +0 -6
- package/dist/src/ui/components/Notifications.test.js +0 -164
- package/dist/src/ui/components/Notifications.test.js.map +0 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +0 -162
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ProQuotaDialog.test.js +0 -191
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +0 -65
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/QuittingDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/QuittingDisplay.test.js +0 -49
- package/dist/src/ui/components/QuittingDisplay.test.js.map +0 -1
- package/dist/src/ui/components/RawMarkdownIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/RawMarkdownIndicator.test.js +0 -34
- package/dist/src/ui/components/RawMarkdownIndicator.test.js.map +0 -1
- package/dist/src/ui/components/RewindConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/RewindConfirmation.test.js +0 -53
- package/dist/src/ui/components/RewindConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/RewindViewer.test.d.ts +0 -6
- package/dist/src/ui/components/RewindViewer.test.js +0 -241
- package/dist/src/ui/components/RewindViewer.test.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser.test.d.ts +0 -6
- package/dist/src/ui/components/SessionBrowser.test.js +0 -256
- package/dist/src/ui/components/SessionBrowser.test.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/SessionSummaryDisplay.test.js +0 -75
- package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/SettingsDialog.test.js +0 -1150
- package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellInputPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/ShellInputPrompt.test.js +0 -91
- package/dist/src/ui/components/ShellInputPrompt.test.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/ShellModeIndicator.test.js +0 -17
- package/dist/src/ui/components/ShellModeIndicator.test.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.test.d.ts +0 -6
- package/dist/src/ui/components/ShowMoreLines.test.js +0 -40
- package/dist/src/ui/components/ShowMoreLines.test.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/StatsDisplay.test.js +0 -438
- package/dist/src/ui/components/StatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/StatusDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/StatusDisplay.test.js +0 -155
- package/dist/src/ui/components/StatusDisplay.test.js.map +0 -1
- package/dist/src/ui/components/StickyHeader.test.d.ts +0 -6
- package/dist/src/ui/components/StickyHeader.test.js +0 -17
- package/dist/src/ui/components/StickyHeader.test.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/SuggestionsDisplay.test.js +0 -56
- package/dist/src/ui/components/SuggestionsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/Table.test.d.ts +0 -6
- package/dist/src/ui/components/Table.test.js +0 -53
- package/dist/src/ui/components/Table.test.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ThemeDialog.test.js +0 -167
- package/dist/src/ui/components/ThemeDialog.test.js.map +0 -1
- package/dist/src/ui/components/ThemedGradient.test.d.ts +0 -6
- package/dist/src/ui/components/ThemedGradient.test.js +0 -30
- package/dist/src/ui/components/ThemedGradient.test.js.map +0 -1
- package/dist/src/ui/components/Tips.test.d.ts +0 -6
- package/dist/src/ui/components/Tips.test.js +0 -23
- package/dist/src/ui/components/Tips.test.js.map +0 -1
- package/dist/src/ui/components/ToolConfirmationQueue.test.d.ts +0 -6
- package/dist/src/ui/components/ToolConfirmationQueue.test.js +0 -71
- package/dist/src/ui/components/ToolConfirmationQueue.test.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ToolStatsDisplay.test.js +0 -227
- package/dist/src/ui/components/ToolStatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.test.d.ts +0 -6
- package/dist/src/ui/components/UpdateNotification.test.js +0 -16
- package/dist/src/ui/components/UpdateNotification.test.js.map +0 -1
- package/dist/src/ui/components/ValidationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ValidationDialog.test.js +0 -153
- package/dist/src/ui/components/ValidationDialog.test.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 -191
- package/dist/src/ui/components/messages/CompressionMessage.test.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 -240
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ErrorMessage.test.js +0 -23
- package/dist/src/ui/components/messages/ErrorMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/GeminiMessage.test.js +0 -35
- package/dist/src/ui/components/messages/GeminiMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/InfoMessage.test.js +0 -28
- package/dist/src/ui/components/messages/InfoMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.js +0 -33
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/messages/ShellToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ShellToolMessage.test.js +0 -123
- package/dist/src/ui/components/messages/ShellToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/Todo.test.d.ts +0 -6
- package/dist/src/ui/components/messages/Todo.test.js +0 -114
- package/dist/src/ui/components/messages/Todo.test.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 -232
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.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 -529
- package/dist/src/ui/components/messages/ToolGroupMessage.test.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 -217
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js +0 -89
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +0 -62
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolResultDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js +0 -114
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js +0 -134
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/UserMessage.test.js +0 -32
- package/dist/src/ui/components/messages/UserMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/WarningMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/WarningMessage.test.js +0 -23
- package/dist/src/ui/components/messages/WarningMessage.test.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/BaseSelectionList.test.js +0 -386
- package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.js +0 -434
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +0 -79
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.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/ExpandableText.test.d.ts +0 -6
- package/dist/src/ui/components/shared/ExpandableText.test.js +0 -88
- package/dist/src/ui/components/shared/ExpandableText.test.js.map +0 -1
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.js +0 -34
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.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 -90
- package/dist/src/ui/components/shared/MaxSizedBox.test.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 -134
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/Scrollable.test.d.ts +0 -6
- package/dist/src/ui/components/shared/Scrollable.test.js +0 -74
- package/dist/src/ui/components/shared/Scrollable.test.js.map +0 -1
- package/dist/src/ui/components/shared/ScrollableList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/ScrollableList.test.js +0 -241
- package/dist/src/ui/components/shared/ScrollableList.test.js.map +0 -1
- package/dist/src/ui/components/shared/TabHeader.test.d.ts +0 -6
- package/dist/src/ui/components/shared/TabHeader.test.js +0 -106
- package/dist/src/ui/components/shared/TabHeader.test.js.map +0 -1
- package/dist/src/ui/components/shared/TextInput.test.d.ts +0 -6
- package/dist/src/ui/components/shared/TextInput.test.js +0 -242
- package/dist/src/ui/components/shared/TextInput.test.js.map +0 -1
- package/dist/src/ui/components/shared/VirtualizedList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/VirtualizedList.test.js +0 -171
- package/dist/src/ui/components/shared/VirtualizedList.test.js.map +0 -1
- package/dist/src/ui/components/shared/performance.test.d.ts +0 -1
- package/dist/src/ui/components/shared/performance.test.js +0 -67
- package/dist/src/ui/components/shared/performance.test.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.test.d.ts +0 -6
- package/dist/src/ui/components/shared/text-buffer.test.js +0 -2490
- package/dist/src/ui/components/shared/text-buffer.test.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.test.d.ts +0 -6
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js +0 -964
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js.map +0 -1
- package/dist/src/ui/components/views/ChatList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ChatList.test.js +0 -45
- package/dist/src/ui/components/views/ChatList.test.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 -148
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +0 -1
- package/dist/src/ui/components/views/McpStatus.test.d.ts +0 -6
- package/dist/src/ui/components/views/McpStatus.test.js +0 -153
- package/dist/src/ui/components/views/McpStatus.test.js.map +0 -1
- package/dist/src/ui/components/views/SkillsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/SkillsList.test.js +0 -97
- package/dist/src/ui/components/views/SkillsList.test.js.map +0 -1
- package/dist/src/ui/components/views/ToolsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ToolsList.test.js +0 -45
- package/dist/src/ui/components/views/ToolsList.test.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/KeypressContext.test.js +0 -957
- package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
- package/dist/src/ui/contexts/MouseContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/MouseContext.test.js +0 -198
- package/dist/src/ui/contexts/MouseContext.test.js.map +0 -1
- package/dist/src/ui/contexts/ScrollProvider.drag.test.d.ts +0 -6
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js +0 -319
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js.map +0 -1
- package/dist/src/ui/contexts/ScrollProvider.test.d.ts +0 -6
- package/dist/src/ui/contexts/ScrollProvider.test.js +0 -377
- package/dist/src/ui/contexts/ScrollProvider.test.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/SessionContext.test.js +0 -198
- package/dist/src/ui/contexts/SessionContext.test.js.map +0 -1
- package/dist/src/ui/contexts/ToolActionsContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/ToolActionsContext.test.js +0 -166
- package/dist/src/ui/contexts/ToolActionsContext.test.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -1032
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.js +0 -183
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -521
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +0 -796
- package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/toolMapping.test.d.ts +0 -6
- package/dist/src/ui/hooks/toolMapping.test.js +0 -209
- package/dist/src/ui/hooks/toolMapping.test.js.map +0 -1
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js +0 -85
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js.map +0 -1
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.js +0 -435
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAtCompletion.test.js +0 -417
- package/dist/src/ui/hooks/useAtCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion_agents.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAtCompletion_agents.test.js +0 -87
- package/dist/src/ui/hooks/useAtCompletion_agents.test.js.map +0 -1
- package/dist/src/ui/hooks/useBanner.test.d.ts +0 -6
- package/dist/src/ui/hooks/useBanner.test.js +0 -92
- package/dist/src/ui/hooks/useBanner.test.js.map +0 -1
- package/dist/src/ui/hooks/useBatchedScroll.test.d.ts +0 -6
- package/dist/src/ui/hooks/useBatchedScroll.test.js +0 -62
- package/dist/src/ui/hooks/useBatchedScroll.test.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useCommandCompletion.test.js +0 -462
- package/dist/src/ui/hooks/useCommandCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.test.d.ts +0 -6
- package/dist/src/ui/hooks/useConsoleMessages.test.js +0 -159
- package/dist/src/ui/hooks/useConsoleMessages.test.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/useEditorSettings.test.js +0 -179
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +0 -6
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +0 -279
- package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +0 -1
- package/dist/src/ui/hooks/useFlickerDetector.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFlickerDetector.test.js +0 -106
- package/dist/src/ui/hooks/useFlickerDetector.test.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFocus.test.js +0 -131
- package/dist/src/ui/hooks/useFocus.test.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFolderTrust.test.js +0 -218
- package/dist/src/ui/hooks/useFolderTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGeminiStream.test.js +0 -2149
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.test.js +0 -183
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHistoryManager.test.js +0 -188
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useHookDisplayState.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHookDisplayState.test.js +0 -180
- package/dist/src/ui/hooks/useHookDisplayState.test.js.map +0 -1
- package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +0 -6
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +0 -214
- package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +0 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js +0 -172
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistory.test.js +0 -208
- package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +0 -238
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.test.d.ts +0 -6
- package/dist/src/ui/hooks/useKeypress.test.js +0 -205
- package/dist/src/ui/hooks/useKeypress.test.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -145
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useMcpStatus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMcpStatus.test.js +0 -69
- package/dist/src/ui/hooks/useMcpStatus.test.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +0 -62
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMessageQueue.test.js +0 -327
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
- package/dist/src/ui/hooks/useModelCommand.test.d.ts +0 -6
- package/dist/src/ui/hooks/useModelCommand.test.js +0 -45
- package/dist/src/ui/hooks/useModelCommand.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouse.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouse.test.js +0 -57
- package/dist/src/ui/hooks/useMouse.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouseClick.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouseClick.test.js +0 -59
- package/dist/src/ui/hooks/useMouseClick.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouseDoubleClick.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouseDoubleClick.test.js +0 -125
- package/dist/src/ui/hooks/useMouseDoubleClick.test.js.map +0 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +0 -291
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePhraseCycler.test.js +0 -208
- package/dist/src/ui/hooks/usePhraseCycler.test.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -104
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +0 -6
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +0 -477
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReactToolScheduler.test.js +0 -58
- package/dist/src/ui/hooks/useReactToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -169
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useRewind.test.d.ts +0 -6
- package/dist/src/ui/hooks/useRewind.test.js +0 -100
- package/dist/src/ui/hooks/useRewind.test.js.map +0 -1
- package/dist/src/ui/hooks/useSelectionList.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSelectionList.test.js +0 -848
- package/dist/src/ui/hooks/useSelectionList.test.js.map +0 -1
- package/dist/src/ui/hooks/useSessionBrowser.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSessionBrowser.test.js +0 -203
- package/dist/src/ui/hooks/useSessionBrowser.test.js.map +0 -1
- package/dist/src/ui/hooks/useSessionResume.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSessionResume.test.js +0 -336
- package/dist/src/ui/hooks/useSessionResume.test.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellHistory.test.js +0 -223
- package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellInactivityStatus.test.js +0 -84
- package/dist/src/ui/hooks/useShellInactivityStatus.test.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -9
- package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -845
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useSnowfall.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSnowfall.test.js +0 -88
- package/dist/src/ui/hooks/useSnowfall.test.js.map +0 -1
- package/dist/src/ui/hooks/useTabbedNavigation.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTabbedNavigation.test.js +0 -187
- package/dist/src/ui/hooks/useTabbedNavigation.test.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTimer.test.js +0 -119
- package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
- package/dist/src/ui/hooks/useTips.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTips.test.js +0 -33
- package/dist/src/ui/hooks/useTips.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolExecutionScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolExecutionScheduler.test.js +0 -376
- package/dist/src/ui/hooks/useToolExecutionScheduler.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 -881
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.js +0 -45
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.js.map +0 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.js +0 -97
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.js.map +0 -1
- package/dist/src/ui/hooks/vim.test.d.ts +0 -6
- package/dist/src/ui/hooks/vim.test.js +0 -1384
- package/dist/src/ui/hooks/vim.test.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.d.ts +0 -6
- package/dist/src/ui/keyMatchers.test.js +0 -386
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js +0 -121
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js +0 -34
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js +0 -34
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/PrivacyNotice.test.js +0 -62
- package/dist/src/ui/privacy/PrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/state/extensions.test.d.ts +0 -6
- package/dist/src/ui/state/extensions.test.js +0 -219
- package/dist/src/ui/state/extensions.test.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 -245
- package/dist/src/ui/themes/color-utils.test.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 -150
- package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
- package/dist/src/ui/themes/theme.test.d.ts +0 -6
- package/dist/src/ui/themes/theme.test.js +0 -174
- package/dist/src/ui/themes/theme.test.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.test.d.ts +0 -6
- package/dist/src/ui/utils/CodeColorizer.test.js +0 -38
- package/dist/src/ui/utils/CodeColorizer.test.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.d.ts +0 -6
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.js +0 -21
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
- package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -159
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.test.js +0 -359
- package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.windows.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.windows.test.js +0 -55
- package/dist/src/ui/utils/clipboardUtils.windows.test.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/commandUtils.test.js +0 -479
- package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
- package/dist/src/ui/utils/computeStats.test.d.ts +0 -6
- package/dist/src/ui/utils/computeStats.test.js +0 -271
- package/dist/src/ui/utils/computeStats.test.js.map +0 -1
- package/dist/src/ui/utils/directoryUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/directoryUtils.test.js +0 -244
- package/dist/src/ui/utils/directoryUtils.test.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/displayUtils.test.js +0 -61
- package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
- package/dist/src/ui/utils/formatters.test.d.ts +0 -6
- package/dist/src/ui/utils/formatters.test.js +0 -124
- package/dist/src/ui/utils/formatters.test.js.map +0 -1
- package/dist/src/ui/utils/highlight.test.d.ts +0 -6
- package/dist/src/ui/utils/highlight.test.js +0 -198
- package/dist/src/ui/utils/highlight.test.js.map +0 -1
- package/dist/src/ui/utils/input.test.d.ts +0 -6
- package/dist/src/ui/utils/input.test.js +0 -44
- package/dist/src/ui/utils/input.test.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/mouse.test.d.ts +0 -6
- package/dist/src/ui/utils/mouse.test.js +0 -136
- package/dist/src/ui/utils/mouse.test.js.map +0 -1
- package/dist/src/ui/utils/rewindFileOps.test.d.ts +0 -6
- package/dist/src/ui/utils/rewindFileOps.test.js +0 -375
- package/dist/src/ui/utils/rewindFileOps.test.js.map +0 -1
- package/dist/src/ui/utils/terminalCapabilityManager.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalCapabilityManager.test.js +0 -220
- package/dist/src/ui/utils/terminalCapabilityManager.test.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalSetup.test.js +0 -147
- package/dist/src/ui/utils/terminalSetup.test.js.map +0 -1
- package/dist/src/ui/utils/terminalUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalUtils.test.js +0 -40
- package/dist/src/ui/utils/terminalUtils.test.js.map +0 -1
- package/dist/src/ui/utils/textOutput.test.d.ts +0 -6
- package/dist/src/ui/utils/textOutput.test.js +0 -79
- package/dist/src/ui/utils/textOutput.test.js.map +0 -1
- package/dist/src/ui/utils/textUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/textUtils.test.js +0 -168
- package/dist/src/ui/utils/textUtils.test.js.map +0 -1
- package/dist/src/ui/utils/ui-sizing.test.d.ts +0 -6
- package/dist/src/ui/utils/ui-sizing.test.js +0 -38
- package/dist/src/ui/utils/ui-sizing.test.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.test.js +0 -134
- package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
- package/dist/src/utils/agentUtils.test.d.ts +0 -6
- package/dist/src/utils/agentUtils.test.js +0 -121
- package/dist/src/utils/agentUtils.test.js.map +0 -1
- package/dist/src/utils/checks.test.d.ts +0 -6
- package/dist/src/utils/checks.test.js +0 -29
- package/dist/src/utils/checks.test.js.map +0 -1
- package/dist/src/utils/cleanup.test.d.ts +0 -6
- package/dist/src/utils/cleanup.test.js +0 -92
- package/dist/src/utils/cleanup.test.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.test.d.ts +0 -6
- package/dist/src/utils/commentJson.test.js +0 -308
- package/dist/src/utils/commentJson.test.js.map +0 -1
- package/dist/src/utils/deepMerge.test.d.ts +0 -6
- package/dist/src/utils/deepMerge.test.js +0 -201
- package/dist/src/utils/deepMerge.test.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.test.d.ts +0 -6
- package/dist/src/utils/dialogScopeUtils.test.js +0 -81
- package/dist/src/utils/dialogScopeUtils.test.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.test.d.ts +0 -6
- package/dist/src/utils/errors.test.js +0 -435
- package/dist/src/utils/errors.test.js.map +0 -1
- package/dist/src/utils/events.test.d.ts +0 -6
- package/dist/src/utils/events.test.js +0 -24
- package/dist/src/utils/events.test.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.test.d.ts +0 -6
- package/dist/src/utils/handleAutoUpdate.test.js +0 -310
- package/dist/src/utils/handleAutoUpdate.test.js.map +0 -1
- package/dist/src/utils/installationInfo.test.d.ts +0 -6
- package/dist/src/utils/installationInfo.test.js +0 -296
- package/dist/src/utils/installationInfo.test.js.map +0 -1
- package/dist/src/utils/jsonoutput.test.d.ts +0 -6
- package/dist/src/utils/jsonoutput.test.js +0 -74
- package/dist/src/utils/jsonoutput.test.js.map +0 -1
- package/dist/src/utils/math.test.d.ts +0 -6
- package/dist/src/utils/math.test.js +0 -23
- package/dist/src/utils/math.test.js.map +0 -1
- package/dist/src/utils/persistentState.test.d.ts +0 -6
- package/dist/src/utils/persistentState.test.js +0 -68
- package/dist/src/utils/persistentState.test.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.test.d.ts +0 -6
- package/dist/src/utils/readStdin.test.js +0 -117
- package/dist/src/utils/readStdin.test.js.map +0 -1
- package/dist/src/utils/readStdin_safety.test.d.ts +0 -6
- package/dist/src/utils/readStdin_safety.test.js +0 -68
- package/dist/src/utils/readStdin_safety.test.js.map +0 -1
- package/dist/src/utils/relaunch.test.d.ts +0 -6
- package/dist/src/utils/relaunch.test.js +0 -279
- package/dist/src/utils/relaunch.test.js.map +0 -1
- package/dist/src/utils/resolvePath.test.d.ts +0 -6
- package/dist/src/utils/resolvePath.test.js +0 -34
- package/dist/src/utils/resolvePath.test.js.map +0 -1
- package/dist/src/utils/sandbox.test.d.ts +0 -6
- package/dist/src/utils/sandbox.test.js +0 -314
- package/dist/src/utils/sandbox.test.js.map +0 -1
- package/dist/src/utils/sandboxUtils.test.d.ts +0 -6
- package/dist/src/utils/sandboxUtils.test.js +0 -122
- package/dist/src/utils/sandboxUtils.test.js.map +0 -1
- package/dist/src/utils/sessionCleanup.integration.test.d.ts +0 -6
- package/dist/src/utils/sessionCleanup.integration.test.js +0 -182
- package/dist/src/utils/sessionCleanup.integration.test.js.map +0 -1
- package/dist/src/utils/sessionCleanup.test.d.ts +0 -6
- package/dist/src/utils/sessionCleanup.test.js +0 -1298
- package/dist/src/utils/sessionCleanup.test.js.map +0 -1
- package/dist/src/utils/sessionUtils.test.d.ts +0 -6
- package/dist/src/utils/sessionUtils.test.js +0 -503
- package/dist/src/utils/sessionUtils.test.js.map +0 -1
- package/dist/src/utils/sessions.test.d.ts +0 -6
- package/dist/src/utils/sessions.test.js +0 -581
- package/dist/src/utils/sessions.test.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/skillUtils.test.d.ts +0 -6
- package/dist/src/utils/skillUtils.test.js +0 -70
- package/dist/src/utils/skillUtils.test.js.map +0 -1
- package/dist/src/utils/startupWarnings.test.d.ts +0 -6
- package/dist/src/utils/startupWarnings.test.js +0 -61
- package/dist/src/utils/startupWarnings.test.js.map +0 -1
- package/dist/src/utils/updateEventEmitter.test.d.ts +0 -6
- package/dist/src/utils/updateEventEmitter.test.js +0 -18
- package/dist/src/utils/updateEventEmitter.test.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.test.js +0 -98
- package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
- package/dist/src/utils/windowTitle.test.d.ts +0 -6
- package/dist/src/utils/windowTitle.test.js +0 -216
- package/dist/src/utils/windowTitle.test.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.test.d.ts +0 -6
- package/dist/src/validateNonInterActiveAuth.test.js +0 -319
- package/dist/src/validateNonInterActiveAuth.test.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.test.d.ts +0 -6
- package/dist/src/zed-integration/fileSystemService.test.js +0 -88
- package/dist/src/zed-integration/fileSystemService.test.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.test.d.ts +0 -6
- package/dist/src/zed-integration/zedIntegration.test.js +0 -625
- package/dist/src/zed-integration/zedIntegration.test.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,957 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2025 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
import { debugLogger } from '@didim365/agent-cli-core';
|
|
8
|
-
import { act } from 'react';
|
|
9
|
-
import { renderHook } from '../../test-utils/render.js';
|
|
10
|
-
import { waitFor } from '../../test-utils/async.js';
|
|
11
|
-
import { vi, afterAll, beforeAll } from 'vitest';
|
|
12
|
-
import { KeypressProvider, useKeypressContext, ESC_TIMEOUT, FAST_RETURN_TIMEOUT, } from './KeypressContext.js';
|
|
13
|
-
import { terminalCapabilityManager } from '../utils/terminalCapabilityManager.js';
|
|
14
|
-
import { useStdin } from 'ink';
|
|
15
|
-
import { EventEmitter } from 'node:events';
|
|
16
|
-
// Mock the 'ink' module to control stdin
|
|
17
|
-
vi.mock('ink', async (importOriginal) => {
|
|
18
|
-
const original = await importOriginal();
|
|
19
|
-
return {
|
|
20
|
-
...original,
|
|
21
|
-
useStdin: vi.fn(),
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
const PASTE_START = '\x1B[200~';
|
|
25
|
-
const PASTE_END = '\x1B[201~';
|
|
26
|
-
// readline will not emit most incomplete kitty sequences but it will give
|
|
27
|
-
// up on sequences like this where the modifier (135) has more than two digits.
|
|
28
|
-
const INCOMPLETE_KITTY_SEQUENCE = '\x1b[97;135';
|
|
29
|
-
class MockStdin extends EventEmitter {
|
|
30
|
-
isTTY = true;
|
|
31
|
-
setRawMode = vi.fn();
|
|
32
|
-
on = this.addListener;
|
|
33
|
-
removeListener = super.removeListener;
|
|
34
|
-
resume = vi.fn();
|
|
35
|
-
pause = vi.fn();
|
|
36
|
-
write(text) {
|
|
37
|
-
this.emit('data', text);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
// Helper function to setup keypress test with standard configuration
|
|
41
|
-
const setupKeypressTest = () => {
|
|
42
|
-
const keyHandler = vi.fn();
|
|
43
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { children: children }));
|
|
44
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
45
|
-
act(() => result.current.subscribe(keyHandler));
|
|
46
|
-
return { result, keyHandler };
|
|
47
|
-
};
|
|
48
|
-
describe('KeypressContext', () => {
|
|
49
|
-
let stdin;
|
|
50
|
-
const mockSetRawMode = vi.fn();
|
|
51
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { children: children }));
|
|
52
|
-
beforeAll(() => vi.useFakeTimers());
|
|
53
|
-
afterAll(() => vi.useRealTimers());
|
|
54
|
-
beforeEach(() => {
|
|
55
|
-
vi.clearAllMocks();
|
|
56
|
-
stdin = new MockStdin();
|
|
57
|
-
useStdin.mockReturnValue({
|
|
58
|
-
stdin,
|
|
59
|
-
setRawMode: mockSetRawMode,
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
describe('Enter key handling', () => {
|
|
63
|
-
it.each([
|
|
64
|
-
{
|
|
65
|
-
name: 'regular enter key (keycode 13)',
|
|
66
|
-
sequence: '\x1b[13u',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: 'numpad enter key (keycode 57414)',
|
|
70
|
-
sequence: '\x1b[57414u',
|
|
71
|
-
},
|
|
72
|
-
])('should recognize $name in kitty protocol', async ({ sequence }) => {
|
|
73
|
-
const { keyHandler } = setupKeypressTest();
|
|
74
|
-
act(() => stdin.write(sequence));
|
|
75
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
76
|
-
name: 'return',
|
|
77
|
-
shift: false,
|
|
78
|
-
ctrl: false,
|
|
79
|
-
cmd: false,
|
|
80
|
-
}));
|
|
81
|
-
});
|
|
82
|
-
it('should handle backslash return', async () => {
|
|
83
|
-
const { keyHandler } = setupKeypressTest();
|
|
84
|
-
act(() => stdin.write('\\\r'));
|
|
85
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
86
|
-
name: 'return',
|
|
87
|
-
shift: true,
|
|
88
|
-
ctrl: false,
|
|
89
|
-
cmd: false,
|
|
90
|
-
}));
|
|
91
|
-
});
|
|
92
|
-
it.each([
|
|
93
|
-
{
|
|
94
|
-
modifier: 'Shift',
|
|
95
|
-
sequence: '\x1b[57414;2u',
|
|
96
|
-
expected: { shift: true, ctrl: false, cmd: false },
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
modifier: 'Ctrl',
|
|
100
|
-
sequence: '\x1b[57414;5u',
|
|
101
|
-
expected: { shift: false, ctrl: true, cmd: false },
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
modifier: 'Alt',
|
|
105
|
-
sequence: '\x1b[57414;3u',
|
|
106
|
-
expected: { shift: false, alt: true, ctrl: false, cmd: false },
|
|
107
|
-
},
|
|
108
|
-
])('should handle numpad enter with $modifier modifier', async ({ sequence, expected }) => {
|
|
109
|
-
const { keyHandler } = setupKeypressTest();
|
|
110
|
-
act(() => stdin.write(sequence));
|
|
111
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
112
|
-
name: 'return',
|
|
113
|
-
...expected,
|
|
114
|
-
}));
|
|
115
|
-
});
|
|
116
|
-
it('should recognize \n (LF) as ctrl+j', async () => {
|
|
117
|
-
const { keyHandler } = setupKeypressTest();
|
|
118
|
-
act(() => stdin.write('\n'));
|
|
119
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
120
|
-
name: 'j',
|
|
121
|
-
shift: false,
|
|
122
|
-
ctrl: true,
|
|
123
|
-
cmd: false,
|
|
124
|
-
}));
|
|
125
|
-
});
|
|
126
|
-
it('should recognize \\x1b\\n as Alt+Enter (return with meta)', async () => {
|
|
127
|
-
const { keyHandler } = setupKeypressTest();
|
|
128
|
-
act(() => stdin.write('\x1b\n'));
|
|
129
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
130
|
-
name: 'return',
|
|
131
|
-
shift: false,
|
|
132
|
-
alt: true,
|
|
133
|
-
ctrl: false,
|
|
134
|
-
cmd: false,
|
|
135
|
-
}));
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
describe('Fast return buffering', () => {
|
|
139
|
-
let kittySpy;
|
|
140
|
-
beforeEach(() => {
|
|
141
|
-
kittySpy = vi
|
|
142
|
-
.spyOn(terminalCapabilityManager, 'isKittyProtocolEnabled')
|
|
143
|
-
.mockReturnValue(false);
|
|
144
|
-
});
|
|
145
|
-
afterEach(() => kittySpy.mockRestore());
|
|
146
|
-
it('should buffer return key pressed quickly after another key', async () => {
|
|
147
|
-
const { keyHandler } = setupKeypressTest();
|
|
148
|
-
act(() => stdin.write('a'));
|
|
149
|
-
expect(keyHandler).toHaveBeenLastCalledWith(expect.objectContaining({
|
|
150
|
-
name: 'a',
|
|
151
|
-
shift: false,
|
|
152
|
-
alt: false,
|
|
153
|
-
ctrl: false,
|
|
154
|
-
cmd: false,
|
|
155
|
-
}));
|
|
156
|
-
act(() => stdin.write('\r'));
|
|
157
|
-
expect(keyHandler).toHaveBeenLastCalledWith(expect.objectContaining({
|
|
158
|
-
name: 'return',
|
|
159
|
-
sequence: '\r',
|
|
160
|
-
insertable: true,
|
|
161
|
-
shift: true,
|
|
162
|
-
alt: false,
|
|
163
|
-
ctrl: false,
|
|
164
|
-
cmd: false,
|
|
165
|
-
}));
|
|
166
|
-
});
|
|
167
|
-
it('should NOT buffer return key if delay is long enough', async () => {
|
|
168
|
-
const { keyHandler } = setupKeypressTest();
|
|
169
|
-
act(() => stdin.write('a'));
|
|
170
|
-
vi.advanceTimersByTime(FAST_RETURN_TIMEOUT + 1);
|
|
171
|
-
act(() => stdin.write('\r'));
|
|
172
|
-
expect(keyHandler).toHaveBeenLastCalledWith(expect.objectContaining({
|
|
173
|
-
name: 'return',
|
|
174
|
-
shift: false,
|
|
175
|
-
alt: false,
|
|
176
|
-
ctrl: false,
|
|
177
|
-
cmd: false,
|
|
178
|
-
}));
|
|
179
|
-
});
|
|
180
|
-
});
|
|
181
|
-
describe('Escape key handling', () => {
|
|
182
|
-
it('should recognize escape key (keycode 27) in kitty protocol', async () => {
|
|
183
|
-
const { keyHandler } = setupKeypressTest();
|
|
184
|
-
// Send kitty protocol sequence for escape: ESC[27u
|
|
185
|
-
act(() => {
|
|
186
|
-
stdin.write('\x1b[27u');
|
|
187
|
-
});
|
|
188
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
189
|
-
name: 'escape',
|
|
190
|
-
shift: false,
|
|
191
|
-
alt: false,
|
|
192
|
-
ctrl: false,
|
|
193
|
-
cmd: false,
|
|
194
|
-
}));
|
|
195
|
-
});
|
|
196
|
-
it('should handle double Escape', async () => {
|
|
197
|
-
const keyHandler = vi.fn();
|
|
198
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { children: children }));
|
|
199
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
200
|
-
act(() => result.current.subscribe(keyHandler));
|
|
201
|
-
act(() => {
|
|
202
|
-
stdin.write('\x1b');
|
|
203
|
-
vi.advanceTimersByTime(10);
|
|
204
|
-
stdin.write('\x1b');
|
|
205
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
206
|
-
vi.advanceTimersByTime(ESC_TIMEOUT);
|
|
207
|
-
expect(keyHandler).toHaveBeenNthCalledWith(1, expect.objectContaining({
|
|
208
|
-
name: 'escape',
|
|
209
|
-
shift: false,
|
|
210
|
-
alt: true,
|
|
211
|
-
cmd: false,
|
|
212
|
-
}));
|
|
213
|
-
expect(keyHandler).toHaveBeenNthCalledWith(2, expect.objectContaining({
|
|
214
|
-
name: 'escape',
|
|
215
|
-
shift: false,
|
|
216
|
-
alt: true,
|
|
217
|
-
cmd: false,
|
|
218
|
-
}));
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
it('should handle lone Escape key (keycode 27) with timeout when kitty protocol is enabled', async () => {
|
|
222
|
-
// Use real timers for this test to avoid issues with stream/buffer timing
|
|
223
|
-
const keyHandler = vi.fn();
|
|
224
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { children: children }));
|
|
225
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
226
|
-
act(() => result.current.subscribe(keyHandler));
|
|
227
|
-
// Send just ESC
|
|
228
|
-
act(() => {
|
|
229
|
-
stdin.write('\x1b');
|
|
230
|
-
// Should be buffered initially
|
|
231
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
232
|
-
vi.advanceTimersByTime(ESC_TIMEOUT + 10);
|
|
233
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
234
|
-
name: 'escape',
|
|
235
|
-
shift: false,
|
|
236
|
-
alt: true,
|
|
237
|
-
cmd: false,
|
|
238
|
-
}));
|
|
239
|
-
});
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
describe('Tab, Backspace, and Space handling', () => {
|
|
243
|
-
it.each([
|
|
244
|
-
{
|
|
245
|
-
name: 'Tab key',
|
|
246
|
-
inputSequence: '\x1b[9u',
|
|
247
|
-
expected: { name: 'tab', shift: false },
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
name: 'Shift+Tab',
|
|
251
|
-
inputSequence: '\x1b[9;2u',
|
|
252
|
-
expected: { name: 'tab', shift: true },
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
name: 'Backspace',
|
|
256
|
-
inputSequence: '\x1b[127u',
|
|
257
|
-
expected: { name: 'backspace', alt: false, cmd: false },
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
name: 'Alt+Backspace',
|
|
261
|
-
inputSequence: '\x1b[127;3u',
|
|
262
|
-
expected: { name: 'backspace', alt: true, cmd: false },
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
name: 'Ctrl+Backspace',
|
|
266
|
-
inputSequence: '\x1b[127;5u',
|
|
267
|
-
expected: { name: 'backspace', alt: false, ctrl: true, cmd: false },
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
name: 'Shift+Space',
|
|
271
|
-
inputSequence: '\x1b[32;2u',
|
|
272
|
-
expected: {
|
|
273
|
-
name: 'space',
|
|
274
|
-
shift: true,
|
|
275
|
-
insertable: true,
|
|
276
|
-
sequence: ' ',
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
name: 'Ctrl+Space',
|
|
281
|
-
inputSequence: '\x1b[32;5u',
|
|
282
|
-
expected: {
|
|
283
|
-
name: 'space',
|
|
284
|
-
ctrl: true,
|
|
285
|
-
insertable: false,
|
|
286
|
-
sequence: '\x1b[32;5u',
|
|
287
|
-
},
|
|
288
|
-
},
|
|
289
|
-
])('should recognize $name in kitty protocol', async ({ inputSequence, expected }) => {
|
|
290
|
-
const { keyHandler } = setupKeypressTest();
|
|
291
|
-
act(() => {
|
|
292
|
-
stdin.write(inputSequence);
|
|
293
|
-
});
|
|
294
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
295
|
-
...expected,
|
|
296
|
-
}));
|
|
297
|
-
});
|
|
298
|
-
});
|
|
299
|
-
describe('paste mode', () => {
|
|
300
|
-
it.each([
|
|
301
|
-
{
|
|
302
|
-
name: 'handle multiline paste as a single event',
|
|
303
|
-
pastedText: 'This \n is \n a \n multiline \n paste.',
|
|
304
|
-
writeSequence: (text) => {
|
|
305
|
-
stdin.write(PASTE_START);
|
|
306
|
-
stdin.write(text);
|
|
307
|
-
stdin.write(PASTE_END);
|
|
308
|
-
},
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
name: 'handle paste start code split over multiple writes',
|
|
312
|
-
pastedText: 'pasted content',
|
|
313
|
-
writeSequence: (text) => {
|
|
314
|
-
stdin.write(PASTE_START.slice(0, 3));
|
|
315
|
-
stdin.write(PASTE_START.slice(3));
|
|
316
|
-
stdin.write(text);
|
|
317
|
-
stdin.write(PASTE_END);
|
|
318
|
-
},
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
name: 'handle paste end code split over multiple writes',
|
|
322
|
-
pastedText: 'pasted content',
|
|
323
|
-
writeSequence: (text) => {
|
|
324
|
-
stdin.write(PASTE_START);
|
|
325
|
-
stdin.write(text);
|
|
326
|
-
stdin.write(PASTE_END.slice(0, 3));
|
|
327
|
-
stdin.write(PASTE_END.slice(3));
|
|
328
|
-
},
|
|
329
|
-
},
|
|
330
|
-
])('should $name', async ({ pastedText, writeSequence }) => {
|
|
331
|
-
const keyHandler = vi.fn();
|
|
332
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
333
|
-
act(() => result.current.subscribe(keyHandler));
|
|
334
|
-
act(() => writeSequence(pastedText));
|
|
335
|
-
await waitFor(() => {
|
|
336
|
-
expect(keyHandler).toHaveBeenCalledTimes(1);
|
|
337
|
-
});
|
|
338
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
339
|
-
name: 'paste',
|
|
340
|
-
sequence: pastedText,
|
|
341
|
-
}));
|
|
342
|
-
});
|
|
343
|
-
it('should parse valid OSC 52 response', async () => {
|
|
344
|
-
const keyHandler = vi.fn();
|
|
345
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
346
|
-
act(() => result.current.subscribe(keyHandler));
|
|
347
|
-
const base64Data = Buffer.from('Hello OSC 52').toString('base64');
|
|
348
|
-
const sequence = `\x1b]52;c;${base64Data}\x07`;
|
|
349
|
-
act(() => stdin.write(sequence));
|
|
350
|
-
await waitFor(() => {
|
|
351
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
352
|
-
name: 'paste',
|
|
353
|
-
sequence: 'Hello OSC 52',
|
|
354
|
-
}));
|
|
355
|
-
});
|
|
356
|
-
});
|
|
357
|
-
it('should handle split OSC 52 response', async () => {
|
|
358
|
-
const keyHandler = vi.fn();
|
|
359
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
360
|
-
act(() => result.current.subscribe(keyHandler));
|
|
361
|
-
const base64Data = Buffer.from('Split Paste').toString('base64');
|
|
362
|
-
const sequence = `\x1b]52;c;${base64Data}\x07`;
|
|
363
|
-
// Split the sequence
|
|
364
|
-
const part1 = sequence.slice(0, 5);
|
|
365
|
-
const part2 = sequence.slice(5);
|
|
366
|
-
act(() => stdin.write(part1));
|
|
367
|
-
act(() => stdin.write(part2));
|
|
368
|
-
await waitFor(() => {
|
|
369
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
370
|
-
name: 'paste',
|
|
371
|
-
sequence: 'Split Paste',
|
|
372
|
-
}));
|
|
373
|
-
});
|
|
374
|
-
});
|
|
375
|
-
it('should handle OSC 52 response terminated by ESC \\', async () => {
|
|
376
|
-
const keyHandler = vi.fn();
|
|
377
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
378
|
-
act(() => result.current.subscribe(keyHandler));
|
|
379
|
-
const base64Data = Buffer.from('Terminated by ST').toString('base64');
|
|
380
|
-
const sequence = `\x1b]52;c;${base64Data}\x1b\\`;
|
|
381
|
-
act(() => stdin.write(sequence));
|
|
382
|
-
await waitFor(() => {
|
|
383
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
384
|
-
name: 'paste',
|
|
385
|
-
sequence: 'Terminated by ST',
|
|
386
|
-
}));
|
|
387
|
-
});
|
|
388
|
-
});
|
|
389
|
-
it('should ignore unknown OSC sequences', async () => {
|
|
390
|
-
const keyHandler = vi.fn();
|
|
391
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
392
|
-
act(() => result.current.subscribe(keyHandler));
|
|
393
|
-
const sequence = `\x1b]1337;File=name=Zm9vCg==\x07`;
|
|
394
|
-
act(() => stdin.write(sequence));
|
|
395
|
-
await act(async () => {
|
|
396
|
-
vi.advanceTimersByTime(0);
|
|
397
|
-
});
|
|
398
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
399
|
-
});
|
|
400
|
-
it('should ignore invalid OSC 52 format', async () => {
|
|
401
|
-
const keyHandler = vi.fn();
|
|
402
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
403
|
-
act(() => result.current.subscribe(keyHandler));
|
|
404
|
-
const sequence = `\x1b]52;x;notbase64\x07`;
|
|
405
|
-
act(() => stdin.write(sequence));
|
|
406
|
-
await act(async () => {
|
|
407
|
-
vi.advanceTimersByTime(0);
|
|
408
|
-
});
|
|
409
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
|
-
describe('debug keystroke logging', () => {
|
|
413
|
-
let debugLoggerSpy;
|
|
414
|
-
beforeEach(() => {
|
|
415
|
-
debugLoggerSpy = vi
|
|
416
|
-
.spyOn(debugLogger, 'log')
|
|
417
|
-
.mockImplementation(() => { });
|
|
418
|
-
});
|
|
419
|
-
afterEach(() => {
|
|
420
|
-
debugLoggerSpy.mockRestore();
|
|
421
|
-
});
|
|
422
|
-
it('should not log keystrokes when debugKeystrokeLogging is false', async () => {
|
|
423
|
-
const keyHandler = vi.fn();
|
|
424
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { debugKeystrokeLogging: false, children: children }));
|
|
425
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
426
|
-
act(() => result.current.subscribe(keyHandler));
|
|
427
|
-
// Send a kitty sequence
|
|
428
|
-
act(() => {
|
|
429
|
-
stdin.write('\x1b[27u');
|
|
430
|
-
});
|
|
431
|
-
expect(keyHandler).toHaveBeenCalled();
|
|
432
|
-
expect(debugLoggerSpy).not.toHaveBeenCalledWith(expect.stringContaining('[DEBUG] Kitty'));
|
|
433
|
-
});
|
|
434
|
-
it('should log kitty buffer accumulation when debugKeystrokeLogging is true', async () => {
|
|
435
|
-
const keyHandler = vi.fn();
|
|
436
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { debugKeystrokeLogging: true, children: children }));
|
|
437
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
438
|
-
act(() => result.current.subscribe(keyHandler));
|
|
439
|
-
// Send a complete kitty sequence for escape
|
|
440
|
-
act(() => stdin.write('\x1b[27u'));
|
|
441
|
-
expect(debugLoggerSpy).toHaveBeenCalledWith(`[DEBUG] Raw StdIn: ${JSON.stringify('\x1b[27u')}`);
|
|
442
|
-
});
|
|
443
|
-
it('should show char codes when debugKeystrokeLogging is true even without debug mode', async () => {
|
|
444
|
-
const keyHandler = vi.fn();
|
|
445
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { debugKeystrokeLogging: true, children: children }));
|
|
446
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
447
|
-
act(() => result.current.subscribe(keyHandler));
|
|
448
|
-
// Send incomplete kitty sequence
|
|
449
|
-
act(() => stdin.write(INCOMPLETE_KITTY_SEQUENCE));
|
|
450
|
-
// Verify debug logging for accumulation
|
|
451
|
-
expect(debugLoggerSpy).toHaveBeenCalledWith(`[DEBUG] Raw StdIn: ${JSON.stringify(INCOMPLETE_KITTY_SEQUENCE)}`);
|
|
452
|
-
});
|
|
453
|
-
});
|
|
454
|
-
describe('Parameterized functional keys', () => {
|
|
455
|
-
it.each([
|
|
456
|
-
// ModifyOtherKeys
|
|
457
|
-
{ sequence: `\x1b[27;2;13~`, expected: { name: 'return', shift: true } },
|
|
458
|
-
{ sequence: `\x1b[27;5;13~`, expected: { name: 'return', ctrl: true } },
|
|
459
|
-
{ sequence: `\x1b[27;5;9~`, expected: { name: 'tab', ctrl: true } },
|
|
460
|
-
{
|
|
461
|
-
sequence: `\x1b[27;6;9~`,
|
|
462
|
-
expected: { name: 'tab', shift: true, ctrl: true },
|
|
463
|
-
},
|
|
464
|
-
// XTerm Function Key
|
|
465
|
-
{ sequence: `\x1b[1;129A`, expected: { name: 'up' } },
|
|
466
|
-
{ sequence: `\x1b[1;2H`, expected: { name: 'home', shift: true } },
|
|
467
|
-
{ sequence: `\x1b[1;5F`, expected: { name: 'end', ctrl: true } },
|
|
468
|
-
{ sequence: `\x1b[1;1P`, expected: { name: 'f1' } },
|
|
469
|
-
{
|
|
470
|
-
sequence: `\x1b[1;3Q`,
|
|
471
|
-
expected: { name: 'f2', alt: true, cmd: false },
|
|
472
|
-
},
|
|
473
|
-
// Tilde Function Keys
|
|
474
|
-
{ sequence: `\x1b[3~`, expected: { name: 'delete' } },
|
|
475
|
-
{ sequence: `\x1b[5~`, expected: { name: 'pageup' } },
|
|
476
|
-
{ sequence: `\x1b[6~`, expected: { name: 'pagedown' } },
|
|
477
|
-
{ sequence: `\x1b[1~`, expected: { name: 'home' } },
|
|
478
|
-
{ sequence: `\x1b[4~`, expected: { name: 'end' } },
|
|
479
|
-
{ sequence: `\x1b[2~`, expected: { name: 'insert' } },
|
|
480
|
-
{ sequence: `\x1b[11~`, expected: { name: 'f1' } },
|
|
481
|
-
{ sequence: `\x1b[17~`, expected: { name: 'f6' } },
|
|
482
|
-
{ sequence: `\x1b[23~`, expected: { name: 'f11' } },
|
|
483
|
-
{ sequence: `\x1b[24~`, expected: { name: 'f12' } },
|
|
484
|
-
// Reverse tabs
|
|
485
|
-
{ sequence: `\x1b[Z`, expected: { name: 'tab', shift: true } },
|
|
486
|
-
{ sequence: `\x1b[1;2Z`, expected: { name: 'tab', shift: true } },
|
|
487
|
-
// Legacy Arrows
|
|
488
|
-
{
|
|
489
|
-
sequence: `\x1b[A`,
|
|
490
|
-
expected: {
|
|
491
|
-
name: 'up',
|
|
492
|
-
shift: false,
|
|
493
|
-
alt: false,
|
|
494
|
-
ctrl: false,
|
|
495
|
-
cmd: false,
|
|
496
|
-
},
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
sequence: `\x1b[B`,
|
|
500
|
-
expected: {
|
|
501
|
-
name: 'down',
|
|
502
|
-
shift: false,
|
|
503
|
-
alt: false,
|
|
504
|
-
ctrl: false,
|
|
505
|
-
cmd: false,
|
|
506
|
-
},
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
sequence: `\x1b[C`,
|
|
510
|
-
expected: {
|
|
511
|
-
name: 'right',
|
|
512
|
-
shift: false,
|
|
513
|
-
alt: false,
|
|
514
|
-
ctrl: false,
|
|
515
|
-
cmd: false,
|
|
516
|
-
},
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
sequence: `\x1b[D`,
|
|
520
|
-
expected: {
|
|
521
|
-
name: 'left',
|
|
522
|
-
shift: false,
|
|
523
|
-
alt: false,
|
|
524
|
-
ctrl: false,
|
|
525
|
-
cmd: false,
|
|
526
|
-
},
|
|
527
|
-
},
|
|
528
|
-
// Legacy Home/End
|
|
529
|
-
{
|
|
530
|
-
sequence: `\x1b[H`,
|
|
531
|
-
expected: {
|
|
532
|
-
name: 'home',
|
|
533
|
-
shift: false,
|
|
534
|
-
alt: false,
|
|
535
|
-
ctrl: false,
|
|
536
|
-
cmd: false,
|
|
537
|
-
},
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
sequence: `\x1b[F`,
|
|
541
|
-
expected: {
|
|
542
|
-
name: 'end',
|
|
543
|
-
shift: false,
|
|
544
|
-
alt: false,
|
|
545
|
-
ctrl: false,
|
|
546
|
-
cmd: false,
|
|
547
|
-
},
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
sequence: `\x1b[5H`,
|
|
551
|
-
expected: {
|
|
552
|
-
name: 'home',
|
|
553
|
-
shift: false,
|
|
554
|
-
alt: false,
|
|
555
|
-
ctrl: true,
|
|
556
|
-
cmd: false,
|
|
557
|
-
},
|
|
558
|
-
},
|
|
559
|
-
])('should recognize sequence "$sequence" as $expected.name', ({ sequence, expected }) => {
|
|
560
|
-
const keyHandler = vi.fn();
|
|
561
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
562
|
-
act(() => result.current.subscribe(keyHandler));
|
|
563
|
-
act(() => stdin.write(sequence));
|
|
564
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining(expected));
|
|
565
|
-
});
|
|
566
|
-
});
|
|
567
|
-
describe('Double-tap and batching', () => {
|
|
568
|
-
it('should emit two delete events for double-tap CSI[3~', async () => {
|
|
569
|
-
const { keyHandler } = setupKeypressTest();
|
|
570
|
-
act(() => stdin.write(`\x1b[3~`));
|
|
571
|
-
act(() => stdin.write(`\x1b[3~`));
|
|
572
|
-
expect(keyHandler).toHaveBeenNthCalledWith(1, expect.objectContaining({
|
|
573
|
-
name: 'delete',
|
|
574
|
-
shift: false,
|
|
575
|
-
alt: false,
|
|
576
|
-
ctrl: false,
|
|
577
|
-
cmd: false,
|
|
578
|
-
}));
|
|
579
|
-
expect(keyHandler).toHaveBeenNthCalledWith(2, expect.objectContaining({
|
|
580
|
-
name: 'delete',
|
|
581
|
-
shift: false,
|
|
582
|
-
alt: false,
|
|
583
|
-
ctrl: false,
|
|
584
|
-
cmd: false,
|
|
585
|
-
}));
|
|
586
|
-
});
|
|
587
|
-
it('should parse two concatenated tilde-coded sequences in one chunk', async () => {
|
|
588
|
-
const { keyHandler } = setupKeypressTest();
|
|
589
|
-
act(() => stdin.write(`\x1b[3~\x1b[5~`));
|
|
590
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({ name: 'delete' }));
|
|
591
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({ name: 'pageup' }));
|
|
592
|
-
});
|
|
593
|
-
});
|
|
594
|
-
describe('Cross-terminal Alt key handling (simulating macOS)', () => {
|
|
595
|
-
let originalPlatform;
|
|
596
|
-
beforeEach(() => {
|
|
597
|
-
originalPlatform = process.platform;
|
|
598
|
-
Object.defineProperty(process, 'platform', {
|
|
599
|
-
value: 'darwin',
|
|
600
|
-
configurable: true,
|
|
601
|
-
});
|
|
602
|
-
});
|
|
603
|
-
afterEach(() => {
|
|
604
|
-
Object.defineProperty(process, 'platform', {
|
|
605
|
-
value: originalPlatform,
|
|
606
|
-
configurable: true,
|
|
607
|
-
});
|
|
608
|
-
});
|
|
609
|
-
// Terminals to test
|
|
610
|
-
const terminals = ['iTerm2', 'Ghostty', 'MacTerminal', 'VSCodeTerminal'];
|
|
611
|
-
// Key mappings: letter -> [keycode, accented character]
|
|
612
|
-
const keys = {
|
|
613
|
-
b: [98, '\u222B'],
|
|
614
|
-
f: [102, '\u0192'],
|
|
615
|
-
m: [109, '\u00B5'],
|
|
616
|
-
};
|
|
617
|
-
it.each(terminals.flatMap((terminal) => Object.entries(keys).map(([key, [keycode, accentedChar]]) => {
|
|
618
|
-
if (terminal === 'Ghostty') {
|
|
619
|
-
// Ghostty uses kitty protocol sequences
|
|
620
|
-
return {
|
|
621
|
-
terminal,
|
|
622
|
-
key,
|
|
623
|
-
chunk: `\x1b[${keycode};3u`,
|
|
624
|
-
expected: {
|
|
625
|
-
name: key,
|
|
626
|
-
shift: false,
|
|
627
|
-
alt: true,
|
|
628
|
-
ctrl: false,
|
|
629
|
-
cmd: false,
|
|
630
|
-
},
|
|
631
|
-
};
|
|
632
|
-
}
|
|
633
|
-
else if (terminal === 'MacTerminal') {
|
|
634
|
-
// Mac Terminal sends ESC + letter
|
|
635
|
-
return {
|
|
636
|
-
terminal,
|
|
637
|
-
key,
|
|
638
|
-
kitty: false,
|
|
639
|
-
chunk: `\x1b${key}`,
|
|
640
|
-
expected: {
|
|
641
|
-
sequence: `\x1b${key}`,
|
|
642
|
-
name: key,
|
|
643
|
-
shift: false,
|
|
644
|
-
alt: true,
|
|
645
|
-
ctrl: false,
|
|
646
|
-
cmd: false,
|
|
647
|
-
},
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
else {
|
|
651
|
-
// iTerm2 and VSCode send accented characters (å, ø, µ)
|
|
652
|
-
// Note: µ (mu) is sent with alt:false on iTerm2/VSCode but
|
|
653
|
-
// gets converted to m with alt:true
|
|
654
|
-
return {
|
|
655
|
-
terminal,
|
|
656
|
-
key,
|
|
657
|
-
chunk: accentedChar,
|
|
658
|
-
expected: {
|
|
659
|
-
name: key,
|
|
660
|
-
shift: false,
|
|
661
|
-
alt: true, // Always expect alt:true after conversion
|
|
662
|
-
ctrl: false,
|
|
663
|
-
cmd: false,
|
|
664
|
-
sequence: accentedChar,
|
|
665
|
-
},
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
})))('should handle Alt+$key in $terminal', ({ chunk, expected }) => {
|
|
669
|
-
const keyHandler = vi.fn();
|
|
670
|
-
const testWrapper = ({ children }) => (_jsx(KeypressProvider, { children: children }));
|
|
671
|
-
const { result } = renderHook(() => useKeypressContext(), {
|
|
672
|
-
wrapper: testWrapper,
|
|
673
|
-
});
|
|
674
|
-
act(() => result.current.subscribe(keyHandler));
|
|
675
|
-
act(() => stdin.write(chunk));
|
|
676
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining(expected));
|
|
677
|
-
});
|
|
678
|
-
});
|
|
679
|
-
describe('Backslash key handling', () => {
|
|
680
|
-
it('should treat backslash as a regular keystroke', () => {
|
|
681
|
-
const { keyHandler } = setupKeypressTest();
|
|
682
|
-
act(() => stdin.write('\\'));
|
|
683
|
-
// Advance timers to trigger the backslash timeout
|
|
684
|
-
act(() => {
|
|
685
|
-
vi.runAllTimers();
|
|
686
|
-
});
|
|
687
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
688
|
-
sequence: '\\',
|
|
689
|
-
shift: false,
|
|
690
|
-
alt: false,
|
|
691
|
-
ctrl: false,
|
|
692
|
-
cmd: false,
|
|
693
|
-
}));
|
|
694
|
-
});
|
|
695
|
-
});
|
|
696
|
-
it('should timeout and flush incomplete kitty sequences after 50ms', async () => {
|
|
697
|
-
const keyHandler = vi.fn();
|
|
698
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
699
|
-
act(() => result.current.subscribe(keyHandler));
|
|
700
|
-
act(() => stdin.write(INCOMPLETE_KITTY_SEQUENCE));
|
|
701
|
-
// Should not broadcast immediately
|
|
702
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
703
|
-
// Advance time just before timeout
|
|
704
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
705
|
-
act(() => vi.advanceTimersByTime(ESC_TIMEOUT - 5));
|
|
706
|
-
// Still shouldn't broadcast
|
|
707
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
708
|
-
// Advance past timeout
|
|
709
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
710
|
-
act(() => vi.advanceTimersByTime(10));
|
|
711
|
-
// Should now broadcast the incomplete sequence as regular input
|
|
712
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
713
|
-
name: 'undefined',
|
|
714
|
-
sequence: INCOMPLETE_KITTY_SEQUENCE,
|
|
715
|
-
shift: false,
|
|
716
|
-
alt: false,
|
|
717
|
-
ctrl: false,
|
|
718
|
-
cmd: false,
|
|
719
|
-
}));
|
|
720
|
-
});
|
|
721
|
-
it('should immediately flush non-kitty CSI sequences', async () => {
|
|
722
|
-
const keyHandler = vi.fn();
|
|
723
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
724
|
-
act(() => result.current.subscribe(keyHandler));
|
|
725
|
-
// Send a CSI sequence that doesn't match kitty patterns
|
|
726
|
-
// ESC[m is SGR reset, not a kitty sequence
|
|
727
|
-
act(() => stdin.write('\x1b[m'));
|
|
728
|
-
// Should broadcast immediately as it's not a valid kitty pattern
|
|
729
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
730
|
-
sequence: '\x1b[m',
|
|
731
|
-
shift: false,
|
|
732
|
-
alt: false,
|
|
733
|
-
ctrl: false,
|
|
734
|
-
cmd: false,
|
|
735
|
-
}));
|
|
736
|
-
});
|
|
737
|
-
it('should parse valid kitty sequences immediately when complete', async () => {
|
|
738
|
-
const keyHandler = vi.fn();
|
|
739
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
740
|
-
act(() => result.current.subscribe(keyHandler));
|
|
741
|
-
// Send complete kitty sequence for Ctrl+A
|
|
742
|
-
act(() => stdin.write('\x1b[97;5u'));
|
|
743
|
-
// Should parse and broadcast immediately
|
|
744
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
745
|
-
name: 'a',
|
|
746
|
-
ctrl: true,
|
|
747
|
-
}));
|
|
748
|
-
});
|
|
749
|
-
it('should handle batched kitty sequences correctly', async () => {
|
|
750
|
-
const keyHandler = vi.fn();
|
|
751
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
752
|
-
act(() => result.current.subscribe(keyHandler));
|
|
753
|
-
// Send Ctrl+a followed by Ctrl+b
|
|
754
|
-
act(() => stdin.write('\x1b[97;5u\x1b[98;5u'));
|
|
755
|
-
// Should parse both sequences
|
|
756
|
-
expect(keyHandler).toHaveBeenCalledTimes(2);
|
|
757
|
-
expect(keyHandler).toHaveBeenNthCalledWith(1, expect.objectContaining({
|
|
758
|
-
name: 'a',
|
|
759
|
-
ctrl: true,
|
|
760
|
-
}));
|
|
761
|
-
expect(keyHandler).toHaveBeenNthCalledWith(2, expect.objectContaining({
|
|
762
|
-
name: 'b',
|
|
763
|
-
ctrl: true,
|
|
764
|
-
}));
|
|
765
|
-
});
|
|
766
|
-
it('should handle mixed valid and invalid sequences', async () => {
|
|
767
|
-
const keyHandler = vi.fn();
|
|
768
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
769
|
-
act(() => result.current.subscribe(keyHandler));
|
|
770
|
-
// Send valid kitty sequence followed by invalid CSI
|
|
771
|
-
// Valid enter, then invalid sequence
|
|
772
|
-
act(() => stdin.write('\x1b[13u\x1b[!'));
|
|
773
|
-
// Should parse valid sequence and flush invalid immediately
|
|
774
|
-
expect(keyHandler).toHaveBeenCalledTimes(2);
|
|
775
|
-
expect(keyHandler).toHaveBeenNthCalledWith(1, expect.objectContaining({
|
|
776
|
-
name: 'return',
|
|
777
|
-
}));
|
|
778
|
-
expect(keyHandler).toHaveBeenNthCalledWith(2, expect.objectContaining({
|
|
779
|
-
sequence: '\x1b[!',
|
|
780
|
-
}));
|
|
781
|
-
});
|
|
782
|
-
it.each([1, ESC_TIMEOUT - 1])('should handle sequences arriving character by character with %s ms delay', async (delay) => {
|
|
783
|
-
const keyHandler = vi.fn();
|
|
784
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
785
|
-
act(() => result.current.subscribe(keyHandler));
|
|
786
|
-
// Send kitty sequence character by character
|
|
787
|
-
for (const char of '\x1b[27u') {
|
|
788
|
-
act(() => stdin.write(char));
|
|
789
|
-
// Advance time but not enough to timeout
|
|
790
|
-
vi.advanceTimersByTime(delay);
|
|
791
|
-
}
|
|
792
|
-
// Should parse once complete
|
|
793
|
-
await waitFor(() => {
|
|
794
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
795
|
-
name: 'escape',
|
|
796
|
-
}));
|
|
797
|
-
});
|
|
798
|
-
});
|
|
799
|
-
it('should reset timeout when new input arrives', async () => {
|
|
800
|
-
const keyHandler = vi.fn();
|
|
801
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
802
|
-
act(() => result.current.subscribe(keyHandler));
|
|
803
|
-
// Start incomplete sequence
|
|
804
|
-
act(() => stdin.write('\x1b[97;13'));
|
|
805
|
-
// Advance time partway
|
|
806
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
807
|
-
act(() => vi.advanceTimersByTime(30));
|
|
808
|
-
// Add more to sequence
|
|
809
|
-
act(() => stdin.write('5'));
|
|
810
|
-
// Advance time from the first timeout point
|
|
811
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
812
|
-
act(() => vi.advanceTimersByTime(25));
|
|
813
|
-
// Should not have timed out yet (timeout restarted)
|
|
814
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
815
|
-
// Complete the sequence
|
|
816
|
-
act(() => stdin.write('u'));
|
|
817
|
-
// Should now parse as complete enter key
|
|
818
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
819
|
-
name: 'a',
|
|
820
|
-
}));
|
|
821
|
-
});
|
|
822
|
-
describe('SGR Mouse Handling', () => {
|
|
823
|
-
it('should ignore SGR mouse sequences', async () => {
|
|
824
|
-
const keyHandler = vi.fn();
|
|
825
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
826
|
-
act(() => result.current.subscribe(keyHandler));
|
|
827
|
-
// Send various SGR mouse sequences
|
|
828
|
-
act(() => {
|
|
829
|
-
stdin.write('\x1b[<0;10;20M'); // Mouse press
|
|
830
|
-
stdin.write('\x1b[<0;10;20m'); // Mouse release
|
|
831
|
-
stdin.write('\x1b[<32;30;40M'); // Mouse drag
|
|
832
|
-
stdin.write('\x1b[<64;5;5M'); // Scroll up
|
|
833
|
-
});
|
|
834
|
-
// Should not broadcast any of these as keystrokes
|
|
835
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
836
|
-
});
|
|
837
|
-
it('should handle mixed SGR mouse and key sequences', async () => {
|
|
838
|
-
const keyHandler = vi.fn();
|
|
839
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
840
|
-
act(() => result.current.subscribe(keyHandler));
|
|
841
|
-
// Send mouse event then a key press
|
|
842
|
-
act(() => {
|
|
843
|
-
stdin.write('\x1b[<0;10;20M');
|
|
844
|
-
stdin.write('a');
|
|
845
|
-
});
|
|
846
|
-
// Should only broadcast 'a'
|
|
847
|
-
expect(keyHandler).toHaveBeenCalledTimes(1);
|
|
848
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
849
|
-
name: 'a',
|
|
850
|
-
sequence: 'a',
|
|
851
|
-
shift: false,
|
|
852
|
-
alt: false,
|
|
853
|
-
ctrl: false,
|
|
854
|
-
cmd: false,
|
|
855
|
-
}));
|
|
856
|
-
});
|
|
857
|
-
it('should ignore X11 mouse sequences', async () => {
|
|
858
|
-
const keyHandler = vi.fn();
|
|
859
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
860
|
-
act(() => result.current.subscribe(keyHandler));
|
|
861
|
-
// Send X11 mouse sequence: ESC [ M followed by 3 bytes
|
|
862
|
-
// Space is 32. 32+0=32 (button 0), 32+33=65 ('A', col 33), 32+34=66 ('B', row 34)
|
|
863
|
-
const x11Seq = '\x1b[M AB';
|
|
864
|
-
act(() => stdin.write(x11Seq));
|
|
865
|
-
// Should not broadcast as keystrokes
|
|
866
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
867
|
-
});
|
|
868
|
-
it('should not flush slow SGR mouse sequences as garbage', async () => {
|
|
869
|
-
const keyHandler = vi.fn();
|
|
870
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
871
|
-
act(() => result.current.subscribe(keyHandler));
|
|
872
|
-
// Send start of SGR sequence
|
|
873
|
-
act(() => stdin.write('\x1b[<'));
|
|
874
|
-
// Advance time past the normal kitty timeout (50ms)
|
|
875
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
876
|
-
act(() => vi.advanceTimersByTime(ESC_TIMEOUT + 10));
|
|
877
|
-
// Send the rest
|
|
878
|
-
act(() => stdin.write('0;37;25M'));
|
|
879
|
-
// Should NOT have flushed the prefix as garbage, and should have consumed the whole thing
|
|
880
|
-
expect(keyHandler).not.toHaveBeenCalled();
|
|
881
|
-
});
|
|
882
|
-
it('should ignore specific SGR mouse sequence sandwiched between keystrokes', async () => {
|
|
883
|
-
const keyHandler = vi.fn();
|
|
884
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
885
|
-
act(() => result.current.subscribe(keyHandler));
|
|
886
|
-
act(() => {
|
|
887
|
-
stdin.write('H');
|
|
888
|
-
stdin.write('\x1b[<64;96;8M');
|
|
889
|
-
stdin.write('I');
|
|
890
|
-
});
|
|
891
|
-
expect(keyHandler).toHaveBeenCalledTimes(2);
|
|
892
|
-
expect(keyHandler).toHaveBeenNthCalledWith(1, expect.objectContaining({ name: 'h', sequence: 'H', shift: true }));
|
|
893
|
-
expect(keyHandler).toHaveBeenNthCalledWith(2, expect.objectContaining({ name: 'i', sequence: 'I', shift: true }));
|
|
894
|
-
});
|
|
895
|
-
});
|
|
896
|
-
describe('Ignored Sequences', () => {
|
|
897
|
-
it.each([
|
|
898
|
-
{ name: 'Focus In', sequence: '\x1b[I' },
|
|
899
|
-
{ name: 'Focus Out', sequence: '\x1b[O' },
|
|
900
|
-
{ name: 'SGR Mouse Release', sequence: '\u001b[<0;44;18m' },
|
|
901
|
-
{ name: 'something mouse', sequence: '\u001b[<0;53;19M' },
|
|
902
|
-
{ name: 'another mouse', sequence: '\u001b[<0;29;19m' },
|
|
903
|
-
])('should ignore $name sequence', async ({ sequence }) => {
|
|
904
|
-
const keyHandler = vi.fn();
|
|
905
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { children: children }));
|
|
906
|
-
const { result } = renderHook(() => useKeypressContext(), {
|
|
907
|
-
wrapper,
|
|
908
|
-
});
|
|
909
|
-
act(() => result.current.subscribe(keyHandler));
|
|
910
|
-
for (const char of sequence) {
|
|
911
|
-
act(() => stdin.write(char));
|
|
912
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
913
|
-
act(() => vi.advanceTimersByTime(0));
|
|
914
|
-
}
|
|
915
|
-
act(() => stdin.write('HI'));
|
|
916
|
-
expect(keyHandler).toHaveBeenCalledTimes(2);
|
|
917
|
-
expect(keyHandler).toHaveBeenNthCalledWith(1, expect.objectContaining({ name: 'h', sequence: 'H', shift: true }));
|
|
918
|
-
expect(keyHandler).toHaveBeenNthCalledWith(2, expect.objectContaining({ name: 'i', sequence: 'I', shift: true }));
|
|
919
|
-
});
|
|
920
|
-
it('should handle F12', async () => {
|
|
921
|
-
const keyHandler = vi.fn();
|
|
922
|
-
const wrapper = ({ children }) => (_jsx(KeypressProvider, { children: children }));
|
|
923
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
924
|
-
act(() => result.current.subscribe(keyHandler));
|
|
925
|
-
act(() => {
|
|
926
|
-
stdin.write('\u001b[24~');
|
|
927
|
-
});
|
|
928
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({
|
|
929
|
-
name: 'f12',
|
|
930
|
-
sequence: '\u001b[24~',
|
|
931
|
-
shift: false,
|
|
932
|
-
alt: false,
|
|
933
|
-
ctrl: false,
|
|
934
|
-
cmd: false,
|
|
935
|
-
}));
|
|
936
|
-
});
|
|
937
|
-
});
|
|
938
|
-
describe('Individual Character Input', () => {
|
|
939
|
-
it.each([
|
|
940
|
-
'abc', // ASCII character
|
|
941
|
-
'你好', // Chinese characters
|
|
942
|
-
'こんにちは', // Japanese characters
|
|
943
|
-
'안녕하세요', // Korean characters
|
|
944
|
-
'A你B好C', // Mixed characters
|
|
945
|
-
])('should correctly handle string "%s"', async (inputString) => {
|
|
946
|
-
const keyHandler = vi.fn();
|
|
947
|
-
const { result } = renderHook(() => useKeypressContext(), { wrapper });
|
|
948
|
-
act(() => result.current.subscribe(keyHandler));
|
|
949
|
-
act(() => stdin.write(inputString));
|
|
950
|
-
expect(keyHandler).toHaveBeenCalledTimes(inputString.length);
|
|
951
|
-
for (const char of inputString) {
|
|
952
|
-
expect(keyHandler).toHaveBeenCalledWith(expect.objectContaining({ sequence: char }));
|
|
953
|
-
}
|
|
954
|
-
});
|
|
955
|
-
});
|
|
956
|
-
});
|
|
957
|
-
//# sourceMappingURL=KeypressContext.test.js.map
|