@machina.ai/cell-cli 1.33.0-rc1 → 1.38.1-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +7 -7
- package/dist/src/acp/acpClient.d.ts +56 -0
- package/dist/src/{zed-integration/zedIntegration.js → acp/acpClient.js} +765 -121
- package/dist/src/acp/acpClient.js.map +1 -0
- package/dist/src/acp/acpClient.test.js +1787 -0
- package/dist/src/acp/acpClient.test.js.map +1 -0
- package/dist/src/{zed-integration → acp}/acpErrors.js +2 -0
- package/dist/src/acp/acpErrors.js.map +1 -0
- package/dist/src/acp/acpErrors.test.js.map +1 -0
- package/dist/src/{zed-integration → acp}/acpResume.test.js +83 -8
- package/dist/src/acp/acpResume.test.js.map +1 -0
- package/dist/src/acp/commandHandler.d.ts +26 -0
- package/dist/src/acp/commandHandler.js +106 -0
- package/dist/src/acp/commandHandler.js.map +1 -0
- package/dist/src/acp/commandHandler.test.js +29 -0
- package/dist/src/acp/commandHandler.test.js.map +1 -0
- package/dist/src/acp/commands/about.d.ts +11 -0
- package/dist/src/acp/commands/about.js +53 -0
- package/dist/src/acp/commands/about.js.map +1 -0
- package/dist/src/acp/commands/commandRegistry.d.ts +12 -0
- package/dist/src/acp/commands/commandRegistry.js +26 -0
- package/dist/src/acp/commands/commandRegistry.js.map +1 -0
- package/dist/src/acp/commands/extensions.d.ts +57 -0
- package/dist/src/acp/commands/extensions.js +331 -0
- package/dist/src/acp/commands/extensions.js.map +1 -0
- package/dist/src/acp/commands/help.d.ts +14 -0
- package/dist/src/acp/commands/help.js +35 -0
- package/dist/src/acp/commands/help.js.map +1 -0
- package/dist/src/acp/commands/help.test.js +40 -0
- package/dist/src/acp/commands/help.test.js.map +1 -0
- package/dist/src/acp/commands/init.d.ts +12 -0
- package/dist/src/acp/commands/init.js +47 -0
- package/dist/src/acp/commands/init.js.map +1 -0
- package/dist/src/acp/commands/memory.d.ts +34 -0
- package/dist/src/acp/commands/memory.js +86 -0
- package/dist/src/acp/commands/memory.js.map +1 -0
- package/dist/src/acp/commands/restore.d.ts +18 -0
- package/dist/src/acp/commands/restore.js +141 -0
- package/dist/src/acp/commands/restore.js.map +1 -0
- package/dist/src/acp/commands/types.d.ts +31 -0
- package/dist/src/acp/commands/types.js +7 -0
- package/dist/src/acp/commands/types.js.map +1 -0
- package/dist/src/{zed-integration → acp}/fileSystemService.d.ts +6 -2
- package/dist/src/acp/fileSystemService.js +78 -0
- package/dist/src/acp/fileSystemService.js.map +1 -0
- package/dist/src/acp/fileSystemService.test.js +162 -0
- package/dist/src/acp/fileSystemService.test.js.map +1 -0
- package/dist/src/commands/extensions/disable.js +1 -2
- package/dist/src/commands/extensions/disable.js.map +1 -1
- package/dist/src/commands/extensions/disable.test.js +2 -2
- package/dist/src/commands/extensions/disable.test.js.map +1 -1
- package/dist/src/commands/extensions/examples/policies/README.md +41 -0
- package/dist/src/commands/extensions/examples/policies/gemini-extension.json +5 -0
- package/dist/src/commands/extensions/examples/policies/policies/policies.toml +28 -0
- package/dist/src/commands/extensions/examples/themes-example/README.md +8 -5
- package/dist/src/commands/extensions/examples/themes-example/gemini-extension.json +1 -1
- package/dist/src/commands/extensions/install.d.ts +1 -0
- package/dist/src/commands/extensions/install.js +86 -6
- package/dist/src/commands/extensions/install.js.map +1 -1
- package/dist/src/commands/extensions/install.test.js +199 -28
- package/dist/src/commands/extensions/install.test.js.map +1 -1
- package/dist/src/commands/extensions/link.js +1 -2
- package/dist/src/commands/extensions/link.js.map +1 -1
- package/dist/src/commands/extensions/link.test.js +6 -22
- package/dist/src/commands/extensions/link.test.js.map +1 -1
- package/dist/src/commands/extensions/list.js +1 -2
- package/dist/src/commands/extensions/list.js.map +1 -1
- package/dist/src/commands/extensions/list.test.js +9 -25
- package/dist/src/commands/extensions/list.test.js.map +1 -1
- package/dist/src/commands/extensions/new.js +1 -1
- package/dist/src/commands/extensions/new.js.map +1 -1
- package/dist/src/commands/extensions/uninstall.d.ts +2 -1
- package/dist/src/commands/extensions/uninstall.js +27 -6
- package/dist/src/commands/extensions/uninstall.js.map +1 -1
- package/dist/src/commands/extensions/uninstall.test.js +48 -7
- package/dist/src/commands/extensions/uninstall.test.js.map +1 -1
- package/dist/src/commands/extensions/update.js +1 -2
- package/dist/src/commands/extensions/update.js.map +1 -1
- package/dist/src/commands/extensions/utils.js +1 -0
- package/dist/src/commands/extensions/utils.js.map +1 -1
- package/dist/src/commands/extensions/validate.js +1 -2
- package/dist/src/commands/extensions/validate.js.map +1 -1
- package/dist/src/commands/hooks/migrate.js +3 -0
- package/dist/src/commands/hooks/migrate.js.map +1 -1
- package/dist/src/commands/mcp/list.d.ts +3 -3
- package/dist/src/commands/mcp/list.js +68 -24
- package/dist/src/commands/mcp/list.js.map +1 -1
- package/dist/src/commands/mcp/list.test.js +69 -3
- package/dist/src/commands/mcp/list.test.js.map +1 -1
- package/dist/src/commands/mcp.test.js +2 -3
- package/dist/src/commands/mcp.test.js.map +1 -1
- package/dist/src/commands/skills/disable.test.js +4 -7
- package/dist/src/commands/skills/disable.test.js.map +1 -1
- package/dist/src/commands/skills/enable.test.js +4 -7
- package/dist/src/commands/skills/enable.test.js.map +1 -1
- package/dist/src/commands/skills/install.js +1 -2
- package/dist/src/commands/skills/install.js.map +1 -1
- package/dist/src/commands/skills/install.test.js +13 -9
- package/dist/src/commands/skills/install.test.js.map +1 -1
- package/dist/src/commands/skills/link.js +1 -2
- package/dist/src/commands/skills/link.js.map +1 -1
- package/dist/src/commands/skills/link.test.js +6 -2
- package/dist/src/commands/skills/link.test.js.map +1 -1
- package/dist/src/commands/skills/list.js +5 -8
- package/dist/src/commands/skills/list.js.map +1 -1
- package/dist/src/commands/skills/list.test.js +21 -30
- package/dist/src/commands/skills/list.test.js.map +1 -1
- package/dist/src/commands/skills/uninstall.js +1 -2
- package/dist/src/commands/skills/uninstall.js.map +1 -1
- package/dist/src/commands/skills/uninstall.test.js +10 -6
- package/dist/src/commands/skills/uninstall.test.js.map +1 -1
- package/dist/src/config/config.d.ts +18 -3
- package/dist/src/config/config.js +334 -136
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/config.test.js +513 -61
- package/dist/src/config/config.test.js.map +1 -1
- package/dist/src/config/extension-manager-hydration.test.js +2 -2
- package/dist/src/config/extension-manager-hydration.test.js.map +1 -1
- package/dist/src/config/extension-manager-permissions.test.d.ts +6 -0
- package/dist/src/config/extension-manager-permissions.test.js +107 -0
- package/dist/src/config/extension-manager-permissions.test.js.map +1 -0
- package/dist/src/config/extension-manager-scope.test.js +1 -1
- package/dist/src/config/extension-manager-scope.test.js.map +1 -1
- package/dist/src/config/extension-manager-skills.test.js +9 -0
- package/dist/src/config/extension-manager-skills.test.js.map +1 -1
- package/dist/src/config/extension-manager-themes.spec.js +3 -1
- package/dist/src/config/extension-manager-themes.spec.js.map +1 -1
- package/dist/src/config/extension-manager.d.ts +16 -3
- package/dist/src/config/extension-manager.js +202 -54
- package/dist/src/config/extension-manager.js.map +1 -1
- package/dist/src/config/extension-manager.test.js +430 -0
- package/dist/src/config/extension-manager.test.js.map +1 -0
- package/dist/src/config/extension.d.ts +13 -0
- package/dist/src/config/extension.js +1 -1
- package/dist/src/config/extension.js.map +1 -1
- package/dist/src/config/extension.test.js +139 -30
- package/dist/src/config/extension.test.js.map +1 -1
- package/dist/src/config/extensionRegistryClient.d.ts +3 -1
- package/dist/src/config/extensionRegistryClient.js +29 -9
- package/dist/src/config/extensionRegistryClient.js.map +1 -1
- package/dist/src/config/extensionRegistryClient.test.js +81 -3
- package/dist/src/config/extensionRegistryClient.test.js.map +1 -1
- package/dist/src/config/extensions/consent.d.ts +11 -1
- package/dist/src/config/extensions/consent.js +27 -7
- package/dist/src/config/extensions/consent.js.map +1 -1
- package/dist/src/config/extensions/consent.test.js +43 -44
- package/dist/src/config/extensions/consent.test.js.map +1 -1
- package/dist/src/config/extensions/extensionEnablement.js +1 -0
- package/dist/src/config/extensions/extensionEnablement.js.map +1 -1
- package/dist/src/config/extensions/extensionSettings.js +20 -3
- package/dist/src/config/extensions/extensionSettings.js.map +1 -1
- package/dist/src/config/extensions/extensionSettings.test.js +17 -1
- package/dist/src/config/extensions/extensionSettings.test.js.map +1 -1
- package/dist/src/config/extensions/extensionUpdates.test.js +74 -13
- package/dist/src/config/extensions/extensionUpdates.test.js.map +1 -1
- package/dist/src/config/extensions/github.js +13 -3
- package/dist/src/config/extensions/github.js.map +1 -1
- package/dist/src/config/extensions/github.test.js +14 -1
- package/dist/src/config/extensions/github.test.js.map +1 -1
- package/dist/src/config/extensions/update.js +25 -2
- package/dist/src/config/extensions/update.js.map +1 -1
- package/dist/src/config/extensions/update.test.js +68 -3
- package/dist/src/config/extensions/update.test.js.map +1 -1
- package/dist/src/config/extensions/variables.js +14 -2
- package/dist/src/config/extensions/variables.js.map +1 -1
- package/dist/src/config/extensions/variables.test.js +16 -0
- package/dist/src/config/extensions/variables.test.js.map +1 -1
- package/dist/src/config/footerItems.d.ts +62 -0
- package/dist/src/config/footerItems.js +128 -0
- package/dist/src/config/footerItems.js.map +1 -0
- package/dist/src/config/footerItems.test.d.ts +6 -0
- package/dist/src/config/footerItems.test.js +141 -0
- package/dist/src/config/footerItems.test.js.map +1 -0
- package/dist/src/config/mcp/mcpServerEnablement.test.js +1 -0
- package/dist/src/config/mcp/mcpServerEnablement.test.js.map +1 -1
- package/dist/src/config/policy-engine.integration.test.js +90 -51
- package/dist/src/config/policy-engine.integration.test.js.map +1 -1
- package/dist/src/config/policy.d.ts +35 -3
- package/dist/src/config/policy.js +82 -5
- package/dist/src/config/policy.js.map +1 -1
- package/dist/src/config/policy.test.js +199 -0
- package/dist/src/config/policy.test.js.map +1 -0
- package/dist/src/config/sandboxConfig.js +50 -7
- package/dist/src/config/sandboxConfig.js.map +1 -1
- package/dist/src/config/sandboxConfig.test.js +227 -10
- package/dist/src/config/sandboxConfig.test.js.map +1 -1
- package/dist/src/config/settings-validation.js +1 -1
- package/dist/src/config/settings-validation.js.map +1 -1
- package/dist/src/config/settings-validation.test.js +2 -3
- package/dist/src/config/settings-validation.test.js.map +1 -1
- package/dist/src/config/settings.d.ts +26 -2
- package/dist/src/config/settings.js +102 -31
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/config/settings.test.js +374 -146
- package/dist/src/config/settings.test.js.map +1 -1
- package/dist/src/config/settingsSchema.d.ts +838 -67
- package/dist/src/config/settingsSchema.js +988 -81
- package/dist/src/config/settingsSchema.js.map +1 -1
- package/dist/src/config/settingsSchema.test.js +128 -7
- package/dist/src/config/settingsSchema.test.js.map +1 -1
- package/dist/src/config/settings_repro.test.js +0 -1
- package/dist/src/config/settings_repro.test.js.map +1 -1
- package/dist/src/config/settings_validation_warning.test.js +2 -1
- package/dist/src/config/settings_validation_warning.test.js.map +1 -1
- package/dist/src/config/trustedFolders.test.js +4 -2
- package/dist/src/config/trustedFolders.test.js.map +1 -1
- package/dist/src/config/workspace-policy-cli.test.js +209 -0
- package/dist/src/config/workspace-policy-cli.test.js.map +1 -0
- package/dist/src/core/auth.d.ts +7 -2
- package/dist/src/core/auth.js +28 -6
- package/dist/src/core/auth.js.map +1 -1
- package/dist/src/core/auth.test.js +53 -7
- package/dist/src/core/auth.test.js.map +1 -1
- package/dist/src/core/initializer.d.ts +2 -0
- package/dist/src/core/initializer.js +12 -5
- package/dist/src/core/initializer.js.map +1 -1
- package/dist/src/core/initializer.test.js +12 -2
- package/dist/src/core/initializer.test.js.map +1 -1
- package/dist/src/deferred.test.js +1 -1
- package/dist/src/deferred.test.js.map +1 -1
- package/dist/src/gemini.d.ts +3 -3
- package/dist/src/gemini.js +120 -146
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.js +220 -44
- package/dist/src/gemini.test.js.map +1 -1
- package/dist/src/gemini_cleanup.test.js +99 -30
- package/dist/src/gemini_cleanup.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/integration-tests/modelSteering.test.d.ts +6 -0
- package/dist/src/integration-tests/modelSteering.test.js +62 -0
- package/dist/src/integration-tests/modelSteering.test.js.map +1 -0
- package/dist/src/interactiveCli.d.ts +9 -0
- package/dist/src/interactiveCli.js +128 -0
- package/dist/src/interactiveCli.js.map +1 -0
- package/dist/src/nonInteractiveCli.d.ts +1 -1
- package/dist/src/nonInteractiveCli.js +15 -6
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/nonInteractiveCli.test.js +20 -16
- package/dist/src/nonInteractiveCli.test.js.map +1 -1
- package/dist/src/nonInteractiveCliAgentSession.d.ts +16 -0
- package/dist/src/nonInteractiveCliAgentSession.js +484 -0
- package/dist/src/nonInteractiveCliAgentSession.js.map +1 -0
- package/dist/src/nonInteractiveCliAgentSession.test.js +1837 -0
- package/dist/src/nonInteractiveCliAgentSession.test.js.map +1 -0
- package/dist/src/nonInteractiveCliCommands.js +3 -3
- package/dist/src/nonInteractiveCliCommands.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.js +41 -7
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.test.js +83 -6
- package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
- package/dist/src/services/CommandService.d.ts +25 -18
- package/dist/src/services/CommandService.js +51 -42
- package/dist/src/services/CommandService.js.map +1 -1
- package/dist/src/services/CommandService.test.js +44 -204
- package/dist/src/services/CommandService.test.js.map +1 -1
- package/dist/src/services/FileCommandLoader.d.ts +2 -1
- package/dist/src/services/FileCommandLoader.js +14 -6
- package/dist/src/services/FileCommandLoader.js.map +1 -1
- package/dist/src/services/FileCommandLoader.test.js.map +1 -1
- package/dist/src/services/McpPromptLoader.d.ts +2 -2
- package/dist/src/services/McpPromptLoader.js +3 -2
- package/dist/src/services/McpPromptLoader.js.map +1 -1
- package/dist/src/services/SkillCommandLoader.d.ts +23 -0
- package/dist/src/services/SkillCommandLoader.js +52 -0
- package/dist/src/services/SkillCommandLoader.js.map +1 -0
- package/dist/src/services/SkillCommandLoader.test.d.ts +6 -0
- package/dist/src/services/SkillCommandLoader.test.js +113 -0
- package/dist/src/services/SkillCommandLoader.test.js.map +1 -0
- package/dist/src/services/SlashCommandConflictHandler.d.ts +35 -0
- package/dist/src/services/SlashCommandConflictHandler.js +128 -0
- package/dist/src/services/SlashCommandConflictHandler.js.map +1 -0
- package/dist/src/services/SlashCommandConflictHandler.test.d.ts +6 -0
- package/dist/src/services/SlashCommandConflictHandler.test.js +144 -0
- package/dist/src/services/SlashCommandConflictHandler.test.js.map +1 -0
- package/dist/src/services/SlashCommandResolver.d.ts +53 -0
- package/dist/src/services/SlashCommandResolver.js +156 -0
- package/dist/src/services/SlashCommandResolver.js.map +1 -0
- package/dist/src/services/SlashCommandResolver.test.d.ts +6 -0
- package/dist/src/services/SlashCommandResolver.test.js +186 -0
- package/dist/src/services/SlashCommandResolver.test.js.map +1 -0
- package/dist/src/services/prompt-processors/atFileProcessor.js +1 -1
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -1
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +6 -3
- package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.js +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.test.js +14 -4
- package/dist/src/services/prompt-processors/shellProcessor.test.js.map +1 -1
- package/dist/src/services/types.d.ts +8 -0
- package/dist/src/test-utils/AppRig.d.ts +83 -0
- package/dist/src/test-utils/AppRig.js +583 -0
- package/dist/src/test-utils/AppRig.js.map +1 -0
- package/dist/src/test-utils/AppRig.test.d.ts +6 -0
- package/dist/src/test-utils/AppRig.test.js +60 -0
- package/dist/src/test-utils/AppRig.test.js.map +1 -0
- package/dist/src/test-utils/MockShellExecutionService.d.ts +37 -0
- package/dist/src/test-utils/MockShellExecutionService.js +88 -0
- package/dist/src/test-utils/MockShellExecutionService.js.map +1 -0
- package/dist/src/test-utils/async.d.ts +1 -1
- package/dist/src/test-utils/async.js +1 -1
- package/dist/src/test-utils/async.js.map +1 -1
- package/dist/src/test-utils/customMatchers.d.ts +25 -5
- package/dist/src/test-utils/customMatchers.js +47 -2
- package/dist/src/test-utils/customMatchers.js.map +1 -1
- package/dist/src/test-utils/mockCommandContext.js +2 -5
- package/dist/src/test-utils/mockCommandContext.js.map +1 -1
- package/dist/src/test-utils/mockCommandContext.test.js +4 -4
- package/dist/src/test-utils/mockCommandContext.test.js.map +1 -1
- package/dist/src/test-utils/mockConfig.d.ts +1 -1
- package/dist/src/test-utils/mockConfig.js +41 -12
- package/dist/src/test-utils/mockConfig.js.map +1 -1
- package/dist/src/test-utils/mockDebugLogger.d.ts +35 -0
- package/dist/src/test-utils/mockDebugLogger.js +68 -0
- package/dist/src/test-utils/mockDebugLogger.js.map +1 -0
- package/dist/src/test-utils/mockSpinner.d.ts +6 -0
- package/dist/src/test-utils/mockSpinner.js +21 -0
- package/dist/src/test-utils/mockSpinner.js.map +1 -0
- package/dist/src/test-utils/render.d.ts +109 -14
- package/dist/src/test-utils/render.js +393 -95
- package/dist/src/test-utils/render.js.map +1 -1
- package/dist/src/test-utils/render.test.js +34 -30
- package/dist/src/test-utils/render.test.js.map +1 -1
- package/dist/src/test-utils/settings.js +2 -11
- package/dist/src/test-utils/settings.js.map +1 -1
- package/dist/src/test-utils/svg.d.ts +7 -0
- package/dist/src/test-utils/svg.js +182 -0
- package/dist/src/test-utils/svg.js.map +1 -0
- package/dist/src/ui/App.test.js +64 -36
- package/dist/src/ui/App.test.js.map +1 -1
- package/dist/src/ui/AppContainer.d.ts +2 -2
- package/dist/src/ui/AppContainer.js +696 -301
- package/dist/src/ui/AppContainer.js.map +1 -1
- package/dist/src/ui/AppContainer.test.js +1155 -707
- package/dist/src/ui/AppContainer.test.js.map +1 -1
- package/dist/src/ui/IdeIntegrationNudge.js +1 -1
- package/dist/src/ui/IdeIntegrationNudge.js.map +1 -1
- package/dist/src/ui/IdeIntegrationNudge.test.js +27 -36
- package/dist/src/ui/IdeIntegrationNudge.test.js.map +1 -1
- package/dist/src/ui/ToolConfirmationFullFrame.test.d.ts +1 -0
- package/dist/src/ui/ToolConfirmationFullFrame.test.js +158 -0
- package/dist/src/ui/ToolConfirmationFullFrame.test.js.map +1 -0
- package/dist/src/ui/auth/ApiAuthDialog.js +4 -2
- package/dist/src/ui/auth/ApiAuthDialog.js.map +1 -1
- package/dist/src/ui/auth/ApiAuthDialog.test.js +23 -13
- package/dist/src/ui/auth/ApiAuthDialog.test.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.d.ts +1 -1
- package/dist/src/ui/auth/AuthDialog.js +10 -17
- package/dist/src/ui/auth/AuthDialog.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.test.js +69 -34
- package/dist/src/ui/auth/AuthDialog.test.js.map +1 -1
- package/dist/src/ui/auth/AuthInProgress.test.js +33 -15
- package/dist/src/ui/auth/AuthInProgress.test.js.map +1 -1
- package/dist/src/ui/auth/BannedAccountDialog.d.ts +14 -0
- package/dist/src/ui/auth/BannedAccountDialog.js +66 -0
- package/dist/src/ui/auth/BannedAccountDialog.js.map +1 -0
- package/dist/src/ui/auth/BannedAccountDialog.test.d.ts +6 -0
- package/dist/src/ui/auth/BannedAccountDialog.test.js +140 -0
- package/dist/src/ui/auth/BannedAccountDialog.test.js.map +1 -0
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.js +4 -6
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.js.map +1 -1
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js +10 -6
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js.map +1 -1
- package/dist/src/ui/auth/useAuth.d.ts +4 -1
- package/dist/src/ui/auth/useAuth.js +22 -4
- package/dist/src/ui/auth/useAuth.js.map +1 -1
- package/dist/src/ui/auth/useAuth.test.js +83 -58
- package/dist/src/ui/auth/useAuth.test.js.map +1 -1
- package/dist/src/ui/colors.js +8 -2
- package/dist/src/ui/colors.js.map +1 -1
- package/dist/src/ui/commands/aboutCommand.d.ts +1 -1
- package/dist/src/ui/commands/aboutCommand.js +5 -4
- package/dist/src/ui/commands/aboutCommand.js.map +1 -1
- package/dist/src/ui/commands/aboutCommand.test.js +8 -6
- package/dist/src/ui/commands/aboutCommand.test.js.map +1 -1
- package/dist/src/ui/commands/agentsCommand.js +17 -13
- package/dist/src/ui/commands/agentsCommand.js.map +1 -1
- package/dist/src/ui/commands/agentsCommand.test.js +20 -13
- package/dist/src/ui/commands/agentsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/authCommand.js +7 -5
- package/dist/src/ui/commands/authCommand.js.map +1 -1
- package/dist/src/ui/commands/authCommand.test.js +18 -13
- package/dist/src/ui/commands/authCommand.test.js.map +1 -1
- package/dist/src/ui/commands/bugCommand.js +4 -3
- package/dist/src/ui/commands/bugCommand.js.map +1 -1
- package/dist/src/ui/commands/bugCommand.test.js +29 -23
- package/dist/src/ui/commands/bugCommand.test.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.d.ts +2 -0
- package/dist/src/ui/commands/chatCommand.js +60 -26
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.test.js +22 -15
- package/dist/src/ui/commands/chatCommand.test.js.map +1 -1
- package/dist/src/ui/commands/clearCommand.d.ts +1 -1
- package/dist/src/ui/commands/clearCommand.js +16 -14
- package/dist/src/ui/commands/clearCommand.js.map +1 -1
- package/dist/src/ui/commands/clearCommand.test.js +27 -17
- package/dist/src/ui/commands/clearCommand.test.js.map +1 -1
- package/dist/src/ui/commands/commandsCommand.d.ts +7 -0
- package/dist/src/ui/commands/commandsCommand.js +56 -0
- package/dist/src/ui/commands/commandsCommand.js.map +1 -0
- package/dist/src/ui/commands/commandsCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/commandsCommand.test.js +42 -0
- package/dist/src/ui/commands/commandsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/compressCommand.d.ts +1 -1
- package/dist/src/ui/commands/compressCommand.js +2 -4
- package/dist/src/ui/commands/compressCommand.js.map +1 -1
- package/dist/src/ui/commands/compressCommand.test.js +10 -3
- package/dist/src/ui/commands/compressCommand.test.js.map +1 -1
- package/dist/src/ui/commands/copyCommand.d.ts +1 -1
- package/dist/src/ui/commands/copyCommand.js +4 -3
- package/dist/src/ui/commands/copyCommand.js.map +1 -1
- package/dist/src/ui/commands/copyCommand.test.js +10 -8
- package/dist/src/ui/commands/copyCommand.test.js.map +1 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +1 -1
- package/dist/src/ui/commands/directoryCommand.js +15 -15
- package/dist/src/ui/commands/directoryCommand.js.map +1 -1
- package/dist/src/ui/commands/directoryCommand.test.js +5 -2
- package/dist/src/ui/commands/directoryCommand.test.js.map +1 -1
- package/dist/src/ui/commands/extensionsCommand.js +110 -55
- package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
- package/dist/src/ui/commands/extensionsCommand.test.js +80 -33
- package/dist/src/ui/commands/extensionsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/footerCommand.d.ts +7 -0
- package/dist/src/ui/commands/footerCommand.js +20 -0
- package/dist/src/ui/commands/footerCommand.js.map +1 -0
- package/dist/src/ui/commands/helpCommand.d.ts +1 -1
- package/dist/src/ui/commands/helpCommand.js.map +1 -1
- package/dist/src/ui/commands/helpCommand.test.js +1 -2
- package/dist/src/ui/commands/helpCommand.test.js.map +1 -1
- package/dist/src/ui/commands/hooksCommand.js +26 -15
- package/dist/src/ui/commands/hooksCommand.js.map +1 -1
- package/dist/src/ui/commands/hooksCommand.test.js +23 -31
- package/dist/src/ui/commands/hooksCommand.test.js.map +1 -1
- package/dist/src/ui/commands/ideCommand.js +3 -3
- package/dist/src/ui/commands/ideCommand.js.map +1 -1
- package/dist/src/ui/commands/ideCommand.test.js +7 -5
- package/dist/src/ui/commands/ideCommand.test.js.map +1 -1
- package/dist/src/ui/commands/initCommand.js +2 -2
- package/dist/src/ui/commands/initCommand.js.map +1 -1
- package/dist/src/ui/commands/initCommand.test.js +5 -3
- package/dist/src/ui/commands/initCommand.test.js.map +1 -1
- package/dist/src/ui/commands/mcpCommand.js +68 -28
- package/dist/src/ui/commands/mcpCommand.js.map +1 -1
- package/dist/src/ui/commands/mcpCommand.test.js +49 -8
- package/dist/src/ui/commands/mcpCommand.test.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +1 -1
- package/dist/src/ui/commands/memoryCommand.js +9 -8
- package/dist/src/ui/commands/memoryCommand.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.test.js +39 -35
- package/dist/src/ui/commands/memoryCommand.test.js.map +1 -1
- package/dist/src/ui/commands/modelCommand.js +41 -4
- package/dist/src/ui/commands/modelCommand.js.map +1 -1
- package/dist/src/ui/commands/modelCommand.test.js +98 -4
- package/dist/src/ui/commands/modelCommand.test.js.map +1 -1
- package/dist/src/ui/commands/oncallCommand.js +4 -2
- package/dist/src/ui/commands/oncallCommand.js.map +1 -1
- package/dist/src/ui/commands/planCommand.js +44 -5
- package/dist/src/ui/commands/planCommand.js.map +1 -1
- package/dist/src/ui/commands/planCommand.test.js +73 -14
- package/dist/src/ui/commands/planCommand.test.js.map +1 -1
- package/dist/src/ui/commands/policiesCommand.js +7 -1
- package/dist/src/ui/commands/policiesCommand.js.map +1 -1
- package/dist/src/ui/commands/policiesCommand.test.js +50 -4
- package/dist/src/ui/commands/policiesCommand.test.js.map +1 -1
- package/dist/src/ui/commands/privacyCommand.d.ts +1 -1
- package/dist/src/ui/commands/privacyCommand.js +1 -1
- package/dist/src/ui/commands/privacyCommand.js.map +1 -1
- package/dist/src/ui/commands/restoreCommand.js +6 -6
- package/dist/src/ui/commands/restoreCommand.js.map +1 -1
- package/dist/src/ui/commands/restoreCommand.test.js +6 -3
- package/dist/src/ui/commands/restoreCommand.test.js.map +1 -1
- package/dist/src/ui/commands/resumeCommand.js +3 -1
- package/dist/src/ui/commands/resumeCommand.js.map +1 -1
- package/dist/src/ui/commands/resumeCommand.test.js +28 -0
- package/dist/src/ui/commands/resumeCommand.test.js.map +1 -0
- package/dist/src/ui/commands/rewindCommand.js +9 -5
- package/dist/src/ui/commands/rewindCommand.js.map +1 -1
- package/dist/src/ui/commands/rewindCommand.test.js +20 -9
- package/dist/src/ui/commands/rewindCommand.test.js.map +1 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +1 -1
- package/dist/src/ui/commands/settingsCommand.js +2 -1
- package/dist/src/ui/commands/settingsCommand.js.map +1 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +1 -1
- package/dist/src/ui/commands/setupGithubCommand.js +9 -7
- package/dist/src/ui/commands/setupGithubCommand.js.map +1 -1
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -1
- package/dist/src/ui/commands/shortcutsCommand.d.ts +1 -1
- package/dist/src/ui/commands/shortcutsCommand.js.map +1 -1
- package/dist/src/ui/commands/skillsCommand.js +23 -13
- package/dist/src/ui/commands/skillsCommand.js.map +1 -1
- package/dist/src/ui/commands/skillsCommand.test.js +19 -20
- package/dist/src/ui/commands/skillsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/statsCommand.js +27 -14
- package/dist/src/ui/commands/statsCommand.js.map +1 -1
- package/dist/src/ui/commands/statsCommand.test.js +20 -4
- package/dist/src/ui/commands/statsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/{shellsCommand.d.ts → tasksCommand.d.ts} +1 -1
- package/dist/src/ui/commands/{shellsCommand.js → tasksCommand.js} +6 -6
- package/dist/src/ui/commands/tasksCommand.js.map +1 -0
- package/dist/src/ui/commands/tasksCommand.test.js +30 -0
- package/dist/src/ui/commands/tasksCommand.test.js.map +1 -0
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +1 -1
- package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -1
- package/dist/src/ui/commands/themeCommand.d.ts +1 -1
- package/dist/src/ui/commands/themeCommand.js +1 -1
- package/dist/src/ui/commands/themeCommand.js.map +1 -1
- package/dist/src/ui/commands/toolsCommand.js +43 -27
- package/dist/src/ui/commands/toolsCommand.js.map +1 -1
- package/dist/src/ui/commands/toolsCommand.test.js +97 -10
- package/dist/src/ui/commands/toolsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +26 -5
- package/dist/src/ui/commands/types.js +4 -1
- package/dist/src/ui/commands/types.js.map +1 -1
- package/dist/src/ui/commands/upgradeCommand.d.ts +11 -0
- package/dist/src/ui/commands/upgradeCommand.js +58 -0
- package/dist/src/ui/commands/upgradeCommand.js.map +1 -0
- package/dist/src/ui/commands/upgradeCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/upgradeCommand.test.js +102 -0
- package/dist/src/ui/commands/upgradeCommand.test.js.map +1 -0
- package/dist/src/ui/commands/vimCommand.d.ts +1 -1
- package/dist/src/ui/commands/vimCommand.js +1 -0
- package/dist/src/ui/commands/vimCommand.js.map +1 -1
- package/dist/src/ui/components/AboutBox.js +2 -2
- package/dist/src/ui/components/AboutBox.test.js +14 -10
- package/dist/src/ui/components/AboutBox.test.js.map +1 -1
- package/dist/src/ui/components/AdminSettingsChangedDialog.js +3 -1
- package/dist/src/ui/components/AdminSettingsChangedDialog.js.map +1 -1
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.js +4 -4
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.js.map +1 -1
- package/dist/src/ui/components/AgentConfigDialog.d.ts +4 -2
- package/dist/src/ui/components/AgentConfigDialog.js +25 -38
- package/dist/src/ui/components/AgentConfigDialog.js.map +1 -1
- package/dist/src/ui/components/AgentConfigDialog.test.js +52 -26
- package/dist/src/ui/components/AgentConfigDialog.test.js.map +1 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js +2 -4
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js.map +1 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +23 -18
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js.map +1 -1
- package/dist/src/ui/components/AnsiOutput.js +7 -1
- package/dist/src/ui/components/AnsiOutput.js.map +1 -1
- package/dist/src/ui/components/AnsiOutput.test.js +40 -19
- package/dist/src/ui/components/AnsiOutput.test.js.map +1 -1
- package/dist/src/ui/components/AppHeader.d.ts +3 -2
- package/dist/src/ui/components/AppHeader.js +55 -8
- package/dist/src/ui/components/AppHeader.js.map +1 -1
- package/dist/src/ui/components/AppHeader.test.js +62 -40
- package/dist/src/ui/components/AppHeader.test.js.map +1 -1
- package/dist/src/ui/components/AppHeaderIcon.test.d.ts +6 -0
- package/dist/src/ui/components/AppHeaderIcon.test.js +39 -0
- package/dist/src/ui/components/AppHeaderIcon.test.js.map +1 -0
- package/dist/src/ui/components/ApprovalModeIndicator.d.ts +1 -1
- package/dist/src/ui/components/ApprovalModeIndicator.js +14 -10
- package/dist/src/ui/components/ApprovalModeIndicator.js.map +1 -1
- package/dist/src/ui/components/ApprovalModeIndicator.test.js +12 -12
- package/dist/src/ui/components/ApprovalModeIndicator.test.js.map +1 -1
- package/dist/src/ui/components/AsciiArt.d.ts +9 -6
- package/dist/src/ui/components/AsciiArt.js +24 -6
- package/dist/src/ui/components/AsciiArt.js.map +1 -1
- package/dist/src/ui/components/AskUserDialog.d.ts +5 -1
- package/dist/src/ui/components/AskUserDialog.js +126 -54
- package/dist/src/ui/components/AskUserDialog.js.map +1 -1
- package/dist/src/ui/components/AskUserDialog.test.js +394 -96
- package/dist/src/ui/components/AskUserDialog.test.js.map +1 -1
- package/dist/src/ui/components/BackgroundTaskDisplay.d.ts +16 -0
- package/dist/src/ui/components/{BackgroundShellDisplay.js → BackgroundTaskDisplay.js} +36 -19
- package/dist/src/ui/components/BackgroundTaskDisplay.js.map +1 -0
- package/dist/src/ui/components/{BackgroundShellDisplay.test.js → BackgroundTaskDisplay.test.js} +54 -66
- package/dist/src/ui/components/BackgroundTaskDisplay.test.js.map +1 -0
- package/dist/src/ui/components/Banner.js +4 -4
- package/dist/src/ui/components/Banner.js.map +1 -1
- package/dist/src/ui/components/Banner.test.js +12 -7
- package/dist/src/ui/components/Banner.test.js.map +1 -1
- package/dist/src/ui/components/BubblingRegression.test.js +3 -1
- package/dist/src/ui/components/BubblingRegression.test.js.map +1 -1
- package/dist/src/ui/components/Checklist.js +1 -1
- package/dist/src/ui/components/Checklist.js.map +1 -1
- package/dist/src/ui/components/Checklist.test.js +12 -12
- package/dist/src/ui/components/Checklist.test.js.map +1 -1
- package/dist/src/ui/components/ChecklistItem.d.ts +1 -1
- package/dist/src/ui/components/ChecklistItem.js +3 -0
- package/dist/src/ui/components/ChecklistItem.js.map +1 -1
- package/dist/src/ui/components/ChecklistItem.test.js +7 -6
- package/dist/src/ui/components/ChecklistItem.test.js.map +1 -1
- package/dist/src/ui/components/CliSpinner.test.js +8 -5
- package/dist/src/ui/components/CliSpinner.test.js.map +1 -1
- package/dist/src/ui/components/ColorsDisplay.d.ts +12 -0
- package/dist/src/ui/components/ColorsDisplay.js +119 -0
- package/dist/src/ui/components/ColorsDisplay.js.map +1 -0
- package/dist/src/ui/components/ColorsDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/ColorsDisplay.test.js +107 -0
- package/dist/src/ui/components/ColorsDisplay.test.js.map +1 -0
- package/dist/src/ui/components/Composer.d.ts +1 -1
- package/dist/src/ui/components/Composer.js +53 -58
- package/dist/src/ui/components/Composer.js.map +1 -1
- package/dist/src/ui/components/Composer.test.js +436 -108
- package/dist/src/ui/components/Composer.test.js.map +1 -1
- package/dist/src/ui/components/ConfigExtensionDialog.js +2 -2
- package/dist/src/ui/components/ConfigExtensionDialog.js.map +1 -1
- package/dist/src/ui/components/ConfigInitDisplay.js +4 -4
- package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -1
- package/dist/src/ui/components/ConfigInitDisplay.test.js +7 -7
- package/dist/src/ui/components/ConfigInitDisplay.test.js.map +1 -1
- package/dist/src/ui/components/ConsentPrompt.js +5 -4
- package/dist/src/ui/components/ConsentPrompt.js.map +1 -1
- package/dist/src/ui/components/ConsentPrompt.test.js +10 -8
- package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js +7 -5
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js.map +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.js +5 -10
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.test.js +9 -30
- package/dist/src/ui/components/ContextSummaryDisplay.test.js.map +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.js +17 -5
- package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.test.js +26 -19
- package/dist/src/ui/components/ContextUsageDisplay.test.js.map +1 -1
- package/dist/src/ui/components/CopyModeWarning.js +3 -6
- package/dist/src/ui/components/CopyModeWarning.js.map +1 -1
- package/dist/src/ui/components/CopyModeWarning.test.js +14 -12
- package/dist/src/ui/components/CopyModeWarning.test.js.map +1 -1
- package/dist/src/ui/components/DebugProfiler.js +12 -0
- package/dist/src/ui/components/DebugProfiler.js.map +1 -1
- package/dist/src/ui/components/DebugProfiler.test.js +13 -14
- package/dist/src/ui/components/DebugProfiler.test.js.map +1 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -2
- package/dist/src/ui/components/DetailedMessagesDisplay.js +12 -7
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js +50 -9
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js.map +1 -1
- package/dist/src/ui/components/DialogManager.js +25 -9
- package/dist/src/ui/components/DialogManager.js.map +1 -1
- package/dist/src/ui/components/DialogManager.test.js +11 -5
- package/dist/src/ui/components/DialogManager.test.js.map +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.js +2 -3
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.test.js +13 -11
- package/dist/src/ui/components/EditorSettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/EmptyWalletDialog.d.ts +22 -0
- package/dist/src/ui/components/EmptyWalletDialog.js +33 -0
- package/dist/src/ui/components/EmptyWalletDialog.js.map +1 -0
- package/dist/src/ui/components/EmptyWalletDialog.test.d.ts +6 -0
- package/dist/src/ui/components/EmptyWalletDialog.test.js +116 -0
- package/dist/src/ui/components/EmptyWalletDialog.test.js.map +1 -0
- package/dist/src/ui/components/ExitPlanModeDialog.d.ts +2 -1
- package/dist/src/ui/components/ExitPlanModeDialog.js +49 -9
- package/dist/src/ui/components/ExitPlanModeDialog.js.map +1 -1
- package/dist/src/ui/components/ExitPlanModeDialog.test.js +81 -37
- package/dist/src/ui/components/ExitPlanModeDialog.test.js.map +1 -1
- package/dist/src/ui/components/ExitWarning.test.js +14 -10
- package/dist/src/ui/components/ExitWarning.test.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +2 -0
- package/dist/src/ui/components/FolderTrustDialog.js +52 -7
- package/dist/src/ui/components/FolderTrustDialog.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.js +256 -23
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/Footer.d.ts +13 -0
- package/dist/src/ui/components/Footer.js +228 -14
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/Footer.test.js +547 -109
- package/dist/src/ui/components/Footer.test.js.map +1 -1
- package/dist/src/ui/components/FooterConfigDialog.d.ts +11 -0
- package/dist/src/ui/components/FooterConfigDialog.js +214 -0
- package/dist/src/ui/components/FooterConfigDialog.js.map +1 -0
- package/dist/src/ui/components/FooterConfigDialog.test.d.ts +6 -0
- package/dist/src/ui/components/FooterConfigDialog.test.js +191 -0
- package/dist/src/ui/components/FooterConfigDialog.test.js.map +1 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +6 -5
- package/dist/src/ui/components/GeminiRespondingSpinner.js +6 -35
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js +23 -19
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js.map +1 -1
- package/dist/src/ui/components/GeminiSpinner.d.ts +13 -0
- package/dist/src/ui/components/GeminiSpinner.js +35 -0
- package/dist/src/ui/components/GeminiSpinner.js.map +1 -0
- package/dist/src/ui/components/GradientRegression.test.js +22 -11
- package/dist/src/ui/components/GradientRegression.test.js.map +1 -1
- package/dist/src/ui/components/Header.test.js +16 -12
- package/dist/src/ui/components/Header.test.js.map +1 -1
- package/dist/src/ui/components/Help.js +3 -3
- package/dist/src/ui/components/Help.js.map +1 -1
- package/dist/src/ui/components/Help.test.js +8 -8
- package/dist/src/ui/components/Help.test.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +5 -3
- package/dist/src/ui/components/HistoryItemDisplay.js +15 -12
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.js +95 -44
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
- package/dist/src/ui/components/HookStatusDisplay.js +18 -11
- package/dist/src/ui/components/HookStatusDisplay.js.map +1 -1
- package/dist/src/ui/components/HookStatusDisplay.test.js +35 -9
- package/dist/src/ui/components/HookStatusDisplay.test.js.map +1 -1
- package/dist/src/ui/components/HooksDialog.d.ts +36 -0
- package/dist/src/ui/components/HooksDialog.js +83 -0
- package/dist/src/ui/components/HooksDialog.js.map +1 -0
- package/dist/src/ui/components/HooksDialog.test.d.ts +6 -0
- package/dist/src/ui/components/HooksDialog.test.js +175 -0
- package/dist/src/ui/components/HooksDialog.test.js.map +1 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js +39 -19
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.d.ts +12 -8
- package/dist/src/ui/components/InputPrompt.js +383 -180
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.test.d.ts +12 -1
- package/dist/src/ui/components/InputPrompt.test.js +701 -239
- package/dist/src/ui/components/InputPrompt.test.js.map +1 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +7 -0
- package/dist/src/ui/components/LoadingIndicator.js +18 -13
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
- package/dist/src/ui/components/LoadingIndicator.test.js +170 -60
- package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -1
- package/dist/src/ui/components/LogoutConfirmationDialog.js +3 -3
- package/dist/src/ui/components/LogoutConfirmationDialog.js.map +1 -1
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js +23 -12
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js.map +1 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.js +1 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +7 -5
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -1
- package/dist/src/ui/components/MainContent.d.ts +1 -1
- package/dist/src/ui/components/MainContent.js +144 -29
- package/dist/src/ui/components/MainContent.js.map +1 -1
- package/dist/src/ui/components/MainContent.test.js +558 -27
- package/dist/src/ui/components/MainContent.test.js.map +1 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +4 -1
- package/dist/src/ui/components/MemoryUsageDisplay.js +10 -9
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -1
- package/dist/src/ui/components/MemoryUsageDisplay.test.js +6 -3
- package/dist/src/ui/components/MemoryUsageDisplay.test.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.js +131 -21
- package/dist/src/ui/components/ModelDialog.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.test.js +148 -35
- package/dist/src/ui/components/ModelDialog.test.js.map +1 -1
- package/dist/src/ui/components/ModelQuotaDisplay.d.ts +18 -0
- package/dist/src/ui/components/ModelQuotaDisplay.js +104 -0
- package/dist/src/ui/components/ModelQuotaDisplay.js.map +1 -0
- package/dist/src/ui/components/ModelQuotaDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/ModelQuotaDisplay.test.js +62 -0
- package/dist/src/ui/components/ModelQuotaDisplay.test.js.map +1 -0
- package/dist/src/ui/components/ModelStatsDisplay.js +56 -4
- package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.test.js +212 -20
- package/dist/src/ui/components/ModelStatsDisplay.test.js.map +1 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.d.ts +1 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.js +2 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.js.map +1 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js +24 -9
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/NewAgentsNotification.d.ts +1 -1
- package/dist/src/ui/components/NewAgentsNotification.js +17 -1
- package/dist/src/ui/components/NewAgentsNotification.js.map +1 -1
- package/dist/src/ui/components/NewAgentsNotification.test.js +39 -4
- package/dist/src/ui/components/NewAgentsNotification.test.js.map +1 -1
- package/dist/src/ui/components/Notifications.js +50 -4
- package/dist/src/ui/components/Notifications.js.map +1 -1
- package/dist/src/ui/components/Notifications.test.js +160 -36
- package/dist/src/ui/components/Notifications.test.js.map +1 -1
- package/dist/src/ui/components/OverageMenuDialog.d.ts +22 -0
- package/dist/src/ui/components/OverageMenuDialog.js +32 -0
- package/dist/src/ui/components/OverageMenuDialog.js.map +1 -0
- package/dist/src/ui/components/OverageMenuDialog.test.d.ts +6 -0
- package/dist/src/ui/components/OverageMenuDialog.test.js +118 -0
- package/dist/src/ui/components/OverageMenuDialog.test.js.map +1 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +31 -12
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/PolicyUpdateDialog.d.ts +18 -0
- package/dist/src/ui/components/PolicyUpdateDialog.js +61 -0
- package/dist/src/ui/components/PolicyUpdateDialog.js.map +1 -0
- package/dist/src/ui/components/PolicyUpdateDialog.test.d.ts +6 -0
- package/dist/src/ui/components/PolicyUpdateDialog.test.js +92 -0
- package/dist/src/ui/components/PolicyUpdateDialog.test.js.map +1 -0
- package/dist/src/ui/components/ProQuotaDialog.d.ts +4 -1
- package/dist/src/ui/components/ProQuotaDialog.js +13 -6
- package/dist/src/ui/components/ProQuotaDialog.js.map +1 -1
- package/dist/src/ui/components/ProQuotaDialog.test.js +53 -22
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -1
- package/dist/src/ui/components/ProgressBar.d.ts +13 -0
- package/dist/src/ui/components/ProgressBar.js +17 -0
- package/dist/src/ui/components/ProgressBar.js.map +1 -0
- package/dist/src/ui/components/ProgressBar.test.d.ts +6 -0
- package/dist/src/ui/components/ProgressBar.test.js +28 -0
- package/dist/src/ui/components/ProgressBar.test.js.map +1 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +11 -11
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -1
- package/dist/src/ui/components/QuittingDisplay.test.js +7 -5
- package/dist/src/ui/components/QuittingDisplay.test.js.map +1 -1
- package/dist/src/ui/components/QuotaDisplay.d.ts +2 -0
- package/dist/src/ui/components/QuotaDisplay.js +23 -14
- package/dist/src/ui/components/QuotaDisplay.js.map +1 -1
- package/dist/src/ui/components/QuotaDisplay.test.js +41 -23
- package/dist/src/ui/components/QuotaDisplay.test.js.map +1 -1
- package/dist/src/ui/components/QuotaStatsInfo.js +13 -9
- package/dist/src/ui/components/QuotaStatsInfo.js.map +1 -1
- package/dist/src/ui/components/RatingWidget.js +2 -2
- package/dist/src/ui/components/RatingWidget.js.map +1 -1
- package/dist/src/ui/components/RawMarkdownIndicator.js +3 -1
- package/dist/src/ui/components/RawMarkdownIndicator.js.map +1 -1
- package/dist/src/ui/components/RawMarkdownIndicator.test.js +11 -7
- package/dist/src/ui/components/RawMarkdownIndicator.test.js.map +1 -1
- package/dist/src/ui/components/RewindConfirmation.js +11 -3
- package/dist/src/ui/components/RewindConfirmation.js.map +1 -1
- package/dist/src/ui/components/RewindConfirmation.test.js +11 -7
- package/dist/src/ui/components/RewindConfirmation.test.js.map +1 -1
- package/dist/src/ui/components/RewindViewer.js +32 -9
- package/dist/src/ui/components/RewindViewer.js.map +1 -1
- package/dist/src/ui/components/RewindViewer.test.js +90 -18
- package/dist/src/ui/components/RewindViewer.test.js.map +1 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.d.ts +10 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.js +8 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.d.ts +13 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.js +8 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.d.ts +10 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.js +8 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.d.ts +23 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.js +17 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserSearchNav.test.d.ts +6 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserSearchNav.test.js +47 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserSearchNav.test.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserStates.test.d.ts +6 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserStates.test.js +27 -0
- package/dist/src/ui/components/SessionBrowser/SessionBrowserStates.test.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.d.ts +13 -0
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.js +8 -0
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser/utils.d.ts +33 -0
- package/dist/src/ui/components/SessionBrowser/utils.js +100 -0
- package/dist/src/ui/components/SessionBrowser/utils.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser/utils.test.d.ts +6 -0
- package/dist/src/ui/components/SessionBrowser/utils.test.js +108 -0
- package/dist/src/ui/components/SessionBrowser/utils.test.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser.js +13 -128
- package/dist/src/ui/components/SessionBrowser.js.map +1 -1
- package/dist/src/ui/components/SessionBrowser.test.js +22 -13
- package/dist/src/ui/components/SessionBrowser.test.js.map +1 -1
- package/dist/src/ui/components/SessionSummaryDisplay.js +17 -1
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/SessionSummaryDisplay.test.js +118 -20
- package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +1 -5
- package/dist/src/ui/components/SettingsDialog.js +120 -329
- package/dist/src/ui/components/SettingsDialog.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.test.js +366 -212
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/ShellInputPrompt.js +11 -3
- package/dist/src/ui/components/ShellInputPrompt.js.map +1 -1
- package/dist/src/ui/components/ShellInputPrompt.test.js +111 -67
- package/dist/src/ui/components/ShellInputPrompt.test.js.map +1 -1
- package/dist/src/ui/components/ShellModeIndicator.test.js +3 -2
- package/dist/src/ui/components/ShellModeIndicator.test.js.map +1 -1
- package/dist/src/ui/components/ShortcutsHelp.js +46 -17
- package/dist/src/ui/components/ShortcutsHelp.js.map +1 -1
- package/dist/src/ui/components/ShortcutsHelp.test.js +11 -3
- package/dist/src/ui/components/ShortcutsHelp.test.js.map +1 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +2 -1
- package/dist/src/ui/components/ShowMoreLines.js +7 -5
- package/dist/src/ui/components/ShowMoreLines.js.map +1 -1
- package/dist/src/ui/components/ShowMoreLines.test.js +42 -7
- package/dist/src/ui/components/ShowMoreLines.test.js.map +1 -1
- package/dist/src/ui/components/ShowMoreLinesLayout.test.d.ts +1 -0
- package/dist/src/ui/components/ShowMoreLinesLayout.test.js +67 -0
- package/dist/src/ui/components/ShowMoreLinesLayout.test.js.map +1 -0
- package/dist/src/ui/components/StatsDisplay.d.ts +4 -2
- package/dist/src/ui/components/StatsDisplay.js +58 -88
- package/dist/src/ui/components/StatsDisplay.js.map +1 -1
- package/dist/src/ui/components/StatsDisplay.test.js +109 -166
- package/dist/src/ui/components/StatsDisplay.test.js.map +1 -1
- package/dist/src/ui/components/StatusDisplay.d.ts +1 -2
- package/dist/src/ui/components/StatusDisplay.js +1 -6
- package/dist/src/ui/components/StatusDisplay.js.map +1 -1
- package/dist/src/ui/components/StatusDisplay.test.js +37 -24
- package/dist/src/ui/components/StatusDisplay.test.js.map +1 -1
- package/dist/src/ui/components/StatusRow.d.ts +32 -0
- package/dist/src/ui/components/StatusRow.js +180 -0
- package/dist/src/ui/components/StatusRow.js.map +1 -0
- package/dist/src/ui/components/StatusRow.test.d.ts +6 -0
- package/dist/src/ui/components/StatusRow.test.js +99 -0
- package/dist/src/ui/components/StatusRow.test.js.map +1 -0
- package/dist/src/ui/components/StickyHeader.test.js +3 -2
- package/dist/src/ui/components/StickyHeader.test.js.map +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +3 -0
- package/dist/src/ui/components/SuggestionsDisplay.js +9 -5
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.test.js +39 -13
- package/dist/src/ui/components/SuggestionsDisplay.test.js.map +1 -1
- package/dist/src/ui/components/Table.test.js +26 -8
- package/dist/src/ui/components/Table.test.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +1 -1
- package/dist/src/ui/components/ThemeDialog.js +31 -32
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.test.js +48 -24
- package/dist/src/ui/components/ThemeDialog.test.js.map +1 -1
- package/dist/src/ui/components/ThemedGradient.test.js +7 -2
- package/dist/src/ui/components/ThemedGradient.test.js.map +1 -1
- package/dist/src/ui/components/Tips.d.ts +1 -1
- package/dist/src/ui/components/Tips.js +1 -1
- package/dist/src/ui/components/Tips.js.map +1 -1
- package/dist/src/ui/components/Tips.test.d.ts +1 -1
- package/dist/src/ui/components/Tips.test.js +8 -8
- package/dist/src/ui/components/Tips.test.js.map +1 -1
- package/dist/src/ui/components/ToastDisplay.d.ts +2 -1
- package/dist/src/ui/components/ToastDisplay.js +13 -6
- package/dist/src/ui/components/ToastDisplay.js.map +1 -1
- package/dist/src/ui/components/ToastDisplay.test.js +69 -34
- package/dist/src/ui/components/ToastDisplay.test.js.map +1 -1
- package/dist/src/ui/components/ToolConfirmationQueue.js +34 -19
- package/dist/src/ui/components/ToolConfirmationQueue.js.map +1 -1
- package/dist/src/ui/components/ToolConfirmationQueue.test.js +276 -50
- package/dist/src/ui/components/ToolConfirmationQueue.test.js.map +1 -1
- package/dist/src/ui/components/ToolStatsDisplay.test.js +19 -12
- package/dist/src/ui/components/ToolStatsDisplay.test.js.map +1 -1
- package/dist/src/ui/components/UpdateNotification.test.js +3 -2
- package/dist/src/ui/components/UpdateNotification.test.js.map +1 -1
- package/dist/src/ui/components/UserIdentity.d.ts +1 -1
- package/dist/src/ui/components/UserIdentity.js +14 -11
- package/dist/src/ui/components/UserIdentity.js.map +1 -1
- package/dist/src/ui/components/UserIdentity.test.d.ts +1 -1
- package/dist/src/ui/components/UserIdentity.test.js +60 -17
- package/dist/src/ui/components/UserIdentity.test.js.map +1 -1
- package/dist/src/ui/components/ValidationDialog.js +4 -2
- package/dist/src/ui/components/ValidationDialog.js.map +1 -1
- package/dist/src/ui/components/ValidationDialog.test.js +25 -16
- package/dist/src/ui/components/ValidationDialog.test.js.map +1 -1
- package/dist/src/ui/components/messages/CompressionMessage.test.js +91 -102
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/DenseToolMessage.d.ts +13 -0
- package/dist/src/ui/components/messages/DenseToolMessage.js +270 -0
- package/dist/src/ui/components/messages/DenseToolMessage.js.map +1 -0
- package/dist/src/ui/components/messages/DenseToolMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/DenseToolMessage.test.js +383 -0
- package/dist/src/ui/components/messages/DenseToolMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +18 -0
- package/dist/src/ui/components/messages/DiffRenderer.js +55 -35
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.js +46 -17
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -1
- package/dist/src/ui/components/messages/ErrorMessage.test.js +6 -4
- package/dist/src/ui/components/messages/ErrorMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.js +3 -6
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.test.js +15 -4
- package/dist/src/ui/components/messages/GeminiMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.js +4 -7
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -1
- package/dist/src/ui/components/messages/HintMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/HintMessage.js +14 -0
- package/dist/src/ui/components/messages/HintMessage.js.map +1 -0
- package/dist/src/ui/components/messages/InfoMessage.d.ts +3 -0
- package/dist/src/ui/components/messages/InfoMessage.js +2 -2
- package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
- package/dist/src/ui/components/messages/InfoMessage.test.js +9 -6
- package/dist/src/ui/components/messages/InfoMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.js +6 -4
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.js.map +1 -1
- package/dist/src/ui/components/messages/ShellToolMessage.d.ts +2 -3
- package/dist/src/ui/components/messages/ShellToolMessage.js +37 -29
- package/dist/src/ui/components/messages/ShellToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ShellToolMessage.test.js +140 -55
- package/dist/src/ui/components/messages/ShellToolMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/SubagentGroupDisplay.d.ts +17 -0
- package/dist/src/ui/components/messages/SubagentGroupDisplay.js +139 -0
- package/dist/src/ui/components/messages/SubagentGroupDisplay.js.map +1 -0
- package/dist/src/ui/components/messages/SubagentGroupDisplay.test.d.ts +1 -0
- package/dist/src/ui/components/messages/SubagentGroupDisplay.test.js +91 -0
- package/dist/src/ui/components/messages/SubagentGroupDisplay.test.js.map +1 -0
- package/dist/src/ui/components/messages/SubagentHistoryMessage.d.ts +13 -0
- package/dist/src/ui/components/messages/SubagentHistoryMessage.js +4 -0
- package/dist/src/ui/components/messages/SubagentHistoryMessage.js.map +1 -0
- package/dist/src/ui/components/messages/SubagentHistoryMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/SubagentHistoryMessage.test.js +68 -0
- package/dist/src/ui/components/messages/SubagentHistoryMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/SubagentProgressDisplay.d.ts +14 -0
- package/dist/src/ui/components/messages/SubagentProgressDisplay.js +79 -0
- package/dist/src/ui/components/messages/SubagentProgressDisplay.js.map +1 -0
- package/dist/src/ui/components/messages/SubagentProgressDisplay.test.js +163 -0
- package/dist/src/ui/components/messages/SubagentProgressDisplay.test.js.map +1 -0
- package/dist/src/ui/components/messages/ThinkingMessage.d.ts +2 -0
- package/dist/src/ui/components/messages/ThinkingMessage.js +26 -25
- package/dist/src/ui/components/messages/ThinkingMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ThinkingMessage.test.js +81 -22
- package/dist/src/ui/components/messages/ThinkingMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/Todo.js +5 -3
- package/dist/src/ui/components/messages/Todo.js.map +1 -1
- package/dist/src/ui/components/messages/Todo.test.js +35 -21
- package/dist/src/ui/components/messages/Todo.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +4 -2
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +357 -81
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +296 -31
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.compact.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.compact.test.js +147 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.compact.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +6 -5
- package/dist/src/ui/components/messages/ToolGroupMessage.js +275 -86
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +495 -293
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessageRegression.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolGroupMessageRegression.test.js +101 -0
- package/dist/src/ui/components/messages/ToolGroupMessageRegression.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolMessage.js +7 -4
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.test.js +158 -43
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js +15 -8
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +15 -5
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolOverflowConsistencyChecks.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolOverflowConsistencyChecks.test.js +88 -0
- package/dist/src/ui/components/messages/ToolOverflowConsistencyChecks.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolResultDisplay.d.ts +1 -0
- package/dist/src/ui/components/messages/ToolResultDisplay.js +108 -88
- package/dist/src/ui/components/messages/ToolResultDisplay.js.map +1 -1
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js +193 -55
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolResultDisplayOverflow.test.js +63 -39
- package/dist/src/ui/components/messages/ToolResultDisplayOverflow.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolShared.d.ts +15 -6
- package/dist/src/ui/components/messages/ToolShared.js +45 -26
- package/dist/src/ui/components/messages/ToolShared.js.map +1 -1
- package/dist/src/ui/components/messages/ToolShared.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolShared.test.js +47 -0
- package/dist/src/ui/components/messages/ToolShared.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js +17 -10
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js.map +1 -1
- package/dist/src/ui/components/messages/TopicMessage.d.ts +15 -0
- package/dist/src/ui/components/messages/TopicMessage.js +56 -0
- package/dist/src/ui/components/messages/TopicMessage.js.map +1 -0
- package/dist/src/ui/components/messages/TopicMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/TopicMessage.test.js +77 -0
- package/dist/src/ui/components/messages/TopicMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/UserMessage.js +2 -3
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
- package/dist/src/ui/components/messages/UserMessage.test.js +12 -8
- package/dist/src/ui/components/messages/UserMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/UserShellMessage.js +1 -2
- package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -1
- package/dist/src/ui/components/messages/WarningMessage.test.js +6 -4
- package/dist/src/ui/components/messages/WarningMessage.test.js.map +1 -1
- package/dist/src/ui/components/shared/BaseSelectionList.d.ts +3 -2
- package/dist/src/ui/components/shared/BaseSelectionList.js +25 -20
- package/dist/src/ui/components/shared/BaseSelectionList.js.map +1 -1
- package/dist/src/ui/components/shared/BaseSelectionList.test.js +140 -113
- package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.d.ts +16 -5
- package/dist/src/ui/components/shared/BaseSettingsDialog.js +130 -170
- package/dist/src/ui/components/shared/BaseSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.js +244 -48
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +16 -6
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +1 -1
- package/dist/src/ui/components/shared/DialogFooter.d.ts +3 -1
- package/dist/src/ui/components/shared/DialogFooter.js +2 -1
- package/dist/src/ui/components/shared/DialogFooter.js.map +1 -1
- package/dist/src/ui/components/shared/EnumSelector.js +0 -5
- package/dist/src/ui/components/shared/EnumSelector.js.map +1 -1
- package/dist/src/ui/components/shared/EnumSelector.test.js +33 -20
- package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -1
- package/dist/src/ui/components/shared/ExpandableText.test.js +28 -23
- package/dist/src/ui/components/shared/ExpandableText.test.js.map +1 -1
- package/dist/src/ui/components/shared/HalfLinePaddedBox.js +3 -2
- package/dist/src/ui/components/shared/HalfLinePaddedBox.js.map +1 -1
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.js +4 -4
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.js.map +1 -1
- package/dist/src/ui/components/shared/HorizontalLine.d.ts +1 -0
- package/dist/src/ui/components/shared/HorizontalLine.js +1 -1
- package/dist/src/ui/components/shared/HorizontalLine.js.map +1 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +2 -2
- package/dist/src/ui/components/shared/MaxSizedBox.js +18 -6
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +90 -32
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +1 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.js +2 -2
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +22 -11
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -1
- package/dist/src/ui/components/shared/Scrollable.d.ts +5 -1
- package/dist/src/ui/components/shared/Scrollable.js +103 -45
- package/dist/src/ui/components/shared/Scrollable.js.map +1 -1
- package/dist/src/ui/components/shared/Scrollable.test.js +41 -36
- package/dist/src/ui/components/shared/Scrollable.test.js.map +1 -1
- package/dist/src/ui/components/shared/ScrollableList.d.ts +9 -12
- package/dist/src/ui/components/shared/ScrollableList.js +20 -13
- package/dist/src/ui/components/shared/ScrollableList.js.map +1 -1
- package/dist/src/ui/components/shared/ScrollableList.test.js +213 -22
- package/dist/src/ui/components/shared/ScrollableList.test.js.map +1 -1
- package/dist/src/ui/components/shared/SearchableList.d.ts +61 -0
- package/dist/src/ui/components/shared/SearchableList.js +86 -0
- package/dist/src/ui/components/shared/SearchableList.js.map +1 -0
- package/dist/src/ui/components/shared/SearchableList.test.js +169 -0
- package/dist/src/ui/components/shared/SearchableList.test.js.map +1 -0
- package/dist/src/ui/components/shared/SectionHeader.d.ts +1 -0
- package/dist/src/ui/components/shared/SectionHeader.js +1 -1
- package/dist/src/ui/components/shared/SectionHeader.js.map +1 -1
- package/dist/src/ui/components/shared/SectionHeader.test.js +8 -2
- package/dist/src/ui/components/shared/SectionHeader.test.js.map +1 -1
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.d.ts +18 -0
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.js +75 -0
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.js.map +1 -0
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.test.d.ts +6 -0
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.test.js +53 -0
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.test.js.map +1 -0
- package/dist/src/ui/components/shared/TabHeader.js +1 -1
- package/dist/src/ui/components/shared/TabHeader.js.map +1 -1
- package/dist/src/ui/components/shared/TabHeader.test.js +52 -25
- package/dist/src/ui/components/shared/TabHeader.test.js.map +1 -1
- package/dist/src/ui/components/shared/TextInput.d.ts +1 -1
- package/dist/src/ui/components/shared/TextInput.js +7 -3
- package/dist/src/ui/components/shared/TextInput.js.map +1 -1
- package/dist/src/ui/components/shared/TextInput.test.js +144 -66
- package/dist/src/ui/components/shared/TextInput.test.js.map +1 -1
- package/dist/src/ui/components/shared/VirtualizedList.d.ts +13 -1
- package/dist/src/ui/components/shared/VirtualizedList.js +269 -113
- package/dist/src/ui/components/shared/VirtualizedList.js.map +1 -1
- package/dist/src/ui/components/shared/VirtualizedList.test.js +30 -51
- package/dist/src/ui/components/shared/VirtualizedList.test.js.map +1 -1
- package/dist/src/ui/components/shared/performance.test.js +4 -4
- package/dist/src/ui/components/shared/performance.test.js.map +1 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +172 -2
- package/dist/src/ui/components/shared/text-buffer.js +228 -64
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
- package/dist/src/ui/components/shared/text-buffer.test.js +382 -275
- package/dist/src/ui/components/shared/text-buffer.test.js.map +1 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +42 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.js +673 -32
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js +1296 -42
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js.map +1 -1
- package/dist/src/ui/components/triage/TriageDuplicates.d.ts +1 -1
- package/dist/src/ui/components/triage/TriageDuplicates.js +6 -2
- package/dist/src/ui/components/triage/TriageDuplicates.js.map +1 -1
- package/dist/src/ui/components/triage/TriageIssues.d.ts +1 -1
- package/dist/src/ui/components/triage/TriageIssues.js +6 -2
- package/dist/src/ui/components/triage/TriageIssues.js.map +1 -1
- package/dist/src/ui/components/views/ChatList.test.js +6 -6
- package/dist/src/ui/components/views/ChatList.test.js.map +1 -1
- package/dist/src/ui/components/views/ExtensionDetails.d.ts +18 -0
- package/dist/src/ui/components/views/ExtensionDetails.js +85 -0
- package/dist/src/ui/components/views/ExtensionDetails.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionDetails.test.d.ts +6 -0
- package/dist/src/ui/components/views/ExtensionDetails.test.js +154 -0
- package/dist/src/ui/components/views/ExtensionDetails.test.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionRegistryView.d.ts +15 -0
- package/dist/src/ui/components/views/ExtensionRegistryView.js +97 -0
- package/dist/src/ui/components/views/ExtensionRegistryView.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionRegistryView.test.d.ts +6 -0
- package/dist/src/ui/components/views/ExtensionRegistryView.test.js +222 -0
- package/dist/src/ui/components/views/ExtensionRegistryView.test.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionsList.test.js +16 -19
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -1
- package/dist/src/ui/components/views/McpStatus.d.ts +2 -2
- package/dist/src/ui/components/views/McpStatus.js +8 -3
- package/dist/src/ui/components/views/McpStatus.js.map +1 -1
- package/dist/src/ui/components/views/McpStatus.test.js +47 -26
- package/dist/src/ui/components/views/McpStatus.test.js.map +1 -1
- package/dist/src/ui/components/views/SkillsList.js +2 -1
- package/dist/src/ui/components/views/SkillsList.js.map +1 -1
- package/dist/src/ui/components/views/SkillsList.test.js +15 -13
- package/dist/src/ui/components/views/SkillsList.test.js.map +1 -1
- package/dist/src/ui/components/views/ToolsList.test.js +6 -6
- package/dist/src/ui/components/views/ToolsList.test.js.map +1 -1
- package/dist/src/ui/constants/tips.js +81 -82
- package/dist/src/ui/constants/tips.js.map +1 -1
- package/dist/src/ui/constants/wittyPhrases.js +107 -107
- package/dist/src/ui/constants/wittyPhrases.js.map +1 -1
- package/dist/src/ui/constants.d.ts +14 -1
- package/dist/src/ui/constants.js +24 -1
- package/dist/src/ui/constants.js.map +1 -1
- package/dist/src/ui/contexts/AppContext.d.ts +2 -1
- package/dist/src/ui/contexts/AppContext.js.map +1 -1
- package/dist/src/ui/contexts/InputContext.d.ts +17 -0
- package/dist/src/ui/contexts/InputContext.js +15 -0
- package/dist/src/ui/contexts/InputContext.js.map +1 -0
- package/dist/src/ui/contexts/KeypressContext.d.ts +8 -3
- package/dist/src/ui/contexts/KeypressContext.js +196 -45
- package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
- package/dist/src/ui/contexts/KeypressContext.test.js +200 -76
- package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -1
- package/dist/src/ui/contexts/MouseContext.d.ts +1 -2
- package/dist/src/ui/contexts/MouseContext.js +7 -3
- package/dist/src/ui/contexts/MouseContext.js.map +1 -1
- package/dist/src/ui/contexts/MouseContext.test.js +32 -21
- package/dist/src/ui/contexts/MouseContext.test.js.map +1 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +3 -3
- package/dist/src/ui/contexts/OverflowContext.js +49 -20
- package/dist/src/ui/contexts/OverflowContext.js.map +1 -1
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js +6 -6
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js.map +1 -1
- package/dist/src/ui/contexts/ScrollProvider.js +25 -3
- package/dist/src/ui/contexts/ScrollProvider.js.map +1 -1
- package/dist/src/ui/contexts/ScrollProvider.test.js +111 -11
- package/dist/src/ui/contexts/ScrollProvider.test.js.map +1 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +2 -2
- package/dist/src/ui/contexts/SessionContext.js +10 -0
- package/dist/src/ui/contexts/SessionContext.js.map +1 -1
- package/dist/src/ui/contexts/SessionContext.test.js +26 -11
- package/dist/src/ui/contexts/SessionContext.test.js.map +1 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +9 -1
- package/dist/src/ui/contexts/SettingsContext.js +34 -1
- package/dist/src/ui/contexts/SettingsContext.js.map +1 -1
- package/dist/src/ui/contexts/SettingsContext.test.d.ts +6 -0
- package/dist/src/ui/contexts/SettingsContext.test.js +106 -0
- package/dist/src/ui/contexts/SettingsContext.test.js.map +1 -0
- package/dist/src/ui/contexts/TerminalContext.d.ts +1 -0
- package/dist/src/ui/contexts/TerminalContext.js +15 -2
- package/dist/src/ui/contexts/TerminalContext.js.map +1 -1
- package/dist/src/ui/contexts/TerminalContext.test.js +24 -10
- package/dist/src/ui/contexts/TerminalContext.test.js.map +1 -1
- package/dist/src/ui/contexts/ToolActionsContext.d.ts +6 -0
- package/dist/src/ui/contexts/ToolActionsContext.js +28 -18
- package/dist/src/ui/contexts/ToolActionsContext.js.map +1 -1
- package/dist/src/ui/contexts/ToolActionsContext.test.js +136 -56
- package/dist/src/ui/contexts/ToolActionsContext.test.js.map +1 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +20 -5
- package/dist/src/ui/contexts/UIActionsContext.js +1 -1
- package/dist/src/ui/contexts/UIActionsContext.js.map +1 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +51 -19
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -1
- package/dist/src/ui/contexts/VimModeContext.d.ts +1 -3
- package/dist/src/ui/contexts/VimModeContext.js +7 -16
- package/dist/src/ui/contexts/VimModeContext.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +15 -5
- package/dist/src/ui/hooks/atCommandProcessor.js +47 -18
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js +92 -14
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.js +2 -1
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.js.map +1 -1
- package/dist/src/ui/hooks/creditsFlowHandler.d.ts +35 -0
- package/dist/src/ui/hooks/creditsFlowHandler.js +158 -0
- package/dist/src/ui/hooks/creditsFlowHandler.js.map +1 -0
- package/dist/src/ui/hooks/creditsFlowHandler.test.d.ts +6 -0
- package/dist/src/ui/hooks/creditsFlowHandler.test.js +211 -0
- package/dist/src/ui/hooks/creditsFlowHandler.test.js.map +1 -0
- package/dist/src/ui/hooks/shell-completions/gitProvider.d.ts +7 -0
- package/dist/src/ui/hooks/shell-completions/gitProvider.js +73 -0
- package/dist/src/ui/hooks/shell-completions/gitProvider.js.map +1 -0
- package/dist/src/ui/hooks/shell-completions/gitProvider.test.d.ts +6 -0
- package/dist/src/ui/hooks/shell-completions/gitProvider.test.js +73 -0
- package/dist/src/ui/hooks/shell-completions/gitProvider.test.js.map +1 -0
- package/dist/src/ui/hooks/shell-completions/index.d.ts +7 -0
- package/dist/src/ui/hooks/shell-completions/index.js +16 -0
- package/dist/src/ui/hooks/shell-completions/index.js.map +1 -0
- package/dist/src/ui/hooks/shell-completions/npmProvider.d.ts +7 -0
- package/dist/src/ui/hooks/shell-completions/npmProvider.js +67 -0
- package/dist/src/ui/hooks/shell-completions/npmProvider.js.map +1 -0
- package/dist/src/ui/hooks/shell-completions/npmProvider.test.d.ts +6 -0
- package/dist/src/ui/hooks/shell-completions/npmProvider.test.js +69 -0
- package/dist/src/ui/hooks/shell-completions/npmProvider.test.js.map +1 -0
- package/dist/src/ui/hooks/shell-completions/types.d.ts +16 -0
- package/dist/src/ui/hooks/shell-completions/types.js +7 -0
- package/dist/src/ui/hooks/shell-completions/types.js.map +1 -0
- package/dist/src/ui/hooks/shellReducer.d.ts +12 -10
- package/dist/src/ui/hooks/shellReducer.js +67 -37
- package/dist/src/ui/hooks/shellReducer.js.map +1 -1
- package/dist/src/ui/hooks/shellReducer.test.js +207 -36
- package/dist/src/ui/hooks/shellReducer.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.js +38 -17
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +39 -83
- package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/toolMapping.d.ts +4 -3
- package/dist/src/ui/hooks/toolMapping.js +34 -32
- package/dist/src/ui/hooks/toolMapping.js.map +1 -1
- package/dist/src/ui/hooks/toolMapping.test.js +94 -27
- package/dist/src/ui/hooks/toolMapping.test.js.map +1 -1
- package/dist/src/ui/hooks/useAlternateBuffer.d.ts +2 -2
- package/dist/src/ui/hooks/useAlternateBuffer.js +10 -4
- package/dist/src/ui/hooks/useAlternateBuffer.js.map +1 -1
- package/dist/src/ui/hooks/useAlternateBuffer.test.d.ts +6 -0
- package/dist/src/ui/hooks/useAlternateBuffer.test.js +62 -0
- package/dist/src/ui/hooks/useAlternateBuffer.test.js.map +1 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.js +15 -5
- package/dist/src/ui/hooks/useAnimatedScrollbar.js.map +1 -1
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js +12 -12
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js.map +1 -1
- package/dist/src/ui/hooks/useApprovalModeIndicator.d.ts +3 -2
- package/dist/src/ui/hooks/useApprovalModeIndicator.js +5 -3
- package/dist/src/ui/hooks/useApprovalModeIndicator.js.map +1 -1
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.js +66 -63
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.js.map +1 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +2 -2
- package/dist/src/ui/hooks/useAtCompletion.js +76 -24
- package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useAtCompletion.test.js +152 -31
- package/dist/src/ui/hooks/useAtCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useAtCompletion_agents.test.js +2 -2
- package/dist/src/ui/hooks/useAtCompletion_agents.test.js.map +1 -1
- package/dist/src/ui/hooks/useBackgroundTaskManager.d.ts +22 -0
- package/dist/src/ui/hooks/useBackgroundTaskManager.js +58 -0
- package/dist/src/ui/hooks/useBackgroundTaskManager.js.map +1 -0
- package/dist/src/ui/hooks/useBackgroundTaskManager.test.d.ts +6 -0
- package/dist/src/ui/hooks/useBackgroundTaskManager.test.js +168 -0
- package/dist/src/ui/hooks/useBackgroundTaskManager.test.js.map +1 -0
- package/dist/src/ui/hooks/useBanner.d.ts +1 -0
- package/dist/src/ui/hooks/useBanner.js +16 -9
- package/dist/src/ui/hooks/useBanner.js.map +1 -1
- package/dist/src/ui/hooks/useBanner.test.js +19 -13
- package/dist/src/ui/hooks/useBanner.test.js.map +1 -1
- package/dist/src/ui/hooks/useBatchedScroll.js +2 -2
- package/dist/src/ui/hooks/useBatchedScroll.js.map +1 -1
- package/dist/src/ui/hooks/useBatchedScroll.test.js +14 -14
- package/dist/src/ui/hooks/useBatchedScroll.test.js.map +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +8 -3
- package/dist/src/ui/hooks/useCommandCompletion.js +110 -15
- package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.test.d.ts +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.test.js +275 -55
- package/dist/src/ui/hooks/useCommandCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useCompletion.js +1 -1
- package/dist/src/ui/hooks/useCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useComposerStatus.d.ts +21 -0
- package/dist/src/ui/hooks/useComposerStatus.js +78 -0
- package/dist/src/ui/hooks/useComposerStatus.js.map +1 -0
- package/dist/src/ui/hooks/useConfirmingTool.d.ts +2 -6
- package/dist/src/ui/hooks/useConfirmingTool.js +2 -22
- package/dist/src/ui/hooks/useConfirmingTool.js.map +1 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +20 -4
- package/dist/src/ui/hooks/useConsoleMessages.js +126 -87
- package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -1
- package/dist/src/ui/hooks/useConsoleMessages.test.js +106 -64
- package/dist/src/ui/hooks/useConsoleMessages.test.js.map +1 -1
- package/dist/src/ui/hooks/useEditorSettings.test.js +20 -20
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -1
- package/dist/src/ui/hooks/useExecutionLifecycle.d.ts +28 -0
- package/dist/src/ui/hooks/{shellCommandProcessor.js → useExecutionLifecycle.js} +152 -70
- package/dist/src/ui/hooks/useExecutionLifecycle.js.map +1 -0
- package/dist/src/ui/hooks/useExecutionLifecycle.test.d.ts +6 -0
- package/dist/src/ui/hooks/{shellCommandProcessor.test.js → useExecutionLifecycle.test.js} +172 -124
- package/dist/src/ui/hooks/useExecutionLifecycle.test.js.map +1 -0
- package/dist/src/ui/hooks/useExtensionRegistry.d.ts +13 -0
- package/dist/src/ui/hooks/useExtensionRegistry.js +70 -0
- package/dist/src/ui/hooks/useExtensionRegistry.js.map +1 -0
- package/dist/src/ui/hooks/useExtensionUpdates.js +10 -9
- package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -1
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +7 -6
- package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -1
- package/dist/src/ui/hooks/useFlickerDetector.test.js +12 -13
- package/dist/src/ui/hooks/useFlickerDetector.test.js.map +1 -1
- package/dist/src/ui/hooks/useFocus.d.ts +4 -1
- package/dist/src/ui/hooks/useFocus.js +7 -1
- package/dist/src/ui/hooks/useFocus.js.map +1 -1
- package/dist/src/ui/hooks/useFocus.test.js +35 -27
- package/dist/src/ui/hooks/useFocus.test.js.map +1 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +2 -0
- package/dist/src/ui/hooks/useFolderTrust.js +16 -4
- package/dist/src/ui/hooks/useFolderTrust.js.map +1 -1
- package/dist/src/ui/hooks/useFolderTrust.test.js +23 -20
- package/dist/src/ui/hooks/useFolderTrust.test.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +7 -7
- package/dist/src/ui/hooks/useGeminiStream.js +468 -125
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.test.js +832 -230
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.js +2 -2
- package/dist/src/ui/hooks/useGitBranchName.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.test.js +63 -60
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
- package/dist/src/ui/hooks/useHistoryManager.js +9 -5
- package/dist/src/ui/hooks/useHistoryManager.js.map +1 -1
- package/dist/src/ui/hooks/useHistoryManager.test.js +63 -24
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -1
- package/dist/src/ui/hooks/useHookDisplayState.js +1 -0
- package/dist/src/ui/hooks/useHookDisplayState.js.map +1 -1
- package/dist/src/ui/hooks/useHookDisplayState.test.js +12 -12
- package/dist/src/ui/hooks/useHookDisplayState.test.js.map +1 -1
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +17 -6
- package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js +10 -10
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js.map +1 -1
- package/dist/src/ui/hooks/useInlineEditBuffer.d.ts +43 -0
- package/dist/src/ui/hooks/useInlineEditBuffer.js +113 -0
- package/dist/src/ui/hooks/useInlineEditBuffer.js.map +1 -0
- package/dist/src/ui/hooks/useInlineEditBuffer.test.d.ts +6 -0
- package/dist/src/ui/hooks/useInlineEditBuffer.test.js +112 -0
- package/dist/src/ui/hooks/useInlineEditBuffer.test.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistory.test.js +28 -28
- package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +20 -20
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -1
- package/dist/src/ui/hooks/useKeyMatchers.d.ts +17 -0
- package/dist/src/ui/hooks/useKeyMatchers.js +13 -0
- package/dist/src/ui/hooks/useKeyMatchers.js.map +1 -0
- package/dist/src/ui/hooks/useKeypress.d.ts +4 -4
- package/dist/src/ui/hooks/useKeypress.js +3 -3
- package/dist/src/ui/hooks/useKeypress.js.map +1 -1
- package/dist/src/ui/hooks/useKeypress.test.js +23 -31
- package/dist/src/ui/hooks/useKeypress.test.js.map +1 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +7 -1
- package/dist/src/ui/hooks/useLoadingIndicator.js +12 -5
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +67 -35
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -1
- package/dist/src/ui/hooks/useLogger.d.ts +1 -2
- package/dist/src/ui/hooks/useLogger.js +7 -4
- package/dist/src/ui/hooks/useLogger.js.map +1 -1
- package/dist/src/ui/hooks/useLogger.test.d.ts +6 -0
- package/dist/src/ui/hooks/useLogger.test.js +57 -0
- package/dist/src/ui/hooks/useLogger.test.js.map +1 -0
- package/dist/src/ui/hooks/useMcpStatus.test.js +10 -10
- package/dist/src/ui/hooks/useMcpStatus.test.js.map +1 -1
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +6 -6
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -1
- package/dist/src/ui/hooks/useMessageQueue.test.js +29 -29
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -1
- package/dist/src/ui/hooks/useModelCommand.test.js +6 -6
- package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -1
- package/dist/src/ui/hooks/useMouse.d.ts +1 -1
- package/dist/src/ui/hooks/useMouse.js +1 -1
- package/dist/src/ui/hooks/useMouse.js.map +1 -1
- package/dist/src/ui/hooks/useMouse.test.js +11 -16
- package/dist/src/ui/hooks/useMouse.test.js.map +1 -1
- package/dist/src/ui/hooks/useMouseClick.test.js +15 -7
- package/dist/src/ui/hooks/useMouseClick.test.js.map +1 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js +2 -2
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +1 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +19 -19
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +11 -4
- package/dist/src/ui/hooks/usePhraseCycler.js +116 -55
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.test.js +104 -126
- package/dist/src/ui/hooks/usePhraseCycler.test.js.map +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.js +9 -3
- package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.js +20 -11
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -1
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +2 -3
- package/dist/src/ui/hooks/usePromptCompletion.js +4 -4
- package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +11 -3
- package/dist/src/ui/hooks/useQuotaAndFallback.js +95 -19
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +328 -38
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -1
- package/dist/src/ui/hooks/useRegistrySearch.d.ts +19 -0
- package/dist/src/ui/hooks/useRegistrySearch.js +35 -0
- package/dist/src/ui/hooks/useRegistrySearch.js.map +1 -0
- package/dist/src/ui/hooks/useRepeatedKeyPress.d.ts +15 -0
- package/dist/src/ui/hooks/useRepeatedKeyPress.js +50 -0
- package/dist/src/ui/hooks/useRepeatedKeyPress.js.map +1 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +20 -20
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useRewind.test.js +10 -10
- package/dist/src/ui/hooks/useRewind.test.js.map +1 -1
- package/dist/src/ui/hooks/useRunEventNotifications.d.ts +22 -0
- package/dist/src/ui/hooks/useRunEventNotifications.js +93 -0
- package/dist/src/ui/hooks/useRunEventNotifications.js.map +1 -0
- package/dist/src/ui/hooks/useSearchBuffer.d.ts +11 -0
- package/dist/src/ui/hooks/useSearchBuffer.js +24 -0
- package/dist/src/ui/hooks/useSearchBuffer.js.map +1 -0
- package/dist/src/ui/hooks/useSelectionList.js +5 -4
- package/dist/src/ui/hooks/useSelectionList.js.map +1 -1
- package/dist/src/ui/hooks/useSelectionList.test.js +162 -50
- package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -1
- package/dist/src/ui/hooks/useSessionBrowser.d.ts +3 -4
- package/dist/src/ui/hooks/useSessionBrowser.js +7 -5
- package/dist/src/ui/hooks/useSessionBrowser.js.map +1 -1
- package/dist/src/ui/hooks/useSessionBrowser.test.js +60 -17
- package/dist/src/ui/hooks/useSessionBrowser.test.js.map +1 -1
- package/dist/src/ui/hooks/useSessionResume.js +2 -2
- package/dist/src/ui/hooks/useSessionResume.js.map +1 -1
- package/dist/src/ui/hooks/useSessionResume.test.js +20 -20
- package/dist/src/ui/hooks/useSessionResume.test.js.map +1 -1
- package/dist/src/ui/hooks/useSettingsNavigation.d.ts +18 -0
- package/dist/src/ui/hooks/useSettingsNavigation.js +72 -0
- package/dist/src/ui/hooks/useSettingsNavigation.js.map +1 -0
- package/dist/src/ui/hooks/useSettingsNavigation.test.d.ts +6 -0
- package/dist/src/ui/hooks/useSettingsNavigation.test.js +87 -0
- package/dist/src/ui/hooks/useSettingsNavigation.test.js.map +1 -0
- package/dist/src/ui/hooks/useShellCompletion.d.ts +50 -0
- package/dist/src/ui/hooks/useShellCompletion.js +502 -0
- package/dist/src/ui/hooks/useShellCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useShellCompletion.test.d.ts +6 -0
- package/dist/src/ui/hooks/useShellCompletion.test.js +354 -0
- package/dist/src/ui/hooks/useShellCompletion.test.js.map +1 -0
- package/dist/src/ui/hooks/useShellHistory.test.js +7 -7
- package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.d.ts +1 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.js +1 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.js.map +1 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.test.js +4 -4
- package/dist/src/ui/hooks/useShellInactivityStatus.test.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.js +67 -33
- package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +2 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.js +254 -162
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useSnowfall.js +1 -1
- package/dist/src/ui/hooks/useSnowfall.js.map +1 -1
- package/dist/src/ui/hooks/useSnowfall.test.js +15 -11
- package/dist/src/ui/hooks/useSnowfall.test.js.map +1 -1
- package/dist/src/ui/hooks/useStateAndRef.js +1 -0
- package/dist/src/ui/hooks/useStateAndRef.js.map +1 -1
- package/dist/src/ui/hooks/useSuspend.d.ts +16 -0
- package/dist/src/ui/hooks/useSuspend.js +116 -0
- package/dist/src/ui/hooks/useSuspend.js.map +1 -0
- package/dist/src/ui/hooks/useSuspend.test.d.ts +6 -0
- package/dist/src/ui/hooks/useSuspend.test.js +150 -0
- package/dist/src/ui/hooks/useSuspend.test.js.map +1 -0
- package/dist/src/ui/hooks/useTabbedNavigation.js +4 -1
- package/dist/src/ui/hooks/useTabbedNavigation.js.map +1 -1
- package/dist/src/ui/hooks/useTabbedNavigation.test.js +49 -63
- package/dist/src/ui/hooks/useTabbedNavigation.test.js.map +1 -1
- package/dist/src/ui/hooks/useTerminalTheme.d.ts +1 -1
- package/dist/src/ui/hooks/useTerminalTheme.js +24 -9
- package/dist/src/ui/hooks/useTerminalTheme.js.map +1 -1
- package/dist/src/ui/hooks/useTerminalTheme.test.js +79 -38
- package/dist/src/ui/hooks/useTerminalTheme.test.js.map +1 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +2 -2
- package/dist/src/ui/hooks/useThemeCommand.js +12 -5
- package/dist/src/ui/hooks/useThemeCommand.js.map +1 -1
- package/dist/src/ui/hooks/useTimedMessage.d.ts +1 -1
- package/dist/src/ui/hooks/useTimedMessage.js +5 -3
- package/dist/src/ui/hooks/useTimedMessage.js.map +1 -1
- package/dist/src/ui/hooks/useTimer.test.js +18 -18
- package/dist/src/ui/hooks/useTimer.test.js.map +1 -1
- package/dist/src/ui/hooks/useTips.test.js +6 -6
- package/dist/src/ui/hooks/useTips.test.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.d.ts +34 -10
- package/dist/src/ui/hooks/useToolScheduler.js +202 -4
- package/dist/src/ui/hooks/useToolScheduler.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +462 -809
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.d.ts +1 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.js +1 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.js.map +1 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.js +14 -12
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.js.map +1 -1
- package/dist/src/ui/hooks/useVisibilityToggle.d.ts +12 -0
- package/dist/src/ui/hooks/useVisibilityToggle.js +60 -0
- package/dist/src/ui/hooks/useVisibilityToggle.js.map +1 -0
- package/dist/src/ui/hooks/vim-passthrough.test.js +2 -2
- package/dist/src/ui/hooks/vim-passthrough.test.js.map +1 -1
- package/dist/src/ui/hooks/vim.js +587 -27
- package/dist/src/ui/hooks/vim.js.map +1 -1
- package/dist/src/ui/hooks/vim.test.js +734 -183
- package/dist/src/ui/hooks/vim.test.js.map +1 -1
- package/dist/src/{config → ui/key}/keyBindings.d.ts +40 -26
- package/dist/src/ui/key/keyBindings.js +698 -0
- package/dist/src/ui/key/keyBindings.js.map +1 -0
- package/dist/src/ui/key/keyBindings.test.d.ts +6 -0
- package/dist/src/ui/key/keyBindings.test.js +214 -0
- package/dist/src/ui/key/keyBindings.test.js.map +1 -0
- package/dist/src/ui/{keyMatchers.d.ts → key/keyMatchers.d.ts} +11 -4
- package/dist/src/ui/key/keyMatchers.js +43 -0
- package/dist/src/ui/key/keyMatchers.js.map +1 -0
- package/dist/src/ui/key/keyMatchers.test.d.ts +6 -0
- package/dist/src/ui/{keyMatchers.test.js → key/keyMatchers.test.js} +149 -66
- package/dist/src/ui/key/keyMatchers.test.js.map +1 -0
- package/dist/src/ui/key/keyToAnsi.js +46 -0
- package/dist/src/ui/key/keyToAnsi.js.map +1 -0
- package/dist/src/ui/{utils → key}/keybindingUtils.d.ts +3 -3
- package/dist/src/ui/key/keybindingUtils.js +87 -0
- package/dist/src/ui/key/keybindingUtils.js.map +1 -0
- package/dist/src/ui/key/keybindingUtils.test.d.ts +6 -0
- package/dist/src/ui/key/keybindingUtils.test.js +121 -0
- package/dist/src/ui/key/keybindingUtils.test.js.map +1 -0
- package/dist/src/ui/layouts/DefaultAppLayout.js +8 -6
- package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -1
- package/dist/src/ui/layouts/DefaultAppLayout.test.js +34 -26
- package/dist/src/ui/layouts/DefaultAppLayout.test.js.map +1 -1
- package/dist/src/ui/noninteractive/nonInteractiveUi.js +15 -2
- package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js +21 -8
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js.map +1 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js +14 -5
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js.map +1 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js +14 -5
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js.map +1 -1
- package/dist/src/ui/privacy/PrivacyNotice.test.js +3 -2
- package/dist/src/ui/privacy/PrivacyNotice.test.js.map +1 -1
- package/dist/src/ui/textConstants.d.ts +2 -1
- package/dist/src/ui/textConstants.js +2 -1
- package/dist/src/ui/textConstants.js.map +1 -1
- package/dist/src/ui/themes/{ansi.d.ts → builtin/dark/ansi-dark.d.ts} +2 -2
- package/dist/src/ui/themes/{ansi.js → builtin/dark/ansi-dark.js} +5 -4
- package/dist/src/ui/themes/builtin/dark/ansi-dark.js.map +1 -0
- package/dist/src/ui/themes/{atom-one-dark.d.ts → builtin/dark/atom-one-dark.d.ts} +2 -2
- package/dist/src/ui/themes/{atom-one-dark.js → builtin/dark/atom-one-dark.js} +3 -3
- package/dist/src/ui/themes/builtin/dark/atom-one-dark.js.map +1 -0
- package/dist/src/ui/themes/{ayu.d.ts → builtin/dark/ayu-dark.d.ts} +2 -2
- package/dist/src/ui/themes/{ayu.js → builtin/dark/ayu-dark.js} +4 -4
- package/dist/src/ui/themes/builtin/dark/ayu-dark.js.map +1 -0
- package/dist/src/ui/themes/{default.d.ts → builtin/dark/default-dark.d.ts} +2 -2
- package/dist/src/ui/themes/{default.js → builtin/dark/default-dark.js} +3 -3
- package/dist/src/ui/themes/builtin/dark/default-dark.js.map +1 -0
- package/dist/src/ui/themes/{dracula.d.ts → builtin/dark/dracula-dark.d.ts} +2 -2
- package/dist/src/ui/themes/{dracula.js → builtin/dark/dracula-dark.js} +4 -4
- package/dist/src/ui/themes/builtin/dark/dracula-dark.js.map +1 -0
- package/dist/src/ui/themes/{github-dark.d.ts → builtin/dark/github-dark.d.ts} +2 -2
- package/dist/src/ui/themes/{github-dark.js → builtin/dark/github-dark.js} +3 -3
- package/dist/src/ui/themes/builtin/dark/github-dark.js.map +1 -0
- package/dist/src/ui/themes/{holiday.d.ts → builtin/dark/holiday-dark.d.ts} +2 -2
- package/dist/src/ui/themes/{holiday.js → builtin/dark/holiday-dark.js} +5 -4
- package/dist/src/ui/themes/{holiday.js.map → builtin/dark/holiday-dark.js.map} +1 -1
- package/dist/src/ui/themes/{shades-of-purple.d.ts → builtin/dark/shades-of-purple-dark.d.ts} +2 -2
- package/dist/src/ui/themes/{shades-of-purple.js → builtin/dark/shades-of-purple-dark.js} +4 -4
- package/dist/src/ui/themes/builtin/dark/shades-of-purple-dark.js.map +1 -0
- package/dist/src/ui/themes/builtin/dark/solarized-dark.d.ts +7 -0
- package/dist/src/ui/themes/builtin/dark/solarized-dark.js +198 -0
- package/dist/src/ui/themes/builtin/dark/solarized-dark.js.map +1 -0
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.d.ts +7 -0
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.js +147 -0
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.js.map +1 -0
- package/dist/src/ui/themes/{ansi-light.d.ts → builtin/light/ansi-light.d.ts} +2 -2
- package/dist/src/ui/themes/{ansi-light.js → builtin/light/ansi-light.js} +3 -3
- package/dist/src/ui/themes/builtin/light/ansi-light.js.map +1 -0
- package/dist/src/ui/themes/{ayu-light.d.ts → builtin/light/ayu-light.d.ts} +2 -2
- package/dist/src/ui/themes/{ayu-light.js → builtin/light/ayu-light.js} +3 -3
- package/dist/src/ui/themes/builtin/light/ayu-light.js.map +1 -0
- package/dist/src/ui/themes/{default-light.d.ts → builtin/light/default-light.d.ts} +2 -2
- package/dist/src/ui/themes/{default-light.js → builtin/light/default-light.js} +2 -2
- package/dist/src/ui/themes/builtin/light/default-light.js.map +1 -0
- package/dist/src/ui/themes/{github-light.d.ts → builtin/light/github-light.d.ts} +2 -2
- package/dist/src/ui/themes/{github-light.js → builtin/light/github-light.js} +4 -3
- package/dist/src/ui/themes/builtin/light/github-light.js.map +1 -0
- package/dist/src/ui/themes/{googlecode.d.ts → builtin/light/googlecode-light.d.ts} +2 -2
- package/dist/src/ui/themes/{googlecode.js → builtin/light/googlecode-light.js} +4 -4
- package/dist/src/ui/themes/builtin/light/googlecode-light.js.map +1 -0
- package/dist/src/ui/themes/builtin/light/solarized-light.d.ts +7 -0
- package/dist/src/ui/themes/builtin/light/solarized-light.js +198 -0
- package/dist/src/ui/themes/builtin/light/solarized-light.js.map +1 -0
- package/dist/src/ui/themes/{xcode.d.ts → builtin/light/xcode-light.d.ts} +2 -2
- package/dist/src/ui/themes/{xcode.js → builtin/light/xcode-light.js} +5 -4
- package/dist/src/ui/themes/builtin/light/xcode-light.js.map +1 -0
- package/dist/src/ui/themes/{no-color.d.ts → builtin/no-color.d.ts} +2 -2
- package/dist/src/ui/themes/{no-color.js → builtin/no-color.js} +10 -3
- package/dist/src/ui/themes/builtin/no-color.js.map +1 -0
- package/dist/src/ui/themes/color-utils.d.ts +2 -18
- package/dist/src/ui/themes/color-utils.js +2 -231
- package/dist/src/ui/themes/color-utils.js.map +1 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +5 -1
- package/dist/src/ui/themes/semantic-tokens.js +12 -4
- package/dist/src/ui/themes/semantic-tokens.js.map +1 -1
- package/dist/src/ui/themes/theme-manager.d.ts +47 -7
- package/dist/src/ui/themes/theme-manager.js +171 -27
- package/dist/src/ui/themes/theme-manager.js.map +1 -1
- package/dist/src/ui/themes/theme-manager.test.js +86 -2
- package/dist/src/ui/themes/theme-manager.test.js.map +1 -1
- package/dist/src/ui/themes/theme.d.ts +25 -0
- package/dist/src/ui/themes/theme.js +178 -36
- package/dist/src/ui/themes/theme.js.map +1 -1
- package/dist/src/ui/themes/theme.test.js +7 -7
- package/dist/src/ui/themes/theme.test.js.map +1 -1
- package/dist/src/ui/types.d.ts +48 -23
- package/dist/src/ui/types.js +31 -1
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +10 -2
- package/dist/src/ui/utils/CodeColorizer.js +37 -32
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.test.js +38 -2
- package/dist/src/ui/utils/CodeColorizer.test.js.map +1 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +1 -0
- package/dist/src/ui/utils/ConsolePatcher.js +12 -5
- package/dist/src/ui/utils/ConsolePatcher.js.map +1 -1
- package/dist/src/ui/utils/ConsolePatcher.test.d.ts +6 -0
- package/dist/src/ui/utils/ConsolePatcher.test.js +199 -0
- package/dist/src/ui/utils/ConsolePatcher.test.js.map +1 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -5
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +7 -103
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.js +3 -2
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.js +51 -35
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -1
- package/dist/src/ui/utils/TableRenderer.js +124 -56
- package/dist/src/ui/utils/TableRenderer.js.map +1 -1
- package/dist/src/ui/utils/TableRenderer.test.js +344 -6
- package/dist/src/ui/utils/TableRenderer.test.js.map +1 -1
- package/dist/src/ui/utils/borderStyles.d.ts +18 -0
- package/dist/src/ui/utils/borderStyles.js +83 -0
- package/dist/src/ui/utils/borderStyles.js.map +1 -0
- package/dist/src/ui/utils/borderStyles.test.d.ts +6 -0
- package/dist/src/ui/utils/borderStyles.test.js +171 -0
- package/dist/src/ui/utils/borderStyles.test.js.map +1 -0
- package/dist/src/ui/utils/clipboardUtils.d.ts +23 -11
- package/dist/src/ui/utils/clipboardUtils.js +79 -49
- package/dist/src/ui/utils/clipboardUtils.js.map +1 -1
- package/dist/src/ui/utils/clipboardUtils.test.js +168 -120
- package/dist/src/ui/utils/clipboardUtils.test.js.map +1 -1
- package/dist/src/ui/utils/commandUtils.d.ts +8 -3
- package/dist/src/ui/utils/commandUtils.js +20 -8
- package/dist/src/ui/utils/commandUtils.js.map +1 -1
- package/dist/src/ui/utils/commandUtils.test.js +39 -7
- package/dist/src/ui/utils/commandUtils.test.js.map +1 -1
- package/dist/src/ui/utils/computeStats.test.js +8 -0
- package/dist/src/ui/utils/computeStats.test.js.map +1 -1
- package/dist/src/ui/utils/confirmingTool.d.ts +15 -0
- package/dist/src/ui/utils/confirmingTool.js +26 -0
- package/dist/src/ui/utils/confirmingTool.js.map +1 -0
- package/dist/src/ui/utils/contextUsage.d.ts +7 -0
- package/dist/src/ui/utils/contextUsage.js +20 -0
- package/dist/src/ui/utils/contextUsage.js.map +1 -0
- package/dist/src/ui/utils/directoryUtils.js +1 -1
- package/dist/src/ui/utils/directoryUtils.js.map +1 -1
- package/dist/src/ui/utils/displayUtils.d.ts +9 -0
- package/dist/src/ui/utils/displayUtils.js +14 -0
- package/dist/src/ui/utils/displayUtils.js.map +1 -1
- package/dist/src/ui/utils/editorUtils.d.ts +17 -0
- package/dist/src/ui/utils/editorUtils.js +104 -0
- package/dist/src/ui/utils/editorUtils.js.map +1 -0
- package/dist/src/ui/utils/fileUtils.d.ts +10 -0
- package/dist/src/ui/utils/fileUtils.js +17 -0
- package/dist/src/ui/utils/fileUtils.js.map +1 -0
- package/dist/src/ui/utils/formatters.d.ts +1 -1
- package/dist/src/ui/utils/formatters.js +38 -12
- package/dist/src/ui/utils/formatters.js.map +1 -1
- package/dist/src/ui/utils/formatters.test.js +29 -1
- package/dist/src/ui/utils/formatters.test.js.map +1 -1
- package/dist/src/ui/utils/highlight.js +1 -1
- package/dist/src/ui/utils/highlight.js.map +1 -1
- package/dist/src/ui/utils/historyExportUtils.d.ts +2 -2
- package/dist/src/ui/utils/historyExportUtils.js.map +1 -1
- package/dist/src/ui/utils/historyUtils.d.ts +10 -0
- package/dist/src/ui/utils/historyUtils.js +56 -0
- package/dist/src/ui/utils/historyUtils.js.map +1 -0
- package/dist/src/ui/utils/markdownParsingUtils.d.ts +10 -0
- package/dist/src/ui/utils/markdownParsingUtils.js +150 -0
- package/dist/src/ui/utils/markdownParsingUtils.js.map +1 -0
- package/dist/src/ui/utils/markdownParsingUtils.test.d.ts +6 -0
- package/dist/src/ui/utils/markdownParsingUtils.test.js +166 -0
- package/dist/src/ui/utils/markdownParsingUtils.test.js.map +1 -0
- package/dist/src/ui/utils/pendingAttentionNotification.d.ts +12 -0
- package/dist/src/ui/utils/pendingAttentionNotification.js +101 -0
- package/dist/src/ui/utils/pendingAttentionNotification.js.map +1 -0
- package/dist/src/ui/utils/pendingAttentionNotification.test.d.ts +6 -0
- package/dist/src/ui/utils/pendingAttentionNotification.test.js +79 -0
- package/dist/src/ui/utils/pendingAttentionNotification.test.js.map +1 -0
- package/dist/src/ui/utils/shortcutsHelp.d.ts +7 -0
- package/dist/src/ui/utils/shortcutsHelp.js +12 -0
- package/dist/src/ui/utils/shortcutsHelp.js.map +1 -0
- package/dist/src/ui/utils/terminalCapabilityManager.d.ts +14 -1
- package/dist/src/ui/utils/terminalCapabilityManager.js +73 -18
- package/dist/src/ui/utils/terminalCapabilityManager.js.map +1 -1
- package/dist/src/ui/utils/terminalCapabilityManager.test.js +126 -0
- package/dist/src/ui/utils/terminalCapabilityManager.test.js.map +1 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +24 -0
- package/dist/src/ui/utils/terminalSetup.js +130 -34
- package/dist/src/ui/utils/terminalSetup.js.map +1 -1
- package/dist/src/ui/utils/terminalSetup.test.js +35 -1
- package/dist/src/ui/utils/terminalSetup.test.js.map +1 -1
- package/dist/src/ui/utils/textOutput.test.js +1 -0
- package/dist/src/ui/utils/textOutput.test.js.map +1 -1
- package/dist/src/ui/utils/textUtils.d.ts +4 -0
- package/dist/src/ui/utils/textUtils.js +10 -1
- package/dist/src/ui/utils/textUtils.js.map +1 -1
- package/dist/src/ui/utils/textUtils.test.js +28 -7
- package/dist/src/ui/utils/textUtils.test.js.map +1 -1
- package/dist/src/ui/utils/toolLayoutUtils.d.ts +49 -0
- package/dist/src/ui/utils/toolLayoutUtils.js +80 -0
- package/dist/src/ui/utils/toolLayoutUtils.js.map +1 -0
- package/dist/src/ui/utils/toolLayoutUtils.test.d.ts +6 -0
- package/dist/src/ui/utils/toolLayoutUtils.test.js +187 -0
- package/dist/src/ui/utils/toolLayoutUtils.test.js.map +1 -0
- package/dist/src/ui/utils/ui-sizing.d.ts +2 -2
- package/dist/src/ui/utils/ui-sizing.js +2 -3
- package/dist/src/ui/utils/ui-sizing.js.map +1 -1
- package/dist/src/ui/utils/ui-sizing.test.js +6 -19
- package/dist/src/ui/utils/ui-sizing.test.js.map +1 -1
- package/dist/src/ui/utils/updateCheck.d.ts +1 -0
- package/dist/src/ui/utils/updateCheck.js.map +1 -1
- package/dist/src/ui/utils/urlSecurityUtils.d.ts +32 -0
- package/dist/src/ui/utils/urlSecurityUtils.js +71 -0
- package/dist/src/ui/utils/urlSecurityUtils.js.map +1 -0
- package/dist/src/ui/utils/urlSecurityUtils.test.d.ts +6 -0
- package/dist/src/ui/utils/urlSecurityUtils.test.js +49 -0
- package/dist/src/ui/utils/urlSecurityUtils.test.js.map +1 -0
- package/dist/src/utils/activityLogger.js +113 -24
- package/dist/src/utils/activityLogger.js.map +1 -1
- package/dist/src/utils/agentSettings.d.ts +7 -14
- package/dist/src/utils/agentSettings.js +27 -84
- package/dist/src/utils/agentSettings.js.map +1 -1
- package/dist/src/utils/agentSettings.test.d.ts +6 -0
- package/dist/src/utils/agentSettings.test.js +111 -0
- package/dist/src/utils/agentSettings.test.js.map +1 -0
- package/dist/src/utils/cleanup.d.ts +2 -0
- package/dist/src/utils/cleanup.js +63 -6
- package/dist/src/utils/cleanup.js.map +1 -1
- package/dist/src/utils/cleanup.test.js +165 -2
- package/dist/src/utils/cleanup.test.js.map +1 -1
- package/dist/src/utils/commands.js +15 -0
- package/dist/src/utils/commands.js.map +1 -1
- package/dist/src/utils/commands.test.js +80 -1
- package/dist/src/utils/commands.test.js.map +1 -1
- package/dist/src/utils/deepMerge.js +1 -1
- package/dist/src/utils/deepMerge.js.map +1 -1
- package/dist/src/utils/deepMerge.test.js +13 -3
- package/dist/src/utils/deepMerge.test.js.map +1 -1
- package/dist/src/utils/devtoolsService.d.ts +11 -1
- package/dist/src/utils/devtoolsService.js +36 -2
- package/dist/src/utils/devtoolsService.js.map +1 -1
- package/dist/src/utils/devtoolsService.test.js +74 -2
- package/dist/src/utils/devtoolsService.test.js.map +1 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +6 -2
- package/dist/src/utils/dialogScopeUtils.js +4 -4
- package/dist/src/utils/dialogScopeUtils.js.map +1 -1
- package/dist/src/utils/dialogScopeUtils.test.js +5 -5
- package/dist/src/utils/dialogScopeUtils.test.js.map +1 -1
- package/dist/src/utils/envVarResolver.d.ts +5 -2
- package/dist/src/utils/envVarResolver.js +18 -6
- package/dist/src/utils/envVarResolver.js.map +1 -1
- package/dist/src/utils/envVarResolver.test.js +41 -24
- package/dist/src/utils/envVarResolver.test.js.map +1 -1
- package/dist/src/utils/errors.d.ts +0 -1
- package/dist/src/utils/errors.js +4 -10
- package/dist/src/utils/errors.js.map +1 -1
- package/dist/src/utils/errors.test.js +2 -17
- package/dist/src/utils/errors.test.js.map +1 -1
- package/dist/src/utils/events.d.ts +3 -1
- package/dist/src/utils/events.js +1 -0
- package/dist/src/utils/events.js.map +1 -1
- package/dist/src/utils/featureToggleUtils.d.ts +55 -0
- package/dist/src/utils/featureToggleUtils.js +95 -0
- package/dist/src/utils/featureToggleUtils.js.map +1 -0
- package/dist/src/utils/featureToggleUtils.test.d.ts +6 -0
- package/dist/src/utils/featureToggleUtils.test.js +126 -0
- package/dist/src/utils/featureToggleUtils.test.js.map +1 -0
- package/dist/src/utils/gitUtils.js +6 -4
- package/dist/src/utils/gitUtils.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +8 -1
- package/dist/src/utils/handleAutoUpdate.js +56 -3
- package/dist/src/utils/handleAutoUpdate.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.test.js +67 -5
- package/dist/src/utils/handleAutoUpdate.test.js.map +1 -1
- package/dist/src/utils/installationInfo.d.ts +1 -0
- package/dist/src/utils/installationInfo.js +10 -1
- package/dist/src/utils/installationInfo.js.map +1 -1
- package/dist/src/utils/installationInfo.test.js +10 -0
- package/dist/src/utils/installationInfo.test.js.map +1 -1
- package/dist/src/utils/jsonoutput.js +3 -1
- package/dist/src/utils/jsonoutput.js.map +1 -1
- package/dist/src/utils/logCleanup.d.ts +12 -0
- package/dist/src/utils/logCleanup.js +58 -0
- package/dist/src/utils/logCleanup.js.map +1 -0
- package/dist/src/utils/logCleanup.test.d.ts +6 -0
- package/dist/src/utils/logCleanup.test.js +87 -0
- package/dist/src/utils/logCleanup.test.js.map +1 -0
- package/dist/src/utils/persistentState.d.ts +3 -0
- package/dist/src/utils/persistentState.js +1 -0
- package/dist/src/utils/persistentState.js.map +1 -1
- package/dist/src/utils/processUtils.d.ts +2 -3
- package/dist/src/utils/processUtils.js +10 -0
- package/dist/src/utils/processUtils.js.map +1 -1
- package/dist/src/utils/processUtils.test.js +11 -2
- package/dist/src/utils/processUtils.test.js.map +1 -1
- package/dist/src/utils/readStdin.js +1 -0
- package/dist/src/utils/readStdin.js.map +1 -1
- package/dist/src/utils/relaunch.test.js.map +1 -1
- package/dist/src/utils/{sandbox-macos-restrictive-closed.sb → sandbox-macos-strict-open.sb} +41 -3
- package/dist/src/utils/sandbox-macos-strict-proxied.sb +133 -0
- package/dist/src/utils/sandbox.js +277 -20
- package/dist/src/utils/sandbox.js.map +1 -1
- package/dist/src/utils/sandbox.test.js +198 -17
- package/dist/src/utils/sandbox.test.js.map +1 -1
- package/dist/src/utils/sandboxUtils.js +3 -3
- package/dist/src/utils/sandboxUtils.js.map +1 -1
- package/dist/src/utils/sessionCleanup.d.ts +6 -1
- package/dist/src/utils/sessionCleanup.integration.test.js +94 -0
- package/dist/src/utils/sessionCleanup.integration.test.js.map +1 -1
- package/dist/src/utils/sessionCleanup.js +107 -38
- package/dist/src/utils/sessionCleanup.js.map +1 -1
- package/dist/src/utils/sessionCleanup.test.js +545 -1089
- package/dist/src/utils/sessionCleanup.test.js.map +1 -1
- package/dist/src/utils/sessionUtils.d.ts +2 -7
- package/dist/src/utils/sessionUtils.js +39 -115
- package/dist/src/utils/sessionUtils.js.map +1 -1
- package/dist/src/utils/sessionUtils.test.js +269 -3
- package/dist/src/utils/sessionUtils.test.js.map +1 -1
- package/dist/src/utils/sessions.js +1 -1
- package/dist/src/utils/sessions.js.map +1 -1
- package/dist/src/utils/sessions.test.js +3 -1
- package/dist/src/utils/sessions.test.js.map +1 -1
- package/dist/src/utils/settingsUtils.d.ts +20 -93
- package/dist/src/utils/settingsUtils.js +135 -207
- package/dist/src/utils/settingsUtils.js.map +1 -1
- package/dist/src/utils/settingsUtils.test.js +129 -264
- package/dist/src/utils/settingsUtils.test.js.map +1 -1
- package/dist/src/utils/skillSettings.d.ts +4 -14
- package/dist/src/utils/skillSettings.js +32 -81
- package/dist/src/utils/skillSettings.js.map +1 -1
- package/dist/src/utils/skillSettings.test.d.ts +6 -0
- package/dist/src/utils/skillSettings.test.js +142 -0
- package/dist/src/utils/skillSettings.test.js.map +1 -0
- package/dist/src/utils/skillUtils.js +24 -7
- package/dist/src/utils/skillUtils.js.map +1 -1
- package/dist/src/utils/skillUtils.test.js +52 -4
- package/dist/src/utils/skillUtils.test.js.map +1 -1
- package/dist/src/utils/terminalNotifications.d.ts +25 -0
- package/dist/src/utils/terminalNotifications.js +75 -0
- package/dist/src/utils/terminalNotifications.js.map +1 -0
- package/dist/src/utils/terminalNotifications.test.d.ts +6 -0
- package/dist/src/utils/terminalNotifications.test.js +125 -0
- package/dist/src/utils/terminalNotifications.test.js.map +1 -0
- package/dist/src/utils/terminalTheme.js +3 -4
- package/dist/src/utils/terminalTheme.js.map +1 -1
- package/dist/src/utils/tierUtils.d.ts +12 -0
- package/dist/src/utils/tierUtils.js +15 -0
- package/dist/src/utils/tierUtils.js.map +1 -0
- package/dist/src/utils/tierUtils.test.d.ts +6 -0
- package/dist/src/utils/tierUtils.test.js +25 -0
- package/dist/src/utils/tierUtils.test.js.map +1 -0
- package/dist/src/utils/userStartupWarnings.d.ts +4 -1
- package/dist/src/utils/userStartupWarnings.js +24 -6
- package/dist/src/utils/userStartupWarnings.js.map +1 -1
- package/dist/src/utils/userStartupWarnings.test.js +53 -11
- package/dist/src/utils/userStartupWarnings.test.js.map +1 -1
- package/dist/src/utils/worktreeSetup.d.ts +14 -0
- package/dist/src/utils/worktreeSetup.js +32 -0
- package/dist/src/utils/worktreeSetup.js.map +1 -0
- package/dist/src/utils/worktreeSetup.test.d.ts +6 -0
- package/dist/src/utils/worktreeSetup.test.js +89 -0
- package/dist/src/utils/worktreeSetup.test.js.map +1 -0
- package/dist/src/validateNonInterActiveAuth.d.ts +1 -2
- package/dist/src/validateNonInterActiveAuth.js +1 -14
- package/dist/src/validateNonInterActiveAuth.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -8
- package/dist/src/config/keyBindings.js +0 -460
- package/dist/src/config/keyBindings.js.map +0 -1
- package/dist/src/config/keyBindings.test.js +0 -108
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/ui/commands/shellsCommand.js.map +0 -1
- package/dist/src/ui/commands/shellsCommand.test.js +0 -29
- package/dist/src/ui/commands/shellsCommand.test.js.map +0 -1
- package/dist/src/ui/components/BackgroundShellDisplay.d.ts +0 -16
- package/dist/src/ui/components/BackgroundShellDisplay.js.map +0 -1
- package/dist/src/ui/components/BackgroundShellDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ShortcutsHint.d.ts +0 -7
- package/dist/src/ui/components/ShortcutsHint.js +0 -12
- package/dist/src/ui/components/ShortcutsHint.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessageOverflow.test.js +0 -93
- package/dist/src/ui/components/messages/ToolConfirmationMessageOverflow.test.js.map +0 -1
- package/dist/src/ui/components/views/HooksList.d.ts +0 -24
- package/dist/src/ui/components/views/HooksList.js +0 -28
- package/dist/src/ui/components/views/HooksList.js.map +0 -1
- package/dist/src/ui/hooks/keyToAnsi.js +0 -67
- package/dist/src/ui/hooks/keyToAnsi.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -28
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/useBackgroundShellManager.d.ts +0 -22
- package/dist/src/ui/hooks/useBackgroundShellManager.js +0 -58
- package/dist/src/ui/hooks/useBackgroundShellManager.js.map +0 -1
- package/dist/src/ui/hooks/useBackgroundShellManager.test.js +0 -168
- package/dist/src/ui/hooks/useBackgroundShellManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -42
- package/dist/src/ui/hooks/useReactToolScheduler.js +0 -106
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
- 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/useToolExecutionScheduler.d.ts +0 -30
- package/dist/src/ui/hooks/useToolExecutionScheduler.js +0 -149
- package/dist/src/ui/hooks/useToolExecutionScheduler.js.map +0 -1
- 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/keyMatchers.js +0 -46
- package/dist/src/ui/keyMatchers.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/themes/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/ansi.js.map +0 -1
- package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/ayu.js.map +0 -1
- package/dist/src/ui/themes/default-light.js.map +0 -1
- package/dist/src/ui/themes/default.js.map +0 -1
- package/dist/src/ui/themes/dracula.js.map +0 -1
- package/dist/src/ui/themes/github-dark.js.map +0 -1
- package/dist/src/ui/themes/github-light.js.map +0 -1
- package/dist/src/ui/themes/googlecode.js.map +0 -1
- package/dist/src/ui/themes/no-color.js.map +0 -1
- package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
- package/dist/src/ui/themes/xcode.js.map +0 -1
- 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/keybindingUtils.js +0 -54
- package/dist/src/ui/utils/keybindingUtils.js.map +0 -1
- package/dist/src/ui/utils/keybindingUtils.test.js +0 -44
- package/dist/src/ui/utils/keybindingUtils.test.js.map +0 -1
- package/dist/src/utils/sandbox-macos-permissive-closed.sb +0 -32
- package/dist/src/zed-integration/acpErrors.js.map +0 -1
- package/dist/src/zed-integration/acpErrors.test.js.map +0 -1
- package/dist/src/zed-integration/acpResume.test.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.js +0 -41
- package/dist/src/zed-integration/fileSystemService.js.map +0 -1
- 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.d.ts +0 -42
- package/dist/src/zed-integration/zedIntegration.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.test.js +0 -664
- package/dist/src/zed-integration/zedIntegration.test.js.map +0 -1
- /package/dist/src/{config/keyBindings.test.d.ts → acp/acpClient.test.d.ts} +0 -0
- /package/dist/src/{zed-integration → acp}/acpErrors.d.ts +0 -0
- /package/dist/src/{zed-integration → acp}/acpErrors.test.d.ts +0 -0
- /package/dist/src/{zed-integration → acp}/acpErrors.test.js +0 -0
- /package/dist/src/{zed-integration → acp}/acpResume.test.d.ts +0 -0
- /package/dist/src/{ui/components/messages/ToolConfirmationMessageOverflow.test.d.ts → acp/commandHandler.test.d.ts} +0 -0
- /package/dist/src/{ui/hooks/useToolExecutionScheduler.test.d.ts → acp/commands/help.test.d.ts} +0 -0
- /package/dist/src/{zed-integration → acp}/fileSystemService.test.d.ts +0 -0
- /package/dist/src/{ui/commands/shellsCommand.test.d.ts → config/extension-manager.test.d.ts} +0 -0
- /package/dist/src/{ui/components/BackgroundShellDisplay.test.d.ts → config/policy.test.d.ts} +0 -0
- /package/dist/src/{ui/hooks/shellCommandProcessor.test.d.ts → config/workspace-policy-cli.test.d.ts} +0 -0
- /package/dist/src/{ui/hooks/useBackgroundShellManager.test.d.ts → nonInteractiveCliAgentSession.test.d.ts} +0 -0
- /package/dist/src/ui/{hooks/useReactToolScheduler.test.d.ts → commands/resumeCommand.test.d.ts} +0 -0
- /package/dist/src/ui/{keyMatchers.test.d.ts → commands/tasksCommand.test.d.ts} +0 -0
- /package/dist/src/ui/{utils/InlineMarkdownRenderer.test.d.ts → components/BackgroundTaskDisplay.test.d.ts} +0 -0
- /package/dist/src/ui/{utils/keybindingUtils.test.d.ts → components/messages/SubagentProgressDisplay.test.d.ts} +0 -0
- /package/dist/src/{zed-integration/zedIntegration.test.d.ts → ui/components/shared/SearchableList.test.d.ts} +0 -0
- /package/dist/src/ui/{hooks → key}/keyToAnsi.d.ts +0 -0
|
@@ -28,6 +28,7 @@ const createTestState = (lines = ['hello world'], cursorRow = 0, cursorCol = 0)
|
|
|
28
28
|
visualLayout: defaultVisualLayout,
|
|
29
29
|
pastedContent: {},
|
|
30
30
|
expandedPaste: null,
|
|
31
|
+
yankRegister: null,
|
|
31
32
|
});
|
|
32
33
|
describe('vim-buffer-actions', () => {
|
|
33
34
|
describe('Movement commands', () => {
|
|
@@ -393,6 +394,20 @@ describe('vim-buffer-actions', () => {
|
|
|
393
394
|
expect(result).toHaveOnlyValidCharacters();
|
|
394
395
|
expect(result.cursorCol).toBe(3); // Position of 'h'
|
|
395
396
|
});
|
|
397
|
+
it('vim_move_to_first_nonwhitespace should go to column 0 on whitespace-only line', () => {
|
|
398
|
+
const state = createTestState([' '], 0, 3);
|
|
399
|
+
const action = { type: 'vim_move_to_first_nonwhitespace' };
|
|
400
|
+
const result = handleVimAction(state, action);
|
|
401
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
402
|
+
expect(result.cursorCol).toBe(0);
|
|
403
|
+
});
|
|
404
|
+
it('vim_move_to_first_nonwhitespace should go to column 0 on empty line', () => {
|
|
405
|
+
const state = createTestState([''], 0, 0);
|
|
406
|
+
const action = { type: 'vim_move_to_first_nonwhitespace' };
|
|
407
|
+
const result = handleVimAction(state, action);
|
|
408
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
409
|
+
expect(result.cursorCol).toBe(0);
|
|
410
|
+
});
|
|
396
411
|
it('vim_move_to_first_line should move to row 0', () => {
|
|
397
412
|
const state = createTestState(['line1', 'line2', 'line3'], 2, 5);
|
|
398
413
|
const action = { type: 'vim_move_to_first_line' };
|
|
@@ -465,6 +480,19 @@ describe('vim-buffer-actions', () => {
|
|
|
465
480
|
const result = handleVimAction(state, action);
|
|
466
481
|
expect(result).toHaveOnlyValidCharacters();
|
|
467
482
|
expect(result.lines[0]).toBe('hel');
|
|
483
|
+
// Cursor clamps to last char of the shortened line (vim NORMAL mode
|
|
484
|
+
// cursor cannot rest past the final character).
|
|
485
|
+
expect(result.cursorCol).toBe(2);
|
|
486
|
+
});
|
|
487
|
+
it('should clamp cursor when deleting the last character on a line', () => {
|
|
488
|
+
const state = createTestState(['hello'], 0, 4);
|
|
489
|
+
const action = {
|
|
490
|
+
type: 'vim_delete_char',
|
|
491
|
+
payload: { count: 1 },
|
|
492
|
+
};
|
|
493
|
+
const result = handleVimAction(state, action);
|
|
494
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
495
|
+
expect(result.lines[0]).toBe('hell');
|
|
468
496
|
expect(result.cursorCol).toBe(3);
|
|
469
497
|
});
|
|
470
498
|
it('should do nothing at end of line', () => {
|
|
@@ -511,7 +539,7 @@ describe('vim-buffer-actions', () => {
|
|
|
511
539
|
const result = handleVimAction(state, action);
|
|
512
540
|
expect(result).toHaveOnlyValidCharacters();
|
|
513
541
|
expect(result.lines[0]).toBe('hello ');
|
|
514
|
-
expect(result.cursorCol).toBe(
|
|
542
|
+
expect(result.cursorCol).toBe(5);
|
|
515
543
|
});
|
|
516
544
|
it('should delete only the word characters if it is the last word followed by whitespace', () => {
|
|
517
545
|
const state = createTestState(['foo bar '], 0, 4); // on 'b'
|
|
@@ -545,6 +573,51 @@ describe('vim-buffer-actions', () => {
|
|
|
545
573
|
expect(result).toHaveOnlyValidCharacters();
|
|
546
574
|
expect(result.lines[0]).toBe('foo ');
|
|
547
575
|
});
|
|
576
|
+
it('should clamp cursor when dW removes the last word leaving only a trailing space', () => {
|
|
577
|
+
// cursor on 'w' in 'hello world'; dW deletes 'world' → 'hello '
|
|
578
|
+
const state = createTestState(['hello world'], 0, 6);
|
|
579
|
+
const result = handleVimAction(state, {
|
|
580
|
+
type: 'vim_delete_big_word_forward',
|
|
581
|
+
payload: { count: 1 },
|
|
582
|
+
});
|
|
583
|
+
expect(result.lines[0]).toBe('hello ');
|
|
584
|
+
// col 6 is past the new line end (len 6, max valid = 5)
|
|
585
|
+
expect(result.cursorCol).toBe(5);
|
|
586
|
+
});
|
|
587
|
+
});
|
|
588
|
+
describe('vim_delete_word_end', () => {
|
|
589
|
+
it('should clamp cursor when de removes the last word on a line', () => {
|
|
590
|
+
// cursor on 'w' in 'hello world'; de deletes through 'd' → 'hello '
|
|
591
|
+
const state = createTestState(['hello world'], 0, 6);
|
|
592
|
+
const result = handleVimAction(state, {
|
|
593
|
+
type: 'vim_delete_word_end',
|
|
594
|
+
payload: { count: 1 },
|
|
595
|
+
});
|
|
596
|
+
expect(result.lines[0]).toBe('hello ');
|
|
597
|
+
expect(result.cursorCol).toBe(5);
|
|
598
|
+
});
|
|
599
|
+
});
|
|
600
|
+
describe('vim_delete_big_word_end', () => {
|
|
601
|
+
it('should delete from cursor to end of WORD (skipping punctuation)', () => {
|
|
602
|
+
// cursor on 'b' in 'foo bar.baz qux'; dE treats 'bar.baz' as one WORD
|
|
603
|
+
const state = createTestState(['foo bar.baz qux'], 0, 4);
|
|
604
|
+
const result = handleVimAction(state, {
|
|
605
|
+
type: 'vim_delete_big_word_end',
|
|
606
|
+
payload: { count: 1 },
|
|
607
|
+
});
|
|
608
|
+
expect(result.lines[0]).toBe('foo qux');
|
|
609
|
+
expect(result.cursorCol).toBe(4);
|
|
610
|
+
});
|
|
611
|
+
it('should clamp cursor when dE removes the last WORD on a line', () => {
|
|
612
|
+
// cursor on 'w' in 'hello world'; dE deletes through 'd' → 'hello '
|
|
613
|
+
const state = createTestState(['hello world'], 0, 6);
|
|
614
|
+
const result = handleVimAction(state, {
|
|
615
|
+
type: 'vim_delete_big_word_end',
|
|
616
|
+
payload: { count: 1 },
|
|
617
|
+
});
|
|
618
|
+
expect(result.lines[0]).toBe('hello ');
|
|
619
|
+
expect(result.cursorCol).toBe(5);
|
|
620
|
+
});
|
|
548
621
|
});
|
|
549
622
|
describe('vim_delete_word_backward', () => {
|
|
550
623
|
it('should delete from cursor to previous word start', () => {
|
|
@@ -611,20 +684,322 @@ describe('vim-buffer-actions', () => {
|
|
|
611
684
|
describe('vim_delete_to_end_of_line', () => {
|
|
612
685
|
it('should delete from cursor to end of line', () => {
|
|
613
686
|
const state = createTestState(['hello world'], 0, 5);
|
|
614
|
-
const action = {
|
|
687
|
+
const action = {
|
|
688
|
+
type: 'vim_delete_to_end_of_line',
|
|
689
|
+
payload: { count: 1 },
|
|
690
|
+
};
|
|
615
691
|
const result = handleVimAction(state, action);
|
|
616
692
|
expect(result).toHaveOnlyValidCharacters();
|
|
617
693
|
expect(result.lines[0]).toBe('hello');
|
|
618
|
-
expect(result.cursorCol).toBe(
|
|
694
|
+
expect(result.cursorCol).toBe(4);
|
|
619
695
|
});
|
|
620
696
|
it('should do nothing at end of line', () => {
|
|
621
697
|
const state = createTestState(['hello'], 0, 5);
|
|
622
|
-
const action = {
|
|
698
|
+
const action = {
|
|
699
|
+
type: 'vim_delete_to_end_of_line',
|
|
700
|
+
payload: { count: 1 },
|
|
701
|
+
};
|
|
702
|
+
const result = handleVimAction(state, action);
|
|
703
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
704
|
+
expect(result.lines[0]).toBe('hello');
|
|
705
|
+
});
|
|
706
|
+
it('should delete to end of line plus additional lines with count > 1', () => {
|
|
707
|
+
const state = createTestState(['line one', 'line two', 'line three'], 0, 5);
|
|
708
|
+
const action = {
|
|
709
|
+
type: 'vim_delete_to_end_of_line',
|
|
710
|
+
payload: { count: 2 },
|
|
711
|
+
};
|
|
712
|
+
const result = handleVimAction(state, action);
|
|
713
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
714
|
+
// 2D at position 5 on "line one" should delete "one" + entire "line two"
|
|
715
|
+
expect(result.lines).toEqual(['line ', 'line three']);
|
|
716
|
+
expect(result.cursorCol).toBe(4);
|
|
717
|
+
});
|
|
718
|
+
it('should handle count exceeding available lines', () => {
|
|
719
|
+
const state = createTestState(['line one', 'line two'], 0, 5);
|
|
720
|
+
const action = {
|
|
721
|
+
type: 'vim_delete_to_end_of_line',
|
|
722
|
+
payload: { count: 5 },
|
|
723
|
+
};
|
|
724
|
+
const result = handleVimAction(state, action);
|
|
725
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
726
|
+
// Should delete to end of available lines
|
|
727
|
+
expect(result.lines).toEqual(['line ']);
|
|
728
|
+
});
|
|
729
|
+
});
|
|
730
|
+
describe('vim_delete_to_first_nonwhitespace', () => {
|
|
731
|
+
it('should delete from cursor backwards to first non-whitespace', () => {
|
|
732
|
+
const state = createTestState([' hello world'], 0, 10);
|
|
733
|
+
const action = { type: 'vim_delete_to_first_nonwhitespace' };
|
|
734
|
+
const result = handleVimAction(state, action);
|
|
735
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
736
|
+
// Delete from 'h' (col 4) to cursor (col 10), leaving " world"
|
|
737
|
+
expect(result.lines[0]).toBe(' world');
|
|
738
|
+
expect(result.cursorCol).toBe(4);
|
|
739
|
+
});
|
|
740
|
+
it('should delete from cursor forwards when cursor is in whitespace', () => {
|
|
741
|
+
const state = createTestState([' hello'], 0, 2);
|
|
742
|
+
const action = { type: 'vim_delete_to_first_nonwhitespace' };
|
|
743
|
+
const result = handleVimAction(state, action);
|
|
744
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
745
|
+
// Delete from cursor (col 2) to first non-ws (col 4), leaving " hello"
|
|
746
|
+
expect(result.lines[0]).toBe(' hello');
|
|
747
|
+
expect(result.cursorCol).toBe(2);
|
|
748
|
+
});
|
|
749
|
+
it('should do nothing when cursor is at first non-whitespace', () => {
|
|
750
|
+
const state = createTestState([' hello'], 0, 4);
|
|
751
|
+
const action = { type: 'vim_delete_to_first_nonwhitespace' };
|
|
752
|
+
const result = handleVimAction(state, action);
|
|
753
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
754
|
+
expect(result.lines[0]).toBe(' hello');
|
|
755
|
+
});
|
|
756
|
+
it('should delete to column 0 on whitespace-only line', () => {
|
|
757
|
+
const state = createTestState([' '], 0, 2);
|
|
758
|
+
const action = { type: 'vim_delete_to_first_nonwhitespace' };
|
|
759
|
+
const result = handleVimAction(state, action);
|
|
760
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
761
|
+
// On whitespace-only line, ^ goes to col 0, so d^ deletes cols 0-2
|
|
762
|
+
expect(result.lines[0]).toBe(' ');
|
|
763
|
+
expect(result.cursorCol).toBe(0);
|
|
764
|
+
});
|
|
765
|
+
});
|
|
766
|
+
describe('vim_delete_to_first_line', () => {
|
|
767
|
+
it('should delete from current line to first line (dgg)', () => {
|
|
768
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4'], 2, 0);
|
|
769
|
+
const action = {
|
|
770
|
+
type: 'vim_delete_to_first_line',
|
|
771
|
+
payload: { count: 0 },
|
|
772
|
+
};
|
|
773
|
+
const result = handleVimAction(state, action);
|
|
774
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
775
|
+
// Delete lines 0, 1, 2 (current), leaving line4
|
|
776
|
+
expect(result.lines).toEqual(['line4']);
|
|
777
|
+
expect(result.cursorRow).toBe(0);
|
|
778
|
+
});
|
|
779
|
+
it('should delete from current line to specified line (d5gg)', () => {
|
|
780
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4', 'line5'], 4, 0);
|
|
781
|
+
const action = {
|
|
782
|
+
type: 'vim_delete_to_first_line',
|
|
783
|
+
payload: { count: 2 }, // Delete to line 2 (1-based)
|
|
784
|
+
};
|
|
785
|
+
const result = handleVimAction(state, action);
|
|
786
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
787
|
+
// Delete lines 1-4 (line2 to line5), leaving line1
|
|
788
|
+
expect(result.lines).toEqual(['line1']);
|
|
789
|
+
expect(result.cursorRow).toBe(0);
|
|
790
|
+
});
|
|
791
|
+
it('should keep one empty line when deleting all lines', () => {
|
|
792
|
+
const state = createTestState(['line1', 'line2'], 1, 0);
|
|
793
|
+
const action = {
|
|
794
|
+
type: 'vim_delete_to_first_line',
|
|
795
|
+
payload: { count: 0 },
|
|
796
|
+
};
|
|
797
|
+
const result = handleVimAction(state, action);
|
|
798
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
799
|
+
expect(result.lines).toEqual(['']);
|
|
800
|
+
});
|
|
801
|
+
});
|
|
802
|
+
describe('vim_delete_to_last_line', () => {
|
|
803
|
+
it('should delete from current line to last line (dG)', () => {
|
|
804
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4'], 1, 0);
|
|
805
|
+
const action = {
|
|
806
|
+
type: 'vim_delete_to_last_line',
|
|
807
|
+
payload: { count: 0 },
|
|
808
|
+
};
|
|
809
|
+
const result = handleVimAction(state, action);
|
|
810
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
811
|
+
// Delete lines 1, 2, 3 (from current to last), leaving line1
|
|
812
|
+
expect(result.lines).toEqual(['line1']);
|
|
813
|
+
expect(result.cursorRow).toBe(0);
|
|
814
|
+
});
|
|
815
|
+
it('should delete from current line to specified line (d3G)', () => {
|
|
816
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4', 'line5'], 0, 0);
|
|
817
|
+
const action = {
|
|
818
|
+
type: 'vim_delete_to_last_line',
|
|
819
|
+
payload: { count: 3 }, // Delete to line 3 (1-based)
|
|
820
|
+
};
|
|
821
|
+
const result = handleVimAction(state, action);
|
|
822
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
823
|
+
// Delete lines 0-2 (line1 to line3), leaving line4 and line5
|
|
824
|
+
expect(result.lines).toEqual(['line4', 'line5']);
|
|
825
|
+
expect(result.cursorRow).toBe(0);
|
|
826
|
+
});
|
|
827
|
+
it('should keep one empty line when deleting all lines', () => {
|
|
828
|
+
const state = createTestState(['line1', 'line2'], 0, 0);
|
|
829
|
+
const action = {
|
|
830
|
+
type: 'vim_delete_to_last_line',
|
|
831
|
+
payload: { count: 0 },
|
|
832
|
+
};
|
|
833
|
+
const result = handleVimAction(state, action);
|
|
834
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
835
|
+
expect(result.lines).toEqual(['']);
|
|
836
|
+
});
|
|
837
|
+
});
|
|
838
|
+
describe('vim_change_to_start_of_line', () => {
|
|
839
|
+
it('should delete from start of line to cursor (c0)', () => {
|
|
840
|
+
const state = createTestState(['hello world'], 0, 6);
|
|
841
|
+
const action = { type: 'vim_change_to_start_of_line' };
|
|
842
|
+
const result = handleVimAction(state, action);
|
|
843
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
844
|
+
expect(result.lines[0]).toBe('world');
|
|
845
|
+
expect(result.cursorCol).toBe(0);
|
|
846
|
+
});
|
|
847
|
+
it('should do nothing at start of line', () => {
|
|
848
|
+
const state = createTestState(['hello'], 0, 0);
|
|
849
|
+
const action = { type: 'vim_change_to_start_of_line' };
|
|
623
850
|
const result = handleVimAction(state, action);
|
|
624
851
|
expect(result).toHaveOnlyValidCharacters();
|
|
625
852
|
expect(result.lines[0]).toBe('hello');
|
|
626
853
|
});
|
|
627
854
|
});
|
|
855
|
+
describe('vim_change_to_first_nonwhitespace', () => {
|
|
856
|
+
it('should delete from first non-whitespace to cursor (c^)', () => {
|
|
857
|
+
const state = createTestState([' hello world'], 0, 10);
|
|
858
|
+
const action = { type: 'vim_change_to_first_nonwhitespace' };
|
|
859
|
+
const result = handleVimAction(state, action);
|
|
860
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
861
|
+
expect(result.lines[0]).toBe(' world');
|
|
862
|
+
expect(result.cursorCol).toBe(4);
|
|
863
|
+
});
|
|
864
|
+
it('should delete backwards when cursor before first non-whitespace', () => {
|
|
865
|
+
const state = createTestState([' hello'], 0, 2);
|
|
866
|
+
const action = { type: 'vim_change_to_first_nonwhitespace' };
|
|
867
|
+
const result = handleVimAction(state, action);
|
|
868
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
869
|
+
expect(result.lines[0]).toBe(' hello');
|
|
870
|
+
expect(result.cursorCol).toBe(2);
|
|
871
|
+
});
|
|
872
|
+
it('should handle whitespace-only line', () => {
|
|
873
|
+
const state = createTestState([' '], 0, 3);
|
|
874
|
+
const action = { type: 'vim_change_to_first_nonwhitespace' };
|
|
875
|
+
const result = handleVimAction(state, action);
|
|
876
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
877
|
+
expect(result.lines[0]).toBe(' ');
|
|
878
|
+
expect(result.cursorCol).toBe(0);
|
|
879
|
+
});
|
|
880
|
+
});
|
|
881
|
+
describe('vim_change_to_end_of_line', () => {
|
|
882
|
+
it('should delete from cursor to end of line (C)', () => {
|
|
883
|
+
const state = createTestState(['hello world'], 0, 6);
|
|
884
|
+
const action = {
|
|
885
|
+
type: 'vim_change_to_end_of_line',
|
|
886
|
+
payload: { count: 1 },
|
|
887
|
+
};
|
|
888
|
+
const result = handleVimAction(state, action);
|
|
889
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
890
|
+
expect(result.lines[0]).toBe('hello ');
|
|
891
|
+
expect(result.cursorCol).toBe(6);
|
|
892
|
+
});
|
|
893
|
+
it('should delete multiple lines with count (2C)', () => {
|
|
894
|
+
const state = createTestState(['line1 hello', 'line2', 'line3'], 0, 6);
|
|
895
|
+
const action = {
|
|
896
|
+
type: 'vim_change_to_end_of_line',
|
|
897
|
+
payload: { count: 2 },
|
|
898
|
+
};
|
|
899
|
+
const result = handleVimAction(state, action);
|
|
900
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
901
|
+
expect(result.lines).toEqual(['line1 ', 'line3']);
|
|
902
|
+
expect(result.cursorRow).toBe(0);
|
|
903
|
+
expect(result.cursorCol).toBe(6);
|
|
904
|
+
});
|
|
905
|
+
it('should delete remaining lines when count exceeds available (3C on 2 lines)', () => {
|
|
906
|
+
const state = createTestState(['hello world', 'end'], 0, 6);
|
|
907
|
+
const action = {
|
|
908
|
+
type: 'vim_change_to_end_of_line',
|
|
909
|
+
payload: { count: 3 },
|
|
910
|
+
};
|
|
911
|
+
const result = handleVimAction(state, action);
|
|
912
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
913
|
+
expect(result.lines).toEqual(['hello ']);
|
|
914
|
+
expect(result.cursorCol).toBe(6);
|
|
915
|
+
});
|
|
916
|
+
it('should handle count at last line', () => {
|
|
917
|
+
const state = createTestState(['first', 'last line'], 1, 5);
|
|
918
|
+
const action = {
|
|
919
|
+
type: 'vim_change_to_end_of_line',
|
|
920
|
+
payload: { count: 2 },
|
|
921
|
+
};
|
|
922
|
+
const result = handleVimAction(state, action);
|
|
923
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
924
|
+
expect(result.lines).toEqual(['first', 'last ']);
|
|
925
|
+
expect(result.cursorRow).toBe(1);
|
|
926
|
+
expect(result.cursorCol).toBe(5);
|
|
927
|
+
});
|
|
928
|
+
});
|
|
929
|
+
describe('vim_change_to_first_line', () => {
|
|
930
|
+
it('should delete from first line to current line (cgg)', () => {
|
|
931
|
+
const state = createTestState(['line1', 'line2', 'line3'], 2, 3);
|
|
932
|
+
const action = {
|
|
933
|
+
type: 'vim_delete_to_first_line',
|
|
934
|
+
payload: { count: 0 },
|
|
935
|
+
};
|
|
936
|
+
const result = handleVimAction(state, action);
|
|
937
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
938
|
+
expect(result.lines).toEqual(['']);
|
|
939
|
+
expect(result.cursorRow).toBe(0);
|
|
940
|
+
});
|
|
941
|
+
it('should delete from line 1 to target line (c3gg)', () => {
|
|
942
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4', 'line5'], 0, 0);
|
|
943
|
+
const action = {
|
|
944
|
+
type: 'vim_delete_to_first_line',
|
|
945
|
+
payload: { count: 3 },
|
|
946
|
+
};
|
|
947
|
+
const result = handleVimAction(state, action);
|
|
948
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
949
|
+
expect(result.lines).toEqual(['line4', 'line5']);
|
|
950
|
+
expect(result.cursorRow).toBe(0);
|
|
951
|
+
});
|
|
952
|
+
it('should handle cursor below target line', () => {
|
|
953
|
+
// Cursor on line 4 (index 3), target line 2 (index 1)
|
|
954
|
+
// Should delete lines 2-4 (indices 1-3), leaving line1 and line5
|
|
955
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4', 'line5'], 3, 0);
|
|
956
|
+
const action = {
|
|
957
|
+
type: 'vim_delete_to_first_line',
|
|
958
|
+
payload: { count: 2 },
|
|
959
|
+
};
|
|
960
|
+
const result = handleVimAction(state, action);
|
|
961
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
962
|
+
expect(result.lines).toEqual(['line1', 'line5']);
|
|
963
|
+
expect(result.cursorRow).toBe(1);
|
|
964
|
+
});
|
|
965
|
+
});
|
|
966
|
+
describe('vim_change_to_last_line', () => {
|
|
967
|
+
it('should delete from current line to last line (cG)', () => {
|
|
968
|
+
const state = createTestState(['line1', 'line2', 'line3'], 0, 3);
|
|
969
|
+
const action = {
|
|
970
|
+
type: 'vim_delete_to_last_line',
|
|
971
|
+
payload: { count: 0 },
|
|
972
|
+
};
|
|
973
|
+
const result = handleVimAction(state, action);
|
|
974
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
975
|
+
expect(result.lines).toEqual(['']);
|
|
976
|
+
expect(result.cursorRow).toBe(0);
|
|
977
|
+
});
|
|
978
|
+
it('should delete from cursor to target line (c2G)', () => {
|
|
979
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4'], 0, 0);
|
|
980
|
+
const action = {
|
|
981
|
+
type: 'vim_delete_to_last_line',
|
|
982
|
+
payload: { count: 2 },
|
|
983
|
+
};
|
|
984
|
+
const result = handleVimAction(state, action);
|
|
985
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
986
|
+
expect(result.lines).toEqual(['line3', 'line4']);
|
|
987
|
+
expect(result.cursorRow).toBe(0);
|
|
988
|
+
});
|
|
989
|
+
it('should handle cursor above target', () => {
|
|
990
|
+
// Cursor on line 2 (index 1), target line 3 (index 2)
|
|
991
|
+
// Should delete lines 2-3 (indices 1-2), leaving line1 and line4
|
|
992
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4'], 1, 0);
|
|
993
|
+
const action = {
|
|
994
|
+
type: 'vim_delete_to_last_line',
|
|
995
|
+
payload: { count: 3 },
|
|
996
|
+
};
|
|
997
|
+
const result = handleVimAction(state, action);
|
|
998
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
999
|
+
expect(result.lines).toEqual(['line1', 'line4']);
|
|
1000
|
+
expect(result.cursorRow).toBe(1);
|
|
1001
|
+
});
|
|
1002
|
+
});
|
|
628
1003
|
});
|
|
629
1004
|
describe('Insert mode commands', () => {
|
|
630
1005
|
describe('vim_insert_at_cursor', () => {
|
|
@@ -775,46 +1150,132 @@ describe('vim-buffer-actions', () => {
|
|
|
775
1150
|
};
|
|
776
1151
|
const result = handleVimAction(state, action);
|
|
777
1152
|
expect(result).toHaveOnlyValidCharacters();
|
|
778
|
-
//
|
|
779
|
-
// Since
|
|
780
|
-
expect(result.lines).toEqual(['
|
|
1153
|
+
// In VIM, 2cj deletes current line + 2 lines below = 3 lines total
|
|
1154
|
+
// Since there are exactly 3 lines, all are deleted
|
|
1155
|
+
expect(result.lines).toEqual(['']);
|
|
781
1156
|
expect(result.cursorRow).toBe(0);
|
|
782
|
-
expect(result.cursorCol).toBe(
|
|
1157
|
+
expect(result.cursorCol).toBe(0);
|
|
783
1158
|
});
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
1159
|
+
it('should handle Unicode characters in cj (down)', () => {
|
|
1160
|
+
const state = createTestState(['hello 🎉 world', 'line2 émoji', 'line3'], 0, 0);
|
|
1161
|
+
const action = {
|
|
1162
|
+
type: 'vim_change_movement',
|
|
1163
|
+
payload: { movement: 'j', count: 1 },
|
|
1164
|
+
};
|
|
1165
|
+
const result = handleVimAction(state, action);
|
|
1166
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1167
|
+
expect(result.lines).toEqual(['line3']);
|
|
1168
|
+
expect(result.cursorRow).toBe(0);
|
|
1169
|
+
expect(result.cursorCol).toBe(0);
|
|
1170
|
+
});
|
|
1171
|
+
it('should handle Unicode characters in ck (up)', () => {
|
|
1172
|
+
const state = createTestState(['line1', 'hello 🎉 world', 'line3 émoji'], 2, 0);
|
|
1173
|
+
const action = {
|
|
1174
|
+
type: 'vim_change_movement',
|
|
1175
|
+
payload: { movement: 'k', count: 1 },
|
|
1176
|
+
};
|
|
1177
|
+
const result = handleVimAction(state, action);
|
|
1178
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1179
|
+
expect(result.lines).toEqual(['line1']);
|
|
1180
|
+
expect(result.cursorRow).toBe(0);
|
|
1181
|
+
expect(result.cursorCol).toBe(0);
|
|
1182
|
+
});
|
|
1183
|
+
it('should handle cj on first line of 2 lines (delete all)', () => {
|
|
1184
|
+
const state = createTestState(['line1', 'line2'], 0, 0);
|
|
1185
|
+
const action = {
|
|
1186
|
+
type: 'vim_change_movement',
|
|
1187
|
+
payload: { movement: 'j', count: 1 },
|
|
1188
|
+
};
|
|
1189
|
+
const result = handleVimAction(state, action);
|
|
1190
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1191
|
+
expect(result.lines).toEqual(['']);
|
|
1192
|
+
expect(result.cursorRow).toBe(0);
|
|
1193
|
+
expect(result.cursorCol).toBe(0);
|
|
1194
|
+
});
|
|
1195
|
+
it('should handle cj on last line (delete only current line)', () => {
|
|
1196
|
+
const state = createTestState(['line1', 'line2', 'line3'], 2, 0);
|
|
1197
|
+
const action = {
|
|
1198
|
+
type: 'vim_change_movement',
|
|
1199
|
+
payload: { movement: 'j', count: 1 },
|
|
1200
|
+
};
|
|
1201
|
+
const result = handleVimAction(state, action);
|
|
1202
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1203
|
+
expect(result.lines).toEqual(['line1', 'line2']);
|
|
1204
|
+
expect(result.cursorRow).toBe(1);
|
|
1205
|
+
expect(result.cursorCol).toBe(0);
|
|
1206
|
+
});
|
|
1207
|
+
it('should handle ck on first line (delete only current line)', () => {
|
|
1208
|
+
const state = createTestState(['line1', 'line2', 'line3'], 0, 0);
|
|
1209
|
+
const action = {
|
|
1210
|
+
type: 'vim_change_movement',
|
|
1211
|
+
payload: { movement: 'k', count: 1 },
|
|
1212
|
+
};
|
|
1213
|
+
const result = handleVimAction(state, action);
|
|
1214
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1215
|
+
expect(result.lines).toEqual(['line2', 'line3']);
|
|
1216
|
+
expect(result.cursorRow).toBe(0);
|
|
1217
|
+
expect(result.cursorCol).toBe(0);
|
|
1218
|
+
});
|
|
1219
|
+
it('should handle 2cj from middle line', () => {
|
|
1220
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4', 'line5'], 1, 0);
|
|
1221
|
+
const action = {
|
|
1222
|
+
type: 'vim_change_movement',
|
|
1223
|
+
payload: { movement: 'j', count: 2 },
|
|
1224
|
+
};
|
|
1225
|
+
const result = handleVimAction(state, action);
|
|
1226
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1227
|
+
// 2cj from line 1: delete lines 1, 2, 3 (current + 2 below)
|
|
1228
|
+
expect(result.lines).toEqual(['line1', 'line5']);
|
|
1229
|
+
expect(result.cursorRow).toBe(1);
|
|
1230
|
+
expect(result.cursorCol).toBe(0);
|
|
1231
|
+
});
|
|
1232
|
+
it('should handle 2ck from middle line', () => {
|
|
1233
|
+
const state = createTestState(['line1', 'line2', 'line3', 'line4', 'line5'], 3, 0);
|
|
1234
|
+
const action = {
|
|
1235
|
+
type: 'vim_change_movement',
|
|
1236
|
+
payload: { movement: 'k', count: 2 },
|
|
1237
|
+
};
|
|
1238
|
+
const result = handleVimAction(state, action);
|
|
1239
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1240
|
+
// 2ck from line 3: delete lines 1, 2, 3 (current + 2 above)
|
|
1241
|
+
expect(result.lines).toEqual(['line1', 'line5']);
|
|
1242
|
+
expect(result.cursorRow).toBe(1);
|
|
1243
|
+
expect(result.cursorCol).toBe(0);
|
|
1244
|
+
});
|
|
1245
|
+
});
|
|
1246
|
+
});
|
|
1247
|
+
describe('Edge cases', () => {
|
|
1248
|
+
it('should handle empty text', () => {
|
|
1249
|
+
const state = createTestState([''], 0, 0);
|
|
1250
|
+
const action = {
|
|
1251
|
+
type: 'vim_move_word_forward',
|
|
1252
|
+
payload: { count: 1 },
|
|
1253
|
+
};
|
|
1254
|
+
const result = handleVimAction(state, action);
|
|
1255
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1256
|
+
expect(result.cursorRow).toBe(0);
|
|
1257
|
+
expect(result.cursorCol).toBe(0);
|
|
1258
|
+
});
|
|
1259
|
+
it('should handle single character line', () => {
|
|
1260
|
+
const state = createTestState(['a'], 0, 0);
|
|
1261
|
+
const action = { type: 'vim_move_to_line_end' };
|
|
1262
|
+
const result = handleVimAction(state, action);
|
|
1263
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1264
|
+
expect(result.cursorCol).toBe(0); // Should be last character position
|
|
1265
|
+
});
|
|
1266
|
+
it('should handle empty lines in multi-line text', () => {
|
|
1267
|
+
const state = createTestState(['line1', '', 'line3'], 1, 0);
|
|
1268
|
+
const action = {
|
|
1269
|
+
type: 'vim_move_word_forward',
|
|
1270
|
+
payload: { count: 1 },
|
|
1271
|
+
};
|
|
1272
|
+
const result = handleVimAction(state, action);
|
|
1273
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
1274
|
+
// Should move to next line with content
|
|
1275
|
+
expect(result.cursorRow).toBe(2);
|
|
1276
|
+
expect(result.cursorCol).toBe(0);
|
|
1277
|
+
});
|
|
1278
|
+
it('should preserve undo stack in operations', () => {
|
|
818
1279
|
const state = createTestState(['hello'], 0, 0);
|
|
819
1280
|
state.undoStack = [
|
|
820
1281
|
{
|
|
@@ -1014,5 +1475,798 @@ describe('vim-buffer-actions', () => {
|
|
|
1014
1475
|
});
|
|
1015
1476
|
});
|
|
1016
1477
|
});
|
|
1478
|
+
describe('Character manipulation commands (X, ~, r, f/F/t/T)', () => {
|
|
1479
|
+
describe('vim_delete_char_before (X)', () => {
|
|
1480
|
+
it('should delete the character before the cursor', () => {
|
|
1481
|
+
const state = createTestState(['hello'], 0, 3);
|
|
1482
|
+
const result = handleVimAction(state, {
|
|
1483
|
+
type: 'vim_delete_char_before',
|
|
1484
|
+
payload: { count: 1 },
|
|
1485
|
+
});
|
|
1486
|
+
expect(result.lines[0]).toBe('helo');
|
|
1487
|
+
expect(result.cursorCol).toBe(2);
|
|
1488
|
+
});
|
|
1489
|
+
it('should delete N characters before the cursor', () => {
|
|
1490
|
+
const state = createTestState(['hello world'], 0, 5);
|
|
1491
|
+
const result = handleVimAction(state, {
|
|
1492
|
+
type: 'vim_delete_char_before',
|
|
1493
|
+
payload: { count: 3 },
|
|
1494
|
+
});
|
|
1495
|
+
expect(result.lines[0]).toBe('he world');
|
|
1496
|
+
expect(result.cursorCol).toBe(2);
|
|
1497
|
+
});
|
|
1498
|
+
it('should clamp to start of line when count exceeds position', () => {
|
|
1499
|
+
const state = createTestState(['hello'], 0, 2);
|
|
1500
|
+
const result = handleVimAction(state, {
|
|
1501
|
+
type: 'vim_delete_char_before',
|
|
1502
|
+
payload: { count: 10 },
|
|
1503
|
+
});
|
|
1504
|
+
expect(result.lines[0]).toBe('llo');
|
|
1505
|
+
expect(result.cursorCol).toBe(0);
|
|
1506
|
+
});
|
|
1507
|
+
it('should do nothing when cursor is at column 0', () => {
|
|
1508
|
+
const state = createTestState(['hello'], 0, 0);
|
|
1509
|
+
const result = handleVimAction(state, {
|
|
1510
|
+
type: 'vim_delete_char_before',
|
|
1511
|
+
payload: { count: 1 },
|
|
1512
|
+
});
|
|
1513
|
+
expect(result.lines[0]).toBe('hello');
|
|
1514
|
+
expect(result.cursorCol).toBe(0);
|
|
1515
|
+
});
|
|
1516
|
+
it('should push undo state', () => {
|
|
1517
|
+
const state = createTestState(['hello'], 0, 3);
|
|
1518
|
+
const result = handleVimAction(state, {
|
|
1519
|
+
type: 'vim_delete_char_before',
|
|
1520
|
+
payload: { count: 1 },
|
|
1521
|
+
});
|
|
1522
|
+
expect(result.undoStack.length).toBeGreaterThan(0);
|
|
1523
|
+
});
|
|
1524
|
+
});
|
|
1525
|
+
describe('vim_toggle_case (~)', () => {
|
|
1526
|
+
it('should toggle lowercase to uppercase', () => {
|
|
1527
|
+
const state = createTestState(['hello'], 0, 0);
|
|
1528
|
+
const result = handleVimAction(state, {
|
|
1529
|
+
type: 'vim_toggle_case',
|
|
1530
|
+
payload: { count: 1 },
|
|
1531
|
+
});
|
|
1532
|
+
expect(result.lines[0]).toBe('Hello');
|
|
1533
|
+
expect(result.cursorCol).toBe(1);
|
|
1534
|
+
});
|
|
1535
|
+
it('should toggle uppercase to lowercase', () => {
|
|
1536
|
+
const state = createTestState(['HELLO'], 0, 0);
|
|
1537
|
+
const result = handleVimAction(state, {
|
|
1538
|
+
type: 'vim_toggle_case',
|
|
1539
|
+
payload: { count: 1 },
|
|
1540
|
+
});
|
|
1541
|
+
expect(result.lines[0]).toBe('hELLO');
|
|
1542
|
+
expect(result.cursorCol).toBe(1);
|
|
1543
|
+
});
|
|
1544
|
+
it('should toggle N characters', () => {
|
|
1545
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1546
|
+
const result = handleVimAction(state, {
|
|
1547
|
+
type: 'vim_toggle_case',
|
|
1548
|
+
payload: { count: 5 },
|
|
1549
|
+
});
|
|
1550
|
+
expect(result.lines[0]).toBe('HELLO world');
|
|
1551
|
+
expect(result.cursorCol).toBe(5); // cursor advances past the toggled range
|
|
1552
|
+
});
|
|
1553
|
+
it('should clamp count to end of line', () => {
|
|
1554
|
+
const state = createTestState(['hi'], 0, 1);
|
|
1555
|
+
const result = handleVimAction(state, {
|
|
1556
|
+
type: 'vim_toggle_case',
|
|
1557
|
+
payload: { count: 100 },
|
|
1558
|
+
});
|
|
1559
|
+
expect(result.lines[0]).toBe('hI');
|
|
1560
|
+
expect(result.cursorCol).toBe(1);
|
|
1561
|
+
});
|
|
1562
|
+
it('should do nothing when cursor is past end of line', () => {
|
|
1563
|
+
const state = createTestState(['hi'], 0, 5);
|
|
1564
|
+
const result = handleVimAction(state, {
|
|
1565
|
+
type: 'vim_toggle_case',
|
|
1566
|
+
payload: { count: 1 },
|
|
1567
|
+
});
|
|
1568
|
+
expect(result.lines[0]).toBe('hi');
|
|
1569
|
+
});
|
|
1570
|
+
it('should push undo state', () => {
|
|
1571
|
+
const state = createTestState(['hello'], 0, 0);
|
|
1572
|
+
const result = handleVimAction(state, {
|
|
1573
|
+
type: 'vim_toggle_case',
|
|
1574
|
+
payload: { count: 1 },
|
|
1575
|
+
});
|
|
1576
|
+
expect(result.undoStack.length).toBeGreaterThan(0);
|
|
1577
|
+
});
|
|
1578
|
+
});
|
|
1579
|
+
describe('vim_replace_char (r)', () => {
|
|
1580
|
+
it('should replace the character under the cursor', () => {
|
|
1581
|
+
const state = createTestState(['hello'], 0, 1);
|
|
1582
|
+
const result = handleVimAction(state, {
|
|
1583
|
+
type: 'vim_replace_char',
|
|
1584
|
+
payload: { char: 'a', count: 1 },
|
|
1585
|
+
});
|
|
1586
|
+
expect(result.lines[0]).toBe('hallo');
|
|
1587
|
+
expect(result.cursorCol).toBe(1);
|
|
1588
|
+
});
|
|
1589
|
+
it('should replace N characters with the given char', () => {
|
|
1590
|
+
const state = createTestState(['hello'], 0, 1);
|
|
1591
|
+
const result = handleVimAction(state, {
|
|
1592
|
+
type: 'vim_replace_char',
|
|
1593
|
+
payload: { char: 'x', count: 3 },
|
|
1594
|
+
});
|
|
1595
|
+
expect(result.lines[0]).toBe('hxxxo');
|
|
1596
|
+
expect(result.cursorCol).toBe(3); // cursor at last replaced char
|
|
1597
|
+
});
|
|
1598
|
+
it('should clamp replace count to end of line', () => {
|
|
1599
|
+
const state = createTestState(['hi'], 0, 1);
|
|
1600
|
+
const result = handleVimAction(state, {
|
|
1601
|
+
type: 'vim_replace_char',
|
|
1602
|
+
payload: { char: 'z', count: 100 },
|
|
1603
|
+
});
|
|
1604
|
+
expect(result.lines[0]).toBe('hz');
|
|
1605
|
+
expect(result.cursorCol).toBe(1);
|
|
1606
|
+
});
|
|
1607
|
+
it('should do nothing when cursor is past end of line', () => {
|
|
1608
|
+
const state = createTestState(['hi'], 0, 5);
|
|
1609
|
+
const result = handleVimAction(state, {
|
|
1610
|
+
type: 'vim_replace_char',
|
|
1611
|
+
payload: { char: 'z', count: 1 },
|
|
1612
|
+
});
|
|
1613
|
+
expect(result.lines[0]).toBe('hi');
|
|
1614
|
+
});
|
|
1615
|
+
it('should push undo state', () => {
|
|
1616
|
+
const state = createTestState(['hello'], 0, 0);
|
|
1617
|
+
const result = handleVimAction(state, {
|
|
1618
|
+
type: 'vim_replace_char',
|
|
1619
|
+
payload: { char: 'x', count: 1 },
|
|
1620
|
+
});
|
|
1621
|
+
expect(result.undoStack.length).toBeGreaterThan(0);
|
|
1622
|
+
});
|
|
1623
|
+
});
|
|
1624
|
+
it.each([
|
|
1625
|
+
{
|
|
1626
|
+
label: 'f: move to char',
|
|
1627
|
+
type: 'vim_find_char_forward',
|
|
1628
|
+
cursorStart: 0,
|
|
1629
|
+
char: 'o',
|
|
1630
|
+
count: 1,
|
|
1631
|
+
till: false,
|
|
1632
|
+
expectedCol: 4,
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
label: 'f: Nth occurrence',
|
|
1636
|
+
type: 'vim_find_char_forward',
|
|
1637
|
+
cursorStart: 0,
|
|
1638
|
+
char: 'o',
|
|
1639
|
+
count: 2,
|
|
1640
|
+
till: false,
|
|
1641
|
+
expectedCol: 7,
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
label: 't: move before char',
|
|
1645
|
+
type: 'vim_find_char_forward',
|
|
1646
|
+
cursorStart: 0,
|
|
1647
|
+
char: 'o',
|
|
1648
|
+
count: 1,
|
|
1649
|
+
till: true,
|
|
1650
|
+
expectedCol: 3,
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
label: 'f: not found',
|
|
1654
|
+
type: 'vim_find_char_forward',
|
|
1655
|
+
cursorStart: 0,
|
|
1656
|
+
char: 'z',
|
|
1657
|
+
count: 1,
|
|
1658
|
+
till: false,
|
|
1659
|
+
expectedCol: 0,
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
label: 'f: skip char at cursor',
|
|
1663
|
+
type: 'vim_find_char_forward',
|
|
1664
|
+
cursorStart: 1,
|
|
1665
|
+
char: 'h',
|
|
1666
|
+
count: 1,
|
|
1667
|
+
till: false,
|
|
1668
|
+
expectedCol: 1,
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
label: 'F: move to char',
|
|
1672
|
+
type: 'vim_find_char_backward',
|
|
1673
|
+
cursorStart: 10,
|
|
1674
|
+
char: 'o',
|
|
1675
|
+
count: 1,
|
|
1676
|
+
till: false,
|
|
1677
|
+
expectedCol: 7,
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
label: 'F: Nth occurrence',
|
|
1681
|
+
type: 'vim_find_char_backward',
|
|
1682
|
+
cursorStart: 10,
|
|
1683
|
+
char: 'o',
|
|
1684
|
+
count: 2,
|
|
1685
|
+
till: false,
|
|
1686
|
+
expectedCol: 4,
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
label: 'T: move after char',
|
|
1690
|
+
type: 'vim_find_char_backward',
|
|
1691
|
+
cursorStart: 10,
|
|
1692
|
+
char: 'o',
|
|
1693
|
+
count: 1,
|
|
1694
|
+
till: true,
|
|
1695
|
+
expectedCol: 8,
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
label: 'F: not found',
|
|
1699
|
+
type: 'vim_find_char_backward',
|
|
1700
|
+
cursorStart: 4,
|
|
1701
|
+
char: 'z',
|
|
1702
|
+
count: 1,
|
|
1703
|
+
till: false,
|
|
1704
|
+
expectedCol: 4,
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
label: 'F: skip char at cursor',
|
|
1708
|
+
type: 'vim_find_char_backward',
|
|
1709
|
+
cursorStart: 3,
|
|
1710
|
+
char: 'o',
|
|
1711
|
+
count: 1,
|
|
1712
|
+
till: false,
|
|
1713
|
+
expectedCol: 3,
|
|
1714
|
+
},
|
|
1715
|
+
])('$label', ({ type, cursorStart, char, count, till, expectedCol }) => {
|
|
1716
|
+
const line = type === 'vim_find_char_forward' ? ['hello world'] : ['hello world'];
|
|
1717
|
+
const state = createTestState(line, 0, cursorStart);
|
|
1718
|
+
const result = handleVimAction(state, {
|
|
1719
|
+
type,
|
|
1720
|
+
payload: { char, count, till },
|
|
1721
|
+
});
|
|
1722
|
+
expect(result.cursorCol).toBe(expectedCol);
|
|
1723
|
+
});
|
|
1724
|
+
});
|
|
1725
|
+
describe('Unicode character support in find operations', () => {
|
|
1726
|
+
it('vim_find_char_forward: finds multi-byte char (é) correctly', () => {
|
|
1727
|
+
const state = createTestState(['café world'], 0, 0);
|
|
1728
|
+
const result = handleVimAction(state, {
|
|
1729
|
+
type: 'vim_find_char_forward',
|
|
1730
|
+
payload: { char: 'é', count: 1, till: false },
|
|
1731
|
+
});
|
|
1732
|
+
expect(result.cursorCol).toBe(3); // 'c','a','f','é' — é is at index 3
|
|
1733
|
+
expect(result.lines[0]).toBe('café world');
|
|
1734
|
+
});
|
|
1735
|
+
it('vim_find_char_backward: finds multi-byte char (é) correctly', () => {
|
|
1736
|
+
const state = createTestState(['café world'], 0, 9);
|
|
1737
|
+
const result = handleVimAction(state, {
|
|
1738
|
+
type: 'vim_find_char_backward',
|
|
1739
|
+
payload: { char: 'é', count: 1, till: false },
|
|
1740
|
+
});
|
|
1741
|
+
expect(result.cursorCol).toBe(3);
|
|
1742
|
+
});
|
|
1743
|
+
it('vim_delete_to_char_forward: handles multi-byte target char', () => {
|
|
1744
|
+
const state = createTestState(['café world'], 0, 0);
|
|
1745
|
+
const result = handleVimAction(state, {
|
|
1746
|
+
type: 'vim_delete_to_char_forward',
|
|
1747
|
+
payload: { char: 'é', count: 1, till: false },
|
|
1748
|
+
});
|
|
1749
|
+
// Deletes 'caf' + 'é' → ' world' remains
|
|
1750
|
+
expect(result.lines[0]).toBe(' world');
|
|
1751
|
+
expect(result.cursorCol).toBe(0);
|
|
1752
|
+
});
|
|
1753
|
+
it('vim_delete_to_char_forward (till): stops before multi-byte char', () => {
|
|
1754
|
+
const state = createTestState(['café world'], 0, 0);
|
|
1755
|
+
const result = handleVimAction(state, {
|
|
1756
|
+
type: 'vim_delete_to_char_forward',
|
|
1757
|
+
payload: { char: 'é', count: 1, till: true },
|
|
1758
|
+
});
|
|
1759
|
+
// Deletes 'caf', keeps 'é world'
|
|
1760
|
+
expect(result.lines[0]).toBe('é world');
|
|
1761
|
+
expect(result.cursorCol).toBe(0);
|
|
1762
|
+
});
|
|
1763
|
+
});
|
|
1764
|
+
describe('vim_delete_to_char_forward (df/dt)', () => {
|
|
1765
|
+
it('df: deletes from cursor through found char (inclusive)', () => {
|
|
1766
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1767
|
+
const result = handleVimAction(state, {
|
|
1768
|
+
type: 'vim_delete_to_char_forward',
|
|
1769
|
+
payload: { char: 'o', count: 1, till: false },
|
|
1770
|
+
});
|
|
1771
|
+
expect(result.lines[0]).toBe(' world');
|
|
1772
|
+
expect(result.cursorCol).toBe(0);
|
|
1773
|
+
});
|
|
1774
|
+
it('dt: deletes from cursor up to (not including) found char', () => {
|
|
1775
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1776
|
+
const result = handleVimAction(state, {
|
|
1777
|
+
type: 'vim_delete_to_char_forward',
|
|
1778
|
+
payload: { char: 'o', count: 1, till: true },
|
|
1779
|
+
});
|
|
1780
|
+
expect(result.lines[0]).toBe('o world');
|
|
1781
|
+
expect(result.cursorCol).toBe(0);
|
|
1782
|
+
});
|
|
1783
|
+
it('df with count: deletes to Nth occurrence', () => {
|
|
1784
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1785
|
+
const result = handleVimAction(state, {
|
|
1786
|
+
type: 'vim_delete_to_char_forward',
|
|
1787
|
+
payload: { char: 'o', count: 2, till: false },
|
|
1788
|
+
});
|
|
1789
|
+
expect(result.lines[0]).toBe('rld');
|
|
1790
|
+
expect(result.cursorCol).toBe(0);
|
|
1791
|
+
});
|
|
1792
|
+
it('does nothing if char not found', () => {
|
|
1793
|
+
const state = createTestState(['hello'], 0, 0);
|
|
1794
|
+
const result = handleVimAction(state, {
|
|
1795
|
+
type: 'vim_delete_to_char_forward',
|
|
1796
|
+
payload: { char: 'z', count: 1, till: false },
|
|
1797
|
+
});
|
|
1798
|
+
expect(result.lines[0]).toBe('hello');
|
|
1799
|
+
expect(result.cursorCol).toBe(0);
|
|
1800
|
+
});
|
|
1801
|
+
it('pushes undo state', () => {
|
|
1802
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1803
|
+
const result = handleVimAction(state, {
|
|
1804
|
+
type: 'vim_delete_to_char_forward',
|
|
1805
|
+
payload: { char: 'o', count: 1, till: false },
|
|
1806
|
+
});
|
|
1807
|
+
expect(result.undoStack.length).toBeGreaterThan(0);
|
|
1808
|
+
});
|
|
1809
|
+
it('df: clamps cursor when deleting through the last char on the line', () => {
|
|
1810
|
+
// cursor at 1 in 'hello'; dfo finds 'o' at col 4 and deletes [1,4] → 'h'
|
|
1811
|
+
const state = createTestState(['hello'], 0, 1);
|
|
1812
|
+
const result = handleVimAction(state, {
|
|
1813
|
+
type: 'vim_delete_to_char_forward',
|
|
1814
|
+
payload: { char: 'o', count: 1, till: false },
|
|
1815
|
+
});
|
|
1816
|
+
expect(result.lines[0]).toBe('h');
|
|
1817
|
+
// cursor was at col 1, new line has only col 0 valid
|
|
1818
|
+
expect(result.cursorCol).toBe(0);
|
|
1819
|
+
});
|
|
1820
|
+
});
|
|
1821
|
+
describe('vim_delete_to_char_backward (dF/dT)', () => {
|
|
1822
|
+
it('dF: deletes from found char through cursor (inclusive)', () => {
|
|
1823
|
+
const state = createTestState(['hello world'], 0, 7);
|
|
1824
|
+
const result = handleVimAction(state, {
|
|
1825
|
+
type: 'vim_delete_to_char_backward',
|
|
1826
|
+
payload: { char: 'o', count: 1, till: false },
|
|
1827
|
+
});
|
|
1828
|
+
// cursor at 7 ('o' in world), dFo finds 'o' at col 4
|
|
1829
|
+
// delete [4, 8) — both ends inclusive → 'hell' + 'rld'
|
|
1830
|
+
expect(result.lines[0]).toBe('hellrld');
|
|
1831
|
+
expect(result.cursorCol).toBe(4);
|
|
1832
|
+
});
|
|
1833
|
+
it('dT: deletes from found+1 through cursor (inclusive)', () => {
|
|
1834
|
+
const state = createTestState(['hello world'], 0, 7);
|
|
1835
|
+
const result = handleVimAction(state, {
|
|
1836
|
+
type: 'vim_delete_to_char_backward',
|
|
1837
|
+
payload: { char: 'o', count: 1, till: true },
|
|
1838
|
+
});
|
|
1839
|
+
// dTo finds 'o' at col 4, deletes [5, 8) → 'hello' + 'rld'
|
|
1840
|
+
expect(result.lines[0]).toBe('hellorld');
|
|
1841
|
+
expect(result.cursorCol).toBe(5);
|
|
1842
|
+
});
|
|
1843
|
+
it('does nothing if char not found', () => {
|
|
1844
|
+
const state = createTestState(['hello'], 0, 4);
|
|
1845
|
+
const result = handleVimAction(state, {
|
|
1846
|
+
type: 'vim_delete_to_char_backward',
|
|
1847
|
+
payload: { char: 'z', count: 1, till: false },
|
|
1848
|
+
});
|
|
1849
|
+
expect(result.lines[0]).toBe('hello');
|
|
1850
|
+
expect(result.cursorCol).toBe(4);
|
|
1851
|
+
});
|
|
1852
|
+
it('pushes undo state', () => {
|
|
1853
|
+
const state = createTestState(['hello world'], 0, 7);
|
|
1854
|
+
const result = handleVimAction(state, {
|
|
1855
|
+
type: 'vim_delete_to_char_backward',
|
|
1856
|
+
payload: { char: 'o', count: 1, till: false },
|
|
1857
|
+
});
|
|
1858
|
+
expect(result.undoStack.length).toBeGreaterThan(0);
|
|
1859
|
+
});
|
|
1860
|
+
it('dF: clamps cursor when deletion removes chars up to end of line', () => {
|
|
1861
|
+
// 'hello', cursor on last char 'o' (col 4), dFe finds 'e' at col 1
|
|
1862
|
+
// deletes [1, 5) → 'h'; without clamp cursor would be at col 1 (past end)
|
|
1863
|
+
const state = createTestState(['hello'], 0, 4);
|
|
1864
|
+
const result = handleVimAction(state, {
|
|
1865
|
+
type: 'vim_delete_to_char_backward',
|
|
1866
|
+
payload: { char: 'e', count: 1, till: false },
|
|
1867
|
+
});
|
|
1868
|
+
expect(result.lines[0]).toBe('h');
|
|
1869
|
+
expect(result.cursorCol).toBe(0);
|
|
1870
|
+
});
|
|
1871
|
+
});
|
|
1872
|
+
describe('vim yank and paste', () => {
|
|
1873
|
+
describe('vim_yank_line (yy)', () => {
|
|
1874
|
+
it('should yank current line into register as linewise', () => {
|
|
1875
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1876
|
+
const result = handleVimAction(state, {
|
|
1877
|
+
type: 'vim_yank_line',
|
|
1878
|
+
payload: { count: 1 },
|
|
1879
|
+
});
|
|
1880
|
+
expect(result.yankRegister).toEqual({
|
|
1881
|
+
text: 'hello world',
|
|
1882
|
+
linewise: true,
|
|
1883
|
+
});
|
|
1884
|
+
});
|
|
1885
|
+
it('should not modify the buffer or cursor position', () => {
|
|
1886
|
+
const state = createTestState(['hello world'], 0, 3);
|
|
1887
|
+
const result = handleVimAction(state, {
|
|
1888
|
+
type: 'vim_yank_line',
|
|
1889
|
+
payload: { count: 1 },
|
|
1890
|
+
});
|
|
1891
|
+
expect(result.lines).toEqual(['hello world']);
|
|
1892
|
+
expect(result.cursorRow).toBe(0);
|
|
1893
|
+
expect(result.cursorCol).toBe(3);
|
|
1894
|
+
});
|
|
1895
|
+
it('should yank multiple lines with count', () => {
|
|
1896
|
+
const state = createTestState(['line1', 'line2', 'line3'], 0, 0);
|
|
1897
|
+
const result = handleVimAction(state, {
|
|
1898
|
+
type: 'vim_yank_line',
|
|
1899
|
+
payload: { count: 2 },
|
|
1900
|
+
});
|
|
1901
|
+
expect(result.yankRegister).toEqual({
|
|
1902
|
+
text: 'line1\nline2',
|
|
1903
|
+
linewise: true,
|
|
1904
|
+
});
|
|
1905
|
+
expect(result.lines).toEqual(['line1', 'line2', 'line3']);
|
|
1906
|
+
});
|
|
1907
|
+
it('should clamp count to available lines', () => {
|
|
1908
|
+
const state = createTestState(['only'], 0, 0);
|
|
1909
|
+
const result = handleVimAction(state, {
|
|
1910
|
+
type: 'vim_yank_line',
|
|
1911
|
+
payload: { count: 99 },
|
|
1912
|
+
});
|
|
1913
|
+
expect(result.yankRegister).toEqual({ text: 'only', linewise: true });
|
|
1914
|
+
});
|
|
1915
|
+
});
|
|
1916
|
+
describe('vim_yank_word_forward (yw)', () => {
|
|
1917
|
+
it('should yank from cursor to start of next word', () => {
|
|
1918
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1919
|
+
const result = handleVimAction(state, {
|
|
1920
|
+
type: 'vim_yank_word_forward',
|
|
1921
|
+
payload: { count: 1 },
|
|
1922
|
+
});
|
|
1923
|
+
expect(result.yankRegister).toEqual({
|
|
1924
|
+
text: 'hello ',
|
|
1925
|
+
linewise: false,
|
|
1926
|
+
});
|
|
1927
|
+
expect(result.lines).toEqual(['hello world']);
|
|
1928
|
+
});
|
|
1929
|
+
});
|
|
1930
|
+
describe('vim_yank_big_word_forward (yW)', () => {
|
|
1931
|
+
it('should yank from cursor to start of next big word', () => {
|
|
1932
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1933
|
+
const result = handleVimAction(state, {
|
|
1934
|
+
type: 'vim_yank_big_word_forward',
|
|
1935
|
+
payload: { count: 1 },
|
|
1936
|
+
});
|
|
1937
|
+
expect(result.yankRegister).toEqual({
|
|
1938
|
+
text: 'hello ',
|
|
1939
|
+
linewise: false,
|
|
1940
|
+
});
|
|
1941
|
+
expect(result.lines).toEqual(['hello world']);
|
|
1942
|
+
});
|
|
1943
|
+
});
|
|
1944
|
+
describe('vim_yank_word_end (ye)', () => {
|
|
1945
|
+
it('should yank from cursor to end of current word', () => {
|
|
1946
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1947
|
+
const result = handleVimAction(state, {
|
|
1948
|
+
type: 'vim_yank_word_end',
|
|
1949
|
+
payload: { count: 1 },
|
|
1950
|
+
});
|
|
1951
|
+
expect(result.yankRegister).toEqual({ text: 'hello', linewise: false });
|
|
1952
|
+
expect(result.lines).toEqual(['hello world']);
|
|
1953
|
+
});
|
|
1954
|
+
});
|
|
1955
|
+
describe('vim_yank_big_word_end (yE)', () => {
|
|
1956
|
+
it('should yank from cursor to end of current big word', () => {
|
|
1957
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
1958
|
+
const result = handleVimAction(state, {
|
|
1959
|
+
type: 'vim_yank_big_word_end',
|
|
1960
|
+
payload: { count: 1 },
|
|
1961
|
+
});
|
|
1962
|
+
expect(result.yankRegister).toEqual({ text: 'hello', linewise: false });
|
|
1963
|
+
expect(result.lines).toEqual(['hello world']);
|
|
1964
|
+
});
|
|
1965
|
+
});
|
|
1966
|
+
describe('vim_yank_to_end_of_line (y$)', () => {
|
|
1967
|
+
it('should yank from cursor to end of line', () => {
|
|
1968
|
+
const state = createTestState(['hello world'], 0, 6);
|
|
1969
|
+
const result = handleVimAction(state, {
|
|
1970
|
+
type: 'vim_yank_to_end_of_line',
|
|
1971
|
+
payload: { count: 1 },
|
|
1972
|
+
});
|
|
1973
|
+
expect(result.yankRegister).toEqual({ text: 'world', linewise: false });
|
|
1974
|
+
expect(result.lines).toEqual(['hello world']);
|
|
1975
|
+
});
|
|
1976
|
+
it('should do nothing when cursor is at end of line', () => {
|
|
1977
|
+
const state = createTestState(['hello'], 0, 5);
|
|
1978
|
+
const result = handleVimAction(state, {
|
|
1979
|
+
type: 'vim_yank_to_end_of_line',
|
|
1980
|
+
payload: { count: 1 },
|
|
1981
|
+
});
|
|
1982
|
+
expect(result.yankRegister).toBeNull();
|
|
1983
|
+
});
|
|
1984
|
+
});
|
|
1985
|
+
describe('delete operations populate yankRegister', () => {
|
|
1986
|
+
it('should populate register on x (vim_delete_char)', () => {
|
|
1987
|
+
const state = createTestState(['hello'], 0, 1);
|
|
1988
|
+
const result = handleVimAction(state, {
|
|
1989
|
+
type: 'vim_delete_char',
|
|
1990
|
+
payload: { count: 1 },
|
|
1991
|
+
});
|
|
1992
|
+
expect(result.yankRegister).toEqual({ text: 'e', linewise: false });
|
|
1993
|
+
expect(result.lines[0]).toBe('hllo');
|
|
1994
|
+
});
|
|
1995
|
+
it('should populate register on X (vim_delete_char_before)', () => {
|
|
1996
|
+
// cursor at col 2 ('l'); X deletes the char before = col 1 ('e')
|
|
1997
|
+
const state = createTestState(['hello'], 0, 2);
|
|
1998
|
+
const result = handleVimAction(state, {
|
|
1999
|
+
type: 'vim_delete_char_before',
|
|
2000
|
+
payload: { count: 1 },
|
|
2001
|
+
});
|
|
2002
|
+
expect(result.yankRegister).toEqual({ text: 'e', linewise: false });
|
|
2003
|
+
expect(result.lines[0]).toBe('hllo');
|
|
2004
|
+
});
|
|
2005
|
+
it('should populate register on dd (vim_delete_line) as linewise', () => {
|
|
2006
|
+
const state = createTestState(['hello', 'world'], 0, 0);
|
|
2007
|
+
const result = handleVimAction(state, {
|
|
2008
|
+
type: 'vim_delete_line',
|
|
2009
|
+
payload: { count: 1 },
|
|
2010
|
+
});
|
|
2011
|
+
expect(result.yankRegister).toEqual({ text: 'hello', linewise: true });
|
|
2012
|
+
expect(result.lines).toEqual(['world']);
|
|
2013
|
+
});
|
|
2014
|
+
it('should populate register on 2dd with multiple lines', () => {
|
|
2015
|
+
const state = createTestState(['one', 'two', 'three'], 0, 0);
|
|
2016
|
+
const result = handleVimAction(state, {
|
|
2017
|
+
type: 'vim_delete_line',
|
|
2018
|
+
payload: { count: 2 },
|
|
2019
|
+
});
|
|
2020
|
+
expect(result.yankRegister).toEqual({
|
|
2021
|
+
text: 'one\ntwo',
|
|
2022
|
+
linewise: true,
|
|
2023
|
+
});
|
|
2024
|
+
expect(result.lines).toEqual(['three']);
|
|
2025
|
+
});
|
|
2026
|
+
it('should populate register on dw (vim_delete_word_forward)', () => {
|
|
2027
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
2028
|
+
const result = handleVimAction(state, {
|
|
2029
|
+
type: 'vim_delete_word_forward',
|
|
2030
|
+
payload: { count: 1 },
|
|
2031
|
+
});
|
|
2032
|
+
expect(result.yankRegister).toEqual({
|
|
2033
|
+
text: 'hello ',
|
|
2034
|
+
linewise: false,
|
|
2035
|
+
});
|
|
2036
|
+
expect(result.lines[0]).toBe('world');
|
|
2037
|
+
});
|
|
2038
|
+
it('should populate register on dW (vim_delete_big_word_forward)', () => {
|
|
2039
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
2040
|
+
const result = handleVimAction(state, {
|
|
2041
|
+
type: 'vim_delete_big_word_forward',
|
|
2042
|
+
payload: { count: 1 },
|
|
2043
|
+
});
|
|
2044
|
+
expect(result.yankRegister).toEqual({
|
|
2045
|
+
text: 'hello ',
|
|
2046
|
+
linewise: false,
|
|
2047
|
+
});
|
|
2048
|
+
});
|
|
2049
|
+
it('should populate register on de (vim_delete_word_end)', () => {
|
|
2050
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
2051
|
+
const result = handleVimAction(state, {
|
|
2052
|
+
type: 'vim_delete_word_end',
|
|
2053
|
+
payload: { count: 1 },
|
|
2054
|
+
});
|
|
2055
|
+
expect(result.yankRegister).toEqual({ text: 'hello', linewise: false });
|
|
2056
|
+
});
|
|
2057
|
+
it('should populate register on dE (vim_delete_big_word_end)', () => {
|
|
2058
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
2059
|
+
const result = handleVimAction(state, {
|
|
2060
|
+
type: 'vim_delete_big_word_end',
|
|
2061
|
+
payload: { count: 1 },
|
|
2062
|
+
});
|
|
2063
|
+
expect(result.yankRegister).toEqual({ text: 'hello', linewise: false });
|
|
2064
|
+
});
|
|
2065
|
+
it('should populate register on D (vim_delete_to_end_of_line)', () => {
|
|
2066
|
+
const state = createTestState(['hello world'], 0, 6);
|
|
2067
|
+
const result = handleVimAction(state, {
|
|
2068
|
+
type: 'vim_delete_to_end_of_line',
|
|
2069
|
+
payload: { count: 1 },
|
|
2070
|
+
});
|
|
2071
|
+
expect(result.yankRegister).toEqual({ text: 'world', linewise: false });
|
|
2072
|
+
expect(result.lines[0]).toBe('hello ');
|
|
2073
|
+
});
|
|
2074
|
+
it('should populate register on df (vim_delete_to_char_forward, inclusive)', () => {
|
|
2075
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
2076
|
+
const result = handleVimAction(state, {
|
|
2077
|
+
type: 'vim_delete_to_char_forward',
|
|
2078
|
+
payload: { char: 'o', count: 1, till: false },
|
|
2079
|
+
});
|
|
2080
|
+
expect(result.yankRegister).toEqual({ text: 'hello', linewise: false });
|
|
2081
|
+
});
|
|
2082
|
+
it('should populate register on dt (vim_delete_to_char_forward, till)', () => {
|
|
2083
|
+
const state = createTestState(['hello world'], 0, 0);
|
|
2084
|
+
const result = handleVimAction(state, {
|
|
2085
|
+
type: 'vim_delete_to_char_forward',
|
|
2086
|
+
payload: { char: 'o', count: 1, till: true },
|
|
2087
|
+
});
|
|
2088
|
+
// dt stops before 'o', so deletes 'hell'
|
|
2089
|
+
expect(result.yankRegister).toEqual({ text: 'hell', linewise: false });
|
|
2090
|
+
});
|
|
2091
|
+
it('should populate register on dF (vim_delete_to_char_backward, inclusive)', () => {
|
|
2092
|
+
// cursor at 7 ('o' in world), dFo finds 'o' at col 4, deletes [4, 8)
|
|
2093
|
+
const state = createTestState(['hello world'], 0, 7);
|
|
2094
|
+
const result = handleVimAction(state, {
|
|
2095
|
+
type: 'vim_delete_to_char_backward',
|
|
2096
|
+
payload: { char: 'o', count: 1, till: false },
|
|
2097
|
+
});
|
|
2098
|
+
expect(result.yankRegister).toEqual({ text: 'o wo', linewise: false });
|
|
2099
|
+
});
|
|
2100
|
+
it('should populate register on dT (vim_delete_to_char_backward, till)', () => {
|
|
2101
|
+
// cursor at 7 ('o' in world), dTo finds 'o' at col 4, deletes [5, 8) = ' wo'
|
|
2102
|
+
const state = createTestState(['hello world'], 0, 7);
|
|
2103
|
+
const result = handleVimAction(state, {
|
|
2104
|
+
type: 'vim_delete_to_char_backward',
|
|
2105
|
+
payload: { char: 'o', count: 1, till: true },
|
|
2106
|
+
});
|
|
2107
|
+
expect(result.yankRegister).toEqual({ text: ' wo', linewise: false });
|
|
2108
|
+
});
|
|
2109
|
+
it('should preserve existing register when delete finds nothing to delete', () => {
|
|
2110
|
+
const state = {
|
|
2111
|
+
...createTestState(['hello'], 0, 5),
|
|
2112
|
+
yankRegister: { text: 'preserved', linewise: false },
|
|
2113
|
+
};
|
|
2114
|
+
// x at end-of-line does nothing
|
|
2115
|
+
const result = handleVimAction(state, {
|
|
2116
|
+
type: 'vim_delete_char',
|
|
2117
|
+
payload: { count: 1 },
|
|
2118
|
+
});
|
|
2119
|
+
expect(result.yankRegister).toEqual({
|
|
2120
|
+
text: 'preserved',
|
|
2121
|
+
linewise: false,
|
|
2122
|
+
});
|
|
2123
|
+
});
|
|
2124
|
+
});
|
|
2125
|
+
describe('vim_paste_after (p)', () => {
|
|
2126
|
+
it('should paste charwise text after cursor and land on last pasted char', () => {
|
|
2127
|
+
const state = {
|
|
2128
|
+
...createTestState(['abc'], 0, 1),
|
|
2129
|
+
yankRegister: { text: 'XY', linewise: false },
|
|
2130
|
+
};
|
|
2131
|
+
const result = handleVimAction(state, {
|
|
2132
|
+
type: 'vim_paste_after',
|
|
2133
|
+
payload: { count: 1 },
|
|
2134
|
+
});
|
|
2135
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2136
|
+
expect(result.lines[0]).toBe('abXYc');
|
|
2137
|
+
expect(result.cursorCol).toBe(3);
|
|
2138
|
+
});
|
|
2139
|
+
it('should paste charwise at end of line when cursor is on last char', () => {
|
|
2140
|
+
const state = {
|
|
2141
|
+
...createTestState(['ab'], 0, 1),
|
|
2142
|
+
yankRegister: { text: 'Z', linewise: false },
|
|
2143
|
+
};
|
|
2144
|
+
const result = handleVimAction(state, {
|
|
2145
|
+
type: 'vim_paste_after',
|
|
2146
|
+
payload: { count: 1 },
|
|
2147
|
+
});
|
|
2148
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2149
|
+
expect(result.lines[0]).toBe('abZ');
|
|
2150
|
+
expect(result.cursorCol).toBe(2);
|
|
2151
|
+
});
|
|
2152
|
+
it('should paste linewise below current row', () => {
|
|
2153
|
+
const state = {
|
|
2154
|
+
...createTestState(['hello', 'world'], 0, 0),
|
|
2155
|
+
yankRegister: { text: 'inserted', linewise: true },
|
|
2156
|
+
};
|
|
2157
|
+
const result = handleVimAction(state, {
|
|
2158
|
+
type: 'vim_paste_after',
|
|
2159
|
+
payload: { count: 1 },
|
|
2160
|
+
});
|
|
2161
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2162
|
+
expect(result.lines).toEqual(['hello', 'inserted', 'world']);
|
|
2163
|
+
expect(result.cursorRow).toBe(1);
|
|
2164
|
+
expect(result.cursorCol).toBe(0);
|
|
2165
|
+
});
|
|
2166
|
+
it('should do nothing when register is empty', () => {
|
|
2167
|
+
const state = createTestState(['hello'], 0, 0);
|
|
2168
|
+
const result = handleVimAction(state, {
|
|
2169
|
+
type: 'vim_paste_after',
|
|
2170
|
+
payload: { count: 1 },
|
|
2171
|
+
});
|
|
2172
|
+
expect(result.lines).toEqual(['hello']);
|
|
2173
|
+
expect(result.cursorCol).toBe(0);
|
|
2174
|
+
});
|
|
2175
|
+
it('should paste charwise text count times', () => {
|
|
2176
|
+
const state = {
|
|
2177
|
+
...createTestState(['abc'], 0, 1),
|
|
2178
|
+
yankRegister: { text: 'X', linewise: false },
|
|
2179
|
+
};
|
|
2180
|
+
const result = handleVimAction(state, {
|
|
2181
|
+
type: 'vim_paste_after',
|
|
2182
|
+
payload: { count: 2 },
|
|
2183
|
+
});
|
|
2184
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2185
|
+
expect(result.lines[0]).toBe('abXXc');
|
|
2186
|
+
});
|
|
2187
|
+
it('should paste linewise count times', () => {
|
|
2188
|
+
const state = {
|
|
2189
|
+
...createTestState(['hello', 'world'], 0, 0),
|
|
2190
|
+
yankRegister: { text: 'foo', linewise: true },
|
|
2191
|
+
};
|
|
2192
|
+
const result = handleVimAction(state, {
|
|
2193
|
+
type: 'vim_paste_after',
|
|
2194
|
+
payload: { count: 2 },
|
|
2195
|
+
});
|
|
2196
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2197
|
+
expect(result.lines).toEqual(['hello', 'foo', 'foo', 'world']);
|
|
2198
|
+
expect(result.cursorRow).toBe(1);
|
|
2199
|
+
});
|
|
2200
|
+
it('should land cursor on last char when pasting multiline charwise text', () => {
|
|
2201
|
+
// Simulates yanking across a line boundary and pasting charwise.
|
|
2202
|
+
// Cursor must land on the last pasted char, not a large out-of-bounds column.
|
|
2203
|
+
const state = {
|
|
2204
|
+
...createTestState(['ab', 'cd'], 0, 1),
|
|
2205
|
+
yankRegister: { text: 'b\nc', linewise: false },
|
|
2206
|
+
};
|
|
2207
|
+
const result = handleVimAction(state, {
|
|
2208
|
+
type: 'vim_paste_after',
|
|
2209
|
+
payload: { count: 1 },
|
|
2210
|
+
});
|
|
2211
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2212
|
+
expect(result.cursorRow).toBe(1);
|
|
2213
|
+
expect(result.cursorCol).toBe(0);
|
|
2214
|
+
});
|
|
2215
|
+
it('should land cursor correctly for count > 1 multiline charwise paste', () => {
|
|
2216
|
+
const state = {
|
|
2217
|
+
...createTestState(['ab', 'cd'], 0, 0),
|
|
2218
|
+
yankRegister: { text: 'x\ny', linewise: false },
|
|
2219
|
+
};
|
|
2220
|
+
const result = handleVimAction(state, {
|
|
2221
|
+
type: 'vim_paste_after',
|
|
2222
|
+
payload: { count: 2 },
|
|
2223
|
+
});
|
|
2224
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2225
|
+
// cursor should be on the last char of the last pasted copy, not off-screen
|
|
2226
|
+
expect(result.cursorCol).toBeLessThanOrEqual(result.lines[result.cursorRow].length - 1);
|
|
2227
|
+
});
|
|
2228
|
+
});
|
|
2229
|
+
describe('vim_paste_before (P)', () => {
|
|
2230
|
+
it('should paste charwise text before cursor and land on last pasted char', () => {
|
|
2231
|
+
const state = {
|
|
2232
|
+
...createTestState(['abc'], 0, 2),
|
|
2233
|
+
yankRegister: { text: 'XY', linewise: false },
|
|
2234
|
+
};
|
|
2235
|
+
const result = handleVimAction(state, {
|
|
2236
|
+
type: 'vim_paste_before',
|
|
2237
|
+
payload: { count: 1 },
|
|
2238
|
+
});
|
|
2239
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2240
|
+
expect(result.lines[0]).toBe('abXYc');
|
|
2241
|
+
expect(result.cursorCol).toBe(3);
|
|
2242
|
+
});
|
|
2243
|
+
it('should land cursor on last char when pasting multiline charwise text', () => {
|
|
2244
|
+
const state = {
|
|
2245
|
+
...createTestState(['ab', 'cd'], 0, 1),
|
|
2246
|
+
yankRegister: { text: 'b\nc', linewise: false },
|
|
2247
|
+
};
|
|
2248
|
+
const result = handleVimAction(state, {
|
|
2249
|
+
type: 'vim_paste_before',
|
|
2250
|
+
payload: { count: 1 },
|
|
2251
|
+
});
|
|
2252
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2253
|
+
expect(result.cursorCol).toBeLessThanOrEqual(result.lines[result.cursorRow].length - 1);
|
|
2254
|
+
});
|
|
2255
|
+
it('should paste linewise above current row', () => {
|
|
2256
|
+
const state = {
|
|
2257
|
+
...createTestState(['hello', 'world'], 1, 0),
|
|
2258
|
+
yankRegister: { text: 'inserted', linewise: true },
|
|
2259
|
+
};
|
|
2260
|
+
const result = handleVimAction(state, {
|
|
2261
|
+
type: 'vim_paste_before',
|
|
2262
|
+
payload: { count: 1 },
|
|
2263
|
+
});
|
|
2264
|
+
expect(result).toHaveOnlyValidCharacters();
|
|
2265
|
+
expect(result.lines).toEqual(['hello', 'inserted', 'world']);
|
|
2266
|
+
expect(result.cursorRow).toBe(1);
|
|
2267
|
+
expect(result.cursorCol).toBe(0);
|
|
2268
|
+
});
|
|
2269
|
+
});
|
|
2270
|
+
});
|
|
1017
2271
|
});
|
|
1018
2272
|
//# sourceMappingURL=vim-buffer-actions.test.js.map
|