@didim365/agent-cli 0.1.0 → 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,964 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { describe, it, expect } from 'vitest';
|
|
7
|
-
import { handleVimAction } from './vim-buffer-actions.js';
|
|
8
|
-
const defaultVisualLayout = {
|
|
9
|
-
visualLines: [''],
|
|
10
|
-
logicalToVisualMap: [[[0, 0]]],
|
|
11
|
-
visualToLogicalMap: [[0, 0]],
|
|
12
|
-
transformedToLogicalMaps: [[]],
|
|
13
|
-
visualToTransformedMap: [],
|
|
14
|
-
};
|
|
15
|
-
// Helper to create test state
|
|
16
|
-
const createTestState = (lines = ['hello world'], cursorRow = 0, cursorCol = 0) => ({
|
|
17
|
-
lines,
|
|
18
|
-
cursorRow,
|
|
19
|
-
cursorCol,
|
|
20
|
-
preferredCol: null,
|
|
21
|
-
undoStack: [],
|
|
22
|
-
redoStack: [],
|
|
23
|
-
clipboard: null,
|
|
24
|
-
selectionAnchor: null,
|
|
25
|
-
viewportWidth: 80,
|
|
26
|
-
viewportHeight: 24,
|
|
27
|
-
transformationsByLine: [[]],
|
|
28
|
-
visualLayout: defaultVisualLayout,
|
|
29
|
-
pastedContent: {},
|
|
30
|
-
expandedPasteInfo: new Map(),
|
|
31
|
-
});
|
|
32
|
-
describe('vim-buffer-actions', () => {
|
|
33
|
-
describe('Movement commands', () => {
|
|
34
|
-
describe('vim_move_left', () => {
|
|
35
|
-
it('should move cursor left by count', () => {
|
|
36
|
-
const state = createTestState(['hello world'], 0, 5);
|
|
37
|
-
const action = {
|
|
38
|
-
type: 'vim_move_left',
|
|
39
|
-
payload: { count: 3 },
|
|
40
|
-
};
|
|
41
|
-
const result = handleVimAction(state, action);
|
|
42
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
43
|
-
expect(result.cursorCol).toBe(2);
|
|
44
|
-
expect(result.preferredCol).toBeNull();
|
|
45
|
-
});
|
|
46
|
-
it('should not move past beginning of line', () => {
|
|
47
|
-
const state = createTestState(['hello'], 0, 2);
|
|
48
|
-
const action = {
|
|
49
|
-
type: 'vim_move_left',
|
|
50
|
-
payload: { count: 5 },
|
|
51
|
-
};
|
|
52
|
-
const result = handleVimAction(state, action);
|
|
53
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
54
|
-
expect(result.cursorCol).toBe(0);
|
|
55
|
-
});
|
|
56
|
-
it('should wrap to previous line when at beginning', () => {
|
|
57
|
-
const state = createTestState(['line1', 'line2'], 1, 0);
|
|
58
|
-
const action = {
|
|
59
|
-
type: 'vim_move_left',
|
|
60
|
-
payload: { count: 1 },
|
|
61
|
-
};
|
|
62
|
-
const result = handleVimAction(state, action);
|
|
63
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
64
|
-
expect(result.cursorRow).toBe(0);
|
|
65
|
-
expect(result.cursorCol).toBe(4); // On last character '1' of 'line1'
|
|
66
|
-
});
|
|
67
|
-
it('should handle multiple line wrapping', () => {
|
|
68
|
-
const state = createTestState(['abc', 'def', 'ghi'], 2, 0);
|
|
69
|
-
const action = {
|
|
70
|
-
type: 'vim_move_left',
|
|
71
|
-
payload: { count: 5 },
|
|
72
|
-
};
|
|
73
|
-
const result = handleVimAction(state, action);
|
|
74
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
75
|
-
expect(result.cursorRow).toBe(0);
|
|
76
|
-
expect(result.cursorCol).toBe(1); // On 'b' after 5 left movements
|
|
77
|
-
});
|
|
78
|
-
it('should correctly handle h/l movement between lines', () => {
|
|
79
|
-
// Start at end of first line at 'd' (position 10)
|
|
80
|
-
let state = createTestState(['hello world', 'foo bar'], 0, 10);
|
|
81
|
-
// Move right - should go to beginning of next line
|
|
82
|
-
state = handleVimAction(state, {
|
|
83
|
-
type: 'vim_move_right',
|
|
84
|
-
payload: { count: 1 },
|
|
85
|
-
});
|
|
86
|
-
expect(state).toHaveOnlyValidCharacters();
|
|
87
|
-
expect(state.cursorRow).toBe(1);
|
|
88
|
-
expect(state.cursorCol).toBe(0); // Should be on 'f'
|
|
89
|
-
// Move left - should go back to end of previous line on 'd'
|
|
90
|
-
state = handleVimAction(state, {
|
|
91
|
-
type: 'vim_move_left',
|
|
92
|
-
payload: { count: 1 },
|
|
93
|
-
});
|
|
94
|
-
expect(state).toHaveOnlyValidCharacters();
|
|
95
|
-
expect(state.cursorRow).toBe(0);
|
|
96
|
-
expect(state.cursorCol).toBe(10); // Should be on 'd', not past it
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
describe('vim_move_right', () => {
|
|
100
|
-
it('should move cursor right by count', () => {
|
|
101
|
-
const state = createTestState(['hello world'], 0, 2);
|
|
102
|
-
const action = {
|
|
103
|
-
type: 'vim_move_right',
|
|
104
|
-
payload: { count: 3 },
|
|
105
|
-
};
|
|
106
|
-
const result = handleVimAction(state, action);
|
|
107
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
108
|
-
expect(result.cursorCol).toBe(5);
|
|
109
|
-
});
|
|
110
|
-
it('should not move past last character of line', () => {
|
|
111
|
-
const state = createTestState(['hello'], 0, 3);
|
|
112
|
-
const action = {
|
|
113
|
-
type: 'vim_move_right',
|
|
114
|
-
payload: { count: 5 },
|
|
115
|
-
};
|
|
116
|
-
const result = handleVimAction(state, action);
|
|
117
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
118
|
-
expect(result.cursorCol).toBe(4); // Last character of 'hello'
|
|
119
|
-
});
|
|
120
|
-
it('should wrap to next line when at end', () => {
|
|
121
|
-
const state = createTestState(['line1', 'line2'], 0, 4); // At end of 'line1'
|
|
122
|
-
const action = {
|
|
123
|
-
type: 'vim_move_right',
|
|
124
|
-
payload: { count: 1 },
|
|
125
|
-
};
|
|
126
|
-
const result = handleVimAction(state, action);
|
|
127
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
128
|
-
expect(result.cursorRow).toBe(1);
|
|
129
|
-
expect(result.cursorCol).toBe(0);
|
|
130
|
-
});
|
|
131
|
-
it('should skip over combining marks to avoid cursor disappearing', () => {
|
|
132
|
-
// Test case for combining character cursor disappearing bug
|
|
133
|
-
// "café test" where é is represented as e + combining acute accent
|
|
134
|
-
const state = createTestState(['cafe\u0301 test'], 0, 2); // Start at 'f'
|
|
135
|
-
const action = {
|
|
136
|
-
type: 'vim_move_right',
|
|
137
|
-
payload: { count: 1 },
|
|
138
|
-
};
|
|
139
|
-
const result = handleVimAction(state, action);
|
|
140
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
141
|
-
expect(result.cursorCol).toBe(3); // Should be on 'e' of 'café'
|
|
142
|
-
// Move right again - should skip combining mark and land on space
|
|
143
|
-
const result2 = handleVimAction(result, action);
|
|
144
|
-
expect(result2).toHaveOnlyValidCharacters();
|
|
145
|
-
expect(result2.cursorCol).toBe(5); // Should be on space after 'café'
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
describe('vim_move_up', () => {
|
|
149
|
-
it('should move cursor up by count', () => {
|
|
150
|
-
const state = createTestState(['line1', 'line2', 'line3'], 2, 3);
|
|
151
|
-
const action = { type: 'vim_move_up', payload: { count: 2 } };
|
|
152
|
-
const result = handleVimAction(state, action);
|
|
153
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
154
|
-
expect(result.cursorRow).toBe(0);
|
|
155
|
-
expect(result.cursorCol).toBe(3);
|
|
156
|
-
});
|
|
157
|
-
it('should not move past first line', () => {
|
|
158
|
-
const state = createTestState(['line1', 'line2'], 1, 3);
|
|
159
|
-
const action = { type: 'vim_move_up', payload: { count: 5 } };
|
|
160
|
-
const result = handleVimAction(state, action);
|
|
161
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
162
|
-
expect(result.cursorRow).toBe(0);
|
|
163
|
-
});
|
|
164
|
-
it('should adjust column for shorter lines', () => {
|
|
165
|
-
const state = createTestState(['short', 'very long line'], 1, 10);
|
|
166
|
-
const action = { type: 'vim_move_up', payload: { count: 1 } };
|
|
167
|
-
const result = handleVimAction(state, action);
|
|
168
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
169
|
-
expect(result.cursorRow).toBe(0);
|
|
170
|
-
expect(result.cursorCol).toBe(4); // Last character 't' of 'short', not past it
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
describe('vim_move_down', () => {
|
|
174
|
-
it('should move cursor down by count', () => {
|
|
175
|
-
const state = createTestState(['line1', 'line2', 'line3'], 0, 2);
|
|
176
|
-
const action = {
|
|
177
|
-
type: 'vim_move_down',
|
|
178
|
-
payload: { count: 2 },
|
|
179
|
-
};
|
|
180
|
-
const result = handleVimAction(state, action);
|
|
181
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
182
|
-
expect(result.cursorRow).toBe(2);
|
|
183
|
-
expect(result.cursorCol).toBe(2);
|
|
184
|
-
});
|
|
185
|
-
it('should not move past last line', () => {
|
|
186
|
-
const state = createTestState(['line1', 'line2'], 0, 2);
|
|
187
|
-
const action = {
|
|
188
|
-
type: 'vim_move_down',
|
|
189
|
-
payload: { count: 5 },
|
|
190
|
-
};
|
|
191
|
-
const result = handleVimAction(state, action);
|
|
192
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
193
|
-
expect(result.cursorRow).toBe(1);
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
describe('vim_move_word_forward', () => {
|
|
197
|
-
it('should move to start of next word', () => {
|
|
198
|
-
const state = createTestState(['hello world test'], 0, 0);
|
|
199
|
-
const action = {
|
|
200
|
-
type: 'vim_move_word_forward',
|
|
201
|
-
payload: { count: 1 },
|
|
202
|
-
};
|
|
203
|
-
const result = handleVimAction(state, action);
|
|
204
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
205
|
-
expect(result.cursorCol).toBe(6); // Start of 'world'
|
|
206
|
-
});
|
|
207
|
-
it('should handle multiple words', () => {
|
|
208
|
-
const state = createTestState(['hello world test'], 0, 0);
|
|
209
|
-
const action = {
|
|
210
|
-
type: 'vim_move_word_forward',
|
|
211
|
-
payload: { count: 2 },
|
|
212
|
-
};
|
|
213
|
-
const result = handleVimAction(state, action);
|
|
214
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
215
|
-
expect(result.cursorCol).toBe(12); // Start of 'test'
|
|
216
|
-
});
|
|
217
|
-
it('should handle punctuation correctly', () => {
|
|
218
|
-
const state = createTestState(['hello, world!'], 0, 0);
|
|
219
|
-
const action = {
|
|
220
|
-
type: 'vim_move_word_forward',
|
|
221
|
-
payload: { count: 1 },
|
|
222
|
-
};
|
|
223
|
-
const result = handleVimAction(state, action);
|
|
224
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
225
|
-
expect(result.cursorCol).toBe(5); // Start of ','
|
|
226
|
-
});
|
|
227
|
-
it('should move across empty lines when starting from within a word', () => {
|
|
228
|
-
// Testing the exact scenario: cursor on 'w' of 'hello world', w should move to next line
|
|
229
|
-
const state = createTestState(['hello world', ''], 0, 6); // At 'w' of 'world'
|
|
230
|
-
const action = {
|
|
231
|
-
type: 'vim_move_word_forward',
|
|
232
|
-
payload: { count: 1 },
|
|
233
|
-
};
|
|
234
|
-
const result = handleVimAction(state, action);
|
|
235
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
236
|
-
expect(result.cursorRow).toBe(1);
|
|
237
|
-
expect(result.cursorCol).toBe(0); // Beginning of empty line
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
describe('vim_move_word_backward', () => {
|
|
241
|
-
it('should move to start of previous word', () => {
|
|
242
|
-
const state = createTestState(['hello world test'], 0, 12);
|
|
243
|
-
const action = {
|
|
244
|
-
type: 'vim_move_word_backward',
|
|
245
|
-
payload: { count: 1 },
|
|
246
|
-
};
|
|
247
|
-
const result = handleVimAction(state, action);
|
|
248
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
249
|
-
expect(result.cursorCol).toBe(6); // Start of 'world'
|
|
250
|
-
});
|
|
251
|
-
it('should handle multiple words', () => {
|
|
252
|
-
const state = createTestState(['hello world test'], 0, 12);
|
|
253
|
-
const action = {
|
|
254
|
-
type: 'vim_move_word_backward',
|
|
255
|
-
payload: { count: 2 },
|
|
256
|
-
};
|
|
257
|
-
const result = handleVimAction(state, action);
|
|
258
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
259
|
-
expect(result.cursorCol).toBe(0); // Start of 'hello'
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
describe('vim_move_word_end', () => {
|
|
263
|
-
it('should move to end of current word', () => {
|
|
264
|
-
const state = createTestState(['hello world'], 0, 0);
|
|
265
|
-
const action = {
|
|
266
|
-
type: 'vim_move_word_end',
|
|
267
|
-
payload: { count: 1 },
|
|
268
|
-
};
|
|
269
|
-
const result = handleVimAction(state, action);
|
|
270
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
271
|
-
expect(result.cursorCol).toBe(4); // End of 'hello'
|
|
272
|
-
});
|
|
273
|
-
it('should move to end of next word if already at word end', () => {
|
|
274
|
-
const state = createTestState(['hello world'], 0, 4);
|
|
275
|
-
const action = {
|
|
276
|
-
type: 'vim_move_word_end',
|
|
277
|
-
payload: { count: 1 },
|
|
278
|
-
};
|
|
279
|
-
const result = handleVimAction(state, action);
|
|
280
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
281
|
-
expect(result.cursorCol).toBe(10); // End of 'world'
|
|
282
|
-
});
|
|
283
|
-
it('should move across empty lines when at word end', () => {
|
|
284
|
-
const state = createTestState(['hello world', '', 'test'], 0, 10); // At 'd' of 'world'
|
|
285
|
-
const action = {
|
|
286
|
-
type: 'vim_move_word_end',
|
|
287
|
-
payload: { count: 1 },
|
|
288
|
-
};
|
|
289
|
-
const result = handleVimAction(state, action);
|
|
290
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
291
|
-
expect(result.cursorRow).toBe(2);
|
|
292
|
-
expect(result.cursorCol).toBe(3); // Should be at 't' (end of 'test')
|
|
293
|
-
});
|
|
294
|
-
it('should handle consecutive word-end movements across empty lines', () => {
|
|
295
|
-
// Testing the exact scenario: cursor on 'w' of world, press 'e' twice
|
|
296
|
-
const state = createTestState(['hello world', ''], 0, 6); // At 'w' of 'world'
|
|
297
|
-
// First 'e' should move to 'd' of 'world'
|
|
298
|
-
let result = handleVimAction(state, {
|
|
299
|
-
type: 'vim_move_word_end',
|
|
300
|
-
payload: { count: 1 },
|
|
301
|
-
});
|
|
302
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
303
|
-
expect(result.cursorRow).toBe(0);
|
|
304
|
-
expect(result.cursorCol).toBe(10); // At 'd' of 'world'
|
|
305
|
-
// Second 'e' should move to the empty line (end of file in this case)
|
|
306
|
-
result = handleVimAction(result, {
|
|
307
|
-
type: 'vim_move_word_end',
|
|
308
|
-
payload: { count: 1 },
|
|
309
|
-
});
|
|
310
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
311
|
-
expect(result.cursorRow).toBe(1);
|
|
312
|
-
expect(result.cursorCol).toBe(0); // Empty line has col 0
|
|
313
|
-
});
|
|
314
|
-
it('should handle combining characters - advance from end of base character', () => {
|
|
315
|
-
// Test case for combining character word end bug
|
|
316
|
-
// "café test" where é is represented as e + combining acute accent
|
|
317
|
-
const state = createTestState(['cafe\u0301 test'], 0, 0); // Start at 'c'
|
|
318
|
-
// First 'e' command should move to the 'e' (position 3)
|
|
319
|
-
let result = handleVimAction(state, {
|
|
320
|
-
type: 'vim_move_word_end',
|
|
321
|
-
payload: { count: 1 },
|
|
322
|
-
});
|
|
323
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
324
|
-
expect(result.cursorCol).toBe(3); // At 'e' of café
|
|
325
|
-
// Second 'e' command should advance to end of "test" (position 9), not stay stuck
|
|
326
|
-
result = handleVimAction(result, {
|
|
327
|
-
type: 'vim_move_word_end',
|
|
328
|
-
payload: { count: 1 },
|
|
329
|
-
});
|
|
330
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
331
|
-
expect(result.cursorCol).toBe(9); // At 't' of "test"
|
|
332
|
-
});
|
|
333
|
-
it('should handle precomposed characters with diacritics', () => {
|
|
334
|
-
// Test case with precomposed é for comparison
|
|
335
|
-
const state = createTestState(['café test'], 0, 0);
|
|
336
|
-
// First 'e' command should move to the 'é' (position 3)
|
|
337
|
-
let result = handleVimAction(state, {
|
|
338
|
-
type: 'vim_move_word_end',
|
|
339
|
-
payload: { count: 1 },
|
|
340
|
-
});
|
|
341
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
342
|
-
expect(result.cursorCol).toBe(3); // At 'é' of café
|
|
343
|
-
// Second 'e' command should advance to end of "test" (position 8)
|
|
344
|
-
result = handleVimAction(result, {
|
|
345
|
-
type: 'vim_move_word_end',
|
|
346
|
-
payload: { count: 1 },
|
|
347
|
-
});
|
|
348
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
349
|
-
expect(result.cursorCol).toBe(8); // At 't' of "test"
|
|
350
|
-
});
|
|
351
|
-
});
|
|
352
|
-
describe('Position commands', () => {
|
|
353
|
-
it('vim_move_to_line_start should move to column 0', () => {
|
|
354
|
-
const state = createTestState(['hello world'], 0, 5);
|
|
355
|
-
const action = { type: 'vim_move_to_line_start' };
|
|
356
|
-
const result = handleVimAction(state, action);
|
|
357
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
358
|
-
expect(result.cursorCol).toBe(0);
|
|
359
|
-
});
|
|
360
|
-
it('vim_move_to_line_end should move to last character', () => {
|
|
361
|
-
const state = createTestState(['hello world'], 0, 0);
|
|
362
|
-
const action = { type: 'vim_move_to_line_end' };
|
|
363
|
-
const result = handleVimAction(state, action);
|
|
364
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
365
|
-
expect(result.cursorCol).toBe(10); // Last character of 'hello world'
|
|
366
|
-
});
|
|
367
|
-
it('vim_move_to_first_nonwhitespace should skip leading whitespace', () => {
|
|
368
|
-
const state = createTestState([' hello world'], 0, 0);
|
|
369
|
-
const action = { type: 'vim_move_to_first_nonwhitespace' };
|
|
370
|
-
const result = handleVimAction(state, action);
|
|
371
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
372
|
-
expect(result.cursorCol).toBe(3); // Position of 'h'
|
|
373
|
-
});
|
|
374
|
-
it('vim_move_to_first_line should move to row 0', () => {
|
|
375
|
-
const state = createTestState(['line1', 'line2', 'line3'], 2, 5);
|
|
376
|
-
const action = { type: 'vim_move_to_first_line' };
|
|
377
|
-
const result = handleVimAction(state, action);
|
|
378
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
379
|
-
expect(result.cursorRow).toBe(0);
|
|
380
|
-
expect(result.cursorCol).toBe(0);
|
|
381
|
-
});
|
|
382
|
-
it('vim_move_to_last_line should move to last row', () => {
|
|
383
|
-
const state = createTestState(['line1', 'line2', 'line3'], 0, 5);
|
|
384
|
-
const action = { type: 'vim_move_to_last_line' };
|
|
385
|
-
const result = handleVimAction(state, action);
|
|
386
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
387
|
-
expect(result.cursorRow).toBe(2);
|
|
388
|
-
expect(result.cursorCol).toBe(0);
|
|
389
|
-
});
|
|
390
|
-
it('vim_move_to_line should move to specific line', () => {
|
|
391
|
-
const state = createTestState(['line1', 'line2', 'line3'], 0, 5);
|
|
392
|
-
const action = {
|
|
393
|
-
type: 'vim_move_to_line',
|
|
394
|
-
payload: { lineNumber: 2 },
|
|
395
|
-
};
|
|
396
|
-
const result = handleVimAction(state, action);
|
|
397
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
398
|
-
expect(result.cursorRow).toBe(1); // 0-indexed
|
|
399
|
-
expect(result.cursorCol).toBe(0);
|
|
400
|
-
});
|
|
401
|
-
it('vim_move_to_line should clamp to valid range', () => {
|
|
402
|
-
const state = createTestState(['line1', 'line2'], 0, 0);
|
|
403
|
-
const action = {
|
|
404
|
-
type: 'vim_move_to_line',
|
|
405
|
-
payload: { lineNumber: 10 },
|
|
406
|
-
};
|
|
407
|
-
const result = handleVimAction(state, action);
|
|
408
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
409
|
-
expect(result.cursorRow).toBe(1); // Last line
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
|
-
});
|
|
413
|
-
describe('Edit commands', () => {
|
|
414
|
-
describe('vim_delete_char', () => {
|
|
415
|
-
it('should delete single character', () => {
|
|
416
|
-
const state = createTestState(['hello'], 0, 1);
|
|
417
|
-
const action = {
|
|
418
|
-
type: 'vim_delete_char',
|
|
419
|
-
payload: { count: 1 },
|
|
420
|
-
};
|
|
421
|
-
const result = handleVimAction(state, action);
|
|
422
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
423
|
-
expect(result.lines[0]).toBe('hllo');
|
|
424
|
-
expect(result.cursorCol).toBe(1);
|
|
425
|
-
});
|
|
426
|
-
it('should delete multiple characters', () => {
|
|
427
|
-
const state = createTestState(['hello'], 0, 1);
|
|
428
|
-
const action = {
|
|
429
|
-
type: 'vim_delete_char',
|
|
430
|
-
payload: { count: 3 },
|
|
431
|
-
};
|
|
432
|
-
const result = handleVimAction(state, action);
|
|
433
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
434
|
-
expect(result.lines[0]).toBe('ho');
|
|
435
|
-
expect(result.cursorCol).toBe(1);
|
|
436
|
-
});
|
|
437
|
-
it('should not delete past end of line', () => {
|
|
438
|
-
const state = createTestState(['hello'], 0, 3);
|
|
439
|
-
const action = {
|
|
440
|
-
type: 'vim_delete_char',
|
|
441
|
-
payload: { count: 5 },
|
|
442
|
-
};
|
|
443
|
-
const result = handleVimAction(state, action);
|
|
444
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
445
|
-
expect(result.lines[0]).toBe('hel');
|
|
446
|
-
expect(result.cursorCol).toBe(3);
|
|
447
|
-
});
|
|
448
|
-
it('should do nothing at end of line', () => {
|
|
449
|
-
const state = createTestState(['hello'], 0, 5);
|
|
450
|
-
const action = {
|
|
451
|
-
type: 'vim_delete_char',
|
|
452
|
-
payload: { count: 1 },
|
|
453
|
-
};
|
|
454
|
-
const result = handleVimAction(state, action);
|
|
455
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
456
|
-
expect(result.lines[0]).toBe('hello');
|
|
457
|
-
expect(result.cursorCol).toBe(5);
|
|
458
|
-
});
|
|
459
|
-
});
|
|
460
|
-
describe('vim_delete_word_forward', () => {
|
|
461
|
-
it('should delete from cursor to next word start', () => {
|
|
462
|
-
const state = createTestState(['hello world test'], 0, 0);
|
|
463
|
-
const action = {
|
|
464
|
-
type: 'vim_delete_word_forward',
|
|
465
|
-
payload: { count: 1 },
|
|
466
|
-
};
|
|
467
|
-
const result = handleVimAction(state, action);
|
|
468
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
469
|
-
expect(result.lines[0]).toBe('world test');
|
|
470
|
-
expect(result.cursorCol).toBe(0);
|
|
471
|
-
});
|
|
472
|
-
it('should delete multiple words', () => {
|
|
473
|
-
const state = createTestState(['hello world test'], 0, 0);
|
|
474
|
-
const action = {
|
|
475
|
-
type: 'vim_delete_word_forward',
|
|
476
|
-
payload: { count: 2 },
|
|
477
|
-
};
|
|
478
|
-
const result = handleVimAction(state, action);
|
|
479
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
480
|
-
expect(result.lines[0]).toBe('test');
|
|
481
|
-
expect(result.cursorCol).toBe(0);
|
|
482
|
-
});
|
|
483
|
-
it('should delete to end if no more words', () => {
|
|
484
|
-
const state = createTestState(['hello world'], 0, 6);
|
|
485
|
-
const action = {
|
|
486
|
-
type: 'vim_delete_word_forward',
|
|
487
|
-
payload: { count: 2 },
|
|
488
|
-
};
|
|
489
|
-
const result = handleVimAction(state, action);
|
|
490
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
491
|
-
expect(result.lines[0]).toBe('hello ');
|
|
492
|
-
expect(result.cursorCol).toBe(6);
|
|
493
|
-
});
|
|
494
|
-
});
|
|
495
|
-
describe('vim_delete_word_backward', () => {
|
|
496
|
-
it('should delete from cursor to previous word start', () => {
|
|
497
|
-
const state = createTestState(['hello world test'], 0, 12);
|
|
498
|
-
const action = {
|
|
499
|
-
type: 'vim_delete_word_backward',
|
|
500
|
-
payload: { count: 1 },
|
|
501
|
-
};
|
|
502
|
-
const result = handleVimAction(state, action);
|
|
503
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
504
|
-
expect(result.lines[0]).toBe('hello test');
|
|
505
|
-
expect(result.cursorCol).toBe(6);
|
|
506
|
-
});
|
|
507
|
-
it('should delete multiple words backward', () => {
|
|
508
|
-
const state = createTestState(['hello world test'], 0, 12);
|
|
509
|
-
const action = {
|
|
510
|
-
type: 'vim_delete_word_backward',
|
|
511
|
-
payload: { count: 2 },
|
|
512
|
-
};
|
|
513
|
-
const result = handleVimAction(state, action);
|
|
514
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
515
|
-
expect(result.lines[0]).toBe('test');
|
|
516
|
-
expect(result.cursorCol).toBe(0);
|
|
517
|
-
});
|
|
518
|
-
});
|
|
519
|
-
describe('vim_delete_line', () => {
|
|
520
|
-
it('should delete current line', () => {
|
|
521
|
-
const state = createTestState(['line1', 'line2', 'line3'], 1, 2);
|
|
522
|
-
const action = {
|
|
523
|
-
type: 'vim_delete_line',
|
|
524
|
-
payload: { count: 1 },
|
|
525
|
-
};
|
|
526
|
-
const result = handleVimAction(state, action);
|
|
527
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
528
|
-
expect(result.lines).toEqual(['line1', 'line3']);
|
|
529
|
-
expect(result.cursorRow).toBe(1);
|
|
530
|
-
expect(result.cursorCol).toBe(0);
|
|
531
|
-
});
|
|
532
|
-
it('should delete multiple lines', () => {
|
|
533
|
-
const state = createTestState(['line1', 'line2', 'line3'], 0, 2);
|
|
534
|
-
const action = {
|
|
535
|
-
type: 'vim_delete_line',
|
|
536
|
-
payload: { count: 2 },
|
|
537
|
-
};
|
|
538
|
-
const result = handleVimAction(state, action);
|
|
539
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
540
|
-
expect(result.lines).toEqual(['line3']);
|
|
541
|
-
expect(result.cursorRow).toBe(0);
|
|
542
|
-
expect(result.cursorCol).toBe(0);
|
|
543
|
-
});
|
|
544
|
-
it('should leave empty line when deleting all lines', () => {
|
|
545
|
-
const state = createTestState(['only line'], 0, 0);
|
|
546
|
-
const action = {
|
|
547
|
-
type: 'vim_delete_line',
|
|
548
|
-
payload: { count: 1 },
|
|
549
|
-
};
|
|
550
|
-
const result = handleVimAction(state, action);
|
|
551
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
552
|
-
expect(result.lines).toEqual(['']);
|
|
553
|
-
expect(result.cursorRow).toBe(0);
|
|
554
|
-
expect(result.cursorCol).toBe(0);
|
|
555
|
-
});
|
|
556
|
-
});
|
|
557
|
-
describe('vim_delete_to_end_of_line', () => {
|
|
558
|
-
it('should delete from cursor to end of line', () => {
|
|
559
|
-
const state = createTestState(['hello world'], 0, 5);
|
|
560
|
-
const action = { type: 'vim_delete_to_end_of_line' };
|
|
561
|
-
const result = handleVimAction(state, action);
|
|
562
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
563
|
-
expect(result.lines[0]).toBe('hello');
|
|
564
|
-
expect(result.cursorCol).toBe(5);
|
|
565
|
-
});
|
|
566
|
-
it('should do nothing at end of line', () => {
|
|
567
|
-
const state = createTestState(['hello'], 0, 5);
|
|
568
|
-
const action = { type: 'vim_delete_to_end_of_line' };
|
|
569
|
-
const result = handleVimAction(state, action);
|
|
570
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
571
|
-
expect(result.lines[0]).toBe('hello');
|
|
572
|
-
});
|
|
573
|
-
});
|
|
574
|
-
});
|
|
575
|
-
describe('Insert mode commands', () => {
|
|
576
|
-
describe('vim_insert_at_cursor', () => {
|
|
577
|
-
it('should not change cursor position', () => {
|
|
578
|
-
const state = createTestState(['hello'], 0, 2);
|
|
579
|
-
const action = { type: 'vim_insert_at_cursor' };
|
|
580
|
-
const result = handleVimAction(state, action);
|
|
581
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
582
|
-
expect(result.cursorRow).toBe(0);
|
|
583
|
-
expect(result.cursorCol).toBe(2);
|
|
584
|
-
});
|
|
585
|
-
});
|
|
586
|
-
describe('vim_append_at_cursor', () => {
|
|
587
|
-
it('should move cursor right by one', () => {
|
|
588
|
-
const state = createTestState(['hello'], 0, 2);
|
|
589
|
-
const action = { type: 'vim_append_at_cursor' };
|
|
590
|
-
const result = handleVimAction(state, action);
|
|
591
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
592
|
-
expect(result.cursorCol).toBe(3);
|
|
593
|
-
});
|
|
594
|
-
it('should not move past end of line', () => {
|
|
595
|
-
const state = createTestState(['hello'], 0, 5);
|
|
596
|
-
const action = { type: 'vim_append_at_cursor' };
|
|
597
|
-
const result = handleVimAction(state, action);
|
|
598
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
599
|
-
expect(result.cursorCol).toBe(5);
|
|
600
|
-
});
|
|
601
|
-
});
|
|
602
|
-
describe('vim_append_at_line_end', () => {
|
|
603
|
-
it('should move cursor to end of line', () => {
|
|
604
|
-
const state = createTestState(['hello world'], 0, 3);
|
|
605
|
-
const action = { type: 'vim_append_at_line_end' };
|
|
606
|
-
const result = handleVimAction(state, action);
|
|
607
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
608
|
-
expect(result.cursorCol).toBe(11);
|
|
609
|
-
});
|
|
610
|
-
});
|
|
611
|
-
describe('vim_insert_at_line_start', () => {
|
|
612
|
-
it('should move to first non-whitespace character', () => {
|
|
613
|
-
const state = createTestState([' hello world'], 0, 5);
|
|
614
|
-
const action = { type: 'vim_insert_at_line_start' };
|
|
615
|
-
const result = handleVimAction(state, action);
|
|
616
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
617
|
-
expect(result.cursorCol).toBe(2);
|
|
618
|
-
});
|
|
619
|
-
it('should move to column 0 for line with only whitespace', () => {
|
|
620
|
-
const state = createTestState([' '], 0, 1);
|
|
621
|
-
const action = { type: 'vim_insert_at_line_start' };
|
|
622
|
-
const result = handleVimAction(state, action);
|
|
623
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
624
|
-
expect(result.cursorCol).toBe(3);
|
|
625
|
-
});
|
|
626
|
-
});
|
|
627
|
-
describe('vim_open_line_below', () => {
|
|
628
|
-
it('should insert a new line below the current one', () => {
|
|
629
|
-
const state = createTestState(['hello world'], 0, 5);
|
|
630
|
-
const action = { type: 'vim_open_line_below' };
|
|
631
|
-
const result = handleVimAction(state, action);
|
|
632
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
633
|
-
expect(result.lines).toEqual(['hello world', '']);
|
|
634
|
-
expect(result.cursorRow).toBe(1);
|
|
635
|
-
expect(result.cursorCol).toBe(0);
|
|
636
|
-
});
|
|
637
|
-
});
|
|
638
|
-
describe('vim_open_line_above', () => {
|
|
639
|
-
it('should insert a new line above the current one', () => {
|
|
640
|
-
const state = createTestState(['hello', 'world'], 1, 2);
|
|
641
|
-
const action = { type: 'vim_open_line_above' };
|
|
642
|
-
const result = handleVimAction(state, action);
|
|
643
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
644
|
-
expect(result.lines).toEqual(['hello', '', 'world']);
|
|
645
|
-
expect(result.cursorRow).toBe(1);
|
|
646
|
-
expect(result.cursorCol).toBe(0);
|
|
647
|
-
});
|
|
648
|
-
});
|
|
649
|
-
describe('vim_escape_insert_mode', () => {
|
|
650
|
-
it('should move cursor left', () => {
|
|
651
|
-
const state = createTestState(['hello'], 0, 3);
|
|
652
|
-
const action = { type: 'vim_escape_insert_mode' };
|
|
653
|
-
const result = handleVimAction(state, action);
|
|
654
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
655
|
-
expect(result.cursorCol).toBe(2);
|
|
656
|
-
});
|
|
657
|
-
it('should not move past beginning of line', () => {
|
|
658
|
-
const state = createTestState(['hello'], 0, 0);
|
|
659
|
-
const action = { type: 'vim_escape_insert_mode' };
|
|
660
|
-
const result = handleVimAction(state, action);
|
|
661
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
662
|
-
expect(result.cursorCol).toBe(0);
|
|
663
|
-
});
|
|
664
|
-
});
|
|
665
|
-
});
|
|
666
|
-
describe('Change commands', () => {
|
|
667
|
-
describe('vim_change_word_forward', () => {
|
|
668
|
-
it('should delete from cursor to next word start', () => {
|
|
669
|
-
const state = createTestState(['hello world test'], 0, 0);
|
|
670
|
-
const action = {
|
|
671
|
-
type: 'vim_change_word_forward',
|
|
672
|
-
payload: { count: 1 },
|
|
673
|
-
};
|
|
674
|
-
const result = handleVimAction(state, action);
|
|
675
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
676
|
-
expect(result.lines[0]).toBe('world test');
|
|
677
|
-
expect(result.cursorCol).toBe(0);
|
|
678
|
-
});
|
|
679
|
-
});
|
|
680
|
-
describe('vim_change_line', () => {
|
|
681
|
-
it('should delete entire line content', () => {
|
|
682
|
-
const state = createTestState(['hello world'], 0, 5);
|
|
683
|
-
const action = {
|
|
684
|
-
type: 'vim_change_line',
|
|
685
|
-
payload: { count: 1 },
|
|
686
|
-
};
|
|
687
|
-
const result = handleVimAction(state, action);
|
|
688
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
689
|
-
expect(result.lines[0]).toBe('');
|
|
690
|
-
expect(result.cursorCol).toBe(0);
|
|
691
|
-
});
|
|
692
|
-
});
|
|
693
|
-
describe('vim_change_movement', () => {
|
|
694
|
-
it('should change characters to the left', () => {
|
|
695
|
-
const state = createTestState(['hello world'], 0, 5);
|
|
696
|
-
const action = {
|
|
697
|
-
type: 'vim_change_movement',
|
|
698
|
-
payload: { movement: 'h', count: 2 },
|
|
699
|
-
};
|
|
700
|
-
const result = handleVimAction(state, action);
|
|
701
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
702
|
-
expect(result.lines[0]).toBe('hel world');
|
|
703
|
-
expect(result.cursorCol).toBe(3);
|
|
704
|
-
});
|
|
705
|
-
it('should change characters to the right', () => {
|
|
706
|
-
const state = createTestState(['hello world'], 0, 5);
|
|
707
|
-
const action = {
|
|
708
|
-
type: 'vim_change_movement',
|
|
709
|
-
payload: { movement: 'l', count: 3 },
|
|
710
|
-
};
|
|
711
|
-
const result = handleVimAction(state, action);
|
|
712
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
713
|
-
expect(result.lines[0]).toBe('hellorld'); // Deletes ' wo' (3 chars to the right)
|
|
714
|
-
expect(result.cursorCol).toBe(5);
|
|
715
|
-
});
|
|
716
|
-
it('should change multiple lines down', () => {
|
|
717
|
-
const state = createTestState(['line1', 'line2', 'line3'], 0, 2);
|
|
718
|
-
const action = {
|
|
719
|
-
type: 'vim_change_movement',
|
|
720
|
-
payload: { movement: 'j', count: 2 },
|
|
721
|
-
};
|
|
722
|
-
const result = handleVimAction(state, action);
|
|
723
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
724
|
-
// The movement 'j' with count 2 changes 2 lines starting from cursor row
|
|
725
|
-
// Since we're at cursor position 2, it changes lines starting from current row
|
|
726
|
-
expect(result.lines).toEqual(['line1', 'line2', 'line3']); // No change because count > available lines
|
|
727
|
-
expect(result.cursorRow).toBe(0);
|
|
728
|
-
expect(result.cursorCol).toBe(2);
|
|
729
|
-
});
|
|
730
|
-
});
|
|
731
|
-
});
|
|
732
|
-
describe('Edge cases', () => {
|
|
733
|
-
it('should handle empty text', () => {
|
|
734
|
-
const state = createTestState([''], 0, 0);
|
|
735
|
-
const action = {
|
|
736
|
-
type: 'vim_move_word_forward',
|
|
737
|
-
payload: { count: 1 },
|
|
738
|
-
};
|
|
739
|
-
const result = handleVimAction(state, action);
|
|
740
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
741
|
-
expect(result.cursorRow).toBe(0);
|
|
742
|
-
expect(result.cursorCol).toBe(0);
|
|
743
|
-
});
|
|
744
|
-
it('should handle single character line', () => {
|
|
745
|
-
const state = createTestState(['a'], 0, 0);
|
|
746
|
-
const action = { type: 'vim_move_to_line_end' };
|
|
747
|
-
const result = handleVimAction(state, action);
|
|
748
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
749
|
-
expect(result.cursorCol).toBe(0); // Should be last character position
|
|
750
|
-
});
|
|
751
|
-
it('should handle empty lines in multi-line text', () => {
|
|
752
|
-
const state = createTestState(['line1', '', 'line3'], 1, 0);
|
|
753
|
-
const action = {
|
|
754
|
-
type: 'vim_move_word_forward',
|
|
755
|
-
payload: { count: 1 },
|
|
756
|
-
};
|
|
757
|
-
const result = handleVimAction(state, action);
|
|
758
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
759
|
-
// Should move to next line with content
|
|
760
|
-
expect(result.cursorRow).toBe(2);
|
|
761
|
-
expect(result.cursorCol).toBe(0);
|
|
762
|
-
});
|
|
763
|
-
it('should preserve undo stack in operations', () => {
|
|
764
|
-
const state = createTestState(['hello'], 0, 0);
|
|
765
|
-
state.undoStack = [
|
|
766
|
-
{
|
|
767
|
-
lines: ['previous'],
|
|
768
|
-
cursorRow: 0,
|
|
769
|
-
cursorCol: 0,
|
|
770
|
-
pastedContent: {},
|
|
771
|
-
expandedPasteInfo: new Map(),
|
|
772
|
-
},
|
|
773
|
-
];
|
|
774
|
-
const action = {
|
|
775
|
-
type: 'vim_delete_char',
|
|
776
|
-
payload: { count: 1 },
|
|
777
|
-
};
|
|
778
|
-
const result = handleVimAction(state, action);
|
|
779
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
780
|
-
expect(result.undoStack).toHaveLength(2); // Original plus new snapshot
|
|
781
|
-
});
|
|
782
|
-
});
|
|
783
|
-
describe('UTF-32 character handling in word/line operations', () => {
|
|
784
|
-
describe('Right-to-left text handling', () => {
|
|
785
|
-
it('should handle Arabic text in word movements', () => {
|
|
786
|
-
const state = createTestState(['hello مرحبا world'], 0, 0);
|
|
787
|
-
// Move to end of 'hello'
|
|
788
|
-
let result = handleVimAction(state, {
|
|
789
|
-
type: 'vim_move_word_end',
|
|
790
|
-
payload: { count: 1 },
|
|
791
|
-
});
|
|
792
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
793
|
-
expect(result.cursorCol).toBe(4); // End of 'hello'
|
|
794
|
-
// Move to end of Arabic word
|
|
795
|
-
result = handleVimAction(result, {
|
|
796
|
-
type: 'vim_move_word_end',
|
|
797
|
-
payload: { count: 1 },
|
|
798
|
-
});
|
|
799
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
800
|
-
expect(result.cursorCol).toBe(10); // End of Arabic word 'مرحبا'
|
|
801
|
-
});
|
|
802
|
-
});
|
|
803
|
-
describe('Chinese character handling', () => {
|
|
804
|
-
it('should handle Chinese characters in word movements', () => {
|
|
805
|
-
const state = createTestState(['hello 你好 world'], 0, 0);
|
|
806
|
-
// Move to end of 'hello'
|
|
807
|
-
let result = handleVimAction(state, {
|
|
808
|
-
type: 'vim_move_word_end',
|
|
809
|
-
payload: { count: 1 },
|
|
810
|
-
});
|
|
811
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
812
|
-
expect(result.cursorCol).toBe(4); // End of 'hello'
|
|
813
|
-
// Move forward to start of 'world'
|
|
814
|
-
result = handleVimAction(result, {
|
|
815
|
-
type: 'vim_move_word_forward',
|
|
816
|
-
payload: { count: 1 },
|
|
817
|
-
});
|
|
818
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
819
|
-
expect(result.cursorCol).toBe(6); // Start of '你好'
|
|
820
|
-
});
|
|
821
|
-
});
|
|
822
|
-
describe('Mixed script handling', () => {
|
|
823
|
-
it('should handle mixed Latin and non-Latin scripts with word end commands', () => {
|
|
824
|
-
const state = createTestState(['test中文test'], 0, 0);
|
|
825
|
-
let result = handleVimAction(state, {
|
|
826
|
-
type: 'vim_move_word_end',
|
|
827
|
-
payload: { count: 1 },
|
|
828
|
-
});
|
|
829
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
830
|
-
expect(result.cursorCol).toBe(3); // End of 'test'
|
|
831
|
-
// Second word end command should move to end of '中文'
|
|
832
|
-
result = handleVimAction(result, {
|
|
833
|
-
type: 'vim_move_word_end',
|
|
834
|
-
payload: { count: 1 },
|
|
835
|
-
});
|
|
836
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
837
|
-
expect(result.cursorCol).toBe(5); // End of '中文'
|
|
838
|
-
});
|
|
839
|
-
it('should handle mixed Latin and non-Latin scripts with word forward commands', () => {
|
|
840
|
-
const state = createTestState(['test中文test'], 0, 0);
|
|
841
|
-
let result = handleVimAction(state, {
|
|
842
|
-
type: 'vim_move_word_forward',
|
|
843
|
-
payload: { count: 1 },
|
|
844
|
-
});
|
|
845
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
846
|
-
expect(result.cursorCol).toBe(4); // Start of '中'
|
|
847
|
-
// Second word forward command should move to start of final 'test'
|
|
848
|
-
result = handleVimAction(result, {
|
|
849
|
-
type: 'vim_move_word_forward',
|
|
850
|
-
payload: { count: 1 },
|
|
851
|
-
});
|
|
852
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
853
|
-
expect(result.cursorCol).toBe(6); // Start of final 'test'
|
|
854
|
-
});
|
|
855
|
-
it('should handle mixed Latin and non-Latin scripts with word backward commands', () => {
|
|
856
|
-
const state = createTestState(['test中文test'], 0, 9); // Start at end of final 'test'
|
|
857
|
-
let result = handleVimAction(state, {
|
|
858
|
-
type: 'vim_move_word_backward',
|
|
859
|
-
payload: { count: 1 },
|
|
860
|
-
});
|
|
861
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
862
|
-
expect(result.cursorCol).toBe(6); // Start of final 'test'
|
|
863
|
-
// Second word backward command should move to start of '中文'
|
|
864
|
-
result = handleVimAction(result, {
|
|
865
|
-
type: 'vim_move_word_backward',
|
|
866
|
-
payload: { count: 1 },
|
|
867
|
-
});
|
|
868
|
-
expect(result).toHaveOnlyValidCharacters();
|
|
869
|
-
expect(result.cursorCol).toBe(4); // Start of '中'
|
|
870
|
-
});
|
|
871
|
-
it('should handle Unicode block characters consistently with w and e commands', () => {
|
|
872
|
-
const state = createTestState(['██ █████ ██'], 0, 0);
|
|
873
|
-
// Test w command progression
|
|
874
|
-
let wResult = handleVimAction(state, {
|
|
875
|
-
type: 'vim_move_word_forward',
|
|
876
|
-
payload: { count: 1 },
|
|
877
|
-
});
|
|
878
|
-
expect(wResult).toHaveOnlyValidCharacters();
|
|
879
|
-
expect(wResult.cursorCol).toBe(3); // Start of second block sequence
|
|
880
|
-
wResult = handleVimAction(wResult, {
|
|
881
|
-
type: 'vim_move_word_forward',
|
|
882
|
-
payload: { count: 1 },
|
|
883
|
-
});
|
|
884
|
-
expect(wResult).toHaveOnlyValidCharacters();
|
|
885
|
-
expect(wResult.cursorCol).toBe(9); // Start of third block sequence
|
|
886
|
-
// Test e command progression from beginning
|
|
887
|
-
let eResult = handleVimAction(state, {
|
|
888
|
-
type: 'vim_move_word_end',
|
|
889
|
-
payload: { count: 1 },
|
|
890
|
-
});
|
|
891
|
-
expect(eResult).toHaveOnlyValidCharacters();
|
|
892
|
-
expect(eResult.cursorCol).toBe(1); // End of first block sequence
|
|
893
|
-
eResult = handleVimAction(eResult, {
|
|
894
|
-
type: 'vim_move_word_end',
|
|
895
|
-
payload: { count: 1 },
|
|
896
|
-
});
|
|
897
|
-
expect(eResult).toHaveOnlyValidCharacters();
|
|
898
|
-
expect(eResult.cursorCol).toBe(7); // End of second block sequence
|
|
899
|
-
eResult = handleVimAction(eResult, {
|
|
900
|
-
type: 'vim_move_word_end',
|
|
901
|
-
payload: { count: 1 },
|
|
902
|
-
});
|
|
903
|
-
expect(eResult).toHaveOnlyValidCharacters();
|
|
904
|
-
expect(eResult.cursorCol).toBe(10); // End of third block sequence
|
|
905
|
-
});
|
|
906
|
-
it('should handle strings starting with Chinese characters', () => {
|
|
907
|
-
const state = createTestState(['中文test英文word'], 0, 0);
|
|
908
|
-
// Test 'w' command - when at start of non-Latin word, w moves to next word
|
|
909
|
-
let wResult = handleVimAction(state, {
|
|
910
|
-
type: 'vim_move_word_forward',
|
|
911
|
-
payload: { count: 1 },
|
|
912
|
-
});
|
|
913
|
-
expect(wResult).toHaveOnlyValidCharacters();
|
|
914
|
-
expect(wResult.cursorCol).toBe(2); // Start of 'test'
|
|
915
|
-
wResult = handleVimAction(wResult, {
|
|
916
|
-
type: 'vim_move_word_forward',
|
|
917
|
-
payload: { count: 1 },
|
|
918
|
-
});
|
|
919
|
-
expect(wResult.cursorCol).toBe(6); // Start of '英文'
|
|
920
|
-
// Test 'e' command
|
|
921
|
-
let eResult = handleVimAction(state, {
|
|
922
|
-
type: 'vim_move_word_end',
|
|
923
|
-
payload: { count: 1 },
|
|
924
|
-
});
|
|
925
|
-
expect(eResult).toHaveOnlyValidCharacters();
|
|
926
|
-
expect(eResult.cursorCol).toBe(1); // End of 中文
|
|
927
|
-
eResult = handleVimAction(eResult, {
|
|
928
|
-
type: 'vim_move_word_end',
|
|
929
|
-
payload: { count: 1 },
|
|
930
|
-
});
|
|
931
|
-
expect(eResult.cursorCol).toBe(5); // End of test
|
|
932
|
-
});
|
|
933
|
-
it('should handle strings starting with Arabic characters', () => {
|
|
934
|
-
const state = createTestState(['مرحباhelloسلام'], 0, 0);
|
|
935
|
-
// Test 'w' command - when at start of non-Latin word, w moves to next word
|
|
936
|
-
let wResult = handleVimAction(state, {
|
|
937
|
-
type: 'vim_move_word_forward',
|
|
938
|
-
payload: { count: 1 },
|
|
939
|
-
});
|
|
940
|
-
expect(wResult).toHaveOnlyValidCharacters();
|
|
941
|
-
expect(wResult.cursorCol).toBe(5); // Start of 'hello'
|
|
942
|
-
wResult = handleVimAction(wResult, {
|
|
943
|
-
type: 'vim_move_word_forward',
|
|
944
|
-
payload: { count: 1 },
|
|
945
|
-
});
|
|
946
|
-
expect(wResult.cursorCol).toBe(10); // Start of 'سلام'
|
|
947
|
-
// Test 'b' command from end
|
|
948
|
-
const bState = createTestState(['مرحباhelloسلام'], 0, 13);
|
|
949
|
-
let bResult = handleVimAction(bState, {
|
|
950
|
-
type: 'vim_move_word_backward',
|
|
951
|
-
payload: { count: 1 },
|
|
952
|
-
});
|
|
953
|
-
expect(bResult).toHaveOnlyValidCharacters();
|
|
954
|
-
expect(bResult.cursorCol).toBe(10); // Start of سلام
|
|
955
|
-
bResult = handleVimAction(bResult, {
|
|
956
|
-
type: 'vim_move_word_backward',
|
|
957
|
-
payload: { count: 1 },
|
|
958
|
-
});
|
|
959
|
-
expect(bResult.cursorCol).toBe(5); // Start of hello
|
|
960
|
-
});
|
|
961
|
-
});
|
|
962
|
-
});
|
|
963
|
-
});
|
|
964
|
-
//# sourceMappingURL=vim-buffer-actions.test.js.map
|