@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
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useState, useRef, useMemo, Fragment, } from 'react';
|
|
2
3
|
import clipboardy from 'clipboardy';
|
|
3
|
-
import { useCallback, useEffect, useState, useRef, useMemo } from 'react';
|
|
4
4
|
import { Box, Text, useStdout } from 'ink';
|
|
5
5
|
import { SuggestionsDisplay, MAX_WIDTH } from './SuggestionsDisplay.js';
|
|
6
6
|
import { theme } from '../semantic-colors.js';
|
|
7
7
|
import { useInputHistory } from '../hooks/useInputHistory.js';
|
|
8
|
+
import { escapeAtSymbols } from '../hooks/atCommandProcessor.js';
|
|
9
|
+
import { ScrollableList, } from './shared/ScrollableList.js';
|
|
8
10
|
import { HalfLinePaddedBox } from './shared/HalfLinePaddedBox.js';
|
|
9
|
-
import { logicalPosToOffset,
|
|
11
|
+
import { logicalPosToOffset, expandPastePlaceholders, getTransformUnderCursor, LARGE_PASTE_LINE_THRESHOLD, LARGE_PASTE_CHAR_THRESHOLD, } from './shared/text-buffer.js';
|
|
10
12
|
import { cpSlice, cpLen, toCodePoints, cpIndexToOffset, } from '../utils/textUtils.js';
|
|
11
13
|
import chalk from 'chalk';
|
|
12
14
|
import stringWidth from 'string-width';
|
|
@@ -14,19 +16,21 @@ import { useShellHistory } from '../hooks/useShellHistory.js';
|
|
|
14
16
|
import { useReverseSearchCompletion } from '../hooks/useReverseSearchCompletion.js';
|
|
15
17
|
import { useCommandCompletion, CompletionMode, } from '../hooks/useCommandCompletion.js';
|
|
16
18
|
import { useKeypress } from '../hooks/useKeypress.js';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
+
import { Command } from '../key/keyMatchers.js';
|
|
20
|
+
import { formatCommand } from '../key/keybindingUtils.js';
|
|
21
|
+
import { ApprovalMode, coreEvents, debugLogger, } from '@google/gemini-cli-core';
|
|
19
22
|
import { parseInputForHighlighting, parseSegmentsFromTokens, } from '../utils/highlight.js';
|
|
20
23
|
import { useKittyKeyboardProtocol } from '../hooks/useKittyKeyboardProtocol.js';
|
|
21
24
|
import { clipboardHasImage, saveClipboardImage, cleanupOldClipboardImages, } from '../utils/clipboardUtils.js';
|
|
22
25
|
import { isAutoExecutableCommand, isSlashCommand, } from '../utils/commandUtils.js';
|
|
26
|
+
import { parseSlashCommand } from '../../utils/commands.js';
|
|
23
27
|
import * as path from 'node:path';
|
|
24
28
|
import { SCREEN_READER_USER_PREFIX } from '../textConstants.js';
|
|
25
|
-
import { DEFAULT_BACKGROUND_OPACITY, DEFAULT_INPUT_BACKGROUND_OPACITY, } from '../constants.js';
|
|
26
29
|
import { getSafeLowColorBackground } from '../themes/color-utils.js';
|
|
27
30
|
import { isLowColorDepth } from '../utils/terminalUtils.js';
|
|
28
31
|
import { useShellFocusState } from '../contexts/ShellFocusContext.js';
|
|
29
32
|
import { useUIState } from '../contexts/UIStateContext.js';
|
|
33
|
+
import { useInputState } from '../contexts/InputContext.js';
|
|
30
34
|
import { appEvents, AppEvent, TransientMessageType, } from '../../utils/events.js';
|
|
31
35
|
import { useSettings } from '../contexts/SettingsContext.js';
|
|
32
36
|
import { StreamingState } from '../types.js';
|
|
@@ -34,6 +38,9 @@ import { useMouseClick } from '../hooks/useMouseClick.js';
|
|
|
34
38
|
import { useMouse } from '../contexts/MouseContext.js';
|
|
35
39
|
import { useUIActions } from '../contexts/UIActionsContext.js';
|
|
36
40
|
import { useAlternateBuffer } from '../hooks/useAlternateBuffer.js';
|
|
41
|
+
import { useIsHelpDismissKey } from '../utils/shortcutsHelp.js';
|
|
42
|
+
import { useRepeatedKeyPress } from '../hooks/useRepeatedKeyPress.js';
|
|
43
|
+
import { useKeyMatchers } from '../hooks/useKeyMatchers.js';
|
|
37
44
|
/**
|
|
38
45
|
* Returns if the terminal can be trusted to handle paste events atomically
|
|
39
46
|
* rather than potentially sending multiple paste events separated by line
|
|
@@ -66,6 +73,7 @@ export function isLargePaste(text) {
|
|
|
66
73
|
return (pasteLineCount > LARGE_PASTE_LINE_THRESHOLD ||
|
|
67
74
|
text.length > LARGE_PASTE_CHAR_THRESHOLD);
|
|
68
75
|
}
|
|
76
|
+
const DOUBLE_TAB_CLEAN_UI_TOGGLE_WINDOW_MS = 350;
|
|
69
77
|
/**
|
|
70
78
|
* Attempt to toggle expansion of a paste placeholder in the buffer.
|
|
71
79
|
* Returns true if a toggle action was performed or hint was shown, false otherwise.
|
|
@@ -94,20 +102,49 @@ export function tryTogglePasteExpansion(buffer) {
|
|
|
94
102
|
});
|
|
95
103
|
return true;
|
|
96
104
|
}
|
|
97
|
-
export const InputPrompt = ({
|
|
105
|
+
export const InputPrompt = ({ onSubmit, onClearScreen, config, slashCommands, commandContext, placeholder = ' Type your message or @path/to/file', focus = true, setShellModeActive, approvalMode, onEscapePromptChange, onSuggestionsVisibilityChange, vimHandleInput, isEmbeddedShellFocused, setQueueErrorMessage, streamingState, popAllMessages, onQueueMessage, suggestionsPosition = 'below', setBannerVisible, }) => {
|
|
106
|
+
const inputState = useInputState();
|
|
107
|
+
const { buffer, userMessages, shellModeActive, copyModeEnabled, inputWidth, suggestionsWidth, } = inputState;
|
|
108
|
+
const isHelpDismissKey = useIsHelpDismissKey();
|
|
109
|
+
const keyMatchers = useKeyMatchers();
|
|
98
110
|
const { stdout } = useStdout();
|
|
99
111
|
const { merged: settings } = useSettings();
|
|
100
112
|
const kittyProtocol = useKittyKeyboardProtocol();
|
|
101
113
|
const isShellFocused = useShellFocusState();
|
|
102
|
-
const { setEmbeddedShellFocused, setShortcutsHelpVisible } = useUIActions();
|
|
103
|
-
const { terminalWidth, activePtyId, history,
|
|
114
|
+
const { setEmbeddedShellFocused, setShortcutsHelpVisible, toggleCleanUiDetailsVisible, } = useUIActions();
|
|
115
|
+
const { terminalWidth, activePtyId, history, backgroundTasks, backgroundTaskHeight, shortcutsHelpVisible, } = useUIState();
|
|
104
116
|
const [suppressCompletion, setSuppressCompletion] = useState(false);
|
|
105
|
-
const
|
|
117
|
+
const { handlePress: registerPlainTabPress, resetCount: resetPlainTabPress } = useRepeatedKeyPress({
|
|
118
|
+
windowMs: DOUBLE_TAB_CLEAN_UI_TOGGLE_WINDOW_MS,
|
|
119
|
+
});
|
|
106
120
|
const [showEscapePrompt, setShowEscapePrompt] = useState(false);
|
|
107
|
-
const
|
|
121
|
+
const { handlePress: handleEscPress, resetCount: resetEscapeState } = useRepeatedKeyPress({
|
|
122
|
+
windowMs: 500,
|
|
123
|
+
onRepeat: (count) => {
|
|
124
|
+
if (count === 1) {
|
|
125
|
+
setShowEscapePrompt(true);
|
|
126
|
+
}
|
|
127
|
+
else if (count === 2) {
|
|
128
|
+
resetEscapeState();
|
|
129
|
+
if (buffer.text.length > 0) {
|
|
130
|
+
buffer.setText('');
|
|
131
|
+
resetCompletionState();
|
|
132
|
+
}
|
|
133
|
+
else if (history.length > 0) {
|
|
134
|
+
onSubmit('/rewind');
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
coreEvents.emitFeedback('info', 'Nothing to rewind to');
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
onReset: () => setShowEscapePrompt(false),
|
|
142
|
+
});
|
|
108
143
|
const [recentUnsafePasteTime, setRecentUnsafePasteTime] = useState(null);
|
|
109
144
|
const pasteTimeoutRef = useRef(null);
|
|
110
145
|
const innerBoxRef = useRef(null);
|
|
146
|
+
const hasUserNavigatedSuggestions = useRef(false);
|
|
147
|
+
const listRef = useRef(null);
|
|
111
148
|
const [reverseSearchActive, setReverseSearchActive] = useState(false);
|
|
112
149
|
const [commandSearchActive, setCommandSearchActive] = useState(false);
|
|
113
150
|
const [textBeforeReverseSearch, setTextBeforeReverseSearch] = useState('');
|
|
@@ -115,7 +152,7 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
115
152
|
0, 0,
|
|
116
153
|
]);
|
|
117
154
|
const [expandedSuggestionIndex, setExpandedSuggestionIndex] = useState(-1);
|
|
118
|
-
const shellHistory = useShellHistory(config.getProjectRoot());
|
|
155
|
+
const shellHistory = useShellHistory(config.getProjectRoot(), config.storage);
|
|
119
156
|
const shellHistoryData = shellHistory.history;
|
|
120
157
|
const completion = useCommandCompletion({
|
|
121
158
|
buffer,
|
|
@@ -133,26 +170,34 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
133
170
|
const resetCompletionState = completion.resetCompletionState;
|
|
134
171
|
const resetReverseSearchCompletionState = reverseSearchCompletion.resetCompletionState;
|
|
135
172
|
const resetCommandSearchCompletionState = commandSearchCompletion.resetCompletionState;
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
173
|
+
const getActiveCompletion = useCallback(() => {
|
|
174
|
+
if (commandSearchActive)
|
|
175
|
+
return commandSearchCompletion;
|
|
176
|
+
if (reverseSearchActive)
|
|
177
|
+
return reverseSearchCompletion;
|
|
178
|
+
return completion;
|
|
179
|
+
}, [
|
|
180
|
+
commandSearchActive,
|
|
181
|
+
commandSearchCompletion,
|
|
182
|
+
reverseSearchActive,
|
|
183
|
+
reverseSearchCompletion,
|
|
184
|
+
completion,
|
|
185
|
+
]);
|
|
186
|
+
const activeCompletion = getActiveCompletion();
|
|
187
|
+
const shouldShowSuggestions = activeCompletion.showSuggestions;
|
|
188
|
+
const { forceShowShellSuggestions, setForceShowShellSuggestions, isShellSuggestionsVisible, } = completion;
|
|
189
|
+
const showCursor = focus && isShellFocused && !isEmbeddedShellFocused && !copyModeEnabled;
|
|
190
|
+
useEffect(() => {
|
|
191
|
+
appEvents.emit(AppEvent.ScrollToBottom);
|
|
192
|
+
}, [buffer.text, buffer.cursor]);
|
|
145
193
|
// Notify parent component about escape prompt state changes
|
|
146
194
|
useEffect(() => {
|
|
147
195
|
if (onEscapePromptChange) {
|
|
148
196
|
onEscapePromptChange(showEscapePrompt);
|
|
149
197
|
}
|
|
150
198
|
}, [showEscapePrompt, onEscapePromptChange]);
|
|
151
|
-
// Clear
|
|
199
|
+
// Clear paste timeout on unmount
|
|
152
200
|
useEffect(() => () => {
|
|
153
|
-
if (escapeTimerRef.current) {
|
|
154
|
-
clearTimeout(escapeTimerRef.current);
|
|
155
|
-
}
|
|
156
201
|
if (pasteTimeoutRef.current) {
|
|
157
202
|
clearTimeout(pasteTimeoutRef.current);
|
|
158
203
|
}
|
|
@@ -160,8 +205,7 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
160
205
|
const handleSubmitAndClear = useCallback((submittedValue) => {
|
|
161
206
|
let processedValue = submittedValue;
|
|
162
207
|
if (buffer.pastedContent) {
|
|
163
|
-
|
|
164
|
-
processedValue = processedValue.replace(PASTED_TEXT_PLACEHOLDER_REGEX, (match) => buffer.pastedContent[match] || match);
|
|
208
|
+
processedValue = expandPastePlaceholders(processedValue, buffer.pastedContent);
|
|
165
209
|
}
|
|
166
210
|
if (shellModeActive) {
|
|
167
211
|
shellHistory.addCommandToHistory(processedValue);
|
|
@@ -173,8 +217,8 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
173
217
|
resetCompletionState();
|
|
174
218
|
resetReverseSearchCompletionState();
|
|
175
219
|
}, [
|
|
176
|
-
onSubmit,
|
|
177
220
|
buffer,
|
|
221
|
+
onSubmit,
|
|
178
222
|
resetCompletionState,
|
|
179
223
|
shellModeActive,
|
|
180
224
|
shellHistory,
|
|
@@ -187,7 +231,8 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
187
231
|
const inputHistory = useInputHistory({
|
|
188
232
|
userMessages,
|
|
189
233
|
onSubmit: handleSubmitAndClear,
|
|
190
|
-
isActive: (!completion.showSuggestions
|
|
234
|
+
isActive: (!(completion.showSuggestions && isShellSuggestionsVisible) ||
|
|
235
|
+
completion.suggestions.length === 1) &&
|
|
191
236
|
!shellModeActive,
|
|
192
237
|
currentQuery: buffer.text,
|
|
193
238
|
currentCursorOffset: buffer.getOffset(),
|
|
@@ -199,11 +244,25 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
199
244
|
const isShell = shellModeActive;
|
|
200
245
|
if ((isSlash || isShell) &&
|
|
201
246
|
streamingState === StreamingState.Responding) {
|
|
247
|
+
if (isSlash) {
|
|
248
|
+
const { commandToExecute } = parseSlashCommand(trimmedMessage, slashCommands);
|
|
249
|
+
if (commandToExecute?.isSafeConcurrent) {
|
|
250
|
+
handleSubmitAndClear(trimmedMessage);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
202
254
|
setQueueErrorMessage(`${isShell ? 'Shell' : 'Slash'} commands cannot be queued`);
|
|
203
255
|
return;
|
|
204
256
|
}
|
|
205
257
|
inputHistory.handleSubmit(trimmedMessage);
|
|
206
|
-
}, [
|
|
258
|
+
}, [
|
|
259
|
+
inputHistory,
|
|
260
|
+
shellModeActive,
|
|
261
|
+
streamingState,
|
|
262
|
+
setQueueErrorMessage,
|
|
263
|
+
slashCommands,
|
|
264
|
+
handleSubmitAndClear,
|
|
265
|
+
]);
|
|
207
266
|
// Effect to reset completion if history navigation just occurred and set the text
|
|
208
267
|
useEffect(() => {
|
|
209
268
|
if (suppressCompletion) {
|
|
@@ -276,10 +335,13 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
276
335
|
}
|
|
277
336
|
else {
|
|
278
337
|
const textToInsert = await clipboardy.read();
|
|
279
|
-
|
|
338
|
+
const escapedText = settings.ui?.escapePastedAtSymbols
|
|
339
|
+
? escapeAtSymbols(textToInsert)
|
|
340
|
+
: textToInsert;
|
|
341
|
+
buffer.insert(escapedText, { paste: true });
|
|
280
342
|
if (isLargePaste(textToInsert)) {
|
|
281
343
|
appEvents.emit(AppEvent.TransientMessage, {
|
|
282
|
-
message:
|
|
344
|
+
message: `Press ${formatCommand(Command.EXPAND_PASTE)} to expand pasted text`,
|
|
283
345
|
type: TransientMessageType.Hint,
|
|
284
346
|
});
|
|
285
347
|
}
|
|
@@ -301,7 +363,8 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
301
363
|
if (isEmbeddedShellFocused) {
|
|
302
364
|
setEmbeddedShellFocused(false);
|
|
303
365
|
}
|
|
304
|
-
const
|
|
366
|
+
const currentScrollTop = Math.round(listRef.current?.getScrollState().scrollTop ?? buffer.visualScrollRow);
|
|
367
|
+
const visualRow = currentScrollTop + relY;
|
|
305
368
|
buffer.moveToVisualPosition(visualRow, relX);
|
|
306
369
|
}, { isActive: focus });
|
|
307
370
|
const isAlternateBuffer = useAlternateBuffer();
|
|
@@ -309,14 +372,15 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
309
372
|
useMouseClick(innerBoxRef, (_event, relX, relY) => {
|
|
310
373
|
if (!isAlternateBuffer)
|
|
311
374
|
return;
|
|
312
|
-
const
|
|
375
|
+
const currentScrollTop = Math.round(listRef.current?.getScrollState().scrollTop ?? buffer.visualScrollRow);
|
|
376
|
+
const visualLine = buffer.allVisualLines[currentScrollTop + relY];
|
|
313
377
|
if (!visualLine)
|
|
314
378
|
return;
|
|
315
379
|
// Even if we click past the end of the line, we might want to collapse an expanded paste
|
|
316
380
|
const isPastEndOfLine = relX >= stringWidth(visualLine);
|
|
317
381
|
const logicalPos = isPastEndOfLine
|
|
318
382
|
? null
|
|
319
|
-
: buffer.getLogicalPositionFromVisual(
|
|
383
|
+
: buffer.getLogicalPositionFromVisual(currentScrollTop + relY, relX);
|
|
320
384
|
// Check for paste placeholder (collapsed state)
|
|
321
385
|
if (logicalPos) {
|
|
322
386
|
const transform = getTransformUnderCursor(logicalPos.row, logicalPos.col, buffer.transformationsByLine, { includeEdge: true });
|
|
@@ -327,7 +391,9 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
327
391
|
}
|
|
328
392
|
// If we didn't click a placeholder to expand, check if we are inside or after
|
|
329
393
|
// an expanded paste region and collapse it.
|
|
330
|
-
const
|
|
394
|
+
const visualRow = currentScrollTop + relY;
|
|
395
|
+
const mapEntry = buffer.visualToLogicalMap[visualRow];
|
|
396
|
+
const row = mapEntry ? mapEntry[0] : visualRow;
|
|
331
397
|
const expandedId = buffer.getExpandedPasteAtLine(row);
|
|
332
398
|
if (expandedId) {
|
|
333
399
|
buffer.togglePasteExpansion(expandedId, row, logicalPos?.col ?? relX);
|
|
@@ -361,9 +427,7 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
361
427
|
keyMatchers[Command.MOVE_WORD_RIGHT](key) ||
|
|
362
428
|
keyMatchers[Command.HOME](key) ||
|
|
363
429
|
keyMatchers[Command.END](key);
|
|
364
|
-
const isSuggestionsNav =
|
|
365
|
-
reverseSearchCompletion.showSuggestions ||
|
|
366
|
-
commandSearchCompletion.showSuggestions) &&
|
|
430
|
+
const isSuggestionsNav = shouldShowSuggestions &&
|
|
367
431
|
(keyMatchers[Command.COMPLETION_UP](key) ||
|
|
368
432
|
keyMatchers[Command.COMPLETION_DOWN](key) ||
|
|
369
433
|
keyMatchers[Command.EXPAND_SUGGESTION](key) ||
|
|
@@ -374,6 +438,10 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
374
438
|
// We explicitly skip this if we are currently navigating suggestions.
|
|
375
439
|
if (!isSuggestionsNav) {
|
|
376
440
|
setSuppressCompletion(isHistoryNav || isCursorMovement || keyMatchers[Command.ESCAPE](key));
|
|
441
|
+
hasUserNavigatedSuggestions.current = false;
|
|
442
|
+
if (key.name !== 'tab') {
|
|
443
|
+
setForceShowShellSuggestions(false);
|
|
444
|
+
}
|
|
377
445
|
}
|
|
378
446
|
// TODO(jacobr): this special case is likely not needed anymore.
|
|
379
447
|
// We should probably stop supporting paste if the InputPrompt is not
|
|
@@ -389,10 +457,61 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
389
457
|
setShortcutsHelpVisible(false);
|
|
390
458
|
return true;
|
|
391
459
|
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
460
|
+
const isGenerating = streamingState === StreamingState.Responding ||
|
|
461
|
+
streamingState === StreamingState.WaitingForConfirmation;
|
|
462
|
+
const isQueueMessageKey = keyMatchers[Command.QUEUE_MESSAGE](key);
|
|
463
|
+
const isPlainTab = key.name === 'tab' && !key.shift && !key.alt && !key.ctrl && !key.cmd;
|
|
464
|
+
const hasTabCompletionInteraction = (completion.showSuggestions && isShellSuggestionsVisible) ||
|
|
465
|
+
Boolean(completion.promptCompletion.text) ||
|
|
466
|
+
reverseSearchActive ||
|
|
467
|
+
commandSearchActive;
|
|
468
|
+
if (isGenerating &&
|
|
469
|
+
isQueueMessageKey &&
|
|
470
|
+
!hasTabCompletionInteraction &&
|
|
471
|
+
buffer.text.trim().length > 0) {
|
|
472
|
+
const trimmedMessage = buffer.text.trim();
|
|
473
|
+
const isSlash = isSlashCommand(trimmedMessage);
|
|
474
|
+
if (isSlash || shellModeActive) {
|
|
475
|
+
setQueueErrorMessage(`${shellModeActive ? 'Shell' : 'Slash'} commands cannot be queued`);
|
|
476
|
+
}
|
|
477
|
+
else if (onQueueMessage) {
|
|
478
|
+
onQueueMessage(buffer.text);
|
|
479
|
+
buffer.setText('');
|
|
480
|
+
resetCompletionState();
|
|
481
|
+
resetReverseSearchCompletionState();
|
|
482
|
+
}
|
|
483
|
+
resetPlainTabPress();
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
if (isPlainTab && shellModeActive) {
|
|
487
|
+
resetPlainTabPress();
|
|
488
|
+
if (!shouldShowSuggestions) {
|
|
489
|
+
setSuppressCompletion(false);
|
|
490
|
+
if (completion.promptCompletion.text) {
|
|
491
|
+
completion.promptCompletion.accept();
|
|
492
|
+
return true;
|
|
493
|
+
}
|
|
494
|
+
else if (completion.suggestions.length > 0 &&
|
|
495
|
+
!forceShowShellSuggestions) {
|
|
496
|
+
setForceShowShellSuggestions(true);
|
|
497
|
+
return true;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
else if (isPlainTab) {
|
|
502
|
+
if (!hasTabCompletionInteraction) {
|
|
503
|
+
if (registerPlainTabPress() === 2) {
|
|
504
|
+
toggleCleanUiDetailsVisible();
|
|
505
|
+
resetPlainTabPress();
|
|
506
|
+
return true;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
resetPlainTabPress();
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
resetPlainTabPress();
|
|
396
515
|
}
|
|
397
516
|
if (key.name === 'paste') {
|
|
398
517
|
if (shortcutsHelpVisible) {
|
|
@@ -419,16 +538,26 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
419
538
|
pasteTimeoutRef.current = null;
|
|
420
539
|
}, 40);
|
|
421
540
|
}
|
|
422
|
-
|
|
423
|
-
|
|
541
|
+
if (settings.ui?.escapePastedAtSymbols) {
|
|
542
|
+
buffer.handleInput({
|
|
543
|
+
...key,
|
|
544
|
+
sequence: escapeAtSymbols(key.sequence || ''),
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
else {
|
|
548
|
+
buffer.handleInput(key);
|
|
549
|
+
}
|
|
424
550
|
if (key.sequence && isLargePaste(key.sequence)) {
|
|
425
551
|
appEvents.emit(AppEvent.TransientMessage, {
|
|
426
|
-
message:
|
|
552
|
+
message: `Press ${formatCommand(Command.EXPAND_PASTE)} to expand pasted text`,
|
|
427
553
|
type: TransientMessageType.Hint,
|
|
428
554
|
});
|
|
429
555
|
}
|
|
430
556
|
return true;
|
|
431
557
|
}
|
|
558
|
+
if (shortcutsHelpVisible && isHelpDismissKey(key)) {
|
|
559
|
+
setShortcutsHelpVisible(false);
|
|
560
|
+
}
|
|
432
561
|
if (shortcutsHelpVisible) {
|
|
433
562
|
if (key.sequence === '?' && key.insertable) {
|
|
434
563
|
setShortcutsHelpVisible(false);
|
|
@@ -457,9 +586,7 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
457
586
|
}
|
|
458
587
|
// Reset ESC count and hide prompt on any non-ESC key
|
|
459
588
|
if (key.name !== 'escape') {
|
|
460
|
-
|
|
461
|
-
resetEscapeState();
|
|
462
|
-
}
|
|
589
|
+
resetEscapeState();
|
|
463
590
|
}
|
|
464
591
|
// Ctrl+O to expand/collapse paste placeholders
|
|
465
592
|
if (keyMatchers[Command.EXPAND_PASTE](key)) {
|
|
@@ -469,7 +596,7 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
469
596
|
}
|
|
470
597
|
if (key.sequence === '!' &&
|
|
471
598
|
buffer.text === '' &&
|
|
472
|
-
!completion.showSuggestions) {
|
|
599
|
+
!(completion.showSuggestions && isShellSuggestionsVisible)) {
|
|
473
600
|
setShellModeActive(!shellModeActive);
|
|
474
601
|
buffer.setText(''); // Clear the '!' from input
|
|
475
602
|
return true;
|
|
@@ -491,41 +618,23 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
491
618
|
cancelSearch(setCommandSearchActive, commandSearchCompletion.resetCompletionState);
|
|
492
619
|
return true;
|
|
493
620
|
}
|
|
494
|
-
if (
|
|
495
|
-
setShellModeActive(false);
|
|
496
|
-
resetEscapeState();
|
|
497
|
-
return true;
|
|
498
|
-
}
|
|
499
|
-
if (completion.showSuggestions) {
|
|
621
|
+
if (completion.showSuggestions && isShellSuggestionsVisible) {
|
|
500
622
|
completion.resetCompletionState();
|
|
501
623
|
setExpandedSuggestionIndex(-1);
|
|
502
624
|
resetEscapeState();
|
|
503
625
|
return true;
|
|
504
626
|
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
setShowEscapePrompt(true);
|
|
509
|
-
if (escapeTimerRef.current) {
|
|
510
|
-
clearTimeout(escapeTimerRef.current);
|
|
511
|
-
}
|
|
512
|
-
escapeTimerRef.current = setTimeout(() => {
|
|
513
|
-
resetEscapeState();
|
|
514
|
-
}, 500);
|
|
515
|
-
return true;
|
|
516
|
-
}
|
|
517
|
-
// Second ESC
|
|
518
|
-
resetEscapeState();
|
|
519
|
-
if (buffer.text.length > 0) {
|
|
520
|
-
buffer.setText('');
|
|
521
|
-
resetCompletionState();
|
|
627
|
+
if (shellModeActive) {
|
|
628
|
+
setShellModeActive(false);
|
|
629
|
+
resetEscapeState();
|
|
522
630
|
return true;
|
|
523
631
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
632
|
+
// If we're generating and no local overlay consumed Escape, let it
|
|
633
|
+
// propagate to the global cancellation handler.
|
|
634
|
+
if (isGenerating) {
|
|
635
|
+
return false;
|
|
527
636
|
}
|
|
528
|
-
|
|
637
|
+
handleEscPress();
|
|
529
638
|
return true;
|
|
530
639
|
}
|
|
531
640
|
if (keyMatchers[Command.CLEAR_SCREEN](key)) {
|
|
@@ -595,21 +704,30 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
595
704
|
// If the command is a perfect match, pressing enter should execute it.
|
|
596
705
|
// We prioritize execution unless the user is explicitly selecting a different suggestion.
|
|
597
706
|
if (completion.isPerfectMatch &&
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
(!completion.showSuggestions
|
|
707
|
+
keyMatchers[Command.SUBMIT](key) &&
|
|
708
|
+
recentUnsafePasteTime === null &&
|
|
709
|
+
(!(completion.showSuggestions && isShellSuggestionsVisible) ||
|
|
710
|
+
(completion.activeSuggestionIndex <= 0 &&
|
|
711
|
+
!hasUserNavigatedSuggestions.current))) {
|
|
601
712
|
handleSubmit(buffer.text);
|
|
602
713
|
return true;
|
|
603
714
|
}
|
|
604
|
-
|
|
715
|
+
// Newline insertion
|
|
716
|
+
if (keyMatchers[Command.NEWLINE](key)) {
|
|
717
|
+
buffer.newline();
|
|
718
|
+
return true;
|
|
719
|
+
}
|
|
720
|
+
if (completion.showSuggestions && isShellSuggestionsVisible) {
|
|
605
721
|
if (completion.suggestions.length > 1) {
|
|
606
722
|
if (keyMatchers[Command.COMPLETION_UP](key)) {
|
|
607
723
|
completion.navigateUp();
|
|
724
|
+
hasUserNavigatedSuggestions.current = true;
|
|
608
725
|
setExpandedSuggestionIndex(-1); // Reset expansion when navigating
|
|
609
726
|
return true;
|
|
610
727
|
}
|
|
611
728
|
if (keyMatchers[Command.COMPLETION_DOWN](key)) {
|
|
612
729
|
completion.navigateDown();
|
|
730
|
+
hasUserNavigatedSuggestions.current = true;
|
|
613
731
|
setExpandedSuggestionIndex(-1); // Reset expansion when navigating
|
|
614
732
|
return true;
|
|
615
733
|
}
|
|
@@ -621,8 +739,28 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
621
739
|
: completion.activeSuggestionIndex;
|
|
622
740
|
if (targetIndex < completion.suggestions.length) {
|
|
623
741
|
const suggestion = completion.suggestions[targetIndex];
|
|
624
|
-
const isEnterKey = key.name === '
|
|
742
|
+
const isEnterKey = key.name === 'enter' && !key.ctrl;
|
|
743
|
+
if (isEnterKey && shellModeActive) {
|
|
744
|
+
if (hasUserNavigatedSuggestions.current) {
|
|
745
|
+
completion.handleAutocomplete(completion.activeSuggestionIndex);
|
|
746
|
+
setExpandedSuggestionIndex(-1);
|
|
747
|
+
hasUserNavigatedSuggestions.current = false;
|
|
748
|
+
return true;
|
|
749
|
+
}
|
|
750
|
+
completion.resetCompletionState();
|
|
751
|
+
setExpandedSuggestionIndex(-1);
|
|
752
|
+
hasUserNavigatedSuggestions.current = false;
|
|
753
|
+
if (buffer.text.trim()) {
|
|
754
|
+
handleSubmit(buffer.text);
|
|
755
|
+
}
|
|
756
|
+
return true;
|
|
757
|
+
}
|
|
625
758
|
if (isEnterKey && buffer.text.startsWith('/')) {
|
|
759
|
+
if (suggestion.submitValue) {
|
|
760
|
+
setExpandedSuggestionIndex(-1);
|
|
761
|
+
handleSubmit(suggestion.submitValue.trim());
|
|
762
|
+
return true;
|
|
763
|
+
}
|
|
626
764
|
const { isArgumentCompletion, leafCommand } = completion.slashCompletionRange;
|
|
627
765
|
if (isArgumentCompletion &&
|
|
628
766
|
isAutoExecutableCommand(leafCommand)) {
|
|
@@ -661,7 +799,8 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
661
799
|
}
|
|
662
800
|
// Handle Tab key for ghost text acceptance
|
|
663
801
|
if (key.name === 'tab' &&
|
|
664
|
-
!
|
|
802
|
+
!key.shift &&
|
|
803
|
+
!(completion.showSuggestions && isShellSuggestionsVisible) &&
|
|
665
804
|
completion.promptCompletion.text) {
|
|
666
805
|
completion.promptCompletion.accept();
|
|
667
806
|
return true;
|
|
@@ -753,11 +892,6 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
753
892
|
}
|
|
754
893
|
return true;
|
|
755
894
|
}
|
|
756
|
-
// Newline insertion
|
|
757
|
-
if (keyMatchers[Command.NEWLINE](key)) {
|
|
758
|
-
buffer.newline();
|
|
759
|
-
return true;
|
|
760
|
-
}
|
|
761
895
|
// Ctrl+A (Home) / Ctrl+E (End)
|
|
762
896
|
if (keyMatchers[Command.HOME](key)) {
|
|
763
897
|
buffer.move('home');
|
|
@@ -786,6 +920,14 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
786
920
|
buffer.openInExternalEditor();
|
|
787
921
|
return true;
|
|
788
922
|
}
|
|
923
|
+
if (keyMatchers[Command.DEPRECATED_OPEN_EXTERNAL_EDITOR](key)) {
|
|
924
|
+
const cmdKey = formatCommand(Command.OPEN_EXTERNAL_EDITOR);
|
|
925
|
+
appEvents.emit(AppEvent.TransientMessage, {
|
|
926
|
+
message: `Use ${cmdKey} to open the external editor.`,
|
|
927
|
+
type: TransientMessageType.Hint,
|
|
928
|
+
});
|
|
929
|
+
return true;
|
|
930
|
+
}
|
|
789
931
|
// Ctrl+V for clipboard paste
|
|
790
932
|
if (keyMatchers[Command.PASTE_CLIPBOARD](key)) {
|
|
791
933
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -797,7 +939,7 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
797
939
|
}
|
|
798
940
|
if (keyMatchers[Command.FOCUS_SHELL_INPUT](key)) {
|
|
799
941
|
if (activePtyId ||
|
|
800
|
-
(
|
|
942
|
+
(backgroundTasks.size > 0 && backgroundTaskHeight > 0)) {
|
|
801
943
|
setEmbeddedShellFocused(true);
|
|
802
944
|
return true;
|
|
803
945
|
}
|
|
@@ -825,6 +967,7 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
825
967
|
focus,
|
|
826
968
|
buffer,
|
|
827
969
|
completion,
|
|
970
|
+
setForceShowShellSuggestions,
|
|
828
971
|
shellModeActive,
|
|
829
972
|
setShellModeActive,
|
|
830
973
|
onClearScreen,
|
|
@@ -834,7 +977,6 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
834
977
|
reverseSearchCompletion,
|
|
835
978
|
handleClipboardPaste,
|
|
836
979
|
resetCompletionState,
|
|
837
|
-
showEscapePrompt,
|
|
838
980
|
resetEscapeState,
|
|
839
981
|
vimHandleInput,
|
|
840
982
|
reverseSearchActive,
|
|
@@ -847,22 +989,31 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
847
989
|
shortcutsHelpVisible,
|
|
848
990
|
setShortcutsHelpVisible,
|
|
849
991
|
tryLoadQueuedMessages,
|
|
992
|
+
onQueueMessage,
|
|
993
|
+
setQueueErrorMessage,
|
|
994
|
+
resetReverseSearchCompletionState,
|
|
850
995
|
setBannerVisible,
|
|
851
|
-
onSubmit,
|
|
852
996
|
activePtyId,
|
|
853
997
|
setEmbeddedShellFocused,
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
history,
|
|
998
|
+
backgroundTasks.size,
|
|
999
|
+
backgroundTaskHeight,
|
|
857
1000
|
streamingState,
|
|
1001
|
+
handleEscPress,
|
|
1002
|
+
registerPlainTabPress,
|
|
1003
|
+
resetPlainTabPress,
|
|
1004
|
+
toggleCleanUiDetailsVisible,
|
|
1005
|
+
shouldShowSuggestions,
|
|
1006
|
+
isShellSuggestionsVisible,
|
|
1007
|
+
forceShowShellSuggestions,
|
|
1008
|
+
keyMatchers,
|
|
1009
|
+
isHelpDismissKey,
|
|
1010
|
+
settings,
|
|
858
1011
|
]);
|
|
859
1012
|
useKeypress(handleInput, {
|
|
860
|
-
isActive: !isEmbeddedShellFocused,
|
|
1013
|
+
isActive: !isEmbeddedShellFocused && !copyModeEnabled,
|
|
861
1014
|
priority: true,
|
|
862
1015
|
});
|
|
863
|
-
const linesToRender = buffer.viewportVisualLines;
|
|
864
1016
|
const [cursorVisualRowAbsolute, cursorVisualColAbsolute] = buffer.visualCursor;
|
|
865
|
-
const scrollVisualRow = buffer.visualScrollRow;
|
|
866
1017
|
const getGhostTextLines = useCallback(() => {
|
|
867
1018
|
if (!completion.promptCompletion.text ||
|
|
868
1019
|
!buffer.text ||
|
|
@@ -960,18 +1111,97 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
960
1111
|
inputWidth,
|
|
961
1112
|
]);
|
|
962
1113
|
const { inlineGhost, additionalLines } = getGhostTextLines();
|
|
963
|
-
const
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1114
|
+
const scrollableData = useMemo(() => {
|
|
1115
|
+
const items = buffer.allVisualLines.map((lineText, index) => ({
|
|
1116
|
+
type: 'visualLine',
|
|
1117
|
+
lineText,
|
|
1118
|
+
absoluteVisualIdx: index,
|
|
1119
|
+
}));
|
|
1120
|
+
additionalLines.forEach((ghostLine, index) => {
|
|
1121
|
+
items.push({
|
|
1122
|
+
type: 'ghostLine',
|
|
1123
|
+
ghostLine,
|
|
1124
|
+
index,
|
|
1125
|
+
});
|
|
1126
|
+
});
|
|
1127
|
+
return items;
|
|
1128
|
+
}, [buffer.allVisualLines, additionalLines]);
|
|
1129
|
+
const renderItem = useCallback(({ item }) => {
|
|
1130
|
+
if (item.type === 'ghostLine') {
|
|
1131
|
+
const padding = Math.max(0, inputWidth - stringWidth(item.ghostLine));
|
|
1132
|
+
return (_jsx(Box, { height: 1, children: _jsxs(Text, { color: theme.text.secondary, children: [item.ghostLine, ' '.repeat(padding)] }) }));
|
|
1133
|
+
}
|
|
1134
|
+
const { lineText, absoluteVisualIdx } = item;
|
|
1135
|
+
// console.log('renderItem called with:', lineText);
|
|
1136
|
+
const mapEntry = buffer.visualToLogicalMap[absoluteVisualIdx];
|
|
1137
|
+
if (!mapEntry)
|
|
1138
|
+
return _jsx(Text, { children: " " });
|
|
1139
|
+
const isOnCursorLine = focus && absoluteVisualIdx === cursorVisualRowAbsolute;
|
|
1140
|
+
const renderedLine = [];
|
|
1141
|
+
const [logicalLineIdx] = mapEntry;
|
|
1142
|
+
const logicalLine = buffer.lines[logicalLineIdx] || '';
|
|
1143
|
+
const transformations = buffer.transformationsByLine[logicalLineIdx] ?? [];
|
|
1144
|
+
const tokens = parseInputForHighlighting(logicalLine, logicalLineIdx, transformations, ...(focus && buffer.cursor[0] === logicalLineIdx
|
|
1145
|
+
? [buffer.cursor[1]]
|
|
1146
|
+
: []));
|
|
1147
|
+
const visualStartCol = buffer.visualToTransformedMap[absoluteVisualIdx] ?? 0;
|
|
1148
|
+
const visualEndCol = visualStartCol + cpLen(lineText);
|
|
1149
|
+
const segments = parseSegmentsFromTokens(tokens, visualStartCol, visualEndCol);
|
|
1150
|
+
let charCount = 0;
|
|
1151
|
+
segments.forEach((seg, segIdx) => {
|
|
1152
|
+
const segLen = cpLen(seg.text);
|
|
1153
|
+
let display = seg.text;
|
|
1154
|
+
if (isOnCursorLine) {
|
|
1155
|
+
const relCol = cursorVisualColAbsolute;
|
|
1156
|
+
const segStart = charCount;
|
|
1157
|
+
const segEnd = segStart + segLen;
|
|
1158
|
+
if (relCol >= segStart && relCol < segEnd) {
|
|
1159
|
+
const charToHighlight = cpSlice(display, relCol - segStart, relCol - segStart + 1);
|
|
1160
|
+
const highlighted = showCursor
|
|
1161
|
+
? chalk.inverse(charToHighlight)
|
|
1162
|
+
: charToHighlight;
|
|
1163
|
+
display =
|
|
1164
|
+
cpSlice(display, 0, relCol - segStart) +
|
|
1165
|
+
highlighted +
|
|
1166
|
+
cpSlice(display, relCol - segStart + 1);
|
|
1167
|
+
}
|
|
1168
|
+
charCount = segEnd;
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
charCount += segLen;
|
|
1172
|
+
}
|
|
1173
|
+
const color = seg.type === 'command' || seg.type === 'file' || seg.type === 'paste'
|
|
1174
|
+
? theme.text.accent
|
|
1175
|
+
: theme.text.primary;
|
|
1176
|
+
renderedLine.push(_jsx(Text, { color: color, children: display }, `token-${segIdx}`));
|
|
1177
|
+
});
|
|
1178
|
+
const currentLineGhost = isOnCursorLine ? inlineGhost : '';
|
|
1179
|
+
if (isOnCursorLine &&
|
|
1180
|
+
cursorVisualColAbsolute === cpLen(lineText) &&
|
|
1181
|
+
!currentLineGhost) {
|
|
1182
|
+
renderedLine.push(_jsx(Text, { children: showCursor ? chalk.inverse(' ') : ' ' }, `cursor-end-${cursorVisualColAbsolute}`));
|
|
1183
|
+
}
|
|
1184
|
+
const showCursorBeforeGhost = focus &&
|
|
1185
|
+
isOnCursorLine &&
|
|
1186
|
+
cursorVisualColAbsolute === cpLen(lineText) &&
|
|
1187
|
+
currentLineGhost;
|
|
1188
|
+
return (_jsx(Box, { height: 1, children: _jsxs(Text, { terminalCursorFocus: showCursor && isOnCursorLine, terminalCursorPosition: cpIndexToOffset(lineText, cursorVisualColAbsolute), children: [renderedLine, showCursorBeforeGhost && (showCursor ? chalk.inverse(' ') : ' '), currentLineGhost && (_jsx(Text, { color: theme.text.secondary, children: currentLineGhost }))] }) }));
|
|
1189
|
+
}, [
|
|
1190
|
+
buffer.visualToLogicalMap,
|
|
1191
|
+
buffer.lines,
|
|
1192
|
+
buffer.transformationsByLine,
|
|
1193
|
+
buffer.cursor,
|
|
1194
|
+
buffer.visualToTransformedMap,
|
|
1195
|
+
focus,
|
|
1196
|
+
cursorVisualRowAbsolute,
|
|
1197
|
+
cursorVisualColAbsolute,
|
|
1198
|
+
showCursor,
|
|
1199
|
+
inlineGhost,
|
|
1200
|
+
inputWidth,
|
|
1201
|
+
]);
|
|
972
1202
|
const useBackgroundColor = config.getUseBackgroundColor();
|
|
973
1203
|
const isLowColor = isLowColorDepth();
|
|
974
|
-
const terminalBg =
|
|
1204
|
+
const terminalBg = theme.background.primary || 'black';
|
|
975
1205
|
// We should fallback to lines if the background color is disabled OR if it is
|
|
976
1206
|
// enabled but we are in a low color depth terminal where we don't have a safe
|
|
977
1207
|
// background color to use.
|
|
@@ -984,6 +1214,38 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
984
1214
|
}
|
|
985
1215
|
return false;
|
|
986
1216
|
}, [useBackgroundColor, isLowColor, terminalBg]);
|
|
1217
|
+
const prevCursorRef = useRef(buffer.visualCursor);
|
|
1218
|
+
const prevTextRef = useRef(buffer.text);
|
|
1219
|
+
// Effect to ensure cursor remains visible after interactions
|
|
1220
|
+
useEffect(() => {
|
|
1221
|
+
const cursorChanged = prevCursorRef.current !== buffer.visualCursor;
|
|
1222
|
+
const textChanged = prevTextRef.current !== buffer.text;
|
|
1223
|
+
prevCursorRef.current = buffer.visualCursor;
|
|
1224
|
+
prevTextRef.current = buffer.text;
|
|
1225
|
+
if (!cursorChanged && !textChanged)
|
|
1226
|
+
return;
|
|
1227
|
+
if (!listRef.current || !focus)
|
|
1228
|
+
return;
|
|
1229
|
+
const { scrollTop, innerHeight } = listRef.current.getScrollState();
|
|
1230
|
+
if (innerHeight === 0)
|
|
1231
|
+
return;
|
|
1232
|
+
const cursorVisualRow = buffer.visualCursor[0];
|
|
1233
|
+
const actualScrollTop = Math.round(scrollTop);
|
|
1234
|
+
// If cursor is out of the currently visible viewport...
|
|
1235
|
+
if (cursorVisualRow < actualScrollTop ||
|
|
1236
|
+
cursorVisualRow >= actualScrollTop + innerHeight) {
|
|
1237
|
+
// Calculate minimal scroll to make it visible
|
|
1238
|
+
let newScrollTop = actualScrollTop;
|
|
1239
|
+
if (cursorVisualRow < actualScrollTop) {
|
|
1240
|
+
newScrollTop = cursorVisualRow;
|
|
1241
|
+
}
|
|
1242
|
+
else if (cursorVisualRow >= actualScrollTop + innerHeight) {
|
|
1243
|
+
newScrollTop = cursorVisualRow - innerHeight + 1;
|
|
1244
|
+
}
|
|
1245
|
+
listRef.current.scrollToIndex({ index: newScrollTop });
|
|
1246
|
+
}
|
|
1247
|
+
}, [buffer.visualCursor, buffer.text, focus]);
|
|
1248
|
+
const listBackgroundColor = useLineFallback || !useBackgroundColor ? undefined : theme.background.input;
|
|
987
1249
|
useEffect(() => {
|
|
988
1250
|
if (onSuggestionsVisibilityChange) {
|
|
989
1251
|
onSuggestionsVisibilityChange(shouldShowSuggestions);
|
|
@@ -1010,7 +1272,8 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
1010
1272
|
statusColor = theme.status.warning;
|
|
1011
1273
|
statusText = 'Accepting edits';
|
|
1012
1274
|
}
|
|
1013
|
-
const suggestionsNode = shouldShowSuggestions ? (_jsx(Box, { paddingRight: 2, children: _jsx(SuggestionsDisplay, { suggestions: activeCompletion.suggestions, activeIndex: activeCompletion.activeSuggestionIndex, isLoading: activeCompletion.isLoadingSuggestions, width: suggestionsWidth, scrollOffset: activeCompletion.visibleStartIndex, userInput: buffer.text, mode: completion.completionMode === CompletionMode.AT
|
|
1275
|
+
const suggestionsNode = shouldShowSuggestions ? (_jsx(Box, { paddingRight: 2, children: _jsx(SuggestionsDisplay, { suggestions: activeCompletion.suggestions, activeIndex: activeCompletion.activeSuggestionIndex, isLoading: activeCompletion.isLoadingSuggestions, width: suggestionsWidth, scrollOffset: activeCompletion.visibleStartIndex, userInput: buffer.text, mode: completion.completionMode === CompletionMode.AT ||
|
|
1276
|
+
completion.completionMode === CompletionMode.SHELL
|
|
1014
1277
|
? 'reverse'
|
|
1015
1278
|
: buffer.text.startsWith('/') &&
|
|
1016
1279
|
!reverseSearchActive &&
|
|
@@ -1018,78 +1281,18 @@ export const InputPrompt = ({ buffer, onSubmit, userMessages, onClearScreen, con
|
|
|
1018
1281
|
? 'slash'
|
|
1019
1282
|
: 'reverse', expandedIndex: expandedSuggestionIndex }) })) : null;
|
|
1020
1283
|
const borderColor = isShellFocused && !isEmbeddedShellFocused
|
|
1021
|
-
? (statusColor ?? theme.
|
|
1284
|
+
? (statusColor ?? theme.ui.focus)
|
|
1022
1285
|
: theme.border.default;
|
|
1023
|
-
return (_jsxs(_Fragment, { children: [suggestionsPosition === 'above' && suggestionsNode, useLineFallback ? (_jsx(Box, { borderStyle: "round", borderTop: true, borderBottom: false, borderLeft: false, borderRight: false, borderColor: borderColor, width: terminalWidth, flexDirection: "row", alignItems: "flex-start", height: 0 })) : null, _jsx(HalfLinePaddedBox, { backgroundBaseColor: theme.text.secondary,
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
const [logicalLineIdx] = mapEntry;
|
|
1035
|
-
const logicalLine = buffer.lines[logicalLineIdx] || '';
|
|
1036
|
-
const transformations = buffer.transformationsByLine[logicalLineIdx] ?? [];
|
|
1037
|
-
const tokens = parseInputForHighlighting(logicalLine, logicalLineIdx, transformations, ...(focus && buffer.cursor[0] === logicalLineIdx
|
|
1038
|
-
? [buffer.cursor[1]]
|
|
1039
|
-
: []));
|
|
1040
|
-
const startColInTransformed = buffer.visualToTransformedMap[absoluteVisualIdx] ?? 0;
|
|
1041
|
-
const visualStartCol = startColInTransformed;
|
|
1042
|
-
const visualEndCol = visualStartCol + cpLen(lineText);
|
|
1043
|
-
const segments = parseSegmentsFromTokens(tokens, visualStartCol, visualEndCol);
|
|
1044
|
-
let charCount = 0;
|
|
1045
|
-
segments.forEach((seg, segIdx) => {
|
|
1046
|
-
const segLen = cpLen(seg.text);
|
|
1047
|
-
let display = seg.text;
|
|
1048
|
-
if (isOnCursorLine) {
|
|
1049
|
-
const relativeVisualColForHighlight = cursorVisualColAbsolute;
|
|
1050
|
-
const segStart = charCount;
|
|
1051
|
-
const segEnd = segStart + segLen;
|
|
1052
|
-
if (relativeVisualColForHighlight >= segStart &&
|
|
1053
|
-
relativeVisualColForHighlight < segEnd) {
|
|
1054
|
-
const charToHighlight = cpSlice(display, relativeVisualColForHighlight - segStart, relativeVisualColForHighlight - segStart + 1);
|
|
1055
|
-
const highlighted = showCursor
|
|
1056
|
-
? chalk.inverse(charToHighlight)
|
|
1057
|
-
: charToHighlight;
|
|
1058
|
-
display =
|
|
1059
|
-
cpSlice(display, 0, relativeVisualColForHighlight - segStart) +
|
|
1060
|
-
highlighted +
|
|
1061
|
-
cpSlice(display, relativeVisualColForHighlight - segStart + 1);
|
|
1062
|
-
}
|
|
1063
|
-
charCount = segEnd;
|
|
1064
|
-
}
|
|
1065
|
-
else {
|
|
1066
|
-
// Advance the running counter even when not on cursor line
|
|
1067
|
-
charCount += segLen;
|
|
1068
|
-
}
|
|
1069
|
-
const color = seg.type === 'command' ||
|
|
1070
|
-
seg.type === 'file' ||
|
|
1071
|
-
seg.type === 'paste'
|
|
1072
|
-
? theme.text.accent
|
|
1073
|
-
: theme.text.primary;
|
|
1074
|
-
renderedLine.push(_jsx(Text, { color: color, children: display }, `token-${segIdx}`));
|
|
1075
|
-
});
|
|
1076
|
-
const currentLineGhost = isOnCursorLine ? inlineGhost : '';
|
|
1077
|
-
if (isOnCursorLine &&
|
|
1078
|
-
cursorVisualColAbsolute === cpLen(lineText)) {
|
|
1079
|
-
if (!currentLineGhost) {
|
|
1080
|
-
renderedLine.push(_jsx(Text, { children: showCursor ? chalk.inverse(' ') : ' ' }, `cursor-end-${cursorVisualColAbsolute}`));
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
const showCursorBeforeGhost = focus &&
|
|
1084
|
-
isOnCursorLine &&
|
|
1085
|
-
cursorVisualColAbsolute === cpLen(lineText) &&
|
|
1086
|
-
currentLineGhost;
|
|
1087
|
-
return (_jsx(Box, { height: 1, children: _jsxs(Text, { terminalCursorFocus: showCursor && isOnCursorLine, terminalCursorPosition: cpIndexToOffset(lineText, cursorVisualColAbsolute), children: [renderedLine, showCursorBeforeGhost &&
|
|
1088
|
-
(showCursor ? chalk.inverse(' ') : ' '), currentLineGhost && (_jsx(Text, { color: theme.text.secondary, children: currentLineGhost }))] }) }, `line-${visualIdxInRenderedSet}`));
|
|
1089
|
-
})
|
|
1090
|
-
.concat(additionalLines.map((ghostLine, index) => {
|
|
1091
|
-
const padding = Math.max(0, inputWidth - stringWidth(ghostLine));
|
|
1092
|
-
return (_jsxs(Text, { color: theme.text.secondary, children: [ghostLine, ' '.repeat(padding)] }, `ghost-line-${index}`));
|
|
1093
|
-
}))) })] }) }), useLineFallback ? (_jsx(Box, { borderStyle: "round", borderTop: false, borderBottom: true, borderLeft: false, borderRight: false, borderColor: borderColor, width: terminalWidth, flexDirection: "row", alignItems: "flex-start", height: 0 })) : null, suggestionsPosition === 'below' && suggestionsNode] }));
|
|
1286
|
+
return (_jsxs(_Fragment, { children: [suggestionsPosition === 'above' && suggestionsNode, useLineFallback ? (_jsx(Box, { borderStyle: "round", borderTop: true, borderBottom: false, borderLeft: false, borderRight: false, borderColor: borderColor, width: terminalWidth, flexDirection: "row", alignItems: "flex-start", height: 0 })) : null, _jsx(HalfLinePaddedBox, { backgroundBaseColor: theme.background.input, backgroundOpacity: 1, useBackgroundColor: useBackgroundColor, children: _jsxs(Box, { flexGrow: 1, flexDirection: "row", paddingX: 1, borderColor: borderColor, borderStyle: useLineFallback ? 'round' : undefined, borderTop: false, borderBottom: false, borderLeft: !useBackgroundColor, borderRight: !useBackgroundColor, children: [_jsxs(Text, { color: statusColor ?? theme.text.accent, "aria-label": statusText || undefined, children: [shellModeActive ? (reverseSearchActive ? (_jsxs(Text, { color: theme.text.link, "aria-label": SCREEN_READER_USER_PREFIX, children: ["(r:)", ' '] })) : ('!')) : commandSearchActive ? (_jsx(Text, { color: theme.text.accent, children: "(r:) " })) : showYoloStyling ? ('*') : ('>'), ' '] }), _jsx(Box, { flexGrow: 1, flexDirection: "column", ref: innerBoxRef, children: buffer.text.length === 0 && placeholder ? (showCursor ? (_jsxs(Text, { terminalCursorFocus: showCursor, terminalCursorPosition: 0, children: [chalk.inverse(placeholder.slice(0, 1)), _jsx(Text, { color: theme.text.secondary, children: placeholder.slice(1) })] })) : (_jsx(Text, { color: theme.text.secondary, children: placeholder }))) : (_jsx(Box, { flexDirection: "column", height: Math.min(buffer.viewportHeight, scrollableData.length), width: "100%", children: isAlternateBuffer ? (_jsx(ScrollableList, { ref: listRef, hasFocus: focus, data: scrollableData, renderItem: renderItem, estimatedItemHeight: () => 1, fixedItemHeight: true, keyExtractor: (item) => item.type === 'visualLine'
|
|
1287
|
+
? `line-${item.absoluteVisualIdx}`
|
|
1288
|
+
: `ghost-${item.index}`, width: inputWidth, backgroundColor: listBackgroundColor, containerHeight: Math.min(buffer.viewportHeight, scrollableData.length) })) : (scrollableData
|
|
1289
|
+
.slice(buffer.visualScrollRow, buffer.visualScrollRow + buffer.viewportHeight)
|
|
1290
|
+
.map((item, index) => {
|
|
1291
|
+
const actualIndex = buffer.visualScrollRow + index;
|
|
1292
|
+
const key = item.type === 'visualLine'
|
|
1293
|
+
? `line-${item.absoluteVisualIdx}`
|
|
1294
|
+
: `ghost-${item.index}`;
|
|
1295
|
+
return (_jsx(Fragment, { children: renderItem({ item, index: actualIndex }) }, key));
|
|
1296
|
+
})) })) })] }) }), useLineFallback ? (_jsx(Box, { borderStyle: "round", borderTop: false, borderBottom: true, borderLeft: false, borderRight: false, borderColor: borderColor, width: terminalWidth, flexDirection: "row", alignItems: "flex-start", height: 0 })) : null, suggestionsPosition === 'below' && suggestionsNode] }));
|
|
1094
1297
|
};
|
|
1095
1298
|
//# sourceMappingURL=InputPrompt.js.map
|