@didim365/agent-cli 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -3
- package/dist/src/commands/extensions/configure.test.d.ts +0 -1
- package/dist/src/commands/extensions/configure.test.js +0 -197
- package/dist/src/commands/extensions/configure.test.js.map +0 -1
- package/dist/src/commands/extensions/disable.test.d.ts +0 -6
- package/dist/src/commands/extensions/disable.test.js +0 -169
- package/dist/src/commands/extensions/disable.test.js.map +0 -1
- package/dist/src/commands/extensions/enable.test.d.ts +0 -6
- package/dist/src/commands/extensions/enable.test.js +0 -199
- package/dist/src/commands/extensions/enable.test.js.map +0 -1
- package/dist/src/commands/extensions/install.test.d.ts +0 -6
- package/dist/src/commands/extensions/install.test.js +0 -140
- package/dist/src/commands/extensions/install.test.js.map +0 -1
- package/dist/src/commands/extensions/link.test.d.ts +0 -6
- package/dist/src/commands/extensions/link.test.js +0 -137
- package/dist/src/commands/extensions/link.test.js.map +0 -1
- package/dist/src/commands/extensions/list.test.d.ts +0 -6
- package/dist/src/commands/extensions/list.test.js +0 -148
- package/dist/src/commands/extensions/list.test.js.map +0 -1
- package/dist/src/commands/extensions/new.test.d.ts +0 -6
- package/dist/src/commands/extensions/new.test.js +0 -62
- package/dist/src/commands/extensions/new.test.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.test.d.ts +0 -6
- package/dist/src/commands/extensions/uninstall.test.js +0 -199
- package/dist/src/commands/extensions/uninstall.test.js.map +0 -1
- package/dist/src/commands/extensions/update.test.d.ts +0 -6
- package/dist/src/commands/extensions/update.test.js +0 -170
- package/dist/src/commands/extensions/update.test.js.map +0 -1
- package/dist/src/commands/extensions/validate.test.d.ts +0 -6
- package/dist/src/commands/extensions/validate.test.js +0 -96
- package/dist/src/commands/extensions/validate.test.js.map +0 -1
- package/dist/src/commands/extensions.test.d.ts +0 -6
- package/dist/src/commands/extensions.test.js +0 -67
- package/dist/src/commands/extensions.test.js.map +0 -1
- package/dist/src/commands/hooks/migrate.test.d.ts +0 -6
- package/dist/src/commands/hooks/migrate.test.js +0 -388
- package/dist/src/commands/hooks/migrate.test.js.map +0 -1
- package/dist/src/commands/mcp/add.test.d.ts +0 -6
- package/dist/src/commands/mcp/add.test.js +0 -274
- package/dist/src/commands/mcp/add.test.js.map +0 -1
- package/dist/src/commands/mcp/list.test.d.ts +0 -6
- package/dist/src/commands/mcp/list.test.js +0 -150
- package/dist/src/commands/mcp/list.test.js.map +0 -1
- package/dist/src/commands/mcp/remove.test.d.ts +0 -6
- package/dist/src/commands/mcp/remove.test.js +0 -189
- package/dist/src/commands/mcp/remove.test.js.map +0 -1
- package/dist/src/commands/mcp.test.d.ts +0 -6
- package/dist/src/commands/mcp.test.js +0 -65
- package/dist/src/commands/mcp.test.js.map +0 -1
- package/dist/src/commands/skills/disable.test.d.ts +0 -6
- package/dist/src/commands/skills/disable.test.js +0 -96
- package/dist/src/commands/skills/disable.test.js.map +0 -1
- package/dist/src/commands/skills/enable.test.d.ts +0 -6
- package/dist/src/commands/skills/enable.test.js +0 -107
- package/dist/src/commands/skills/enable.test.js.map +0 -1
- package/dist/src/commands/skills/install.test.d.ts +0 -6
- package/dist/src/commands/skills/install.test.js +0 -95
- package/dist/src/commands/skills/install.test.js.map +0 -1
- package/dist/src/commands/skills/list.test.d.ts +0 -6
- package/dist/src/commands/skills/list.test.js +0 -136
- package/dist/src/commands/skills/list.test.js.map +0 -1
- package/dist/src/commands/skills/uninstall.test.d.ts +0 -6
- package/dist/src/commands/skills/uninstall.test.js +0 -61
- package/dist/src/commands/skills/uninstall.test.js.map +0 -1
- package/dist/src/commands/skills.test.d.ts +0 -6
- package/dist/src/commands/skills.test.js +0 -49
- package/dist/src/commands/skills.test.js.map +0 -1
- package/dist/src/commands/utils.test.d.ts +0 -6
- package/dist/src/commands/utils.test.js +0 -35
- package/dist/src/commands/utils.test.js.map +0 -1
- package/dist/src/config/auth.test.d.ts +0 -6
- package/dist/src/config/auth.test.js +0 -89
- package/dist/src/config/auth.test.js.map +0 -1
- package/dist/src/config/config.integration.test.d.ts +0 -6
- package/dist/src/config/config.integration.test.js +0 -205
- package/dist/src/config/config.integration.test.js.map +0 -1
- package/dist/src/config/config.test.d.ts +0 -6
- package/dist/src/config/config.test.js +0 -2413
- package/dist/src/config/config.test.js.map +0 -1
- package/dist/src/config/extension-manager-agents.test.d.ts +0 -6
- package/dist/src/config/extension-manager-agents.test.js +0 -114
- package/dist/src/config/extension-manager-agents.test.js.map +0 -1
- package/dist/src/config/extension-manager-scope.test.d.ts +0 -6
- package/dist/src/config/extension-manager-scope.test.js +0 -153
- package/dist/src/config/extension-manager-scope.test.js.map +0 -1
- package/dist/src/config/extension-manager-skills.test.d.ts +0 -6
- package/dist/src/config/extension-manager-skills.test.js +0 -148
- package/dist/src/config/extension-manager-skills.test.js.map +0 -1
- package/dist/src/config/extension.test.d.ts +0 -6
- package/dist/src/config/extension.test.js +0 -1671
- package/dist/src/config/extension.test.js.map +0 -1
- package/dist/src/config/extensions/consent.test.d.ts +0 -6
- package/dist/src/config/extensions/consent.test.js +0 -280
- package/dist/src/config/extensions/consent.test.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionEnablement.test.js +0 -404
- package/dist/src/config/extensions/extensionEnablement.test.js.map +0 -1
- package/dist/src/config/extensions/extensionSettings.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionSettings.test.js +0 -493
- package/dist/src/config/extensions/extensionSettings.test.js.map +0 -1
- package/dist/src/config/extensions/extensionUpdates.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionUpdates.test.js +0 -230
- package/dist/src/config/extensions/extensionUpdates.test.js.map +0 -1
- package/dist/src/config/extensions/github.test.d.ts +0 -6
- package/dist/src/config/extensions/github.test.js +0 -441
- package/dist/src/config/extensions/github.test.js.map +0 -1
- package/dist/src/config/extensions/github_fetch.test.d.ts +0 -6
- package/dist/src/config/extensions/github_fetch.test.js +0 -169
- package/dist/src/config/extensions/github_fetch.test.js.map +0 -1
- package/dist/src/config/extensions/storage.test.d.ts +0 -6
- package/dist/src/config/extensions/storage.test.js +0 -64
- package/dist/src/config/extensions/storage.test.js.map +0 -1
- package/dist/src/config/extensions/update.test.d.ts +0 -6
- package/dist/src/config/extensions/update.test.js +0 -231
- package/dist/src/config/extensions/update.test.js.map +0 -1
- package/dist/src/config/extensions/variables.test.d.ts +0 -6
- package/dist/src/config/extensions/variables.test.js +0 -103
- package/dist/src/config/extensions/variables.test.js.map +0 -1
- package/dist/src/config/keyBindings.test.d.ts +0 -6
- package/dist/src/config/keyBindings.test.js +0 -108
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/config/mcp/mcpServerEnablement.test.d.ts +0 -6
- package/dist/src/config/mcp/mcpServerEnablement.test.js +0 -147
- package/dist/src/config/mcp/mcpServerEnablement.test.js.map +0 -1
- package/dist/src/config/policy-engine.integration.test.d.ts +0 -6
- package/dist/src/config/policy-engine.integration.test.js +0 -353
- package/dist/src/config/policy-engine.integration.test.js.map +0 -1
- package/dist/src/config/sandboxConfig.test.d.ts +0 -6
- package/dist/src/config/sandboxConfig.test.js +0 -184
- package/dist/src/config/sandboxConfig.test.js.map +0 -1
- package/dist/src/config/settingPaths.test.d.ts +0 -6
- package/dist/src/config/settingPaths.test.js +0 -22
- package/dist/src/config/settingPaths.test.js.map +0 -1
- package/dist/src/config/settings-validation.test.d.ts +0 -6
- package/dist/src/config/settings-validation.test.js +0 -370
- package/dist/src/config/settings-validation.test.js.map +0 -1
- package/dist/src/config/settings.test.d.ts +0 -6
- package/dist/src/config/settings.test.js +0 -1822
- package/dist/src/config/settings.test.js.map +0 -1
- package/dist/src/config/settingsSchema.test.d.ts +0 -6
- package/dist/src/config/settingsSchema.test.js +0 -309
- package/dist/src/config/settingsSchema.test.js.map +0 -1
- package/dist/src/config/settings_repro.test.d.ts +0 -6
- package/dist/src/config/settings_repro.test.js +0 -166
- package/dist/src/config/settings_repro.test.js.map +0 -1
- package/dist/src/config/settings_validation_warning.test.d.ts +0 -6
- package/dist/src/config/settings_validation_warning.test.js +0 -123
- package/dist/src/config/settings_validation_warning.test.js.map +0 -1
- package/dist/src/config/skills-backward-compatibility.test.d.ts +0 -6
- package/dist/src/config/skills-backward-compatibility.test.js +0 -99
- package/dist/src/config/skills-backward-compatibility.test.js.map +0 -1
- package/dist/src/config/trustedFolders.test.d.ts +0 -6
- package/dist/src/config/trustedFolders.test.js +0 -385
- package/dist/src/config/trustedFolders.test.js.map +0 -1
- package/dist/src/core/auth.test.d.ts +0 -6
- package/dist/src/core/auth.test.js +0 -47
- package/dist/src/core/auth.test.js.map +0 -1
- package/dist/src/core/initializer.test.d.ts +0 -6
- package/dist/src/core/initializer.test.js +0 -101
- package/dist/src/core/initializer.test.js.map +0 -1
- package/dist/src/core/theme.test.d.ts +0 -6
- package/dist/src/core/theme.test.js +0 -46
- package/dist/src/core/theme.test.js.map +0 -1
- package/dist/src/deferred.test.d.ts +0 -6
- package/dist/src/deferred.test.js +0 -164
- package/dist/src/deferred.test.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -1334
- package/dist/src/gemini.test.js.map +0 -1
- package/dist/src/gemini_cleanup.test.d.ts +0 -6
- package/dist/src/gemini_cleanup.test.js +0 -208
- package/dist/src/gemini_cleanup.test.js.map +0 -1
- package/dist/src/nonInteractiveCli.test.d.ts +0 -6
- package/dist/src/nonInteractiveCli.test.js +0 -1687
- package/dist/src/nonInteractiveCli.test.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
- package/dist/src/services/BuiltinCommandLoader.test.js +0 -254
- package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
- package/dist/src/services/CommandService.test.d.ts +0 -6
- package/dist/src/services/CommandService.test.js +0 -234
- package/dist/src/services/CommandService.test.js.map +0 -1
- package/dist/src/services/FileCommandLoader.test.d.ts +0 -6
- package/dist/src/services/FileCommandLoader.test.js +0 -1102
- package/dist/src/services/FileCommandLoader.test.js.map +0 -1
- package/dist/src/services/McpPromptLoader.test.d.ts +0 -6
- package/dist/src/services/McpPromptLoader.test.js +0 -411
- package/dist/src/services/McpPromptLoader.test.js.map +0 -1
- package/dist/src/services/prompt-processors/argumentProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/argumentProcessor.test.js +0 -40
- package/dist/src/services/prompt-processors/argumentProcessor.test.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +0 -174
- package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/injectionParser.test.js +0 -189
- package/dist/src/services/prompt-processors/injectionParser.test.js.map +0 -1
- package/dist/src/services/prompt-processors/shellProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/shellProcessor.test.js +0 -514
- package/dist/src/services/prompt-processors/shellProcessor.test.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.test.d.ts +0 -6
- package/dist/src/test-utils/mockCommandContext.test.js +0 -51
- package/dist/src/test-utils/mockCommandContext.test.js.map +0 -1
- package/dist/src/test-utils/render.test.d.ts +0 -6
- package/dist/src/test-utils/render.test.js +0 -79
- package/dist/src/test-utils/render.test.js.map +0 -1
- package/dist/src/ui/App.test.d.ts +0 -6
- package/dist/src/ui/App.test.js +0 -218
- package/dist/src/ui/App.test.js.map +0 -1
- package/dist/src/ui/AppContainer.test.d.ts +0 -6
- package/dist/src/ui/AppContainer.test.js +0 -2072
- package/dist/src/ui/AppContainer.test.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.test.d.ts +0 -6
- package/dist/src/ui/IdeIntegrationNudge.test.js +0 -158
- package/dist/src/ui/IdeIntegrationNudge.test.js.map +0 -1
- package/dist/src/ui/auth/ApiAuthDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/ApiAuthDialog.test.js +0 -109
- package/dist/src/ui/auth/ApiAuthDialog.test.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/AuthDialog.test.js +0 -309
- package/dist/src/ui/auth/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/auth/AuthInProgress.test.d.ts +0 -6
- package/dist/src/ui/auth/AuthInProgress.test.js +0 -81
- package/dist/src/ui/auth/AuthInProgress.test.js.map +0 -1
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js +0 -66
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js.map +0 -1
- package/dist/src/ui/auth/useAuth.test.d.ts +0 -6
- package/dist/src/ui/auth/useAuth.test.js +0 -189
- package/dist/src/ui/auth/useAuth.test.js.map +0 -1
- package/dist/src/ui/commands/aboutCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/aboutCommand.test.js +0 -143
- package/dist/src/ui/commands/aboutCommand.test.js.map +0 -1
- package/dist/src/ui/commands/agentsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/agentsCommand.test.js +0 -344
- package/dist/src/ui/commands/agentsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/authCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/authCommand.test.js +0 -98
- package/dist/src/ui/commands/authCommand.test.js.map +0 -1
- package/dist/src/ui/commands/bugCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/bugCommand.test.js +0 -186
- package/dist/src/ui/commands/bugCommand.test.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/chatCommand.test.js +0 -620
- package/dist/src/ui/commands/chatCommand.test.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/clearCommand.test.js +0 -87
- package/dist/src/ui/commands/clearCommand.test.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/compressCommand.test.js +0 -98
- package/dist/src/ui/commands/compressCommand.test.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/copyCommand.test.js +0 -242
- package/dist/src/ui/commands/copyCommand.test.js.map +0 -1
- package/dist/src/ui/commands/corgiCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/corgiCommand.test.js +0 -28
- package/dist/src/ui/commands/corgiCommand.test.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/directoryCommand.test.js +0 -353
- package/dist/src/ui/commands/directoryCommand.test.js.map +0 -1
- package/dist/src/ui/commands/docsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/docsCommand.test.js +0 -72
- package/dist/src/ui/commands/docsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/editorCommand.test.js +0 -27
- package/dist/src/ui/commands/editorCommand.test.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/extensionsCommand.test.js +0 -778
- package/dist/src/ui/commands/extensionsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/helpCommand.test.js +0 -42
- package/dist/src/ui/commands/helpCommand.test.js.map +0 -1
- package/dist/src/ui/commands/hooksCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/hooksCommand.test.js +0 -572
- package/dist/src/ui/commands/hooksCommand.test.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/ideCommand.test.js +0 -203
- package/dist/src/ui/commands/ideCommand.test.js.map +0 -1
- package/dist/src/ui/commands/initCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/initCommand.test.js +0 -84
- package/dist/src/ui/commands/initCommand.test.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/mcpCommand.test.js +0 -189
- package/dist/src/ui/commands/mcpCommand.test.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/memoryCommand.test.js +0 -350
- package/dist/src/ui/commands/memoryCommand.test.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/modelCommand.test.js +0 -41
- package/dist/src/ui/commands/modelCommand.test.js.map +0 -1
- package/dist/src/ui/commands/permissionsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/permissionsCommand.test.js +0 -86
- package/dist/src/ui/commands/permissionsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/policiesCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/policiesCommand.test.js +0 -87
- package/dist/src/ui/commands/policiesCommand.test.js.map +0 -1
- package/dist/src/ui/commands/privacyCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/privacyCommand.test.js +0 -32
- package/dist/src/ui/commands/privacyCommand.test.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/quitCommand.test.js +0 -50
- package/dist/src/ui/commands/quitCommand.test.js.map +0 -1
- package/dist/src/ui/commands/restoreCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/restoreCommand.test.js +0 -190
- package/dist/src/ui/commands/restoreCommand.test.js.map +0 -1
- package/dist/src/ui/commands/rewindCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/rewindCommand.test.js +0 -242
- package/dist/src/ui/commands/rewindCommand.test.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/settingsCommand.test.js +0 -30
- package/dist/src/ui/commands/settingsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/setupGithubCommand.test.js +0 -238
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
- package/dist/src/ui/commands/skillsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/skillsCommand.test.js +0 -426
- package/dist/src/ui/commands/skillsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/statsCommand.test.js +0 -70
- package/dist/src/ui/commands/statsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/terminalSetupCommand.test.js +0 -66
- package/dist/src/ui/commands/terminalSetupCommand.test.js.map +0 -1
- package/dist/src/ui/commands/themeCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/themeCommand.test.js +0 -32
- package/dist/src/ui/commands/themeCommand.test.js.map +0 -1
- package/dist/src/ui/commands/toolsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/toolsCommand.test.js +0 -100
- package/dist/src/ui/commands/toolsCommand.test.js.map +0 -1
- package/dist/src/ui/components/AboutBox.test.d.ts +0 -6
- package/dist/src/ui/components/AboutBox.test.js +0 -59
- package/dist/src/ui/components/AboutBox.test.js.map +0 -1
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.js +0 -43
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.js.map +0 -1
- package/dist/src/ui/components/AgentConfigDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AgentConfigDialog.test.js +0 -241
- package/dist/src/ui/components/AgentConfigDialog.test.js.map +0 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +0 -190
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.test.d.ts +0 -6
- package/dist/src/ui/components/AnsiOutput.test.js +0 -92
- package/dist/src/ui/components/AnsiOutput.test.js.map +0 -1
- package/dist/src/ui/components/AppHeader.test.d.ts +0 -6
- package/dist/src/ui/components/AppHeader.test.js +0 -225
- package/dist/src/ui/components/AppHeader.test.js.map +0 -1
- package/dist/src/ui/components/ApprovalModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/ApprovalModeIndicator.test.js +0 -37
- package/dist/src/ui/components/ApprovalModeIndicator.test.js.map +0 -1
- package/dist/src/ui/components/AskUserDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AskUserDialog.test.js +0 -598
- package/dist/src/ui/components/AskUserDialog.test.js.map +0 -1
- package/dist/src/ui/components/Banner.test.d.ts +0 -6
- package/dist/src/ui/components/Banner.test.js +0 -24
- package/dist/src/ui/components/Banner.test.js.map +0 -1
- package/dist/src/ui/components/CliSpinner.test.d.ts +0 -6
- package/dist/src/ui/components/CliSpinner.test.js +0 -28
- package/dist/src/ui/components/CliSpinner.test.js.map +0 -1
- package/dist/src/ui/components/Composer.test.d.ts +0 -6
- package/dist/src/ui/components/Composer.test.js +0 -383
- package/dist/src/ui/components/Composer.test.js.map +0 -1
- package/dist/src/ui/components/ConfigInitDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ConfigInitDisplay.test.js +0 -117
- package/dist/src/ui/components/ConfigInitDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ConsentPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/ConsentPrompt.test.js +0 -77
- package/dist/src/ui/components/ConsentPrompt.test.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js +0 -26
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ContextSummaryDisplay.test.js +0 -102
- package/dist/src/ui/components/ContextSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ContextUsageDisplay.test.js +0 -43
- package/dist/src/ui/components/ContextUsageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/CopyModeWarning.test.d.ts +0 -6
- package/dist/src/ui/components/CopyModeWarning.test.js +0 -33
- package/dist/src/ui/components/CopyModeWarning.test.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.test.d.ts +0 -6
- package/dist/src/ui/components/DebugProfiler.test.js +0 -229
- package/dist/src/ui/components/DebugProfiler.test.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js +0 -39
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js.map +0 -1
- package/dist/src/ui/components/DialogManager.test.d.ts +0 -6
- package/dist/src/ui/components/DialogManager.test.js +0 -177
- package/dist/src/ui/components/DialogManager.test.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/EditorSettingsDialog.test.js +0 -119
- package/dist/src/ui/components/EditorSettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ExitWarning.test.d.ts +0 -6
- package/dist/src/ui/components/ExitWarning.test.js +0 -54
- package/dist/src/ui/components/ExitWarning.test.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/FolderTrustDialog.test.js +0 -102
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/Footer.test.d.ts +0 -6
- package/dist/src/ui/components/Footer.test.js +0 -321
- package/dist/src/ui/components/Footer.test.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.test.d.ts +0 -6
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js +0 -61
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js.map +0 -1
- package/dist/src/ui/components/GradientRegression.test.d.ts +0 -6
- package/dist/src/ui/components/GradientRegression.test.js +0 -105
- package/dist/src/ui/components/GradientRegression.test.js.map +0 -1
- package/dist/src/ui/components/Header.test.d.ts +0 -6
- package/dist/src/ui/components/Header.test.js +0 -147
- package/dist/src/ui/components/Header.test.js.map +0 -1
- package/dist/src/ui/components/Help.test.d.ts +0 -6
- package/dist/src/ui/components/Help.test.js +0 -67
- package/dist/src/ui/components/Help.test.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -207
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
- package/dist/src/ui/components/HookStatusDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HookStatusDisplay.test.js +0 -51
- package/dist/src/ui/components/HookStatusDisplay.test.js.map +0 -1
- package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js +0 -58
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/InputPrompt.test.js +0 -2596
- package/dist/src/ui/components/InputPrompt.test.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/LoadingIndicator.test.js +0 -207
- package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/components/LogoutConfirmationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js +0 -59
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js.map +0 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +0 -25
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/MainContent.test.d.ts +0 -6
- package/dist/src/ui/components/MainContent.test.js +0 -83
- package/dist/src/ui/components/MainContent.test.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/MemoryUsageDisplay.test.js +0 -49
- package/dist/src/ui/components/MemoryUsageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ModelDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ModelDialog.test.js +0 -197
- package/dist/src/ui/components/ModelDialog.test.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ModelStatsDisplay.test.js +0 -343
- package/dist/src/ui/components/ModelStatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js +0 -162
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/NewAgentsNotification.test.d.ts +0 -6
- package/dist/src/ui/components/NewAgentsNotification.test.js +0 -48
- package/dist/src/ui/components/NewAgentsNotification.test.js.map +0 -1
- package/dist/src/ui/components/Notifications.test.d.ts +0 -6
- package/dist/src/ui/components/Notifications.test.js +0 -164
- package/dist/src/ui/components/Notifications.test.js.map +0 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +0 -162
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ProQuotaDialog.test.js +0 -191
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +0 -65
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/QuittingDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/QuittingDisplay.test.js +0 -49
- package/dist/src/ui/components/QuittingDisplay.test.js.map +0 -1
- package/dist/src/ui/components/RawMarkdownIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/RawMarkdownIndicator.test.js +0 -34
- package/dist/src/ui/components/RawMarkdownIndicator.test.js.map +0 -1
- package/dist/src/ui/components/RewindConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/RewindConfirmation.test.js +0 -53
- package/dist/src/ui/components/RewindConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/RewindViewer.test.d.ts +0 -6
- package/dist/src/ui/components/RewindViewer.test.js +0 -241
- package/dist/src/ui/components/RewindViewer.test.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser.test.d.ts +0 -6
- package/dist/src/ui/components/SessionBrowser.test.js +0 -256
- package/dist/src/ui/components/SessionBrowser.test.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/SessionSummaryDisplay.test.js +0 -75
- package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/SettingsDialog.test.js +0 -1150
- package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellInputPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/ShellInputPrompt.test.js +0 -91
- package/dist/src/ui/components/ShellInputPrompt.test.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/ShellModeIndicator.test.js +0 -17
- package/dist/src/ui/components/ShellModeIndicator.test.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.test.d.ts +0 -6
- package/dist/src/ui/components/ShowMoreLines.test.js +0 -40
- package/dist/src/ui/components/ShowMoreLines.test.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/StatsDisplay.test.js +0 -438
- package/dist/src/ui/components/StatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/StatusDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/StatusDisplay.test.js +0 -155
- package/dist/src/ui/components/StatusDisplay.test.js.map +0 -1
- package/dist/src/ui/components/StickyHeader.test.d.ts +0 -6
- package/dist/src/ui/components/StickyHeader.test.js +0 -17
- package/dist/src/ui/components/StickyHeader.test.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/SuggestionsDisplay.test.js +0 -56
- package/dist/src/ui/components/SuggestionsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/Table.test.d.ts +0 -6
- package/dist/src/ui/components/Table.test.js +0 -53
- package/dist/src/ui/components/Table.test.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ThemeDialog.test.js +0 -167
- package/dist/src/ui/components/ThemeDialog.test.js.map +0 -1
- package/dist/src/ui/components/ThemedGradient.test.d.ts +0 -6
- package/dist/src/ui/components/ThemedGradient.test.js +0 -30
- package/dist/src/ui/components/ThemedGradient.test.js.map +0 -1
- package/dist/src/ui/components/Tips.test.d.ts +0 -6
- package/dist/src/ui/components/Tips.test.js +0 -23
- package/dist/src/ui/components/Tips.test.js.map +0 -1
- package/dist/src/ui/components/ToolConfirmationQueue.test.d.ts +0 -6
- package/dist/src/ui/components/ToolConfirmationQueue.test.js +0 -71
- package/dist/src/ui/components/ToolConfirmationQueue.test.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ToolStatsDisplay.test.js +0 -227
- package/dist/src/ui/components/ToolStatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.test.d.ts +0 -6
- package/dist/src/ui/components/UpdateNotification.test.js +0 -16
- package/dist/src/ui/components/UpdateNotification.test.js.map +0 -1
- package/dist/src/ui/components/ValidationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ValidationDialog.test.js +0 -153
- package/dist/src/ui/components/ValidationDialog.test.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/CompressionMessage.test.js +0 -191
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
- package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -240
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ErrorMessage.test.js +0 -23
- package/dist/src/ui/components/messages/ErrorMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/GeminiMessage.test.js +0 -35
- package/dist/src/ui/components/messages/GeminiMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/InfoMessage.test.js +0 -28
- package/dist/src/ui/components/messages/InfoMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.js +0 -33
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/messages/ShellToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ShellToolMessage.test.js +0 -123
- package/dist/src/ui/components/messages/ShellToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/Todo.test.d.ts +0 -6
- package/dist/src/ui/components/messages/Todo.test.js +0 -114
- package/dist/src/ui/components/messages/Todo.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -232
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +0 -529
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessage.test.js +0 -217
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js +0 -89
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +0 -62
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolResultDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js +0 -114
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js +0 -134
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/UserMessage.test.js +0 -32
- package/dist/src/ui/components/messages/UserMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/WarningMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/WarningMessage.test.js +0 -23
- package/dist/src/ui/components/messages/WarningMessage.test.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/BaseSelectionList.test.js +0 -386
- package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.js +0 -434
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +0 -79
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/EnumSelector.test.d.ts +0 -6
- package/dist/src/ui/components/shared/EnumSelector.test.js +0 -70
- package/dist/src/ui/components/shared/EnumSelector.test.js.map +0 -1
- package/dist/src/ui/components/shared/ExpandableText.test.d.ts +0 -6
- package/dist/src/ui/components/shared/ExpandableText.test.js +0 -88
- package/dist/src/ui/components/shared/ExpandableText.test.js.map +0 -1
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.js +0 -34
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -90
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +0 -134
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/Scrollable.test.d.ts +0 -6
- package/dist/src/ui/components/shared/Scrollable.test.js +0 -74
- package/dist/src/ui/components/shared/Scrollable.test.js.map +0 -1
- package/dist/src/ui/components/shared/ScrollableList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/ScrollableList.test.js +0 -241
- package/dist/src/ui/components/shared/ScrollableList.test.js.map +0 -1
- package/dist/src/ui/components/shared/TabHeader.test.d.ts +0 -6
- package/dist/src/ui/components/shared/TabHeader.test.js +0 -106
- package/dist/src/ui/components/shared/TabHeader.test.js.map +0 -1
- package/dist/src/ui/components/shared/TextInput.test.d.ts +0 -6
- package/dist/src/ui/components/shared/TextInput.test.js +0 -242
- package/dist/src/ui/components/shared/TextInput.test.js.map +0 -1
- package/dist/src/ui/components/shared/VirtualizedList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/VirtualizedList.test.js +0 -171
- package/dist/src/ui/components/shared/VirtualizedList.test.js.map +0 -1
- package/dist/src/ui/components/shared/performance.test.d.ts +0 -1
- package/dist/src/ui/components/shared/performance.test.js +0 -67
- package/dist/src/ui/components/shared/performance.test.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.test.d.ts +0 -6
- package/dist/src/ui/components/shared/text-buffer.test.js +0 -2490
- package/dist/src/ui/components/shared/text-buffer.test.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.test.d.ts +0 -6
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js +0 -964
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js.map +0 -1
- package/dist/src/ui/components/views/ChatList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ChatList.test.js +0 -45
- package/dist/src/ui/components/views/ChatList.test.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ExtensionsList.test.js +0 -148
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +0 -1
- package/dist/src/ui/components/views/McpStatus.test.d.ts +0 -6
- package/dist/src/ui/components/views/McpStatus.test.js +0 -153
- package/dist/src/ui/components/views/McpStatus.test.js.map +0 -1
- package/dist/src/ui/components/views/SkillsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/SkillsList.test.js +0 -97
- package/dist/src/ui/components/views/SkillsList.test.js.map +0 -1
- package/dist/src/ui/components/views/ToolsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ToolsList.test.js +0 -45
- package/dist/src/ui/components/views/ToolsList.test.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/KeypressContext.test.js +0 -957
- package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
- package/dist/src/ui/contexts/MouseContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/MouseContext.test.js +0 -198
- package/dist/src/ui/contexts/MouseContext.test.js.map +0 -1
- package/dist/src/ui/contexts/ScrollProvider.drag.test.d.ts +0 -6
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js +0 -319
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js.map +0 -1
- package/dist/src/ui/contexts/ScrollProvider.test.d.ts +0 -6
- package/dist/src/ui/contexts/ScrollProvider.test.js +0 -377
- package/dist/src/ui/contexts/ScrollProvider.test.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/SessionContext.test.js +0 -198
- package/dist/src/ui/contexts/SessionContext.test.js.map +0 -1
- package/dist/src/ui/contexts/ToolActionsContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/ToolActionsContext.test.js +0 -166
- package/dist/src/ui/contexts/ToolActionsContext.test.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -1032
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.js +0 -183
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -521
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +0 -796
- package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/toolMapping.test.d.ts +0 -6
- package/dist/src/ui/hooks/toolMapping.test.js +0 -209
- package/dist/src/ui/hooks/toolMapping.test.js.map +0 -1
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js +0 -85
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js.map +0 -1
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.js +0 -435
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAtCompletion.test.js +0 -417
- package/dist/src/ui/hooks/useAtCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion_agents.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAtCompletion_agents.test.js +0 -87
- package/dist/src/ui/hooks/useAtCompletion_agents.test.js.map +0 -1
- package/dist/src/ui/hooks/useBanner.test.d.ts +0 -6
- package/dist/src/ui/hooks/useBanner.test.js +0 -92
- package/dist/src/ui/hooks/useBanner.test.js.map +0 -1
- package/dist/src/ui/hooks/useBatchedScroll.test.d.ts +0 -6
- package/dist/src/ui/hooks/useBatchedScroll.test.js +0 -62
- package/dist/src/ui/hooks/useBatchedScroll.test.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useCommandCompletion.test.js +0 -462
- package/dist/src/ui/hooks/useCommandCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.test.d.ts +0 -6
- package/dist/src/ui/hooks/useConsoleMessages.test.js +0 -159
- package/dist/src/ui/hooks/useConsoleMessages.test.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/useEditorSettings.test.js +0 -179
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +0 -6
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +0 -279
- package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +0 -1
- package/dist/src/ui/hooks/useFlickerDetector.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFlickerDetector.test.js +0 -106
- package/dist/src/ui/hooks/useFlickerDetector.test.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFocus.test.js +0 -131
- package/dist/src/ui/hooks/useFocus.test.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFolderTrust.test.js +0 -218
- package/dist/src/ui/hooks/useFolderTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGeminiStream.test.js +0 -2149
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.test.js +0 -183
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHistoryManager.test.js +0 -188
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useHookDisplayState.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHookDisplayState.test.js +0 -180
- package/dist/src/ui/hooks/useHookDisplayState.test.js.map +0 -1
- package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +0 -6
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +0 -214
- package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +0 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js +0 -172
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistory.test.js +0 -208
- package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +0 -238
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.test.d.ts +0 -6
- package/dist/src/ui/hooks/useKeypress.test.js +0 -205
- package/dist/src/ui/hooks/useKeypress.test.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -145
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useMcpStatus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMcpStatus.test.js +0 -69
- package/dist/src/ui/hooks/useMcpStatus.test.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +0 -62
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMessageQueue.test.js +0 -327
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
- package/dist/src/ui/hooks/useModelCommand.test.d.ts +0 -6
- package/dist/src/ui/hooks/useModelCommand.test.js +0 -45
- package/dist/src/ui/hooks/useModelCommand.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouse.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouse.test.js +0 -57
- package/dist/src/ui/hooks/useMouse.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouseClick.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouseClick.test.js +0 -59
- package/dist/src/ui/hooks/useMouseClick.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouseDoubleClick.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouseDoubleClick.test.js +0 -125
- package/dist/src/ui/hooks/useMouseDoubleClick.test.js.map +0 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +0 -291
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePhraseCycler.test.js +0 -208
- package/dist/src/ui/hooks/usePhraseCycler.test.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -104
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +0 -6
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +0 -477
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReactToolScheduler.test.js +0 -58
- package/dist/src/ui/hooks/useReactToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -169
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useRewind.test.d.ts +0 -6
- package/dist/src/ui/hooks/useRewind.test.js +0 -100
- package/dist/src/ui/hooks/useRewind.test.js.map +0 -1
- package/dist/src/ui/hooks/useSelectionList.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSelectionList.test.js +0 -848
- package/dist/src/ui/hooks/useSelectionList.test.js.map +0 -1
- package/dist/src/ui/hooks/useSessionBrowser.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSessionBrowser.test.js +0 -203
- package/dist/src/ui/hooks/useSessionBrowser.test.js.map +0 -1
- package/dist/src/ui/hooks/useSessionResume.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSessionResume.test.js +0 -336
- package/dist/src/ui/hooks/useSessionResume.test.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellHistory.test.js +0 -223
- package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellInactivityStatus.test.js +0 -84
- package/dist/src/ui/hooks/useShellInactivityStatus.test.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -9
- package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -845
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useSnowfall.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSnowfall.test.js +0 -88
- package/dist/src/ui/hooks/useSnowfall.test.js.map +0 -1
- package/dist/src/ui/hooks/useTabbedNavigation.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTabbedNavigation.test.js +0 -187
- package/dist/src/ui/hooks/useTabbedNavigation.test.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTimer.test.js +0 -119
- package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
- package/dist/src/ui/hooks/useTips.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTips.test.js +0 -33
- package/dist/src/ui/hooks/useTips.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolExecutionScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolExecutionScheduler.test.js +0 -376
- package/dist/src/ui/hooks/useToolExecutionScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolScheduler.test.js +0 -881
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.js +0 -45
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.js.map +0 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.js +0 -97
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.js.map +0 -1
- package/dist/src/ui/hooks/vim.test.d.ts +0 -6
- package/dist/src/ui/hooks/vim.test.js +0 -1384
- package/dist/src/ui/hooks/vim.test.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.d.ts +0 -6
- package/dist/src/ui/keyMatchers.test.js +0 -386
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js +0 -121
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js +0 -34
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js +0 -34
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/PrivacyNotice.test.js +0 -62
- package/dist/src/ui/privacy/PrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/state/extensions.test.d.ts +0 -6
- package/dist/src/ui/state/extensions.test.js +0 -219
- package/dist/src/ui/state/extensions.test.js.map +0 -1
- package/dist/src/ui/themes/color-utils.test.d.ts +0 -6
- package/dist/src/ui/themes/color-utils.test.js +0 -245
- package/dist/src/ui/themes/color-utils.test.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.test.d.ts +0 -6
- package/dist/src/ui/themes/theme-manager.test.js +0 -150
- package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
- package/dist/src/ui/themes/theme.test.d.ts +0 -6
- package/dist/src/ui/themes/theme.test.js +0 -174
- package/dist/src/ui/themes/theme.test.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.test.d.ts +0 -6
- package/dist/src/ui/utils/CodeColorizer.test.js +0 -38
- package/dist/src/ui/utils/CodeColorizer.test.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.d.ts +0 -6
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.js +0 -21
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
- package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -159
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.test.js +0 -359
- package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.windows.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.windows.test.js +0 -55
- package/dist/src/ui/utils/clipboardUtils.windows.test.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/commandUtils.test.js +0 -479
- package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
- package/dist/src/ui/utils/computeStats.test.d.ts +0 -6
- package/dist/src/ui/utils/computeStats.test.js +0 -271
- package/dist/src/ui/utils/computeStats.test.js.map +0 -1
- package/dist/src/ui/utils/directoryUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/directoryUtils.test.js +0 -244
- package/dist/src/ui/utils/directoryUtils.test.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/displayUtils.test.js +0 -61
- package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
- package/dist/src/ui/utils/formatters.test.d.ts +0 -6
- package/dist/src/ui/utils/formatters.test.js +0 -124
- package/dist/src/ui/utils/formatters.test.js.map +0 -1
- package/dist/src/ui/utils/highlight.test.d.ts +0 -6
- package/dist/src/ui/utils/highlight.test.js +0 -198
- package/dist/src/ui/utils/highlight.test.js.map +0 -1
- package/dist/src/ui/utils/input.test.d.ts +0 -6
- package/dist/src/ui/utils/input.test.js +0 -44
- package/dist/src/ui/utils/input.test.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.test.js +0 -42
- package/dist/src/ui/utils/markdownUtilities.test.js.map +0 -1
- package/dist/src/ui/utils/mouse.test.d.ts +0 -6
- package/dist/src/ui/utils/mouse.test.js +0 -136
- package/dist/src/ui/utils/mouse.test.js.map +0 -1
- package/dist/src/ui/utils/rewindFileOps.test.d.ts +0 -6
- package/dist/src/ui/utils/rewindFileOps.test.js +0 -375
- package/dist/src/ui/utils/rewindFileOps.test.js.map +0 -1
- package/dist/src/ui/utils/terminalCapabilityManager.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalCapabilityManager.test.js +0 -220
- package/dist/src/ui/utils/terminalCapabilityManager.test.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalSetup.test.js +0 -147
- package/dist/src/ui/utils/terminalSetup.test.js.map +0 -1
- package/dist/src/ui/utils/terminalUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalUtils.test.js +0 -40
- package/dist/src/ui/utils/terminalUtils.test.js.map +0 -1
- package/dist/src/ui/utils/textOutput.test.d.ts +0 -6
- package/dist/src/ui/utils/textOutput.test.js +0 -79
- package/dist/src/ui/utils/textOutput.test.js.map +0 -1
- package/dist/src/ui/utils/textUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/textUtils.test.js +0 -168
- package/dist/src/ui/utils/textUtils.test.js.map +0 -1
- package/dist/src/ui/utils/ui-sizing.test.d.ts +0 -6
- package/dist/src/ui/utils/ui-sizing.test.js +0 -38
- package/dist/src/ui/utils/ui-sizing.test.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.test.js +0 -134
- package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
- package/dist/src/utils/agentUtils.test.d.ts +0 -6
- package/dist/src/utils/agentUtils.test.js +0 -121
- package/dist/src/utils/agentUtils.test.js.map +0 -1
- package/dist/src/utils/checks.test.d.ts +0 -6
- package/dist/src/utils/checks.test.js +0 -29
- package/dist/src/utils/checks.test.js.map +0 -1
- package/dist/src/utils/cleanup.test.d.ts +0 -6
- package/dist/src/utils/cleanup.test.js +0 -92
- package/dist/src/utils/cleanup.test.js.map +0 -1
- package/dist/src/utils/commands.test.d.ts +0 -6
- package/dist/src/utils/commands.test.js +0 -115
- package/dist/src/utils/commands.test.js.map +0 -1
- package/dist/src/utils/commentJson.test.d.ts +0 -6
- package/dist/src/utils/commentJson.test.js +0 -308
- package/dist/src/utils/commentJson.test.js.map +0 -1
- package/dist/src/utils/deepMerge.test.d.ts +0 -6
- package/dist/src/utils/deepMerge.test.js +0 -201
- package/dist/src/utils/deepMerge.test.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.test.d.ts +0 -6
- package/dist/src/utils/dialogScopeUtils.test.js +0 -81
- package/dist/src/utils/dialogScopeUtils.test.js.map +0 -1
- package/dist/src/utils/envVarResolver.test.d.ts +0 -6
- package/dist/src/utils/envVarResolver.test.js +0 -221
- package/dist/src/utils/envVarResolver.test.js.map +0 -1
- package/dist/src/utils/errors.test.d.ts +0 -6
- package/dist/src/utils/errors.test.js +0 -435
- package/dist/src/utils/errors.test.js.map +0 -1
- package/dist/src/utils/events.test.d.ts +0 -6
- package/dist/src/utils/events.test.js +0 -24
- package/dist/src/utils/events.test.js.map +0 -1
- package/dist/src/utils/gitUtils.test.d.ts +0 -6
- package/dist/src/utils/gitUtils.test.js +0 -113
- package/dist/src/utils/gitUtils.test.js.map +0 -1
- package/dist/src/utils/handleAutoUpdate.test.d.ts +0 -6
- package/dist/src/utils/handleAutoUpdate.test.js +0 -310
- package/dist/src/utils/handleAutoUpdate.test.js.map +0 -1
- package/dist/src/utils/installationInfo.test.d.ts +0 -6
- package/dist/src/utils/installationInfo.test.js +0 -296
- package/dist/src/utils/installationInfo.test.js.map +0 -1
- package/dist/src/utils/jsonoutput.test.d.ts +0 -6
- package/dist/src/utils/jsonoutput.test.js +0 -74
- package/dist/src/utils/jsonoutput.test.js.map +0 -1
- package/dist/src/utils/math.test.d.ts +0 -6
- package/dist/src/utils/math.test.js +0 -23
- package/dist/src/utils/math.test.js.map +0 -1
- package/dist/src/utils/persistentState.test.d.ts +0 -6
- package/dist/src/utils/persistentState.test.js +0 -68
- package/dist/src/utils/persistentState.test.js.map +0 -1
- package/dist/src/utils/processUtils.test.d.ts +0 -6
- package/dist/src/utils/processUtils.test.js +0 -20
- package/dist/src/utils/processUtils.test.js.map +0 -1
- package/dist/src/utils/readStdin.test.d.ts +0 -6
- package/dist/src/utils/readStdin.test.js +0 -117
- package/dist/src/utils/readStdin.test.js.map +0 -1
- package/dist/src/utils/readStdin_safety.test.d.ts +0 -6
- package/dist/src/utils/readStdin_safety.test.js +0 -68
- package/dist/src/utils/readStdin_safety.test.js.map +0 -1
- package/dist/src/utils/relaunch.test.d.ts +0 -6
- package/dist/src/utils/relaunch.test.js +0 -279
- package/dist/src/utils/relaunch.test.js.map +0 -1
- package/dist/src/utils/resolvePath.test.d.ts +0 -6
- package/dist/src/utils/resolvePath.test.js +0 -34
- package/dist/src/utils/resolvePath.test.js.map +0 -1
- package/dist/src/utils/sandbox.test.d.ts +0 -6
- package/dist/src/utils/sandbox.test.js +0 -314
- package/dist/src/utils/sandbox.test.js.map +0 -1
- package/dist/src/utils/sandboxUtils.test.d.ts +0 -6
- package/dist/src/utils/sandboxUtils.test.js +0 -122
- package/dist/src/utils/sandboxUtils.test.js.map +0 -1
- package/dist/src/utils/sessionCleanup.integration.test.d.ts +0 -6
- package/dist/src/utils/sessionCleanup.integration.test.js +0 -182
- package/dist/src/utils/sessionCleanup.integration.test.js.map +0 -1
- package/dist/src/utils/sessionCleanup.test.d.ts +0 -6
- package/dist/src/utils/sessionCleanup.test.js +0 -1298
- package/dist/src/utils/sessionCleanup.test.js.map +0 -1
- package/dist/src/utils/sessionUtils.test.d.ts +0 -6
- package/dist/src/utils/sessionUtils.test.js +0 -503
- package/dist/src/utils/sessionUtils.test.js.map +0 -1
- package/dist/src/utils/sessions.test.d.ts +0 -6
- package/dist/src/utils/sessions.test.js +0 -581
- package/dist/src/utils/sessions.test.js.map +0 -1
- package/dist/src/utils/settingsUtils.test.d.ts +0 -6
- package/dist/src/utils/settingsUtils.test.js +0 -808
- package/dist/src/utils/settingsUtils.test.js.map +0 -1
- package/dist/src/utils/skillUtils.test.d.ts +0 -6
- package/dist/src/utils/skillUtils.test.js +0 -70
- package/dist/src/utils/skillUtils.test.js.map +0 -1
- package/dist/src/utils/startupWarnings.test.d.ts +0 -6
- package/dist/src/utils/startupWarnings.test.js +0 -61
- package/dist/src/utils/startupWarnings.test.js.map +0 -1
- package/dist/src/utils/updateEventEmitter.test.d.ts +0 -6
- package/dist/src/utils/updateEventEmitter.test.js +0 -18
- package/dist/src/utils/updateEventEmitter.test.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.test.js +0 -98
- package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
- package/dist/src/utils/windowTitle.test.d.ts +0 -6
- package/dist/src/utils/windowTitle.test.js +0 -216
- package/dist/src/utils/windowTitle.test.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.test.d.ts +0 -6
- package/dist/src/validateNonInterActiveAuth.test.js +0 -319
- package/dist/src/validateNonInterActiveAuth.test.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.test.d.ts +0 -6
- package/dist/src/zed-integration/fileSystemService.test.js +0 -88
- package/dist/src/zed-integration/fileSystemService.test.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.test.d.ts +0 -6
- package/dist/src/zed-integration/zedIntegration.test.js +0 -625
- package/dist/src/zed-integration/zedIntegration.test.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,1150 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2025 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* This test suite covers:
|
|
11
|
-
* - Initial rendering and display state
|
|
12
|
-
* - Keyboard navigation (arrows, vim keys, Tab)
|
|
13
|
-
* - Settings toggling (Enter, Space)
|
|
14
|
-
* - Focus section switching between settings and scope selector
|
|
15
|
-
* - Scope selection and settings persistence across scopes
|
|
16
|
-
* - Restart-required vs immediate settings behavior
|
|
17
|
-
* - VimModeContext integration
|
|
18
|
-
* - Complex user interaction workflows
|
|
19
|
-
* - Error handling and edge cases
|
|
20
|
-
* - Display values for inherited and overridden settings
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
import { render } from '../../test-utils/render.js';
|
|
24
|
-
import { waitFor } from '../../test-utils/async.js';
|
|
25
|
-
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|
26
|
-
import { SettingsDialog } from './SettingsDialog.js';
|
|
27
|
-
import { LoadedSettings, SettingScope } from '../../config/settings.js';
|
|
28
|
-
import { VimModeProvider } from '../contexts/VimModeContext.js';
|
|
29
|
-
import { KeypressProvider } from '../contexts/KeypressContext.js';
|
|
30
|
-
import { act } from 'react';
|
|
31
|
-
import { saveModifiedSettings, TEST_ONLY } from '../../utils/settingsUtils.js';
|
|
32
|
-
import { getSettingsSchema, } from '../../config/settingsSchema.js';
|
|
33
|
-
import { terminalCapabilityManager } from '../utils/terminalCapabilityManager.js';
|
|
34
|
-
// Mock the VimModeContext
|
|
35
|
-
const mockToggleVimEnabled = vi.fn().mockResolvedValue(undefined);
|
|
36
|
-
const mockSetVimMode = vi.fn();
|
|
37
|
-
vi.mock('../contexts/UIStateContext.js', () => ({
|
|
38
|
-
useUIState: () => ({
|
|
39
|
-
terminalWidth: 100, // Fixed width for consistent snapshots
|
|
40
|
-
}),
|
|
41
|
-
}));
|
|
42
|
-
var TerminalKeys;
|
|
43
|
-
(function (TerminalKeys) {
|
|
44
|
-
TerminalKeys["ENTER"] = "\r";
|
|
45
|
-
TerminalKeys["TAB"] = "\t";
|
|
46
|
-
TerminalKeys["UP_ARROW"] = "\u001B[A";
|
|
47
|
-
TerminalKeys["DOWN_ARROW"] = "\u001B[B";
|
|
48
|
-
TerminalKeys["LEFT_ARROW"] = "\u001B[D";
|
|
49
|
-
TerminalKeys["RIGHT_ARROW"] = "\u001B[C";
|
|
50
|
-
TerminalKeys["ESCAPE"] = "\u001B";
|
|
51
|
-
TerminalKeys["BACKSPACE"] = "\b";
|
|
52
|
-
})(TerminalKeys || (TerminalKeys = {}));
|
|
53
|
-
const createMockSettings = (userSettings = {}, systemSettings = {}, workspaceSettings = {}) => new LoadedSettings({
|
|
54
|
-
settings: { ui: { customThemes: {} }, mcpServers: {}, ...systemSettings },
|
|
55
|
-
originalSettings: {
|
|
56
|
-
ui: { customThemes: {} },
|
|
57
|
-
mcpServers: {},
|
|
58
|
-
...systemSettings,
|
|
59
|
-
},
|
|
60
|
-
path: '/system/settings.json',
|
|
61
|
-
}, {
|
|
62
|
-
settings: {},
|
|
63
|
-
originalSettings: {},
|
|
64
|
-
path: '/system/system-defaults.json',
|
|
65
|
-
}, {
|
|
66
|
-
settings: {
|
|
67
|
-
ui: { customThemes: {} },
|
|
68
|
-
mcpServers: {},
|
|
69
|
-
...userSettings,
|
|
70
|
-
},
|
|
71
|
-
originalSettings: {
|
|
72
|
-
ui: { customThemes: {} },
|
|
73
|
-
mcpServers: {},
|
|
74
|
-
...userSettings,
|
|
75
|
-
},
|
|
76
|
-
path: '/user/settings.json',
|
|
77
|
-
}, {
|
|
78
|
-
settings: {
|
|
79
|
-
ui: { customThemes: {} },
|
|
80
|
-
mcpServers: {},
|
|
81
|
-
...workspaceSettings,
|
|
82
|
-
},
|
|
83
|
-
originalSettings: {
|
|
84
|
-
ui: { customThemes: {} },
|
|
85
|
-
mcpServers: {},
|
|
86
|
-
...workspaceSettings,
|
|
87
|
-
},
|
|
88
|
-
path: '/workspace/settings.json',
|
|
89
|
-
}, true, []);
|
|
90
|
-
vi.mock('../../config/settingsSchema.js', async (importOriginal) => {
|
|
91
|
-
const original = await importOriginal();
|
|
92
|
-
return {
|
|
93
|
-
...original,
|
|
94
|
-
getSettingsSchema: vi.fn(original.getSettingsSchema),
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
vi.mock('../contexts/VimModeContext.js', async () => {
|
|
98
|
-
const actual = await vi.importActual('../contexts/VimModeContext.js');
|
|
99
|
-
return {
|
|
100
|
-
...actual,
|
|
101
|
-
useVimMode: () => ({
|
|
102
|
-
vimEnabled: false,
|
|
103
|
-
vimMode: 'INSERT',
|
|
104
|
-
toggleVimEnabled: mockToggleVimEnabled,
|
|
105
|
-
setVimMode: mockSetVimMode,
|
|
106
|
-
}),
|
|
107
|
-
};
|
|
108
|
-
});
|
|
109
|
-
vi.mock('../../utils/settingsUtils.js', async () => {
|
|
110
|
-
const actual = await vi.importActual('../../utils/settingsUtils.js');
|
|
111
|
-
return {
|
|
112
|
-
...actual,
|
|
113
|
-
saveModifiedSettings: vi.fn(),
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
// Shared test schemas
|
|
117
|
-
var StringEnum;
|
|
118
|
-
(function (StringEnum) {
|
|
119
|
-
StringEnum["FOO"] = "foo";
|
|
120
|
-
StringEnum["BAR"] = "bar";
|
|
121
|
-
StringEnum["BAZ"] = "baz";
|
|
122
|
-
})(StringEnum || (StringEnum = {}));
|
|
123
|
-
const ENUM_SETTING = {
|
|
124
|
-
type: 'enum',
|
|
125
|
-
label: 'Theme',
|
|
126
|
-
options: [
|
|
127
|
-
{
|
|
128
|
-
label: 'Foo',
|
|
129
|
-
value: StringEnum.FOO,
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
label: 'Bar',
|
|
133
|
-
value: StringEnum.BAR,
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
label: 'Baz',
|
|
137
|
-
value: StringEnum.BAZ,
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
category: 'UI',
|
|
141
|
-
requiresRestart: false,
|
|
142
|
-
default: StringEnum.BAR,
|
|
143
|
-
description: 'The color theme for the UI.',
|
|
144
|
-
showInDialog: true,
|
|
145
|
-
};
|
|
146
|
-
const ENUM_FAKE_SCHEMA = {
|
|
147
|
-
ui: {
|
|
148
|
-
showInDialog: false,
|
|
149
|
-
properties: {
|
|
150
|
-
theme: {
|
|
151
|
-
...ENUM_SETTING,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
const TOOLS_SHELL_FAKE_SCHEMA = {
|
|
157
|
-
tools: {
|
|
158
|
-
type: 'object',
|
|
159
|
-
label: 'Tools',
|
|
160
|
-
category: 'Tools',
|
|
161
|
-
requiresRestart: false,
|
|
162
|
-
default: {},
|
|
163
|
-
description: 'Tool settings.',
|
|
164
|
-
showInDialog: false,
|
|
165
|
-
properties: {
|
|
166
|
-
shell: {
|
|
167
|
-
type: 'object',
|
|
168
|
-
label: 'Shell',
|
|
169
|
-
category: 'Tools',
|
|
170
|
-
requiresRestart: false,
|
|
171
|
-
default: {},
|
|
172
|
-
description: 'Shell tool settings.',
|
|
173
|
-
showInDialog: false,
|
|
174
|
-
properties: {
|
|
175
|
-
showColor: {
|
|
176
|
-
type: 'boolean',
|
|
177
|
-
label: 'Show Color',
|
|
178
|
-
category: 'Tools',
|
|
179
|
-
requiresRestart: false,
|
|
180
|
-
default: false,
|
|
181
|
-
description: 'Show color in shell output.',
|
|
182
|
-
showInDialog: true,
|
|
183
|
-
},
|
|
184
|
-
enableInteractiveShell: {
|
|
185
|
-
type: 'boolean',
|
|
186
|
-
label: 'Enable Interactive Shell',
|
|
187
|
-
category: 'Tools',
|
|
188
|
-
requiresRestart: true,
|
|
189
|
-
default: true,
|
|
190
|
-
description: 'Enable interactive shell mode.',
|
|
191
|
-
showInDialog: true,
|
|
192
|
-
},
|
|
193
|
-
pager: {
|
|
194
|
-
type: 'string',
|
|
195
|
-
label: 'Pager',
|
|
196
|
-
category: 'Tools',
|
|
197
|
-
requiresRestart: false,
|
|
198
|
-
default: 'cat',
|
|
199
|
-
description: 'The pager command to use for shell output.',
|
|
200
|
-
showInDialog: true,
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
|
-
};
|
|
207
|
-
// Helper function to render SettingsDialog with standard wrapper
|
|
208
|
-
const renderDialog = (settings, onSelect, options) => render(_jsx(KeypressProvider, { children: _jsx(SettingsDialog, { settings: settings, onSelect: onSelect, onRestartRequest: options?.onRestartRequest, availableTerminalHeight: options?.availableTerminalHeight }) }));
|
|
209
|
-
describe('SettingsDialog', () => {
|
|
210
|
-
beforeEach(() => {
|
|
211
|
-
vi.clearAllMocks();
|
|
212
|
-
vi.spyOn(terminalCapabilityManager, 'isKittyProtocolEnabled').mockReturnValue(true);
|
|
213
|
-
mockToggleVimEnabled.mockRejectedValue(undefined);
|
|
214
|
-
});
|
|
215
|
-
afterEach(() => {
|
|
216
|
-
TEST_ONLY.clearFlattenedSchema();
|
|
217
|
-
vi.clearAllMocks();
|
|
218
|
-
vi.resetAllMocks();
|
|
219
|
-
});
|
|
220
|
-
describe('Initial Rendering', () => {
|
|
221
|
-
it('should render the settings dialog with default state', () => {
|
|
222
|
-
const settings = createMockSettings();
|
|
223
|
-
const onSelect = vi.fn();
|
|
224
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
225
|
-
const output = lastFrame();
|
|
226
|
-
expect(output).toContain('Settings');
|
|
227
|
-
expect(output).toContain('Apply To');
|
|
228
|
-
// Use regex for more flexible help text matching
|
|
229
|
-
expect(output).toMatch(/Enter.*select.*Esc.*close/);
|
|
230
|
-
});
|
|
231
|
-
it('should accept availableTerminalHeight prop without errors', () => {
|
|
232
|
-
const settings = createMockSettings();
|
|
233
|
-
const onSelect = vi.fn();
|
|
234
|
-
const { lastFrame } = renderDialog(settings, onSelect, {
|
|
235
|
-
availableTerminalHeight: 20,
|
|
236
|
-
});
|
|
237
|
-
const output = lastFrame();
|
|
238
|
-
// Should still render properly with the height prop
|
|
239
|
-
expect(output).toContain('Settings');
|
|
240
|
-
// Use regex for more flexible help text matching
|
|
241
|
-
expect(output).toMatch(/Enter.*select.*Esc.*close/);
|
|
242
|
-
});
|
|
243
|
-
it('should render settings list with visual indicators', () => {
|
|
244
|
-
const settings = createMockSettings();
|
|
245
|
-
const onSelect = vi.fn();
|
|
246
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
247
|
-
const output = lastFrame();
|
|
248
|
-
// Use snapshot to capture visual layout including indicators
|
|
249
|
-
expect(output).toMatchSnapshot();
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
describe('Setting Descriptions', () => {
|
|
253
|
-
it('should render descriptions for settings that have them', () => {
|
|
254
|
-
const settings = createMockSettings();
|
|
255
|
-
const onSelect = vi.fn();
|
|
256
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
257
|
-
const output = lastFrame();
|
|
258
|
-
// 'general.vimMode' has description 'Enable Vim keybindings' in settingsSchema.ts
|
|
259
|
-
expect(output).toContain('Vim Mode');
|
|
260
|
-
expect(output).toContain('Enable Vim keybindings');
|
|
261
|
-
// 'general.enableAutoUpdate' has description 'Enable automatic updates.'
|
|
262
|
-
expect(output).toContain('Enable Auto Update');
|
|
263
|
-
expect(output).toContain('Enable automatic updates.');
|
|
264
|
-
});
|
|
265
|
-
});
|
|
266
|
-
describe('Settings Navigation', () => {
|
|
267
|
-
it.each([
|
|
268
|
-
{
|
|
269
|
-
name: 'arrow keys',
|
|
270
|
-
down: TerminalKeys.DOWN_ARROW,
|
|
271
|
-
up: TerminalKeys.UP_ARROW,
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
name: 'vim keys (j/k)',
|
|
275
|
-
down: 'j',
|
|
276
|
-
up: 'k',
|
|
277
|
-
},
|
|
278
|
-
])('should navigate with $name', async ({ down, up }) => {
|
|
279
|
-
const settings = createMockSettings();
|
|
280
|
-
const onSelect = vi.fn();
|
|
281
|
-
const { stdin, unmount, lastFrame } = renderDialog(settings, onSelect);
|
|
282
|
-
const initialFrame = lastFrame();
|
|
283
|
-
expect(initialFrame).toContain('Vim Mode');
|
|
284
|
-
// Navigate down
|
|
285
|
-
act(() => {
|
|
286
|
-
stdin.write(down);
|
|
287
|
-
});
|
|
288
|
-
await waitFor(() => {
|
|
289
|
-
expect(lastFrame()).toContain('Enable Auto Update');
|
|
290
|
-
});
|
|
291
|
-
// Navigate up
|
|
292
|
-
act(() => {
|
|
293
|
-
stdin.write(up);
|
|
294
|
-
});
|
|
295
|
-
await waitFor(() => {
|
|
296
|
-
expect(lastFrame()).toContain('Vim Mode');
|
|
297
|
-
});
|
|
298
|
-
unmount();
|
|
299
|
-
});
|
|
300
|
-
it('wraps around when at the top of the list', async () => {
|
|
301
|
-
const settings = createMockSettings();
|
|
302
|
-
const onSelect = vi.fn();
|
|
303
|
-
const { stdin, unmount, lastFrame } = renderDialog(settings, onSelect);
|
|
304
|
-
// Try to go up from first item
|
|
305
|
-
act(() => {
|
|
306
|
-
stdin.write(TerminalKeys.UP_ARROW);
|
|
307
|
-
});
|
|
308
|
-
await waitFor(() => {
|
|
309
|
-
// Should wrap to last setting (without relying on exact bullet character)
|
|
310
|
-
expect(lastFrame()).toContain('Hook Notifications');
|
|
311
|
-
});
|
|
312
|
-
unmount();
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
describe('Settings Toggling', () => {
|
|
316
|
-
it('should toggle setting with Enter key', async () => {
|
|
317
|
-
vi.mocked(saveModifiedSettings).mockClear();
|
|
318
|
-
const settings = createMockSettings();
|
|
319
|
-
const onSelect = vi.fn();
|
|
320
|
-
const { stdin, unmount, lastFrame } = renderDialog(settings, onSelect);
|
|
321
|
-
// Wait for initial render and verify we're on Preview Features (first setting)
|
|
322
|
-
await waitFor(() => {
|
|
323
|
-
expect(lastFrame()).toContain('Preview Features (e.g., models)');
|
|
324
|
-
});
|
|
325
|
-
// Navigate to Vim Mode setting and verify we're there
|
|
326
|
-
act(() => {
|
|
327
|
-
stdin.write(TerminalKeys.DOWN_ARROW);
|
|
328
|
-
});
|
|
329
|
-
await waitFor(() => {
|
|
330
|
-
expect(lastFrame()).toContain('Vim Mode');
|
|
331
|
-
});
|
|
332
|
-
// Toggle the setting
|
|
333
|
-
act(() => {
|
|
334
|
-
stdin.write(TerminalKeys.ENTER);
|
|
335
|
-
});
|
|
336
|
-
// Wait for the setting change to be processed
|
|
337
|
-
await waitFor(() => {
|
|
338
|
-
expect(vi.mocked(saveModifiedSettings).mock.calls.length).toBeGreaterThan(0);
|
|
339
|
-
});
|
|
340
|
-
// Wait for the mock to be called
|
|
341
|
-
await waitFor(() => {
|
|
342
|
-
expect(vi.mocked(saveModifiedSettings)).toHaveBeenCalled();
|
|
343
|
-
});
|
|
344
|
-
expect(vi.mocked(saveModifiedSettings)).toHaveBeenCalledWith(new Set(['general.vimMode']), expect.objectContaining({
|
|
345
|
-
general: expect.objectContaining({
|
|
346
|
-
vimMode: true,
|
|
347
|
-
}),
|
|
348
|
-
}), expect.any(LoadedSettings), SettingScope.User);
|
|
349
|
-
unmount();
|
|
350
|
-
});
|
|
351
|
-
describe('enum values', () => {
|
|
352
|
-
it.each([
|
|
353
|
-
{
|
|
354
|
-
name: 'toggles to next value',
|
|
355
|
-
initialValue: undefined,
|
|
356
|
-
expectedValue: StringEnum.BAZ,
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
name: 'loops back to first value when at end',
|
|
360
|
-
initialValue: StringEnum.BAZ,
|
|
361
|
-
expectedValue: StringEnum.FOO,
|
|
362
|
-
},
|
|
363
|
-
])('$name', async ({ initialValue, expectedValue }) => {
|
|
364
|
-
vi.mocked(saveModifiedSettings).mockClear();
|
|
365
|
-
vi.mocked(getSettingsSchema).mockReturnValue(ENUM_FAKE_SCHEMA);
|
|
366
|
-
const settings = createMockSettings();
|
|
367
|
-
if (initialValue !== undefined) {
|
|
368
|
-
settings.setValue(SettingScope.User, 'ui.theme', initialValue);
|
|
369
|
-
}
|
|
370
|
-
const onSelect = vi.fn();
|
|
371
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
372
|
-
act(() => {
|
|
373
|
-
stdin.write(TerminalKeys.DOWN_ARROW);
|
|
374
|
-
stdin.write(TerminalKeys.ENTER);
|
|
375
|
-
});
|
|
376
|
-
await waitFor(() => {
|
|
377
|
-
expect(vi.mocked(saveModifiedSettings)).toHaveBeenCalled();
|
|
378
|
-
});
|
|
379
|
-
expect(vi.mocked(saveModifiedSettings)).toHaveBeenCalledWith(new Set(['ui.theme']), expect.objectContaining({
|
|
380
|
-
ui: expect.objectContaining({
|
|
381
|
-
theme: expectedValue,
|
|
382
|
-
}),
|
|
383
|
-
}), expect.any(LoadedSettings), SettingScope.User);
|
|
384
|
-
unmount();
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
it('should handle vim mode setting specially', async () => {
|
|
388
|
-
const settings = createMockSettings();
|
|
389
|
-
const onSelect = vi.fn();
|
|
390
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
391
|
-
// Navigate to vim mode setting and toggle it
|
|
392
|
-
// This would require knowing the exact position, so we'll just test that the mock is called
|
|
393
|
-
act(() => {
|
|
394
|
-
stdin.write(TerminalKeys.ENTER); // Enter key
|
|
395
|
-
});
|
|
396
|
-
// The mock should potentially be called if vim mode was toggled
|
|
397
|
-
unmount();
|
|
398
|
-
});
|
|
399
|
-
});
|
|
400
|
-
describe('Scope Selection', () => {
|
|
401
|
-
it('should switch between scopes', async () => {
|
|
402
|
-
const settings = createMockSettings();
|
|
403
|
-
const onSelect = vi.fn();
|
|
404
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
405
|
-
// Switch to scope focus
|
|
406
|
-
act(() => {
|
|
407
|
-
stdin.write(TerminalKeys.TAB); // Tab key
|
|
408
|
-
// Select different scope (numbers 1-3 typically available)
|
|
409
|
-
stdin.write('2'); // Select second scope option
|
|
410
|
-
});
|
|
411
|
-
unmount();
|
|
412
|
-
});
|
|
413
|
-
it('should reset to settings focus when scope is selected', async () => {
|
|
414
|
-
const settings = createMockSettings();
|
|
415
|
-
const onSelect = vi.fn();
|
|
416
|
-
const { lastFrame, unmount } = renderDialog(settings, onSelect);
|
|
417
|
-
// Wait for initial render
|
|
418
|
-
await waitFor(() => {
|
|
419
|
-
expect(lastFrame()).toContain('Vim Mode');
|
|
420
|
-
});
|
|
421
|
-
// The UI should show the settings section is active and scope section is inactive
|
|
422
|
-
expect(lastFrame()).toContain('Vim Mode'); // Settings section active
|
|
423
|
-
expect(lastFrame()).toContain('Apply To'); // Scope section (don't rely on exact spacing)
|
|
424
|
-
// This test validates the initial state - scope selection behavior
|
|
425
|
-
// is complex due to keypress handling, so we focus on state validation
|
|
426
|
-
unmount();
|
|
427
|
-
});
|
|
428
|
-
});
|
|
429
|
-
describe('Restart Prompt', () => {
|
|
430
|
-
it('should show restart prompt for restart-required settings', async () => {
|
|
431
|
-
const settings = createMockSettings();
|
|
432
|
-
const onRestartRequest = vi.fn();
|
|
433
|
-
const { unmount } = renderDialog(settings, vi.fn(), {
|
|
434
|
-
onRestartRequest,
|
|
435
|
-
});
|
|
436
|
-
// This test would need to trigger a restart-required setting change
|
|
437
|
-
// The exact steps depend on which settings require restart
|
|
438
|
-
unmount();
|
|
439
|
-
});
|
|
440
|
-
it('should handle restart request when r is pressed', async () => {
|
|
441
|
-
const settings = createMockSettings();
|
|
442
|
-
const onRestartRequest = vi.fn();
|
|
443
|
-
const { stdin, unmount } = renderDialog(settings, vi.fn(), {
|
|
444
|
-
onRestartRequest,
|
|
445
|
-
});
|
|
446
|
-
// Press 'r' key (this would only work if restart prompt is showing)
|
|
447
|
-
act(() => {
|
|
448
|
-
stdin.write('r');
|
|
449
|
-
});
|
|
450
|
-
// If restart prompt was showing, onRestartRequest should be called
|
|
451
|
-
unmount();
|
|
452
|
-
});
|
|
453
|
-
});
|
|
454
|
-
describe('Escape Key Behavior', () => {
|
|
455
|
-
it('should call onSelect with undefined when Escape is pressed', async () => {
|
|
456
|
-
const settings = createMockSettings();
|
|
457
|
-
const onSelect = vi.fn();
|
|
458
|
-
const { lastFrame, unmount } = renderDialog(settings, onSelect);
|
|
459
|
-
// Wait for initial render
|
|
460
|
-
await waitFor(() => {
|
|
461
|
-
expect(lastFrame()).toContain('Vim Mode');
|
|
462
|
-
});
|
|
463
|
-
// Verify the dialog is rendered properly
|
|
464
|
-
expect(lastFrame()).toContain('Settings');
|
|
465
|
-
expect(lastFrame()).toContain('Apply To');
|
|
466
|
-
// This test validates rendering - escape key behavior depends on complex
|
|
467
|
-
// keypress handling that's difficult to test reliably in this environment
|
|
468
|
-
unmount();
|
|
469
|
-
});
|
|
470
|
-
});
|
|
471
|
-
describe('Settings Persistence', () => {
|
|
472
|
-
it('should persist settings across scope changes', async () => {
|
|
473
|
-
const settings = createMockSettings({ vimMode: true });
|
|
474
|
-
const onSelect = vi.fn();
|
|
475
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
476
|
-
// Switch to scope selector and change scope
|
|
477
|
-
act(() => {
|
|
478
|
-
stdin.write(TerminalKeys.TAB); // Tab
|
|
479
|
-
stdin.write('2'); // Select workspace scope
|
|
480
|
-
});
|
|
481
|
-
// Settings should be reloaded for new scope
|
|
482
|
-
unmount();
|
|
483
|
-
});
|
|
484
|
-
it('should show different values for different scopes', () => {
|
|
485
|
-
const settings = createMockSettings({ vimMode: true }, // User settings
|
|
486
|
-
{ vimMode: false }, // System settings
|
|
487
|
-
{ autoUpdate: false });
|
|
488
|
-
const onSelect = vi.fn();
|
|
489
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
490
|
-
// Should show user scope values initially
|
|
491
|
-
const output = lastFrame();
|
|
492
|
-
expect(output).toContain('Settings');
|
|
493
|
-
});
|
|
494
|
-
});
|
|
495
|
-
describe('Error Handling', () => {
|
|
496
|
-
it('should handle vim mode toggle errors gracefully', async () => {
|
|
497
|
-
mockToggleVimEnabled.mockRejectedValue(new Error('Toggle failed'));
|
|
498
|
-
const settings = createMockSettings();
|
|
499
|
-
const onSelect = vi.fn();
|
|
500
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
501
|
-
// Try to toggle a setting (this might trigger vim mode toggle)
|
|
502
|
-
act(() => {
|
|
503
|
-
stdin.write(TerminalKeys.ENTER); // Enter
|
|
504
|
-
});
|
|
505
|
-
// Should not crash
|
|
506
|
-
unmount();
|
|
507
|
-
});
|
|
508
|
-
});
|
|
509
|
-
describe('Complex State Management', () => {
|
|
510
|
-
it('should track modified settings correctly', async () => {
|
|
511
|
-
const settings = createMockSettings();
|
|
512
|
-
const onSelect = vi.fn();
|
|
513
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
514
|
-
// Toggle a setting, then toggle another setting
|
|
515
|
-
act(() => {
|
|
516
|
-
stdin.write(TerminalKeys.ENTER); // Enter
|
|
517
|
-
stdin.write(TerminalKeys.DOWN_ARROW); // Down
|
|
518
|
-
stdin.write(TerminalKeys.ENTER); // Enter
|
|
519
|
-
});
|
|
520
|
-
// Should track multiple modified settings
|
|
521
|
-
unmount();
|
|
522
|
-
});
|
|
523
|
-
it('should handle scrolling when there are many settings', async () => {
|
|
524
|
-
const settings = createMockSettings();
|
|
525
|
-
const onSelect = vi.fn();
|
|
526
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
527
|
-
// Navigate down many times to test scrolling
|
|
528
|
-
act(() => {
|
|
529
|
-
for (let i = 0; i < 10; i++) {
|
|
530
|
-
stdin.write(TerminalKeys.DOWN_ARROW); // Down arrow
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
unmount();
|
|
534
|
-
});
|
|
535
|
-
});
|
|
536
|
-
describe('VimMode Integration', () => {
|
|
537
|
-
it('should sync with VimModeContext when vim mode is toggled', async () => {
|
|
538
|
-
const settings = createMockSettings();
|
|
539
|
-
const onSelect = vi.fn();
|
|
540
|
-
const { stdin, unmount } = render(_jsx(VimModeProvider, { settings: settings, children: _jsx(KeypressProvider, { children: _jsx(SettingsDialog, { settings: settings, onSelect: onSelect }) }) }));
|
|
541
|
-
// Navigate to and toggle vim mode setting
|
|
542
|
-
// This would require knowing the exact position of vim mode setting
|
|
543
|
-
act(() => {
|
|
544
|
-
stdin.write(TerminalKeys.ENTER); // Enter
|
|
545
|
-
});
|
|
546
|
-
unmount();
|
|
547
|
-
});
|
|
548
|
-
});
|
|
549
|
-
describe('Specific Settings Behavior', () => {
|
|
550
|
-
it('should show correct display values for settings with different states', () => {
|
|
551
|
-
const settings = createMockSettings({ vimMode: true, hideTips: false }, // User settings
|
|
552
|
-
{ hideWindowTitle: true }, // System settings
|
|
553
|
-
{ ideMode: false });
|
|
554
|
-
const onSelect = vi.fn();
|
|
555
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
556
|
-
const output = lastFrame();
|
|
557
|
-
// Should contain settings labels
|
|
558
|
-
expect(output).toContain('Settings');
|
|
559
|
-
});
|
|
560
|
-
it('should handle immediate settings save for non-restart-required settings', async () => {
|
|
561
|
-
const settings = createMockSettings();
|
|
562
|
-
const onSelect = vi.fn();
|
|
563
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
564
|
-
// Toggle a non-restart-required setting (like hideTips)
|
|
565
|
-
act(() => {
|
|
566
|
-
stdin.write(TerminalKeys.ENTER); // Enter - toggle current setting
|
|
567
|
-
});
|
|
568
|
-
// Should save immediately without showing restart prompt
|
|
569
|
-
unmount();
|
|
570
|
-
});
|
|
571
|
-
it('should show restart prompt for restart-required settings', async () => {
|
|
572
|
-
const settings = createMockSettings();
|
|
573
|
-
const onSelect = vi.fn();
|
|
574
|
-
const { lastFrame, unmount } = renderDialog(settings, onSelect);
|
|
575
|
-
// This test would need to navigate to a specific restart-required setting
|
|
576
|
-
// Since we can't easily target specific settings, we test the general behavior
|
|
577
|
-
// Should not show restart prompt initially
|
|
578
|
-
await waitFor(() => {
|
|
579
|
-
expect(lastFrame()).not.toContain('To see changes, Gemini CLI must be restarted');
|
|
580
|
-
});
|
|
581
|
-
unmount();
|
|
582
|
-
});
|
|
583
|
-
it('should clear restart prompt when switching scopes', async () => {
|
|
584
|
-
const settings = createMockSettings();
|
|
585
|
-
const onSelect = vi.fn();
|
|
586
|
-
const { unmount } = renderDialog(settings, onSelect);
|
|
587
|
-
// Restart prompt should be cleared when switching scopes
|
|
588
|
-
unmount();
|
|
589
|
-
});
|
|
590
|
-
});
|
|
591
|
-
describe('Settings Display Values', () => {
|
|
592
|
-
it('should show correct values for inherited settings', () => {
|
|
593
|
-
const settings = createMockSettings({}, { vimMode: true, hideWindowTitle: false }, // System settings
|
|
594
|
-
{});
|
|
595
|
-
const onSelect = vi.fn();
|
|
596
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
597
|
-
const output = lastFrame();
|
|
598
|
-
// Settings should show inherited values
|
|
599
|
-
expect(output).toContain('Settings');
|
|
600
|
-
});
|
|
601
|
-
it('should show override indicator for overridden settings', () => {
|
|
602
|
-
const settings = createMockSettings({ vimMode: false }, // User overrides
|
|
603
|
-
{ vimMode: true }, // System default
|
|
604
|
-
{});
|
|
605
|
-
const onSelect = vi.fn();
|
|
606
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
607
|
-
const output = lastFrame();
|
|
608
|
-
// Should show settings with override indicators
|
|
609
|
-
expect(output).toContain('Settings');
|
|
610
|
-
});
|
|
611
|
-
});
|
|
612
|
-
describe('Race Condition Regression Tests', () => {
|
|
613
|
-
it.each([
|
|
614
|
-
{
|
|
615
|
-
name: 'not reset sibling settings when toggling a nested setting multiple times',
|
|
616
|
-
toggleCount: 5,
|
|
617
|
-
shellSettings: {
|
|
618
|
-
showColor: false,
|
|
619
|
-
enableInteractiveShell: true,
|
|
620
|
-
},
|
|
621
|
-
expectedSiblings: {
|
|
622
|
-
enableInteractiveShell: true,
|
|
623
|
-
},
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
name: 'preserve multiple sibling settings in nested objects during rapid toggles',
|
|
627
|
-
toggleCount: 3,
|
|
628
|
-
shellSettings: {
|
|
629
|
-
showColor: false,
|
|
630
|
-
enableInteractiveShell: true,
|
|
631
|
-
pager: 'less',
|
|
632
|
-
},
|
|
633
|
-
expectedSiblings: {
|
|
634
|
-
enableInteractiveShell: true,
|
|
635
|
-
pager: 'less',
|
|
636
|
-
},
|
|
637
|
-
},
|
|
638
|
-
])('should $name', async ({ toggleCount, shellSettings, expectedSiblings }) => {
|
|
639
|
-
vi.mocked(saveModifiedSettings).mockClear();
|
|
640
|
-
vi.mocked(getSettingsSchema).mockReturnValue(TOOLS_SHELL_FAKE_SCHEMA);
|
|
641
|
-
const settings = createMockSettings({
|
|
642
|
-
tools: {
|
|
643
|
-
shell: shellSettings,
|
|
644
|
-
},
|
|
645
|
-
});
|
|
646
|
-
const onSelect = vi.fn();
|
|
647
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
648
|
-
for (let i = 0; i < toggleCount; i++) {
|
|
649
|
-
act(() => {
|
|
650
|
-
stdin.write(TerminalKeys.ENTER);
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
await waitFor(() => {
|
|
654
|
-
expect(vi.mocked(saveModifiedSettings).mock.calls.length).toBeGreaterThan(0);
|
|
655
|
-
});
|
|
656
|
-
const calls = vi.mocked(saveModifiedSettings).mock.calls;
|
|
657
|
-
calls.forEach((call) => {
|
|
658
|
-
const [modifiedKeys, pendingSettings] = call;
|
|
659
|
-
if (modifiedKeys.has('tools.shell.showColor')) {
|
|
660
|
-
const shellSettings = pendingSettings.tools?.shell;
|
|
661
|
-
Object.entries(expectedSiblings).forEach(([key, value]) => {
|
|
662
|
-
expect(shellSettings?.[key]).toBe(value);
|
|
663
|
-
expect(modifiedKeys.has(`tools.shell.${key}`)).toBe(false);
|
|
664
|
-
});
|
|
665
|
-
expect(modifiedKeys.size).toBe(1);
|
|
666
|
-
}
|
|
667
|
-
});
|
|
668
|
-
expect(calls.length).toBeGreaterThan(0);
|
|
669
|
-
unmount();
|
|
670
|
-
});
|
|
671
|
-
});
|
|
672
|
-
describe('Keyboard Shortcuts Edge Cases', () => {
|
|
673
|
-
it('should handle rapid key presses gracefully', async () => {
|
|
674
|
-
const settings = createMockSettings();
|
|
675
|
-
const onSelect = vi.fn();
|
|
676
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
677
|
-
// Rapid navigation
|
|
678
|
-
act(() => {
|
|
679
|
-
for (let i = 0; i < 5; i++) {
|
|
680
|
-
stdin.write(TerminalKeys.DOWN_ARROW);
|
|
681
|
-
stdin.write(TerminalKeys.UP_ARROW);
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
// Should not crash
|
|
685
|
-
unmount();
|
|
686
|
-
});
|
|
687
|
-
it.each([
|
|
688
|
-
{ key: 'Ctrl+C', code: '\u0003' },
|
|
689
|
-
{ key: 'Ctrl+L', code: '\u000C' },
|
|
690
|
-
])('should handle $key to reset current setting to default', async ({ code }) => {
|
|
691
|
-
const settings = createMockSettings({ vimMode: true });
|
|
692
|
-
const onSelect = vi.fn();
|
|
693
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
694
|
-
act(() => {
|
|
695
|
-
stdin.write(code);
|
|
696
|
-
});
|
|
697
|
-
// Should reset the current setting to its default value
|
|
698
|
-
unmount();
|
|
699
|
-
});
|
|
700
|
-
it('should handle navigation when only one setting exists', async () => {
|
|
701
|
-
const settings = createMockSettings();
|
|
702
|
-
const onSelect = vi.fn();
|
|
703
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
704
|
-
// Try to navigate when potentially at bounds
|
|
705
|
-
act(() => {
|
|
706
|
-
stdin.write(TerminalKeys.DOWN_ARROW);
|
|
707
|
-
stdin.write(TerminalKeys.UP_ARROW);
|
|
708
|
-
});
|
|
709
|
-
unmount();
|
|
710
|
-
});
|
|
711
|
-
it('should properly handle Tab navigation between sections', async () => {
|
|
712
|
-
const settings = createMockSettings();
|
|
713
|
-
const onSelect = vi.fn();
|
|
714
|
-
const { lastFrame, unmount } = renderDialog(settings, onSelect);
|
|
715
|
-
// Wait for initial render
|
|
716
|
-
await waitFor(() => {
|
|
717
|
-
expect(lastFrame()).toContain('Vim Mode');
|
|
718
|
-
});
|
|
719
|
-
// Verify initial state: settings section active, scope section inactive
|
|
720
|
-
expect(lastFrame()).toContain('Vim Mode'); // Settings section active
|
|
721
|
-
expect(lastFrame()).toContain('Apply To'); // Scope section (don't rely on exact spacing)
|
|
722
|
-
// This test validates the rendered UI structure for tab navigation
|
|
723
|
-
// Actual tab behavior testing is complex due to keypress handling
|
|
724
|
-
unmount();
|
|
725
|
-
});
|
|
726
|
-
});
|
|
727
|
-
describe('Error Recovery', () => {
|
|
728
|
-
it('should handle malformed settings gracefully', () => {
|
|
729
|
-
// Create settings with potentially problematic values
|
|
730
|
-
const settings = createMockSettings({ vimMode: null }, // Invalid value
|
|
731
|
-
{}, {});
|
|
732
|
-
const onSelect = vi.fn();
|
|
733
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
734
|
-
// Should still render without crashing
|
|
735
|
-
expect(lastFrame()).toContain('Settings');
|
|
736
|
-
});
|
|
737
|
-
it('should handle missing setting definitions gracefully', () => {
|
|
738
|
-
const settings = createMockSettings();
|
|
739
|
-
const onSelect = vi.fn();
|
|
740
|
-
// Should not crash even if some settings are missing definitions
|
|
741
|
-
const { lastFrame } = renderDialog(settings, onSelect);
|
|
742
|
-
expect(lastFrame()).toContain('Settings');
|
|
743
|
-
});
|
|
744
|
-
});
|
|
745
|
-
describe('Complex User Interactions', () => {
|
|
746
|
-
it('should handle complete user workflow: navigate, toggle, change scope, exit', async () => {
|
|
747
|
-
const settings = createMockSettings();
|
|
748
|
-
const onSelect = vi.fn();
|
|
749
|
-
const { lastFrame, unmount } = renderDialog(settings, onSelect);
|
|
750
|
-
// Wait for initial render
|
|
751
|
-
await waitFor(() => {
|
|
752
|
-
expect(lastFrame()).toContain('Vim Mode');
|
|
753
|
-
});
|
|
754
|
-
// Verify the complete UI is rendered with all necessary sections
|
|
755
|
-
expect(lastFrame()).toContain('Settings'); // Title
|
|
756
|
-
expect(lastFrame()).toContain('Vim Mode'); // Active setting
|
|
757
|
-
expect(lastFrame()).toContain('Apply To'); // Scope section
|
|
758
|
-
expect(lastFrame()).toContain('User Settings'); // Scope options (no numbers when settings focused)
|
|
759
|
-
// Use regex for more flexible help text matching
|
|
760
|
-
expect(lastFrame()).toMatch(/Enter.*select.*Tab.*focus.*Esc.*close/);
|
|
761
|
-
// This test validates the complete UI structure is available for user workflow
|
|
762
|
-
// Individual interactions are tested in focused unit tests
|
|
763
|
-
unmount();
|
|
764
|
-
});
|
|
765
|
-
it('should allow changing multiple settings without losing pending changes', async () => {
|
|
766
|
-
const settings = createMockSettings();
|
|
767
|
-
const onSelect = vi.fn();
|
|
768
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
769
|
-
// Toggle multiple settings
|
|
770
|
-
act(() => {
|
|
771
|
-
stdin.write(TerminalKeys.ENTER); // Enter
|
|
772
|
-
stdin.write(TerminalKeys.DOWN_ARROW); // Down
|
|
773
|
-
stdin.write(TerminalKeys.ENTER); // Enter
|
|
774
|
-
stdin.write(TerminalKeys.DOWN_ARROW); // Down
|
|
775
|
-
stdin.write(TerminalKeys.ENTER); // Enter
|
|
776
|
-
});
|
|
777
|
-
// The test verifies that all changes are preserved and the dialog still works
|
|
778
|
-
// This tests the fix for the bug where changing one setting would reset all pending changes
|
|
779
|
-
unmount();
|
|
780
|
-
});
|
|
781
|
-
it('should maintain state consistency during complex interactions', async () => {
|
|
782
|
-
const settings = createMockSettings({ vimMode: true });
|
|
783
|
-
const onSelect = vi.fn();
|
|
784
|
-
const { stdin, unmount } = renderDialog(settings, onSelect);
|
|
785
|
-
// Multiple scope changes
|
|
786
|
-
act(() => {
|
|
787
|
-
stdin.write(TerminalKeys.TAB); // Tab to scope
|
|
788
|
-
stdin.write('2'); // Workspace
|
|
789
|
-
stdin.write(TerminalKeys.TAB); // Tab to settings
|
|
790
|
-
stdin.write(TerminalKeys.TAB); // Tab to scope
|
|
791
|
-
stdin.write('1'); // User
|
|
792
|
-
});
|
|
793
|
-
// Should maintain consistent state
|
|
794
|
-
unmount();
|
|
795
|
-
});
|
|
796
|
-
it('should handle restart workflow correctly', async () => {
|
|
797
|
-
const settings = createMockSettings();
|
|
798
|
-
const onRestartRequest = vi.fn();
|
|
799
|
-
const { stdin, unmount } = renderDialog(settings, vi.fn(), {
|
|
800
|
-
onRestartRequest,
|
|
801
|
-
});
|
|
802
|
-
// This would test the restart workflow if we could trigger it
|
|
803
|
-
act(() => {
|
|
804
|
-
stdin.write('r'); // Try restart key
|
|
805
|
-
});
|
|
806
|
-
// Without restart prompt showing, this should have no effect
|
|
807
|
-
expect(onRestartRequest).not.toHaveBeenCalled();
|
|
808
|
-
unmount();
|
|
809
|
-
});
|
|
810
|
-
});
|
|
811
|
-
describe('String Settings Editing', () => {
|
|
812
|
-
it('should allow editing and committing a string setting', async () => {
|
|
813
|
-
let settings = createMockSettings({ 'a.string.setting': 'initial' });
|
|
814
|
-
const onSelect = vi.fn();
|
|
815
|
-
const { stdin, unmount, rerender } = render(_jsx(KeypressProvider, { children: _jsx(SettingsDialog, { settings: settings, onSelect: onSelect }) }));
|
|
816
|
-
// Navigate to the last setting
|
|
817
|
-
act(() => {
|
|
818
|
-
for (let i = 0; i < 20; i++) {
|
|
819
|
-
stdin.write('j'); // Down
|
|
820
|
-
}
|
|
821
|
-
});
|
|
822
|
-
// Press Enter to start editing, type new value, and commit
|
|
823
|
-
act(() => {
|
|
824
|
-
stdin.write('\r'); // Start editing
|
|
825
|
-
stdin.write('new value');
|
|
826
|
-
stdin.write('\r'); // Commit
|
|
827
|
-
});
|
|
828
|
-
settings = createMockSettings({ 'a.string.setting': 'new value' }, {}, {});
|
|
829
|
-
rerender(_jsx(KeypressProvider, { children: _jsx(SettingsDialog, { settings: settings, onSelect: onSelect }) }));
|
|
830
|
-
// Press Escape to exit
|
|
831
|
-
act(() => {
|
|
832
|
-
stdin.write('\u001B');
|
|
833
|
-
});
|
|
834
|
-
await waitFor(() => {
|
|
835
|
-
expect(onSelect).toHaveBeenCalledWith(undefined, 'User');
|
|
836
|
-
});
|
|
837
|
-
unmount();
|
|
838
|
-
});
|
|
839
|
-
});
|
|
840
|
-
describe('Search Functionality', () => {
|
|
841
|
-
it('should display text entered in search', async () => {
|
|
842
|
-
const settings = createMockSettings();
|
|
843
|
-
const onSelect = vi.fn();
|
|
844
|
-
const { lastFrame, stdin, unmount } = renderDialog(settings, onSelect);
|
|
845
|
-
// Wait for initial render and verify that search is not active
|
|
846
|
-
await waitFor(() => {
|
|
847
|
-
expect(lastFrame()).not.toContain('> Search:');
|
|
848
|
-
});
|
|
849
|
-
expect(lastFrame()).toContain('Search to filter');
|
|
850
|
-
// Press '/' to enter search mode
|
|
851
|
-
act(() => {
|
|
852
|
-
stdin.write('/');
|
|
853
|
-
});
|
|
854
|
-
await waitFor(() => {
|
|
855
|
-
expect(lastFrame()).toContain('/');
|
|
856
|
-
expect(lastFrame()).not.toContain('Search to filter');
|
|
857
|
-
});
|
|
858
|
-
unmount();
|
|
859
|
-
});
|
|
860
|
-
it('should show search query and filter settings as user types', async () => {
|
|
861
|
-
const settings = createMockSettings();
|
|
862
|
-
const onSelect = vi.fn();
|
|
863
|
-
const { lastFrame, stdin, unmount } = renderDialog(settings, onSelect);
|
|
864
|
-
act(() => {
|
|
865
|
-
stdin.write('yolo');
|
|
866
|
-
});
|
|
867
|
-
await waitFor(() => {
|
|
868
|
-
expect(lastFrame()).toContain('yolo');
|
|
869
|
-
expect(lastFrame()).toContain('Disable YOLO Mode');
|
|
870
|
-
});
|
|
871
|
-
unmount();
|
|
872
|
-
});
|
|
873
|
-
it('should exit search settings when Escape is pressed', async () => {
|
|
874
|
-
const settings = createMockSettings();
|
|
875
|
-
const onSelect = vi.fn();
|
|
876
|
-
const { lastFrame, stdin, unmount } = renderDialog(settings, onSelect);
|
|
877
|
-
act(() => {
|
|
878
|
-
stdin.write('vim');
|
|
879
|
-
});
|
|
880
|
-
await waitFor(() => {
|
|
881
|
-
expect(lastFrame()).toContain('vim');
|
|
882
|
-
});
|
|
883
|
-
// Press Escape
|
|
884
|
-
act(() => {
|
|
885
|
-
stdin.write(TerminalKeys.ESCAPE);
|
|
886
|
-
});
|
|
887
|
-
await waitFor(() => {
|
|
888
|
-
// onSelect is called with (settingName, scope).
|
|
889
|
-
// undefined settingName means "close dialog"
|
|
890
|
-
expect(onSelect).toHaveBeenCalledWith(undefined, expect.anything());
|
|
891
|
-
});
|
|
892
|
-
unmount();
|
|
893
|
-
});
|
|
894
|
-
it('should handle backspace to modify search query', async () => {
|
|
895
|
-
const settings = createMockSettings();
|
|
896
|
-
const onSelect = vi.fn();
|
|
897
|
-
const { lastFrame, stdin, unmount } = renderDialog(settings, onSelect);
|
|
898
|
-
act(() => {
|
|
899
|
-
stdin.write('vimm');
|
|
900
|
-
});
|
|
901
|
-
await waitFor(() => {
|
|
902
|
-
expect(lastFrame()).toContain('vimm');
|
|
903
|
-
});
|
|
904
|
-
// Press backspace
|
|
905
|
-
act(() => {
|
|
906
|
-
stdin.write(TerminalKeys.BACKSPACE);
|
|
907
|
-
});
|
|
908
|
-
await waitFor(() => {
|
|
909
|
-
expect(lastFrame()).toContain('vim');
|
|
910
|
-
expect(lastFrame()).toContain('Vim Mode');
|
|
911
|
-
expect(lastFrame()).not.toContain('Hook Notifications');
|
|
912
|
-
});
|
|
913
|
-
unmount();
|
|
914
|
-
});
|
|
915
|
-
it('should display nothing when search yields no results', async () => {
|
|
916
|
-
const settings = createMockSettings();
|
|
917
|
-
const onSelect = vi.fn();
|
|
918
|
-
const { lastFrame, stdin, unmount } = renderDialog(settings, onSelect);
|
|
919
|
-
// Type a search query that won't match any settings
|
|
920
|
-
act(() => {
|
|
921
|
-
stdin.write('nonexistentsetting');
|
|
922
|
-
});
|
|
923
|
-
await waitFor(() => {
|
|
924
|
-
expect(lastFrame()).toContain('nonexistentsetting');
|
|
925
|
-
expect(lastFrame()).toContain('');
|
|
926
|
-
expect(lastFrame()).not.toContain('Vim Mode'); // Should not contain any settings
|
|
927
|
-
expect(lastFrame()).not.toContain('Enable Auto Update'); // Should not contain any settings
|
|
928
|
-
});
|
|
929
|
-
unmount();
|
|
930
|
-
});
|
|
931
|
-
});
|
|
932
|
-
describe('Snapshot Tests', () => {
|
|
933
|
-
/**
|
|
934
|
-
* Snapshot tests for SettingsDialog component using ink-testing-library.
|
|
935
|
-
* These tests capture the visual output of the component in various states.
|
|
936
|
-
* The snapshots help ensure UI consistency and catch unintended visual changes.
|
|
937
|
-
*/
|
|
938
|
-
it.each([
|
|
939
|
-
{
|
|
940
|
-
name: 'default state',
|
|
941
|
-
userSettings: {},
|
|
942
|
-
systemSettings: {},
|
|
943
|
-
workspaceSettings: {},
|
|
944
|
-
stdinActions: undefined,
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
name: 'various boolean settings enabled',
|
|
948
|
-
userSettings: {
|
|
949
|
-
general: {
|
|
950
|
-
vimMode: true,
|
|
951
|
-
enableAutoUpdate: false,
|
|
952
|
-
debugKeystrokeLogging: true,
|
|
953
|
-
enablePromptCompletion: true,
|
|
954
|
-
},
|
|
955
|
-
ui: {
|
|
956
|
-
hideWindowTitle: true,
|
|
957
|
-
hideTips: true,
|
|
958
|
-
showMemoryUsage: true,
|
|
959
|
-
showLineNumbers: true,
|
|
960
|
-
showCitations: true,
|
|
961
|
-
accessibility: {
|
|
962
|
-
enableLoadingPhrases: false,
|
|
963
|
-
screenReader: true,
|
|
964
|
-
},
|
|
965
|
-
},
|
|
966
|
-
ide: {
|
|
967
|
-
enabled: true,
|
|
968
|
-
},
|
|
969
|
-
context: {
|
|
970
|
-
loadMemoryFromIncludeDirectories: true,
|
|
971
|
-
fileFiltering: {
|
|
972
|
-
respectGitIgnore: true,
|
|
973
|
-
respectGeminiIgnore: true,
|
|
974
|
-
enableRecursiveFileSearch: true,
|
|
975
|
-
enableFuzzySearch: true,
|
|
976
|
-
},
|
|
977
|
-
},
|
|
978
|
-
tools: {
|
|
979
|
-
enableInteractiveShell: true,
|
|
980
|
-
autoAccept: true,
|
|
981
|
-
useRipgrep: true,
|
|
982
|
-
},
|
|
983
|
-
security: {
|
|
984
|
-
folderTrust: {
|
|
985
|
-
enabled: true,
|
|
986
|
-
},
|
|
987
|
-
},
|
|
988
|
-
},
|
|
989
|
-
systemSettings: {},
|
|
990
|
-
workspaceSettings: {},
|
|
991
|
-
stdinActions: undefined,
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
name: 'mixed boolean and number settings',
|
|
995
|
-
userSettings: {
|
|
996
|
-
general: {
|
|
997
|
-
vimMode: false,
|
|
998
|
-
enableAutoUpdate: false,
|
|
999
|
-
},
|
|
1000
|
-
ui: {
|
|
1001
|
-
showMemoryUsage: true,
|
|
1002
|
-
hideWindowTitle: false,
|
|
1003
|
-
},
|
|
1004
|
-
tools: {
|
|
1005
|
-
truncateToolOutputThreshold: 50000,
|
|
1006
|
-
truncateToolOutputLines: 1000,
|
|
1007
|
-
},
|
|
1008
|
-
context: {
|
|
1009
|
-
discoveryMaxDirs: 500,
|
|
1010
|
-
},
|
|
1011
|
-
model: {
|
|
1012
|
-
maxSessionTurns: 100,
|
|
1013
|
-
skipNextSpeakerCheck: false,
|
|
1014
|
-
},
|
|
1015
|
-
},
|
|
1016
|
-
systemSettings: {},
|
|
1017
|
-
workspaceSettings: {},
|
|
1018
|
-
stdinActions: undefined,
|
|
1019
|
-
},
|
|
1020
|
-
{
|
|
1021
|
-
name: 'focused on scope selector',
|
|
1022
|
-
userSettings: {},
|
|
1023
|
-
systemSettings: {},
|
|
1024
|
-
workspaceSettings: {},
|
|
1025
|
-
stdinActions: (stdin) => {
|
|
1026
|
-
act(() => {
|
|
1027
|
-
stdin.write('\t');
|
|
1028
|
-
});
|
|
1029
|
-
},
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
name: 'accessibility settings enabled',
|
|
1033
|
-
userSettings: {
|
|
1034
|
-
ui: {
|
|
1035
|
-
accessibility: {
|
|
1036
|
-
enableLoadingPhrases: false,
|
|
1037
|
-
screenReader: true,
|
|
1038
|
-
},
|
|
1039
|
-
showMemoryUsage: true,
|
|
1040
|
-
showLineNumbers: true,
|
|
1041
|
-
},
|
|
1042
|
-
general: {
|
|
1043
|
-
vimMode: true,
|
|
1044
|
-
},
|
|
1045
|
-
},
|
|
1046
|
-
systemSettings: {},
|
|
1047
|
-
workspaceSettings: {},
|
|
1048
|
-
stdinActions: undefined,
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
name: 'file filtering settings configured',
|
|
1052
|
-
userSettings: {
|
|
1053
|
-
context: {
|
|
1054
|
-
fileFiltering: {
|
|
1055
|
-
respectGitIgnore: false,
|
|
1056
|
-
respectGeminiIgnore: true,
|
|
1057
|
-
enableRecursiveFileSearch: false,
|
|
1058
|
-
enableFuzzySearch: false,
|
|
1059
|
-
},
|
|
1060
|
-
loadMemoryFromIncludeDirectories: true,
|
|
1061
|
-
discoveryMaxDirs: 100,
|
|
1062
|
-
},
|
|
1063
|
-
},
|
|
1064
|
-
systemSettings: {},
|
|
1065
|
-
workspaceSettings: {},
|
|
1066
|
-
stdinActions: undefined,
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
name: 'tools and security settings',
|
|
1070
|
-
userSettings: {
|
|
1071
|
-
tools: {
|
|
1072
|
-
enableInteractiveShell: true,
|
|
1073
|
-
autoAccept: false,
|
|
1074
|
-
useRipgrep: true,
|
|
1075
|
-
truncateToolOutputThreshold: 25000,
|
|
1076
|
-
truncateToolOutputLines: 500,
|
|
1077
|
-
},
|
|
1078
|
-
security: {
|
|
1079
|
-
folderTrust: {
|
|
1080
|
-
enabled: true,
|
|
1081
|
-
},
|
|
1082
|
-
},
|
|
1083
|
-
model: {
|
|
1084
|
-
maxSessionTurns: 50,
|
|
1085
|
-
skipNextSpeakerCheck: true,
|
|
1086
|
-
},
|
|
1087
|
-
},
|
|
1088
|
-
systemSettings: {},
|
|
1089
|
-
workspaceSettings: {},
|
|
1090
|
-
stdinActions: undefined,
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1093
|
-
name: 'all boolean settings disabled',
|
|
1094
|
-
userSettings: {
|
|
1095
|
-
general: {
|
|
1096
|
-
vimMode: false,
|
|
1097
|
-
enableAutoUpdate: true,
|
|
1098
|
-
debugKeystrokeLogging: false,
|
|
1099
|
-
enablePromptCompletion: false,
|
|
1100
|
-
},
|
|
1101
|
-
ui: {
|
|
1102
|
-
hideWindowTitle: false,
|
|
1103
|
-
hideTips: false,
|
|
1104
|
-
showMemoryUsage: false,
|
|
1105
|
-
showLineNumbers: false,
|
|
1106
|
-
showCitations: false,
|
|
1107
|
-
accessibility: {
|
|
1108
|
-
enableLoadingPhrases: true,
|
|
1109
|
-
screenReader: false,
|
|
1110
|
-
},
|
|
1111
|
-
},
|
|
1112
|
-
ide: {
|
|
1113
|
-
enabled: false,
|
|
1114
|
-
},
|
|
1115
|
-
context: {
|
|
1116
|
-
loadMemoryFromIncludeDirectories: false,
|
|
1117
|
-
fileFiltering: {
|
|
1118
|
-
respectGitIgnore: false,
|
|
1119
|
-
respectGeminiIgnore: false,
|
|
1120
|
-
enableRecursiveFileSearch: false,
|
|
1121
|
-
enableFuzzySearch: true,
|
|
1122
|
-
},
|
|
1123
|
-
},
|
|
1124
|
-
tools: {
|
|
1125
|
-
enableInteractiveShell: false,
|
|
1126
|
-
autoAccept: false,
|
|
1127
|
-
useRipgrep: false,
|
|
1128
|
-
},
|
|
1129
|
-
security: {
|
|
1130
|
-
folderTrust: {
|
|
1131
|
-
enabled: false,
|
|
1132
|
-
},
|
|
1133
|
-
},
|
|
1134
|
-
},
|
|
1135
|
-
systemSettings: {},
|
|
1136
|
-
workspaceSettings: {},
|
|
1137
|
-
stdinActions: undefined,
|
|
1138
|
-
},
|
|
1139
|
-
])('should render $name correctly', ({ userSettings, systemSettings, workspaceSettings, stdinActions }) => {
|
|
1140
|
-
const settings = createMockSettings(userSettings, systemSettings, workspaceSettings);
|
|
1141
|
-
const onSelect = vi.fn();
|
|
1142
|
-
const { lastFrame, stdin } = renderDialog(settings, onSelect);
|
|
1143
|
-
if (stdinActions) {
|
|
1144
|
-
stdinActions(stdin);
|
|
1145
|
-
}
|
|
1146
|
-
expect(lastFrame()).toMatchSnapshot();
|
|
1147
|
-
});
|
|
1148
|
-
});
|
|
1149
|
-
});
|
|
1150
|
-
//# sourceMappingURL=SettingsDialog.test.js.map
|