@didim365/agent-cli 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -3
- package/dist/src/commands/extensions/configure.test.d.ts +0 -1
- package/dist/src/commands/extensions/configure.test.js +0 -197
- package/dist/src/commands/extensions/configure.test.js.map +0 -1
- package/dist/src/commands/extensions/disable.test.d.ts +0 -6
- package/dist/src/commands/extensions/disable.test.js +0 -169
- package/dist/src/commands/extensions/disable.test.js.map +0 -1
- package/dist/src/commands/extensions/enable.test.d.ts +0 -6
- package/dist/src/commands/extensions/enable.test.js +0 -199
- package/dist/src/commands/extensions/enable.test.js.map +0 -1
- package/dist/src/commands/extensions/install.test.d.ts +0 -6
- package/dist/src/commands/extensions/install.test.js +0 -140
- package/dist/src/commands/extensions/install.test.js.map +0 -1
- package/dist/src/commands/extensions/link.test.d.ts +0 -6
- package/dist/src/commands/extensions/link.test.js +0 -137
- package/dist/src/commands/extensions/link.test.js.map +0 -1
- package/dist/src/commands/extensions/list.test.d.ts +0 -6
- package/dist/src/commands/extensions/list.test.js +0 -148
- package/dist/src/commands/extensions/list.test.js.map +0 -1
- package/dist/src/commands/extensions/new.test.d.ts +0 -6
- package/dist/src/commands/extensions/new.test.js +0 -62
- package/dist/src/commands/extensions/new.test.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.test.d.ts +0 -6
- package/dist/src/commands/extensions/uninstall.test.js +0 -199
- package/dist/src/commands/extensions/uninstall.test.js.map +0 -1
- package/dist/src/commands/extensions/update.test.d.ts +0 -6
- package/dist/src/commands/extensions/update.test.js +0 -170
- package/dist/src/commands/extensions/update.test.js.map +0 -1
- package/dist/src/commands/extensions/validate.test.d.ts +0 -6
- package/dist/src/commands/extensions/validate.test.js +0 -96
- package/dist/src/commands/extensions/validate.test.js.map +0 -1
- package/dist/src/commands/extensions.test.d.ts +0 -6
- package/dist/src/commands/extensions.test.js +0 -67
- package/dist/src/commands/extensions.test.js.map +0 -1
- package/dist/src/commands/hooks/migrate.test.d.ts +0 -6
- package/dist/src/commands/hooks/migrate.test.js +0 -388
- package/dist/src/commands/hooks/migrate.test.js.map +0 -1
- package/dist/src/commands/mcp/add.test.d.ts +0 -6
- package/dist/src/commands/mcp/add.test.js +0 -274
- package/dist/src/commands/mcp/add.test.js.map +0 -1
- package/dist/src/commands/mcp/list.test.d.ts +0 -6
- package/dist/src/commands/mcp/list.test.js +0 -150
- package/dist/src/commands/mcp/list.test.js.map +0 -1
- package/dist/src/commands/mcp/remove.test.d.ts +0 -6
- package/dist/src/commands/mcp/remove.test.js +0 -189
- package/dist/src/commands/mcp/remove.test.js.map +0 -1
- package/dist/src/commands/mcp.test.d.ts +0 -6
- package/dist/src/commands/mcp.test.js +0 -65
- package/dist/src/commands/mcp.test.js.map +0 -1
- package/dist/src/commands/skills/disable.test.d.ts +0 -6
- package/dist/src/commands/skills/disable.test.js +0 -96
- package/dist/src/commands/skills/disable.test.js.map +0 -1
- package/dist/src/commands/skills/enable.test.d.ts +0 -6
- package/dist/src/commands/skills/enable.test.js +0 -107
- package/dist/src/commands/skills/enable.test.js.map +0 -1
- package/dist/src/commands/skills/install.test.d.ts +0 -6
- package/dist/src/commands/skills/install.test.js +0 -95
- package/dist/src/commands/skills/install.test.js.map +0 -1
- package/dist/src/commands/skills/list.test.d.ts +0 -6
- package/dist/src/commands/skills/list.test.js +0 -136
- package/dist/src/commands/skills/list.test.js.map +0 -1
- package/dist/src/commands/skills/uninstall.test.d.ts +0 -6
- package/dist/src/commands/skills/uninstall.test.js +0 -61
- package/dist/src/commands/skills/uninstall.test.js.map +0 -1
- package/dist/src/commands/skills.test.d.ts +0 -6
- package/dist/src/commands/skills.test.js +0 -49
- package/dist/src/commands/skills.test.js.map +0 -1
- package/dist/src/commands/utils.test.d.ts +0 -6
- package/dist/src/commands/utils.test.js +0 -35
- package/dist/src/commands/utils.test.js.map +0 -1
- package/dist/src/config/auth.test.d.ts +0 -6
- package/dist/src/config/auth.test.js +0 -89
- package/dist/src/config/auth.test.js.map +0 -1
- package/dist/src/config/config.integration.test.d.ts +0 -6
- package/dist/src/config/config.integration.test.js +0 -205
- package/dist/src/config/config.integration.test.js.map +0 -1
- package/dist/src/config/config.test.d.ts +0 -6
- package/dist/src/config/config.test.js +0 -2413
- package/dist/src/config/config.test.js.map +0 -1
- package/dist/src/config/extension-manager-agents.test.d.ts +0 -6
- package/dist/src/config/extension-manager-agents.test.js +0 -114
- package/dist/src/config/extension-manager-agents.test.js.map +0 -1
- package/dist/src/config/extension-manager-scope.test.d.ts +0 -6
- package/dist/src/config/extension-manager-scope.test.js +0 -153
- package/dist/src/config/extension-manager-scope.test.js.map +0 -1
- package/dist/src/config/extension-manager-skills.test.d.ts +0 -6
- package/dist/src/config/extension-manager-skills.test.js +0 -148
- package/dist/src/config/extension-manager-skills.test.js.map +0 -1
- package/dist/src/config/extension.test.d.ts +0 -6
- package/dist/src/config/extension.test.js +0 -1671
- package/dist/src/config/extension.test.js.map +0 -1
- package/dist/src/config/extensions/consent.test.d.ts +0 -6
- package/dist/src/config/extensions/consent.test.js +0 -280
- package/dist/src/config/extensions/consent.test.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionEnablement.test.js +0 -404
- package/dist/src/config/extensions/extensionEnablement.test.js.map +0 -1
- package/dist/src/config/extensions/extensionSettings.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionSettings.test.js +0 -493
- package/dist/src/config/extensions/extensionSettings.test.js.map +0 -1
- package/dist/src/config/extensions/extensionUpdates.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionUpdates.test.js +0 -230
- package/dist/src/config/extensions/extensionUpdates.test.js.map +0 -1
- package/dist/src/config/extensions/github.test.d.ts +0 -6
- package/dist/src/config/extensions/github.test.js +0 -441
- package/dist/src/config/extensions/github.test.js.map +0 -1
- package/dist/src/config/extensions/github_fetch.test.d.ts +0 -6
- package/dist/src/config/extensions/github_fetch.test.js +0 -169
- package/dist/src/config/extensions/github_fetch.test.js.map +0 -1
- package/dist/src/config/extensions/storage.test.d.ts +0 -6
- package/dist/src/config/extensions/storage.test.js +0 -64
- package/dist/src/config/extensions/storage.test.js.map +0 -1
- package/dist/src/config/extensions/update.test.d.ts +0 -6
- package/dist/src/config/extensions/update.test.js +0 -231
- package/dist/src/config/extensions/update.test.js.map +0 -1
- package/dist/src/config/extensions/variables.test.d.ts +0 -6
- package/dist/src/config/extensions/variables.test.js +0 -103
- package/dist/src/config/extensions/variables.test.js.map +0 -1
- package/dist/src/config/keyBindings.test.d.ts +0 -6
- package/dist/src/config/keyBindings.test.js +0 -108
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/config/mcp/mcpServerEnablement.test.d.ts +0 -6
- package/dist/src/config/mcp/mcpServerEnablement.test.js +0 -147
- package/dist/src/config/mcp/mcpServerEnablement.test.js.map +0 -1
- package/dist/src/config/policy-engine.integration.test.d.ts +0 -6
- package/dist/src/config/policy-engine.integration.test.js +0 -353
- package/dist/src/config/policy-engine.integration.test.js.map +0 -1
- package/dist/src/config/sandboxConfig.test.d.ts +0 -6
- package/dist/src/config/sandboxConfig.test.js +0 -184
- package/dist/src/config/sandboxConfig.test.js.map +0 -1
- package/dist/src/config/settingPaths.test.d.ts +0 -6
- package/dist/src/config/settingPaths.test.js +0 -22
- package/dist/src/config/settingPaths.test.js.map +0 -1
- package/dist/src/config/settings-validation.test.d.ts +0 -6
- package/dist/src/config/settings-validation.test.js +0 -370
- package/dist/src/config/settings-validation.test.js.map +0 -1
- package/dist/src/config/settings.test.d.ts +0 -6
- package/dist/src/config/settings.test.js +0 -1822
- package/dist/src/config/settings.test.js.map +0 -1
- package/dist/src/config/settingsSchema.test.d.ts +0 -6
- package/dist/src/config/settingsSchema.test.js +0 -309
- package/dist/src/config/settingsSchema.test.js.map +0 -1
- package/dist/src/config/settings_repro.test.d.ts +0 -6
- package/dist/src/config/settings_repro.test.js +0 -166
- package/dist/src/config/settings_repro.test.js.map +0 -1
- package/dist/src/config/settings_validation_warning.test.d.ts +0 -6
- package/dist/src/config/settings_validation_warning.test.js +0 -123
- package/dist/src/config/settings_validation_warning.test.js.map +0 -1
- package/dist/src/config/skills-backward-compatibility.test.d.ts +0 -6
- package/dist/src/config/skills-backward-compatibility.test.js +0 -99
- package/dist/src/config/skills-backward-compatibility.test.js.map +0 -1
- package/dist/src/config/trustedFolders.test.d.ts +0 -6
- package/dist/src/config/trustedFolders.test.js +0 -385
- package/dist/src/config/trustedFolders.test.js.map +0 -1
- package/dist/src/core/auth.test.d.ts +0 -6
- package/dist/src/core/auth.test.js +0 -47
- package/dist/src/core/auth.test.js.map +0 -1
- package/dist/src/core/initializer.test.d.ts +0 -6
- package/dist/src/core/initializer.test.js +0 -101
- package/dist/src/core/initializer.test.js.map +0 -1
- package/dist/src/core/theme.test.d.ts +0 -6
- package/dist/src/core/theme.test.js +0 -46
- package/dist/src/core/theme.test.js.map +0 -1
- package/dist/src/deferred.test.d.ts +0 -6
- package/dist/src/deferred.test.js +0 -164
- package/dist/src/deferred.test.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -1334
- package/dist/src/gemini.test.js.map +0 -1
- package/dist/src/gemini_cleanup.test.d.ts +0 -6
- package/dist/src/gemini_cleanup.test.js +0 -208
- package/dist/src/gemini_cleanup.test.js.map +0 -1
- package/dist/src/nonInteractiveCli.test.d.ts +0 -6
- package/dist/src/nonInteractiveCli.test.js +0 -1687
- package/dist/src/nonInteractiveCli.test.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
- package/dist/src/services/BuiltinCommandLoader.test.js +0 -254
- package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
- package/dist/src/services/CommandService.test.d.ts +0 -6
- package/dist/src/services/CommandService.test.js +0 -234
- package/dist/src/services/CommandService.test.js.map +0 -1
- package/dist/src/services/FileCommandLoader.test.d.ts +0 -6
- package/dist/src/services/FileCommandLoader.test.js +0 -1102
- package/dist/src/services/FileCommandLoader.test.js.map +0 -1
- package/dist/src/services/McpPromptLoader.test.d.ts +0 -6
- package/dist/src/services/McpPromptLoader.test.js +0 -411
- package/dist/src/services/McpPromptLoader.test.js.map +0 -1
- package/dist/src/services/prompt-processors/argumentProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/argumentProcessor.test.js +0 -40
- package/dist/src/services/prompt-processors/argumentProcessor.test.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +0 -174
- package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/injectionParser.test.js +0 -189
- package/dist/src/services/prompt-processors/injectionParser.test.js.map +0 -1
- package/dist/src/services/prompt-processors/shellProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/shellProcessor.test.js +0 -514
- package/dist/src/services/prompt-processors/shellProcessor.test.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.test.d.ts +0 -6
- package/dist/src/test-utils/mockCommandContext.test.js +0 -51
- package/dist/src/test-utils/mockCommandContext.test.js.map +0 -1
- package/dist/src/test-utils/render.test.d.ts +0 -6
- package/dist/src/test-utils/render.test.js +0 -79
- package/dist/src/test-utils/render.test.js.map +0 -1
- package/dist/src/ui/App.test.d.ts +0 -6
- package/dist/src/ui/App.test.js +0 -218
- package/dist/src/ui/App.test.js.map +0 -1
- package/dist/src/ui/AppContainer.test.d.ts +0 -6
- package/dist/src/ui/AppContainer.test.js +0 -2072
- package/dist/src/ui/AppContainer.test.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.test.d.ts +0 -6
- package/dist/src/ui/IdeIntegrationNudge.test.js +0 -158
- package/dist/src/ui/IdeIntegrationNudge.test.js.map +0 -1
- package/dist/src/ui/auth/ApiAuthDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/ApiAuthDialog.test.js +0 -109
- package/dist/src/ui/auth/ApiAuthDialog.test.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/AuthDialog.test.js +0 -309
- package/dist/src/ui/auth/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/auth/AuthInProgress.test.d.ts +0 -6
- package/dist/src/ui/auth/AuthInProgress.test.js +0 -81
- package/dist/src/ui/auth/AuthInProgress.test.js.map +0 -1
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js +0 -66
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js.map +0 -1
- package/dist/src/ui/auth/useAuth.test.d.ts +0 -6
- package/dist/src/ui/auth/useAuth.test.js +0 -189
- package/dist/src/ui/auth/useAuth.test.js.map +0 -1
- package/dist/src/ui/commands/aboutCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/aboutCommand.test.js +0 -143
- package/dist/src/ui/commands/aboutCommand.test.js.map +0 -1
- package/dist/src/ui/commands/agentsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/agentsCommand.test.js +0 -344
- package/dist/src/ui/commands/agentsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/authCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/authCommand.test.js +0 -98
- package/dist/src/ui/commands/authCommand.test.js.map +0 -1
- package/dist/src/ui/commands/bugCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/bugCommand.test.js +0 -186
- package/dist/src/ui/commands/bugCommand.test.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/chatCommand.test.js +0 -620
- package/dist/src/ui/commands/chatCommand.test.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/clearCommand.test.js +0 -87
- package/dist/src/ui/commands/clearCommand.test.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/compressCommand.test.js +0 -98
- package/dist/src/ui/commands/compressCommand.test.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/copyCommand.test.js +0 -242
- package/dist/src/ui/commands/copyCommand.test.js.map +0 -1
- package/dist/src/ui/commands/corgiCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/corgiCommand.test.js +0 -28
- package/dist/src/ui/commands/corgiCommand.test.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/directoryCommand.test.js +0 -353
- package/dist/src/ui/commands/directoryCommand.test.js.map +0 -1
- package/dist/src/ui/commands/docsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/docsCommand.test.js +0 -72
- package/dist/src/ui/commands/docsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/editorCommand.test.js +0 -27
- package/dist/src/ui/commands/editorCommand.test.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/extensionsCommand.test.js +0 -778
- package/dist/src/ui/commands/extensionsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/helpCommand.test.js +0 -42
- package/dist/src/ui/commands/helpCommand.test.js.map +0 -1
- package/dist/src/ui/commands/hooksCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/hooksCommand.test.js +0 -572
- package/dist/src/ui/commands/hooksCommand.test.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/ideCommand.test.js +0 -203
- package/dist/src/ui/commands/ideCommand.test.js.map +0 -1
- package/dist/src/ui/commands/initCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/initCommand.test.js +0 -84
- package/dist/src/ui/commands/initCommand.test.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/mcpCommand.test.js +0 -189
- package/dist/src/ui/commands/mcpCommand.test.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/memoryCommand.test.js +0 -350
- package/dist/src/ui/commands/memoryCommand.test.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/modelCommand.test.js +0 -41
- package/dist/src/ui/commands/modelCommand.test.js.map +0 -1
- package/dist/src/ui/commands/permissionsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/permissionsCommand.test.js +0 -86
- package/dist/src/ui/commands/permissionsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/policiesCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/policiesCommand.test.js +0 -87
- package/dist/src/ui/commands/policiesCommand.test.js.map +0 -1
- package/dist/src/ui/commands/privacyCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/privacyCommand.test.js +0 -32
- package/dist/src/ui/commands/privacyCommand.test.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/quitCommand.test.js +0 -50
- package/dist/src/ui/commands/quitCommand.test.js.map +0 -1
- package/dist/src/ui/commands/restoreCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/restoreCommand.test.js +0 -190
- package/dist/src/ui/commands/restoreCommand.test.js.map +0 -1
- package/dist/src/ui/commands/rewindCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/rewindCommand.test.js +0 -242
- package/dist/src/ui/commands/rewindCommand.test.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/settingsCommand.test.js +0 -30
- package/dist/src/ui/commands/settingsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/setupGithubCommand.test.js +0 -238
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
- package/dist/src/ui/commands/skillsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/skillsCommand.test.js +0 -426
- package/dist/src/ui/commands/skillsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/statsCommand.test.js +0 -70
- package/dist/src/ui/commands/statsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/terminalSetupCommand.test.js +0 -66
- package/dist/src/ui/commands/terminalSetupCommand.test.js.map +0 -1
- package/dist/src/ui/commands/themeCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/themeCommand.test.js +0 -32
- package/dist/src/ui/commands/themeCommand.test.js.map +0 -1
- package/dist/src/ui/commands/toolsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/toolsCommand.test.js +0 -100
- package/dist/src/ui/commands/toolsCommand.test.js.map +0 -1
- package/dist/src/ui/components/AboutBox.test.d.ts +0 -6
- package/dist/src/ui/components/AboutBox.test.js +0 -59
- package/dist/src/ui/components/AboutBox.test.js.map +0 -1
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.js +0 -43
- package/dist/src/ui/components/AdminSettingsChangedDialog.test.js.map +0 -1
- package/dist/src/ui/components/AgentConfigDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AgentConfigDialog.test.js +0 -241
- package/dist/src/ui/components/AgentConfigDialog.test.js.map +0 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +0 -190
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.test.d.ts +0 -6
- package/dist/src/ui/components/AnsiOutput.test.js +0 -92
- package/dist/src/ui/components/AnsiOutput.test.js.map +0 -1
- package/dist/src/ui/components/AppHeader.test.d.ts +0 -6
- package/dist/src/ui/components/AppHeader.test.js +0 -225
- package/dist/src/ui/components/AppHeader.test.js.map +0 -1
- package/dist/src/ui/components/ApprovalModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/ApprovalModeIndicator.test.js +0 -37
- package/dist/src/ui/components/ApprovalModeIndicator.test.js.map +0 -1
- package/dist/src/ui/components/AskUserDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AskUserDialog.test.js +0 -598
- package/dist/src/ui/components/AskUserDialog.test.js.map +0 -1
- package/dist/src/ui/components/Banner.test.d.ts +0 -6
- package/dist/src/ui/components/Banner.test.js +0 -24
- package/dist/src/ui/components/Banner.test.js.map +0 -1
- package/dist/src/ui/components/CliSpinner.test.d.ts +0 -6
- package/dist/src/ui/components/CliSpinner.test.js +0 -28
- package/dist/src/ui/components/CliSpinner.test.js.map +0 -1
- package/dist/src/ui/components/Composer.test.d.ts +0 -6
- package/dist/src/ui/components/Composer.test.js +0 -383
- package/dist/src/ui/components/Composer.test.js.map +0 -1
- package/dist/src/ui/components/ConfigInitDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ConfigInitDisplay.test.js +0 -117
- package/dist/src/ui/components/ConfigInitDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ConsentPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/ConsentPrompt.test.js +0 -77
- package/dist/src/ui/components/ConsentPrompt.test.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js +0 -26
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ContextSummaryDisplay.test.js +0 -102
- package/dist/src/ui/components/ContextSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ContextUsageDisplay.test.js +0 -43
- package/dist/src/ui/components/ContextUsageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/CopyModeWarning.test.d.ts +0 -6
- package/dist/src/ui/components/CopyModeWarning.test.js +0 -33
- package/dist/src/ui/components/CopyModeWarning.test.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.test.d.ts +0 -6
- package/dist/src/ui/components/DebugProfiler.test.js +0 -229
- package/dist/src/ui/components/DebugProfiler.test.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js +0 -39
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js.map +0 -1
- package/dist/src/ui/components/DialogManager.test.d.ts +0 -6
- package/dist/src/ui/components/DialogManager.test.js +0 -177
- package/dist/src/ui/components/DialogManager.test.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/EditorSettingsDialog.test.js +0 -119
- package/dist/src/ui/components/EditorSettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ExitWarning.test.d.ts +0 -6
- package/dist/src/ui/components/ExitWarning.test.js +0 -54
- package/dist/src/ui/components/ExitWarning.test.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/FolderTrustDialog.test.js +0 -102
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/Footer.test.d.ts +0 -6
- package/dist/src/ui/components/Footer.test.js +0 -321
- package/dist/src/ui/components/Footer.test.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.test.d.ts +0 -6
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js +0 -61
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js.map +0 -1
- package/dist/src/ui/components/GradientRegression.test.d.ts +0 -6
- package/dist/src/ui/components/GradientRegression.test.js +0 -105
- package/dist/src/ui/components/GradientRegression.test.js.map +0 -1
- package/dist/src/ui/components/Header.test.d.ts +0 -6
- package/dist/src/ui/components/Header.test.js +0 -147
- package/dist/src/ui/components/Header.test.js.map +0 -1
- package/dist/src/ui/components/Help.test.d.ts +0 -6
- package/dist/src/ui/components/Help.test.js +0 -67
- package/dist/src/ui/components/Help.test.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -207
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
- package/dist/src/ui/components/HookStatusDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HookStatusDisplay.test.js +0 -51
- package/dist/src/ui/components/HookStatusDisplay.test.js.map +0 -1
- package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js +0 -58
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/InputPrompt.test.js +0 -2596
- package/dist/src/ui/components/InputPrompt.test.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/LoadingIndicator.test.js +0 -207
- package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/components/LogoutConfirmationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js +0 -59
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js.map +0 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +0 -25
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/MainContent.test.d.ts +0 -6
- package/dist/src/ui/components/MainContent.test.js +0 -83
- package/dist/src/ui/components/MainContent.test.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/MemoryUsageDisplay.test.js +0 -49
- package/dist/src/ui/components/MemoryUsageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ModelDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ModelDialog.test.js +0 -197
- package/dist/src/ui/components/ModelDialog.test.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ModelStatsDisplay.test.js +0 -343
- package/dist/src/ui/components/ModelStatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js +0 -162
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/NewAgentsNotification.test.d.ts +0 -6
- package/dist/src/ui/components/NewAgentsNotification.test.js +0 -48
- package/dist/src/ui/components/NewAgentsNotification.test.js.map +0 -1
- package/dist/src/ui/components/Notifications.test.d.ts +0 -6
- package/dist/src/ui/components/Notifications.test.js +0 -164
- package/dist/src/ui/components/Notifications.test.js.map +0 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +0 -162
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ProQuotaDialog.test.js +0 -191
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +0 -65
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/QuittingDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/QuittingDisplay.test.js +0 -49
- package/dist/src/ui/components/QuittingDisplay.test.js.map +0 -1
- package/dist/src/ui/components/RawMarkdownIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/RawMarkdownIndicator.test.js +0 -34
- package/dist/src/ui/components/RawMarkdownIndicator.test.js.map +0 -1
- package/dist/src/ui/components/RewindConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/RewindConfirmation.test.js +0 -53
- package/dist/src/ui/components/RewindConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/RewindViewer.test.d.ts +0 -6
- package/dist/src/ui/components/RewindViewer.test.js +0 -241
- package/dist/src/ui/components/RewindViewer.test.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser.test.d.ts +0 -6
- package/dist/src/ui/components/SessionBrowser.test.js +0 -256
- package/dist/src/ui/components/SessionBrowser.test.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/SessionSummaryDisplay.test.js +0 -75
- package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/SettingsDialog.test.js +0 -1150
- package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellInputPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/ShellInputPrompt.test.js +0 -91
- package/dist/src/ui/components/ShellInputPrompt.test.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/ShellModeIndicator.test.js +0 -17
- package/dist/src/ui/components/ShellModeIndicator.test.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.test.d.ts +0 -6
- package/dist/src/ui/components/ShowMoreLines.test.js +0 -40
- package/dist/src/ui/components/ShowMoreLines.test.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/StatsDisplay.test.js +0 -438
- package/dist/src/ui/components/StatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/StatusDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/StatusDisplay.test.js +0 -155
- package/dist/src/ui/components/StatusDisplay.test.js.map +0 -1
- package/dist/src/ui/components/StickyHeader.test.d.ts +0 -6
- package/dist/src/ui/components/StickyHeader.test.js +0 -17
- package/dist/src/ui/components/StickyHeader.test.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/SuggestionsDisplay.test.js +0 -56
- package/dist/src/ui/components/SuggestionsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/Table.test.d.ts +0 -6
- package/dist/src/ui/components/Table.test.js +0 -53
- package/dist/src/ui/components/Table.test.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ThemeDialog.test.js +0 -167
- package/dist/src/ui/components/ThemeDialog.test.js.map +0 -1
- package/dist/src/ui/components/ThemedGradient.test.d.ts +0 -6
- package/dist/src/ui/components/ThemedGradient.test.js +0 -30
- package/dist/src/ui/components/ThemedGradient.test.js.map +0 -1
- package/dist/src/ui/components/Tips.test.d.ts +0 -6
- package/dist/src/ui/components/Tips.test.js +0 -23
- package/dist/src/ui/components/Tips.test.js.map +0 -1
- package/dist/src/ui/components/ToolConfirmationQueue.test.d.ts +0 -6
- package/dist/src/ui/components/ToolConfirmationQueue.test.js +0 -71
- package/dist/src/ui/components/ToolConfirmationQueue.test.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/ToolStatsDisplay.test.js +0 -227
- package/dist/src/ui/components/ToolStatsDisplay.test.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.test.d.ts +0 -6
- package/dist/src/ui/components/UpdateNotification.test.js +0 -16
- package/dist/src/ui/components/UpdateNotification.test.js.map +0 -1
- package/dist/src/ui/components/ValidationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ValidationDialog.test.js +0 -153
- package/dist/src/ui/components/ValidationDialog.test.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/CompressionMessage.test.js +0 -191
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
- package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -240
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ErrorMessage.test.js +0 -23
- package/dist/src/ui/components/messages/ErrorMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/GeminiMessage.test.js +0 -35
- package/dist/src/ui/components/messages/GeminiMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/InfoMessage.test.js +0 -28
- package/dist/src/ui/components/messages/InfoMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.js +0 -33
- package/dist/src/ui/components/messages/RedirectionConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/messages/ShellToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ShellToolMessage.test.js +0 -123
- package/dist/src/ui/components/messages/ShellToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/Todo.test.d.ts +0 -6
- package/dist/src/ui/components/messages/Todo.test.js +0 -114
- package/dist/src/ui/components/messages/Todo.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -232
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +0 -529
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessage.test.js +0 -217
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js +0 -89
- package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +0 -62
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolResultDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js +0 -114
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js +0 -134
- package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/UserMessage.test.js +0 -32
- package/dist/src/ui/components/messages/UserMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/WarningMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/WarningMessage.test.js +0 -23
- package/dist/src/ui/components/messages/WarningMessage.test.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/BaseSelectionList.test.js +0 -386
- package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.js +0 -434
- package/dist/src/ui/components/shared/BaseSettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +0 -79
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/EnumSelector.test.d.ts +0 -6
- package/dist/src/ui/components/shared/EnumSelector.test.js +0 -70
- package/dist/src/ui/components/shared/EnumSelector.test.js.map +0 -1
- package/dist/src/ui/components/shared/ExpandableText.test.d.ts +0 -6
- package/dist/src/ui/components/shared/ExpandableText.test.js +0 -88
- package/dist/src/ui/components/shared/ExpandableText.test.js.map +0 -1
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.js +0 -34
- package/dist/src/ui/components/shared/HalfLinePaddedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -90
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +0 -134
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/Scrollable.test.d.ts +0 -6
- package/dist/src/ui/components/shared/Scrollable.test.js +0 -74
- package/dist/src/ui/components/shared/Scrollable.test.js.map +0 -1
- package/dist/src/ui/components/shared/ScrollableList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/ScrollableList.test.js +0 -241
- package/dist/src/ui/components/shared/ScrollableList.test.js.map +0 -1
- package/dist/src/ui/components/shared/TabHeader.test.d.ts +0 -6
- package/dist/src/ui/components/shared/TabHeader.test.js +0 -106
- package/dist/src/ui/components/shared/TabHeader.test.js.map +0 -1
- package/dist/src/ui/components/shared/TextInput.test.d.ts +0 -6
- package/dist/src/ui/components/shared/TextInput.test.js +0 -242
- package/dist/src/ui/components/shared/TextInput.test.js.map +0 -1
- package/dist/src/ui/components/shared/VirtualizedList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/VirtualizedList.test.js +0 -171
- package/dist/src/ui/components/shared/VirtualizedList.test.js.map +0 -1
- package/dist/src/ui/components/shared/performance.test.d.ts +0 -1
- package/dist/src/ui/components/shared/performance.test.js +0 -67
- package/dist/src/ui/components/shared/performance.test.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.test.d.ts +0 -6
- package/dist/src/ui/components/shared/text-buffer.test.js +0 -2490
- package/dist/src/ui/components/shared/text-buffer.test.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.test.d.ts +0 -6
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js +0 -964
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js.map +0 -1
- package/dist/src/ui/components/views/ChatList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ChatList.test.js +0 -45
- package/dist/src/ui/components/views/ChatList.test.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ExtensionsList.test.js +0 -148
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +0 -1
- package/dist/src/ui/components/views/McpStatus.test.d.ts +0 -6
- package/dist/src/ui/components/views/McpStatus.test.js +0 -153
- package/dist/src/ui/components/views/McpStatus.test.js.map +0 -1
- package/dist/src/ui/components/views/SkillsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/SkillsList.test.js +0 -97
- package/dist/src/ui/components/views/SkillsList.test.js.map +0 -1
- package/dist/src/ui/components/views/ToolsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ToolsList.test.js +0 -45
- package/dist/src/ui/components/views/ToolsList.test.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/KeypressContext.test.js +0 -957
- package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
- package/dist/src/ui/contexts/MouseContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/MouseContext.test.js +0 -198
- package/dist/src/ui/contexts/MouseContext.test.js.map +0 -1
- package/dist/src/ui/contexts/ScrollProvider.drag.test.d.ts +0 -6
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js +0 -319
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js.map +0 -1
- package/dist/src/ui/contexts/ScrollProvider.test.d.ts +0 -6
- package/dist/src/ui/contexts/ScrollProvider.test.js +0 -377
- package/dist/src/ui/contexts/ScrollProvider.test.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/SessionContext.test.js +0 -198
- package/dist/src/ui/contexts/SessionContext.test.js.map +0 -1
- package/dist/src/ui/contexts/ToolActionsContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/ToolActionsContext.test.js +0 -166
- package/dist/src/ui/contexts/ToolActionsContext.test.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -1032
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.js +0 -183
- package/dist/src/ui/hooks/atCommandProcessor_agents.test.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -521
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +0 -796
- package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/toolMapping.test.d.ts +0 -6
- package/dist/src/ui/hooks/toolMapping.test.js +0 -209
- package/dist/src/ui/hooks/toolMapping.test.js.map +0 -1
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js +0 -85
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js.map +0 -1
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.js +0 -435
- package/dist/src/ui/hooks/useApprovalModeIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAtCompletion.test.js +0 -417
- package/dist/src/ui/hooks/useAtCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion_agents.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAtCompletion_agents.test.js +0 -87
- package/dist/src/ui/hooks/useAtCompletion_agents.test.js.map +0 -1
- package/dist/src/ui/hooks/useBanner.test.d.ts +0 -6
- package/dist/src/ui/hooks/useBanner.test.js +0 -92
- package/dist/src/ui/hooks/useBanner.test.js.map +0 -1
- package/dist/src/ui/hooks/useBatchedScroll.test.d.ts +0 -6
- package/dist/src/ui/hooks/useBatchedScroll.test.js +0 -62
- package/dist/src/ui/hooks/useBatchedScroll.test.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useCommandCompletion.test.js +0 -462
- package/dist/src/ui/hooks/useCommandCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.test.d.ts +0 -6
- package/dist/src/ui/hooks/useConsoleMessages.test.js +0 -159
- package/dist/src/ui/hooks/useConsoleMessages.test.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/useEditorSettings.test.js +0 -179
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +0 -6
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +0 -279
- package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +0 -1
- package/dist/src/ui/hooks/useFlickerDetector.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFlickerDetector.test.js +0 -106
- package/dist/src/ui/hooks/useFlickerDetector.test.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFocus.test.js +0 -131
- package/dist/src/ui/hooks/useFocus.test.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/useFolderTrust.test.js +0 -218
- package/dist/src/ui/hooks/useFolderTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGeminiStream.test.js +0 -2149
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.test.js +0 -183
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHistoryManager.test.js +0 -188
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useHookDisplayState.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHookDisplayState.test.js +0 -180
- package/dist/src/ui/hooks/useHookDisplayState.test.js.map +0 -1
- package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +0 -6
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +0 -214
- package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +0 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js +0 -172
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistory.test.js +0 -208
- package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +0 -238
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.test.d.ts +0 -6
- package/dist/src/ui/hooks/useKeypress.test.js +0 -205
- package/dist/src/ui/hooks/useKeypress.test.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -145
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useMcpStatus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMcpStatus.test.js +0 -69
- package/dist/src/ui/hooks/useMcpStatus.test.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +0 -62
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMessageQueue.test.js +0 -327
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
- package/dist/src/ui/hooks/useModelCommand.test.d.ts +0 -6
- package/dist/src/ui/hooks/useModelCommand.test.js +0 -45
- package/dist/src/ui/hooks/useModelCommand.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouse.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouse.test.js +0 -57
- package/dist/src/ui/hooks/useMouse.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouseClick.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouseClick.test.js +0 -59
- package/dist/src/ui/hooks/useMouseClick.test.js.map +0 -1
- package/dist/src/ui/hooks/useMouseDoubleClick.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMouseDoubleClick.test.js +0 -125
- package/dist/src/ui/hooks/useMouseDoubleClick.test.js.map +0 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +0 -291
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePhraseCycler.test.js +0 -208
- package/dist/src/ui/hooks/usePhraseCycler.test.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -104
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +0 -6
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +0 -477
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReactToolScheduler.test.js +0 -58
- package/dist/src/ui/hooks/useReactToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -169
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useRewind.test.d.ts +0 -6
- package/dist/src/ui/hooks/useRewind.test.js +0 -100
- package/dist/src/ui/hooks/useRewind.test.js.map +0 -1
- package/dist/src/ui/hooks/useSelectionList.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSelectionList.test.js +0 -848
- package/dist/src/ui/hooks/useSelectionList.test.js.map +0 -1
- package/dist/src/ui/hooks/useSessionBrowser.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSessionBrowser.test.js +0 -203
- package/dist/src/ui/hooks/useSessionBrowser.test.js.map +0 -1
- package/dist/src/ui/hooks/useSessionResume.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSessionResume.test.js +0 -336
- package/dist/src/ui/hooks/useSessionResume.test.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellHistory.test.js +0 -223
- package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellInactivityStatus.test.js +0 -84
- package/dist/src/ui/hooks/useShellInactivityStatus.test.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -9
- package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -845
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useSnowfall.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSnowfall.test.js +0 -88
- package/dist/src/ui/hooks/useSnowfall.test.js.map +0 -1
- package/dist/src/ui/hooks/useTabbedNavigation.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTabbedNavigation.test.js +0 -187
- package/dist/src/ui/hooks/useTabbedNavigation.test.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTimer.test.js +0 -119
- package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
- package/dist/src/ui/hooks/useTips.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTips.test.js +0 -33
- package/dist/src/ui/hooks/useTips.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolExecutionScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolExecutionScheduler.test.js +0 -376
- package/dist/src/ui/hooks/useToolExecutionScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolScheduler.test.js +0 -881
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.js +0 -45
- package/dist/src/ui/hooks/useToolSchedulerFacade.test.js.map +0 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.js +0 -97
- package/dist/src/ui/hooks/useTurnActivityMonitor.test.js.map +0 -1
- package/dist/src/ui/hooks/vim.test.d.ts +0 -6
- package/dist/src/ui/hooks/vim.test.js +0 -1384
- package/dist/src/ui/hooks/vim.test.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.d.ts +0 -6
- package/dist/src/ui/keyMatchers.test.js +0 -386
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js +0 -121
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js +0 -34
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js +0 -34
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.test.d.ts +0 -6
- package/dist/src/ui/privacy/PrivacyNotice.test.js +0 -62
- package/dist/src/ui/privacy/PrivacyNotice.test.js.map +0 -1
- package/dist/src/ui/state/extensions.test.d.ts +0 -6
- package/dist/src/ui/state/extensions.test.js +0 -219
- package/dist/src/ui/state/extensions.test.js.map +0 -1
- package/dist/src/ui/themes/color-utils.test.d.ts +0 -6
- package/dist/src/ui/themes/color-utils.test.js +0 -245
- package/dist/src/ui/themes/color-utils.test.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.test.d.ts +0 -6
- package/dist/src/ui/themes/theme-manager.test.js +0 -150
- package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
- package/dist/src/ui/themes/theme.test.d.ts +0 -6
- package/dist/src/ui/themes/theme.test.js +0 -174
- package/dist/src/ui/themes/theme.test.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.test.d.ts +0 -6
- package/dist/src/ui/utils/CodeColorizer.test.js +0 -38
- package/dist/src/ui/utils/CodeColorizer.test.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.d.ts +0 -6
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.js +0 -21
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
- package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -159
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.test.js +0 -359
- package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.windows.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.windows.test.js +0 -55
- package/dist/src/ui/utils/clipboardUtils.windows.test.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/commandUtils.test.js +0 -479
- package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
- package/dist/src/ui/utils/computeStats.test.d.ts +0 -6
- package/dist/src/ui/utils/computeStats.test.js +0 -271
- package/dist/src/ui/utils/computeStats.test.js.map +0 -1
- package/dist/src/ui/utils/directoryUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/directoryUtils.test.js +0 -244
- package/dist/src/ui/utils/directoryUtils.test.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/displayUtils.test.js +0 -61
- package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
- package/dist/src/ui/utils/formatters.test.d.ts +0 -6
- package/dist/src/ui/utils/formatters.test.js +0 -124
- package/dist/src/ui/utils/formatters.test.js.map +0 -1
- package/dist/src/ui/utils/highlight.test.d.ts +0 -6
- package/dist/src/ui/utils/highlight.test.js +0 -198
- package/dist/src/ui/utils/highlight.test.js.map +0 -1
- package/dist/src/ui/utils/input.test.d.ts +0 -6
- package/dist/src/ui/utils/input.test.js +0 -44
- package/dist/src/ui/utils/input.test.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.test.js +0 -42
- package/dist/src/ui/utils/markdownUtilities.test.js.map +0 -1
- package/dist/src/ui/utils/mouse.test.d.ts +0 -6
- package/dist/src/ui/utils/mouse.test.js +0 -136
- package/dist/src/ui/utils/mouse.test.js.map +0 -1
- package/dist/src/ui/utils/rewindFileOps.test.d.ts +0 -6
- package/dist/src/ui/utils/rewindFileOps.test.js +0 -375
- package/dist/src/ui/utils/rewindFileOps.test.js.map +0 -1
- package/dist/src/ui/utils/terminalCapabilityManager.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalCapabilityManager.test.js +0 -220
- package/dist/src/ui/utils/terminalCapabilityManager.test.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalSetup.test.js +0 -147
- package/dist/src/ui/utils/terminalSetup.test.js.map +0 -1
- package/dist/src/ui/utils/terminalUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/terminalUtils.test.js +0 -40
- package/dist/src/ui/utils/terminalUtils.test.js.map +0 -1
- package/dist/src/ui/utils/textOutput.test.d.ts +0 -6
- package/dist/src/ui/utils/textOutput.test.js +0 -79
- package/dist/src/ui/utils/textOutput.test.js.map +0 -1
- package/dist/src/ui/utils/textUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/textUtils.test.js +0 -168
- package/dist/src/ui/utils/textUtils.test.js.map +0 -1
- package/dist/src/ui/utils/ui-sizing.test.d.ts +0 -6
- package/dist/src/ui/utils/ui-sizing.test.js +0 -38
- package/dist/src/ui/utils/ui-sizing.test.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.test.js +0 -134
- package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
- package/dist/src/utils/agentUtils.test.d.ts +0 -6
- package/dist/src/utils/agentUtils.test.js +0 -121
- package/dist/src/utils/agentUtils.test.js.map +0 -1
- package/dist/src/utils/checks.test.d.ts +0 -6
- package/dist/src/utils/checks.test.js +0 -29
- package/dist/src/utils/checks.test.js.map +0 -1
- package/dist/src/utils/cleanup.test.d.ts +0 -6
- package/dist/src/utils/cleanup.test.js +0 -92
- package/dist/src/utils/cleanup.test.js.map +0 -1
- package/dist/src/utils/commands.test.d.ts +0 -6
- package/dist/src/utils/commands.test.js +0 -115
- package/dist/src/utils/commands.test.js.map +0 -1
- package/dist/src/utils/commentJson.test.d.ts +0 -6
- package/dist/src/utils/commentJson.test.js +0 -308
- package/dist/src/utils/commentJson.test.js.map +0 -1
- package/dist/src/utils/deepMerge.test.d.ts +0 -6
- package/dist/src/utils/deepMerge.test.js +0 -201
- package/dist/src/utils/deepMerge.test.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.test.d.ts +0 -6
- package/dist/src/utils/dialogScopeUtils.test.js +0 -81
- package/dist/src/utils/dialogScopeUtils.test.js.map +0 -1
- package/dist/src/utils/envVarResolver.test.d.ts +0 -6
- package/dist/src/utils/envVarResolver.test.js +0 -221
- package/dist/src/utils/envVarResolver.test.js.map +0 -1
- package/dist/src/utils/errors.test.d.ts +0 -6
- package/dist/src/utils/errors.test.js +0 -435
- package/dist/src/utils/errors.test.js.map +0 -1
- package/dist/src/utils/events.test.d.ts +0 -6
- package/dist/src/utils/events.test.js +0 -24
- package/dist/src/utils/events.test.js.map +0 -1
- package/dist/src/utils/gitUtils.test.d.ts +0 -6
- package/dist/src/utils/gitUtils.test.js +0 -113
- package/dist/src/utils/gitUtils.test.js.map +0 -1
- package/dist/src/utils/handleAutoUpdate.test.d.ts +0 -6
- package/dist/src/utils/handleAutoUpdate.test.js +0 -310
- package/dist/src/utils/handleAutoUpdate.test.js.map +0 -1
- package/dist/src/utils/installationInfo.test.d.ts +0 -6
- package/dist/src/utils/installationInfo.test.js +0 -296
- package/dist/src/utils/installationInfo.test.js.map +0 -1
- package/dist/src/utils/jsonoutput.test.d.ts +0 -6
- package/dist/src/utils/jsonoutput.test.js +0 -74
- package/dist/src/utils/jsonoutput.test.js.map +0 -1
- package/dist/src/utils/math.test.d.ts +0 -6
- package/dist/src/utils/math.test.js +0 -23
- package/dist/src/utils/math.test.js.map +0 -1
- package/dist/src/utils/persistentState.test.d.ts +0 -6
- package/dist/src/utils/persistentState.test.js +0 -68
- package/dist/src/utils/persistentState.test.js.map +0 -1
- package/dist/src/utils/processUtils.test.d.ts +0 -6
- package/dist/src/utils/processUtils.test.js +0 -20
- package/dist/src/utils/processUtils.test.js.map +0 -1
- package/dist/src/utils/readStdin.test.d.ts +0 -6
- package/dist/src/utils/readStdin.test.js +0 -117
- package/dist/src/utils/readStdin.test.js.map +0 -1
- package/dist/src/utils/readStdin_safety.test.d.ts +0 -6
- package/dist/src/utils/readStdin_safety.test.js +0 -68
- package/dist/src/utils/readStdin_safety.test.js.map +0 -1
- package/dist/src/utils/relaunch.test.d.ts +0 -6
- package/dist/src/utils/relaunch.test.js +0 -279
- package/dist/src/utils/relaunch.test.js.map +0 -1
- package/dist/src/utils/resolvePath.test.d.ts +0 -6
- package/dist/src/utils/resolvePath.test.js +0 -34
- package/dist/src/utils/resolvePath.test.js.map +0 -1
- package/dist/src/utils/sandbox.test.d.ts +0 -6
- package/dist/src/utils/sandbox.test.js +0 -314
- package/dist/src/utils/sandbox.test.js.map +0 -1
- package/dist/src/utils/sandboxUtils.test.d.ts +0 -6
- package/dist/src/utils/sandboxUtils.test.js +0 -122
- package/dist/src/utils/sandboxUtils.test.js.map +0 -1
- package/dist/src/utils/sessionCleanup.integration.test.d.ts +0 -6
- package/dist/src/utils/sessionCleanup.integration.test.js +0 -182
- package/dist/src/utils/sessionCleanup.integration.test.js.map +0 -1
- package/dist/src/utils/sessionCleanup.test.d.ts +0 -6
- package/dist/src/utils/sessionCleanup.test.js +0 -1298
- package/dist/src/utils/sessionCleanup.test.js.map +0 -1
- package/dist/src/utils/sessionUtils.test.d.ts +0 -6
- package/dist/src/utils/sessionUtils.test.js +0 -503
- package/dist/src/utils/sessionUtils.test.js.map +0 -1
- package/dist/src/utils/sessions.test.d.ts +0 -6
- package/dist/src/utils/sessions.test.js +0 -581
- package/dist/src/utils/sessions.test.js.map +0 -1
- package/dist/src/utils/settingsUtils.test.d.ts +0 -6
- package/dist/src/utils/settingsUtils.test.js +0 -808
- package/dist/src/utils/settingsUtils.test.js.map +0 -1
- package/dist/src/utils/skillUtils.test.d.ts +0 -6
- package/dist/src/utils/skillUtils.test.js +0 -70
- package/dist/src/utils/skillUtils.test.js.map +0 -1
- package/dist/src/utils/startupWarnings.test.d.ts +0 -6
- package/dist/src/utils/startupWarnings.test.js +0 -61
- package/dist/src/utils/startupWarnings.test.js.map +0 -1
- package/dist/src/utils/updateEventEmitter.test.d.ts +0 -6
- package/dist/src/utils/updateEventEmitter.test.js +0 -18
- package/dist/src/utils/updateEventEmitter.test.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.test.js +0 -98
- package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
- package/dist/src/utils/windowTitle.test.d.ts +0 -6
- package/dist/src/utils/windowTitle.test.js +0 -216
- package/dist/src/utils/windowTitle.test.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.test.d.ts +0 -6
- package/dist/src/validateNonInterActiveAuth.test.js +0 -319
- package/dist/src/validateNonInterActiveAuth.test.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.test.d.ts +0 -6
- package/dist/src/zed-integration/fileSystemService.test.js +0 -88
- package/dist/src/zed-integration/fileSystemService.test.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.test.d.ts +0 -6
- package/dist/src/zed-integration/zedIntegration.test.js +0 -625
- package/dist/src/zed-integration/zedIntegration.test.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,796 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { vi, describe, it, expect, beforeEach, afterEach } from 'vitest';
|
|
7
|
-
import { act } from 'react';
|
|
8
|
-
import { renderHook } from '../../test-utils/render.js';
|
|
9
|
-
import { waitFor } from '../../test-utils/async.js';
|
|
10
|
-
import { useSlashCommandProcessor } from './slashCommandProcessor.js';
|
|
11
|
-
import { CommandKind } from '../commands/types.js';
|
|
12
|
-
import { MessageType } from '../types.js';
|
|
13
|
-
import { BuiltinCommandLoader } from '../../services/BuiltinCommandLoader.js';
|
|
14
|
-
import { FileCommandLoader } from '../../services/FileCommandLoader.js';
|
|
15
|
-
import { McpPromptLoader } from '../../services/McpPromptLoader.js';
|
|
16
|
-
import { SlashCommandStatus, makeFakeConfig, coreEvents, } from '@didim365/agent-cli-core';
|
|
17
|
-
const { logSlashCommand, mockBuiltinLoadCommands, mockFileLoadCommands, mockMcpLoadCommands, mockIdeClientGetInstance, mockUseAlternateBuffer, } = vi.hoisted(() => ({
|
|
18
|
-
logSlashCommand: vi.fn(),
|
|
19
|
-
mockBuiltinLoadCommands: vi.fn().mockResolvedValue([]),
|
|
20
|
-
mockFileLoadCommands: vi.fn().mockResolvedValue([]),
|
|
21
|
-
mockMcpLoadCommands: vi.fn().mockResolvedValue([]),
|
|
22
|
-
mockIdeClientGetInstance: vi.fn().mockResolvedValue({
|
|
23
|
-
addStatusChangeListener: vi.fn(),
|
|
24
|
-
removeStatusChangeListener: vi.fn(),
|
|
25
|
-
}),
|
|
26
|
-
mockUseAlternateBuffer: vi.fn().mockReturnValue(false),
|
|
27
|
-
}));
|
|
28
|
-
vi.mock('./useAlternateBuffer.js', () => ({
|
|
29
|
-
useAlternateBuffer: mockUseAlternateBuffer,
|
|
30
|
-
}));
|
|
31
|
-
vi.mock('@didim365/agent-cli-core', async (importOriginal) => {
|
|
32
|
-
const original = await importOriginal();
|
|
33
|
-
return {
|
|
34
|
-
...original,
|
|
35
|
-
logSlashCommand,
|
|
36
|
-
getIdeInstaller: vi.fn().mockReturnValue(null),
|
|
37
|
-
IdeClient: {
|
|
38
|
-
getInstance: mockIdeClientGetInstance,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
});
|
|
42
|
-
const { mockProcessExit } = vi.hoisted(() => ({
|
|
43
|
-
mockProcessExit: vi.fn((_code) => undefined),
|
|
44
|
-
}));
|
|
45
|
-
vi.mock('node:process', () => {
|
|
46
|
-
const mockProcess = {
|
|
47
|
-
exit: mockProcessExit,
|
|
48
|
-
platform: 'sunos',
|
|
49
|
-
cwd: () => '/fake/dir',
|
|
50
|
-
env: {},
|
|
51
|
-
};
|
|
52
|
-
return {
|
|
53
|
-
...mockProcess,
|
|
54
|
-
default: mockProcess,
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
|
-
vi.mock('../../services/BuiltinCommandLoader.js', () => ({
|
|
58
|
-
BuiltinCommandLoader: vi.fn(() => ({
|
|
59
|
-
loadCommands: mockBuiltinLoadCommands,
|
|
60
|
-
})),
|
|
61
|
-
}));
|
|
62
|
-
vi.mock('../../services/FileCommandLoader.js', () => ({
|
|
63
|
-
FileCommandLoader: vi.fn(() => ({
|
|
64
|
-
loadCommands: mockFileLoadCommands,
|
|
65
|
-
})),
|
|
66
|
-
}));
|
|
67
|
-
vi.mock('../../services/McpPromptLoader.js', () => ({
|
|
68
|
-
McpPromptLoader: vi.fn(() => ({
|
|
69
|
-
loadCommands: mockMcpLoadCommands,
|
|
70
|
-
})),
|
|
71
|
-
}));
|
|
72
|
-
vi.mock('../contexts/SessionContext.js', () => ({
|
|
73
|
-
useSessionStats: vi.fn(() => ({ stats: {} })),
|
|
74
|
-
}));
|
|
75
|
-
const { mockRunExitCleanup } = vi.hoisted(() => ({
|
|
76
|
-
mockRunExitCleanup: vi.fn(),
|
|
77
|
-
}));
|
|
78
|
-
vi.mock('../../utils/cleanup.js', () => ({
|
|
79
|
-
runExitCleanup: mockRunExitCleanup,
|
|
80
|
-
}));
|
|
81
|
-
function createTestCommand(overrides, kind = CommandKind.BUILT_IN) {
|
|
82
|
-
return {
|
|
83
|
-
name: 'test',
|
|
84
|
-
description: 'a test command',
|
|
85
|
-
kind,
|
|
86
|
-
...overrides,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
describe('useSlashCommandProcessor', () => {
|
|
90
|
-
const mockAddItem = vi.fn();
|
|
91
|
-
const mockClearItems = vi.fn();
|
|
92
|
-
const mockLoadHistory = vi.fn();
|
|
93
|
-
const mockOpenThemeDialog = vi.fn();
|
|
94
|
-
const mockOpenAuthDialog = vi.fn();
|
|
95
|
-
const mockOpenModelDialog = vi.fn();
|
|
96
|
-
const mockSetQuittingMessages = vi.fn();
|
|
97
|
-
const mockConfig = makeFakeConfig({});
|
|
98
|
-
const mockSettings = {};
|
|
99
|
-
let unmountHook;
|
|
100
|
-
beforeEach(() => {
|
|
101
|
-
vi.clearAllMocks();
|
|
102
|
-
vi.mocked(BuiltinCommandLoader).mockClear();
|
|
103
|
-
mockBuiltinLoadCommands.mockResolvedValue([]);
|
|
104
|
-
mockFileLoadCommands.mockResolvedValue([]);
|
|
105
|
-
mockMcpLoadCommands.mockResolvedValue([]);
|
|
106
|
-
mockUseAlternateBuffer.mockReturnValue(false);
|
|
107
|
-
mockIdeClientGetInstance.mockResolvedValue({
|
|
108
|
-
addStatusChangeListener: vi.fn(),
|
|
109
|
-
removeStatusChangeListener: vi.fn(),
|
|
110
|
-
});
|
|
111
|
-
vi.spyOn(console, 'clear').mockImplementation(() => { });
|
|
112
|
-
});
|
|
113
|
-
afterEach(async () => {
|
|
114
|
-
if (unmountHook) {
|
|
115
|
-
await unmountHook();
|
|
116
|
-
unmountHook = undefined;
|
|
117
|
-
}
|
|
118
|
-
vi.restoreAllMocks();
|
|
119
|
-
});
|
|
120
|
-
const setupProcessorHook = async (options = {}) => {
|
|
121
|
-
const { builtinCommands = [], fileCommands = [], mcpCommands = [], setIsProcessing = vi.fn(), refreshStatic = vi.fn(), openAgentConfigDialog = vi.fn(), } = options;
|
|
122
|
-
mockBuiltinLoadCommands.mockResolvedValue(Object.freeze(builtinCommands));
|
|
123
|
-
mockFileLoadCommands.mockResolvedValue(Object.freeze(fileCommands));
|
|
124
|
-
mockMcpLoadCommands.mockResolvedValue(Object.freeze(mcpCommands));
|
|
125
|
-
let result;
|
|
126
|
-
let unmount;
|
|
127
|
-
let rerender;
|
|
128
|
-
await act(async () => {
|
|
129
|
-
const hook = renderHook(() => useSlashCommandProcessor(mockConfig, mockSettings, mockAddItem, mockClearItems, mockLoadHistory, refreshStatic, vi.fn(), // toggleVimEnabled
|
|
130
|
-
setIsProcessing, {
|
|
131
|
-
openAuthDialog: mockOpenAuthDialog,
|
|
132
|
-
openThemeDialog: mockOpenThemeDialog,
|
|
133
|
-
openEditorDialog: vi.fn(),
|
|
134
|
-
openPrivacyNotice: vi.fn(),
|
|
135
|
-
openSettingsDialog: vi.fn(),
|
|
136
|
-
openSessionBrowser: vi.fn(),
|
|
137
|
-
openModelDialog: mockOpenModelDialog,
|
|
138
|
-
openAgentConfigDialog,
|
|
139
|
-
openPermissionsDialog: vi.fn(),
|
|
140
|
-
quit: mockSetQuittingMessages,
|
|
141
|
-
setDebugMessage: vi.fn(),
|
|
142
|
-
toggleCorgiMode: vi.fn(),
|
|
143
|
-
toggleDebugProfiler: vi.fn(),
|
|
144
|
-
dispatchExtensionStateUpdate: vi.fn(),
|
|
145
|
-
addConfirmUpdateExtensionRequest: vi.fn(),
|
|
146
|
-
setText: vi.fn(),
|
|
147
|
-
}, new Map(), // extensionsUpdateState
|
|
148
|
-
true, // isConfigInitialized
|
|
149
|
-
vi.fn(), // setBannerVisible
|
|
150
|
-
vi.fn()));
|
|
151
|
-
result = hook.result;
|
|
152
|
-
unmount = hook.unmount;
|
|
153
|
-
rerender = hook.rerender;
|
|
154
|
-
});
|
|
155
|
-
unmountHook = async () => unmount();
|
|
156
|
-
await waitFor(() => {
|
|
157
|
-
expect(result.current.slashCommands).toBeDefined();
|
|
158
|
-
});
|
|
159
|
-
return {
|
|
160
|
-
get current() {
|
|
161
|
-
return result.current;
|
|
162
|
-
},
|
|
163
|
-
unmount,
|
|
164
|
-
rerender: async () => {
|
|
165
|
-
rerender();
|
|
166
|
-
},
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
describe('Console Clear Safety', () => {
|
|
170
|
-
it('should not call console.clear if alternate buffer is active', async () => {
|
|
171
|
-
mockUseAlternateBuffer.mockReturnValue(true);
|
|
172
|
-
const clearCommand = createTestCommand({
|
|
173
|
-
name: 'clear',
|
|
174
|
-
action: async (context) => {
|
|
175
|
-
context.ui.clear();
|
|
176
|
-
},
|
|
177
|
-
});
|
|
178
|
-
const result = await setupProcessorHook({
|
|
179
|
-
builtinCommands: [clearCommand],
|
|
180
|
-
});
|
|
181
|
-
await act(async () => {
|
|
182
|
-
await result.current.handleSlashCommand('/clear');
|
|
183
|
-
});
|
|
184
|
-
expect(mockClearItems).toHaveBeenCalled();
|
|
185
|
-
});
|
|
186
|
-
it('should call console.clear if alternate buffer is not active', async () => {
|
|
187
|
-
mockUseAlternateBuffer.mockReturnValue(false);
|
|
188
|
-
const clearCommand = createTestCommand({
|
|
189
|
-
name: 'clear',
|
|
190
|
-
action: async (context) => {
|
|
191
|
-
context.ui.clear();
|
|
192
|
-
},
|
|
193
|
-
});
|
|
194
|
-
const result = await setupProcessorHook({
|
|
195
|
-
builtinCommands: [clearCommand],
|
|
196
|
-
});
|
|
197
|
-
await act(async () => {
|
|
198
|
-
await result.current.handleSlashCommand('/clear');
|
|
199
|
-
});
|
|
200
|
-
expect(mockClearItems).toHaveBeenCalled();
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
describe('Initialization and Command Loading', () => {
|
|
204
|
-
it('should initialize CommandService with all required loaders', async () => {
|
|
205
|
-
await setupProcessorHook();
|
|
206
|
-
expect(BuiltinCommandLoader).toHaveBeenCalledWith(mockConfig);
|
|
207
|
-
expect(FileCommandLoader).toHaveBeenCalledWith(mockConfig);
|
|
208
|
-
expect(McpPromptLoader).toHaveBeenCalledWith(mockConfig);
|
|
209
|
-
});
|
|
210
|
-
it('should call loadCommands and populate state after mounting', async () => {
|
|
211
|
-
const testCommand = createTestCommand({ name: 'test' });
|
|
212
|
-
const result = await setupProcessorHook({
|
|
213
|
-
builtinCommands: [testCommand],
|
|
214
|
-
});
|
|
215
|
-
await waitFor(() => {
|
|
216
|
-
expect(result.current.slashCommands).toHaveLength(1);
|
|
217
|
-
});
|
|
218
|
-
expect(result.current.slashCommands?.[0]?.name).toBe('test');
|
|
219
|
-
expect(mockBuiltinLoadCommands).toHaveBeenCalledTimes(1);
|
|
220
|
-
expect(mockFileLoadCommands).toHaveBeenCalledTimes(1);
|
|
221
|
-
expect(mockMcpLoadCommands).toHaveBeenCalledTimes(1);
|
|
222
|
-
});
|
|
223
|
-
it('should provide an immutable array of commands to consumers', async () => {
|
|
224
|
-
const testCommand = createTestCommand({ name: 'test' });
|
|
225
|
-
const result = await setupProcessorHook({
|
|
226
|
-
builtinCommands: [testCommand],
|
|
227
|
-
});
|
|
228
|
-
await waitFor(() => {
|
|
229
|
-
expect(result.current.slashCommands).toHaveLength(1);
|
|
230
|
-
});
|
|
231
|
-
const commands = result.current.slashCommands;
|
|
232
|
-
expect(() => {
|
|
233
|
-
// @ts-expect-error - We are intentionally testing a violation of the readonly type.
|
|
234
|
-
commands.push(createTestCommand({ name: 'rogue' }));
|
|
235
|
-
}).toThrow(TypeError);
|
|
236
|
-
});
|
|
237
|
-
it('should override built-in commands with file-based commands of the same name', async () => {
|
|
238
|
-
const builtinAction = vi.fn();
|
|
239
|
-
const fileAction = vi.fn();
|
|
240
|
-
const builtinCommand = createTestCommand({
|
|
241
|
-
name: 'override',
|
|
242
|
-
description: 'builtin',
|
|
243
|
-
action: builtinAction,
|
|
244
|
-
});
|
|
245
|
-
const fileCommand = createTestCommand({ name: 'override', description: 'file', action: fileAction }, CommandKind.FILE);
|
|
246
|
-
const result = await setupProcessorHook({
|
|
247
|
-
builtinCommands: [builtinCommand],
|
|
248
|
-
fileCommands: [fileCommand],
|
|
249
|
-
});
|
|
250
|
-
await waitFor(() => {
|
|
251
|
-
// The service should only return one command with the name 'override'
|
|
252
|
-
expect(result.current.slashCommands).toHaveLength(1);
|
|
253
|
-
});
|
|
254
|
-
await act(async () => {
|
|
255
|
-
await result.current.handleSlashCommand('/override');
|
|
256
|
-
});
|
|
257
|
-
// Only the file-based command's action should be called.
|
|
258
|
-
expect(fileAction).toHaveBeenCalledTimes(1);
|
|
259
|
-
expect(builtinAction).not.toHaveBeenCalled();
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
describe('Command Execution Logic', () => {
|
|
263
|
-
it('should display an error for an unknown command', async () => {
|
|
264
|
-
const result = await setupProcessorHook();
|
|
265
|
-
await waitFor(() => expect(result.current.slashCommands).toBeDefined());
|
|
266
|
-
await act(async () => {
|
|
267
|
-
await result.current.handleSlashCommand('/nonexistent');
|
|
268
|
-
});
|
|
269
|
-
// Expect 2 calls: one for the user's input, one for the error message.
|
|
270
|
-
expect(mockAddItem).toHaveBeenCalledTimes(2);
|
|
271
|
-
expect(mockAddItem).toHaveBeenLastCalledWith({
|
|
272
|
-
type: MessageType.ERROR,
|
|
273
|
-
text: 'Unknown command: /nonexistent',
|
|
274
|
-
}, expect.any(Number));
|
|
275
|
-
});
|
|
276
|
-
it('should display help for a parent command invoked without a subcommand', async () => {
|
|
277
|
-
const parentCommand = {
|
|
278
|
-
name: 'parent',
|
|
279
|
-
description: 'a parent command',
|
|
280
|
-
kind: CommandKind.BUILT_IN,
|
|
281
|
-
subCommands: [
|
|
282
|
-
{
|
|
283
|
-
name: 'child1',
|
|
284
|
-
description: 'First child.',
|
|
285
|
-
kind: CommandKind.BUILT_IN,
|
|
286
|
-
},
|
|
287
|
-
],
|
|
288
|
-
};
|
|
289
|
-
const result = await setupProcessorHook({
|
|
290
|
-
builtinCommands: [parentCommand],
|
|
291
|
-
});
|
|
292
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
293
|
-
await act(async () => {
|
|
294
|
-
await result.current.handleSlashCommand('/parent');
|
|
295
|
-
});
|
|
296
|
-
expect(mockAddItem).toHaveBeenCalledTimes(2);
|
|
297
|
-
expect(mockAddItem).toHaveBeenLastCalledWith({
|
|
298
|
-
type: MessageType.INFO,
|
|
299
|
-
text: expect.stringContaining("Command '/parent' requires a subcommand."),
|
|
300
|
-
}, expect.any(Number));
|
|
301
|
-
});
|
|
302
|
-
it('should correctly find and execute a nested subcommand', async () => {
|
|
303
|
-
const childAction = vi.fn();
|
|
304
|
-
const parentCommand = {
|
|
305
|
-
name: 'parent',
|
|
306
|
-
description: 'a parent command',
|
|
307
|
-
kind: CommandKind.BUILT_IN,
|
|
308
|
-
subCommands: [
|
|
309
|
-
{
|
|
310
|
-
name: 'child',
|
|
311
|
-
description: 'a child command',
|
|
312
|
-
kind: CommandKind.BUILT_IN,
|
|
313
|
-
action: childAction,
|
|
314
|
-
},
|
|
315
|
-
],
|
|
316
|
-
};
|
|
317
|
-
const result = await setupProcessorHook({
|
|
318
|
-
builtinCommands: [parentCommand],
|
|
319
|
-
});
|
|
320
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
321
|
-
await act(async () => {
|
|
322
|
-
await result.current.handleSlashCommand('/parent child with args');
|
|
323
|
-
});
|
|
324
|
-
expect(childAction).toHaveBeenCalledTimes(1);
|
|
325
|
-
expect(childAction).toHaveBeenCalledWith(expect.objectContaining({
|
|
326
|
-
services: expect.objectContaining({
|
|
327
|
-
config: mockConfig,
|
|
328
|
-
}),
|
|
329
|
-
ui: expect.objectContaining({
|
|
330
|
-
addItem: mockAddItem,
|
|
331
|
-
}),
|
|
332
|
-
}), 'with args');
|
|
333
|
-
});
|
|
334
|
-
it('sets isProcessing to false if the the input is not a command', async () => {
|
|
335
|
-
const setMockIsProcessing = vi.fn();
|
|
336
|
-
const result = await setupProcessorHook({
|
|
337
|
-
setIsProcessing: setMockIsProcessing,
|
|
338
|
-
});
|
|
339
|
-
await act(async () => {
|
|
340
|
-
await result.current.handleSlashCommand('imnotacommand');
|
|
341
|
-
});
|
|
342
|
-
expect(setMockIsProcessing).not.toHaveBeenCalled();
|
|
343
|
-
});
|
|
344
|
-
it('sets isProcessing to false if the command has an error', async () => {
|
|
345
|
-
const setMockIsProcessing = vi.fn();
|
|
346
|
-
const failCommand = createTestCommand({
|
|
347
|
-
name: 'fail',
|
|
348
|
-
action: vi.fn().mockRejectedValue(new Error('oh no!')),
|
|
349
|
-
});
|
|
350
|
-
const result = await setupProcessorHook({
|
|
351
|
-
builtinCommands: [failCommand],
|
|
352
|
-
setIsProcessing: setMockIsProcessing,
|
|
353
|
-
});
|
|
354
|
-
await waitFor(() => expect(result.current.slashCommands).toBeDefined());
|
|
355
|
-
await act(async () => {
|
|
356
|
-
await result.current.handleSlashCommand('/fail');
|
|
357
|
-
});
|
|
358
|
-
expect(setMockIsProcessing).toHaveBeenNthCalledWith(1, true);
|
|
359
|
-
expect(setMockIsProcessing).toHaveBeenNthCalledWith(2, false);
|
|
360
|
-
});
|
|
361
|
-
it('should set isProcessing to true during execution and false afterwards', async () => {
|
|
362
|
-
const mockSetIsProcessing = vi.fn();
|
|
363
|
-
const command = createTestCommand({
|
|
364
|
-
name: 'long-running',
|
|
365
|
-
action: () => new Promise((resolve) => setTimeout(resolve, 50)),
|
|
366
|
-
});
|
|
367
|
-
const result = await setupProcessorHook({
|
|
368
|
-
builtinCommands: [command],
|
|
369
|
-
setIsProcessing: mockSetIsProcessing,
|
|
370
|
-
});
|
|
371
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
372
|
-
const executionPromise = act(async () => {
|
|
373
|
-
await result.current.handleSlashCommand('/long-running');
|
|
374
|
-
});
|
|
375
|
-
// It should be true immediately after starting
|
|
376
|
-
expect(mockSetIsProcessing).toHaveBeenNthCalledWith(1, true);
|
|
377
|
-
// It should not have been called with false yet
|
|
378
|
-
expect(mockSetIsProcessing).not.toHaveBeenCalledWith(false);
|
|
379
|
-
await executionPromise;
|
|
380
|
-
// After the promise resolves, it should be called with false
|
|
381
|
-
expect(mockSetIsProcessing).toHaveBeenNthCalledWith(2, false);
|
|
382
|
-
expect(mockSetIsProcessing).toHaveBeenCalledTimes(2);
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
describe('Action Result Handling', () => {
|
|
386
|
-
describe('Dialog actions', () => {
|
|
387
|
-
it.each([
|
|
388
|
-
{
|
|
389
|
-
dialogType: 'theme',
|
|
390
|
-
commandName: 'themecmd',
|
|
391
|
-
mockFn: mockOpenThemeDialog,
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
dialogType: 'model',
|
|
395
|
-
commandName: 'modelcmd',
|
|
396
|
-
mockFn: mockOpenModelDialog,
|
|
397
|
-
},
|
|
398
|
-
])('should handle "dialog: $dialogType" action', async ({ dialogType, commandName, mockFn }) => {
|
|
399
|
-
const command = createTestCommand({
|
|
400
|
-
name: commandName,
|
|
401
|
-
action: vi
|
|
402
|
-
.fn()
|
|
403
|
-
.mockResolvedValue({ type: 'dialog', dialog: dialogType }),
|
|
404
|
-
});
|
|
405
|
-
const result = await setupProcessorHook({
|
|
406
|
-
builtinCommands: [command],
|
|
407
|
-
});
|
|
408
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
409
|
-
await act(async () => {
|
|
410
|
-
await result.current.handleSlashCommand(`/${commandName}`);
|
|
411
|
-
});
|
|
412
|
-
expect(mockFn).toHaveBeenCalled();
|
|
413
|
-
});
|
|
414
|
-
it('should handle "dialog: agentConfig" action with props', async () => {
|
|
415
|
-
const mockOpenAgentConfigDialog = vi.fn();
|
|
416
|
-
const agentDefinition = { name: 'test-agent' };
|
|
417
|
-
const commandName = 'agentconfigcmd';
|
|
418
|
-
const command = createTestCommand({
|
|
419
|
-
name: commandName,
|
|
420
|
-
action: vi.fn().mockResolvedValue({
|
|
421
|
-
type: 'dialog',
|
|
422
|
-
dialog: 'agentConfig',
|
|
423
|
-
props: {
|
|
424
|
-
name: 'test-agent',
|
|
425
|
-
displayName: 'Test Agent',
|
|
426
|
-
definition: agentDefinition,
|
|
427
|
-
},
|
|
428
|
-
}),
|
|
429
|
-
});
|
|
430
|
-
const result = await setupProcessorHook({
|
|
431
|
-
builtinCommands: [command],
|
|
432
|
-
openAgentConfigDialog: mockOpenAgentConfigDialog,
|
|
433
|
-
});
|
|
434
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
435
|
-
await act(async () => {
|
|
436
|
-
await result.current.handleSlashCommand(`/${commandName}`);
|
|
437
|
-
});
|
|
438
|
-
expect(mockOpenAgentConfigDialog).toHaveBeenCalledWith('test-agent', 'Test Agent', agentDefinition);
|
|
439
|
-
});
|
|
440
|
-
});
|
|
441
|
-
it('should handle "load_history" action', async () => {
|
|
442
|
-
const mockClient = {
|
|
443
|
-
setHistory: vi.fn(),
|
|
444
|
-
stripThoughtsFromHistory: vi.fn(),
|
|
445
|
-
};
|
|
446
|
-
vi.spyOn(mockConfig, 'getGeminiClient').mockReturnValue(mockClient);
|
|
447
|
-
const command = createTestCommand({
|
|
448
|
-
name: 'load',
|
|
449
|
-
action: vi.fn().mockResolvedValue({
|
|
450
|
-
type: 'load_history',
|
|
451
|
-
history: [{ type: MessageType.USER, text: 'old prompt' }],
|
|
452
|
-
clientHistory: [{ role: 'user', parts: [{ text: 'old prompt' }] }],
|
|
453
|
-
}),
|
|
454
|
-
});
|
|
455
|
-
const mockRefreshStatic = vi.fn();
|
|
456
|
-
const result = await setupProcessorHook({
|
|
457
|
-
builtinCommands: [command],
|
|
458
|
-
refreshStatic: mockRefreshStatic,
|
|
459
|
-
});
|
|
460
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
461
|
-
await act(async () => {
|
|
462
|
-
await result.current.handleSlashCommand('/load');
|
|
463
|
-
});
|
|
464
|
-
// ui.clear() is called which calls refreshStatic()
|
|
465
|
-
expect(mockClearItems).toHaveBeenCalledTimes(1);
|
|
466
|
-
expect(mockRefreshStatic).toHaveBeenCalledTimes(1);
|
|
467
|
-
expect(mockAddItem).toHaveBeenCalledWith({ type: 'user', text: 'old prompt' }, expect.any(Number));
|
|
468
|
-
});
|
|
469
|
-
it('should call refreshStatic exactly once when ui.loadHistory is called', async () => {
|
|
470
|
-
const mockRefreshStatic = vi.fn();
|
|
471
|
-
const result = await setupProcessorHook({
|
|
472
|
-
refreshStatic: mockRefreshStatic,
|
|
473
|
-
});
|
|
474
|
-
await act(async () => {
|
|
475
|
-
result.current.commandContext.ui.loadHistory([]);
|
|
476
|
-
});
|
|
477
|
-
expect(mockLoadHistory).toHaveBeenCalled();
|
|
478
|
-
expect(mockRefreshStatic).toHaveBeenCalledTimes(1);
|
|
479
|
-
});
|
|
480
|
-
it('should handle a "quit" action', async () => {
|
|
481
|
-
const quitAction = vi
|
|
482
|
-
.fn()
|
|
483
|
-
.mockResolvedValue({ type: 'quit', messages: ['bye'] });
|
|
484
|
-
const command = createTestCommand({
|
|
485
|
-
name: 'exit',
|
|
486
|
-
action: quitAction,
|
|
487
|
-
});
|
|
488
|
-
const result = await setupProcessorHook({
|
|
489
|
-
builtinCommands: [command],
|
|
490
|
-
});
|
|
491
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
492
|
-
await act(async () => {
|
|
493
|
-
await result.current.handleSlashCommand('/exit');
|
|
494
|
-
});
|
|
495
|
-
expect(mockSetQuittingMessages).toHaveBeenCalledWith(['bye']);
|
|
496
|
-
});
|
|
497
|
-
it('should handle "submit_prompt" action returned from a file-based command', async () => {
|
|
498
|
-
const fileCommand = createTestCommand({
|
|
499
|
-
name: 'filecmd',
|
|
500
|
-
description: 'A command from a file',
|
|
501
|
-
action: async () => ({
|
|
502
|
-
type: 'submit_prompt',
|
|
503
|
-
content: [{ text: 'The actual prompt from the TOML file.' }],
|
|
504
|
-
}),
|
|
505
|
-
}, CommandKind.FILE);
|
|
506
|
-
const result = await setupProcessorHook({
|
|
507
|
-
fileCommands: [fileCommand],
|
|
508
|
-
});
|
|
509
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
510
|
-
let actionResult;
|
|
511
|
-
await act(async () => {
|
|
512
|
-
actionResult = await result.current.handleSlashCommand('/filecmd');
|
|
513
|
-
});
|
|
514
|
-
expect(actionResult).toEqual({
|
|
515
|
-
type: 'submit_prompt',
|
|
516
|
-
content: [{ text: 'The actual prompt from the TOML file.' }],
|
|
517
|
-
});
|
|
518
|
-
expect(mockAddItem).toHaveBeenCalledWith({ type: MessageType.USER, text: '/filecmd' }, expect.any(Number));
|
|
519
|
-
});
|
|
520
|
-
it('should handle "submit_prompt" action returned from a mcp-based command', async () => {
|
|
521
|
-
const mcpCommand = createTestCommand({
|
|
522
|
-
name: 'mcpcmd',
|
|
523
|
-
description: 'A command from mcp',
|
|
524
|
-
action: async () => ({
|
|
525
|
-
type: 'submit_prompt',
|
|
526
|
-
content: [{ text: 'The actual prompt from the mcp command.' }],
|
|
527
|
-
}),
|
|
528
|
-
}, CommandKind.MCP_PROMPT);
|
|
529
|
-
const result = await setupProcessorHook({
|
|
530
|
-
mcpCommands: [mcpCommand],
|
|
531
|
-
});
|
|
532
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
533
|
-
let actionResult;
|
|
534
|
-
await act(async () => {
|
|
535
|
-
actionResult = await result.current.handleSlashCommand('/mcpcmd');
|
|
536
|
-
});
|
|
537
|
-
expect(actionResult).toEqual({
|
|
538
|
-
type: 'submit_prompt',
|
|
539
|
-
content: [{ text: 'The actual prompt from the mcp command.' }],
|
|
540
|
-
});
|
|
541
|
-
expect(mockAddItem).toHaveBeenCalledWith({ type: MessageType.USER, text: '/mcpcmd' }, expect.any(Number));
|
|
542
|
-
});
|
|
543
|
-
});
|
|
544
|
-
describe('Command Parsing and Matching', () => {
|
|
545
|
-
it('should be case-sensitive', async () => {
|
|
546
|
-
const command = createTestCommand({ name: 'test' });
|
|
547
|
-
const result = await setupProcessorHook({
|
|
548
|
-
builtinCommands: [command],
|
|
549
|
-
});
|
|
550
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
551
|
-
await act(async () => {
|
|
552
|
-
// Use uppercase when command is lowercase
|
|
553
|
-
await result.current.handleSlashCommand('/Test');
|
|
554
|
-
});
|
|
555
|
-
// It should fail and call addItem with an error
|
|
556
|
-
expect(mockAddItem).toHaveBeenCalledWith({
|
|
557
|
-
type: MessageType.ERROR,
|
|
558
|
-
text: 'Unknown command: /Test',
|
|
559
|
-
}, expect.any(Number));
|
|
560
|
-
});
|
|
561
|
-
it('should correctly match an altName', async () => {
|
|
562
|
-
const action = vi.fn();
|
|
563
|
-
const command = createTestCommand({
|
|
564
|
-
name: 'main',
|
|
565
|
-
altNames: ['alias'],
|
|
566
|
-
description: 'a command with an alias',
|
|
567
|
-
action,
|
|
568
|
-
});
|
|
569
|
-
const result = await setupProcessorHook({
|
|
570
|
-
builtinCommands: [command],
|
|
571
|
-
});
|
|
572
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
573
|
-
await act(async () => {
|
|
574
|
-
await result.current.handleSlashCommand('/alias');
|
|
575
|
-
});
|
|
576
|
-
expect(action).toHaveBeenCalledTimes(1);
|
|
577
|
-
expect(mockAddItem).not.toHaveBeenCalledWith(expect.objectContaining({ type: MessageType.ERROR }));
|
|
578
|
-
});
|
|
579
|
-
it('should handle extra whitespace around the command', async () => {
|
|
580
|
-
const action = vi.fn();
|
|
581
|
-
const command = createTestCommand({ name: 'test', action });
|
|
582
|
-
const result = await setupProcessorHook({
|
|
583
|
-
builtinCommands: [command],
|
|
584
|
-
});
|
|
585
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
586
|
-
await act(async () => {
|
|
587
|
-
await result.current.handleSlashCommand(' /test with-args ');
|
|
588
|
-
});
|
|
589
|
-
expect(action).toHaveBeenCalledWith(expect.anything(), 'with-args');
|
|
590
|
-
});
|
|
591
|
-
it('should handle `?` as a command prefix', async () => {
|
|
592
|
-
const action = vi.fn();
|
|
593
|
-
const command = createTestCommand({ name: 'help', action });
|
|
594
|
-
const result = await setupProcessorHook({
|
|
595
|
-
builtinCommands: [command],
|
|
596
|
-
});
|
|
597
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(1));
|
|
598
|
-
await act(async () => {
|
|
599
|
-
await result.current.handleSlashCommand('?help');
|
|
600
|
-
});
|
|
601
|
-
expect(action).toHaveBeenCalledTimes(1);
|
|
602
|
-
});
|
|
603
|
-
});
|
|
604
|
-
describe('Command Precedence', () => {
|
|
605
|
-
it('should override mcp-based commands with file-based commands of the same name', async () => {
|
|
606
|
-
const mcpAction = vi.fn();
|
|
607
|
-
const fileAction = vi.fn();
|
|
608
|
-
const mcpCommand = createTestCommand({
|
|
609
|
-
name: 'override',
|
|
610
|
-
description: 'mcp',
|
|
611
|
-
action: mcpAction,
|
|
612
|
-
}, CommandKind.MCP_PROMPT);
|
|
613
|
-
const fileCommand = createTestCommand({ name: 'override', description: 'file', action: fileAction }, CommandKind.FILE);
|
|
614
|
-
const result = await setupProcessorHook({
|
|
615
|
-
fileCommands: [fileCommand],
|
|
616
|
-
mcpCommands: [mcpCommand],
|
|
617
|
-
});
|
|
618
|
-
await waitFor(() => {
|
|
619
|
-
// The service should only return one command with the name 'override'
|
|
620
|
-
expect(result.current.slashCommands).toHaveLength(1);
|
|
621
|
-
});
|
|
622
|
-
await act(async () => {
|
|
623
|
-
await result.current.handleSlashCommand('/override');
|
|
624
|
-
});
|
|
625
|
-
// Only the file-based command's action should be called.
|
|
626
|
-
expect(fileAction).toHaveBeenCalledTimes(1);
|
|
627
|
-
expect(mcpAction).not.toHaveBeenCalled();
|
|
628
|
-
});
|
|
629
|
-
it('should prioritize a command with a primary name over a command with a matching alias', async () => {
|
|
630
|
-
const quitAction = vi.fn();
|
|
631
|
-
const exitAction = vi.fn();
|
|
632
|
-
const quitCommand = createTestCommand({
|
|
633
|
-
name: 'quit',
|
|
634
|
-
altNames: ['exit'],
|
|
635
|
-
action: quitAction,
|
|
636
|
-
});
|
|
637
|
-
const exitCommand = createTestCommand({
|
|
638
|
-
name: 'exit',
|
|
639
|
-
action: exitAction,
|
|
640
|
-
}, CommandKind.FILE);
|
|
641
|
-
// The order of commands in the final loaded array is not guaranteed,
|
|
642
|
-
// so the test must work regardless of which comes first.
|
|
643
|
-
const result = await setupProcessorHook({
|
|
644
|
-
builtinCommands: [quitCommand],
|
|
645
|
-
fileCommands: [exitCommand],
|
|
646
|
-
});
|
|
647
|
-
await waitFor(() => {
|
|
648
|
-
expect(result.current.slashCommands).toHaveLength(2);
|
|
649
|
-
});
|
|
650
|
-
await act(async () => {
|
|
651
|
-
await result.current.handleSlashCommand('/exit');
|
|
652
|
-
});
|
|
653
|
-
// The action for the command whose primary name is 'exit' should be called.
|
|
654
|
-
expect(exitAction).toHaveBeenCalledTimes(1);
|
|
655
|
-
// The action for the command that has 'exit' as an alias should NOT be called.
|
|
656
|
-
expect(quitAction).not.toHaveBeenCalled();
|
|
657
|
-
});
|
|
658
|
-
it('should add an overridden command to the history', async () => {
|
|
659
|
-
const quitCommand = createTestCommand({
|
|
660
|
-
name: 'quit',
|
|
661
|
-
altNames: ['exit'],
|
|
662
|
-
action: vi.fn(),
|
|
663
|
-
});
|
|
664
|
-
const exitCommand = createTestCommand({ name: 'exit', action: vi.fn() }, CommandKind.FILE);
|
|
665
|
-
const result = await setupProcessorHook({
|
|
666
|
-
builtinCommands: [quitCommand],
|
|
667
|
-
fileCommands: [exitCommand],
|
|
668
|
-
});
|
|
669
|
-
await waitFor(() => expect(result.current.slashCommands).toHaveLength(2));
|
|
670
|
-
await act(async () => {
|
|
671
|
-
await result.current.handleSlashCommand('/exit');
|
|
672
|
-
});
|
|
673
|
-
// It should be added to the history.
|
|
674
|
-
expect(mockAddItem).toHaveBeenCalledWith({ type: MessageType.USER, text: '/exit' }, expect.any(Number));
|
|
675
|
-
});
|
|
676
|
-
});
|
|
677
|
-
describe('Lifecycle', () => {
|
|
678
|
-
it('should abort command loading when the hook unmounts', async () => {
|
|
679
|
-
const abortSpy = vi.spyOn(AbortController.prototype, 'abort');
|
|
680
|
-
const { unmount } = await setupProcessorHook();
|
|
681
|
-
unmount();
|
|
682
|
-
expect(abortSpy).toHaveBeenCalledTimes(1);
|
|
683
|
-
});
|
|
684
|
-
});
|
|
685
|
-
describe('Slash Command Logging', () => {
|
|
686
|
-
const mockCommandAction = vi.fn().mockResolvedValue({ type: 'handled' });
|
|
687
|
-
let loggingTestCommands;
|
|
688
|
-
beforeEach(() => {
|
|
689
|
-
mockCommandAction.mockClear();
|
|
690
|
-
vi.mocked(logSlashCommand).mockClear();
|
|
691
|
-
loggingTestCommands = [
|
|
692
|
-
createTestCommand({
|
|
693
|
-
name: 'logtest',
|
|
694
|
-
action: vi
|
|
695
|
-
.fn()
|
|
696
|
-
.mockResolvedValue({ type: 'message', content: 'hello world' }),
|
|
697
|
-
}),
|
|
698
|
-
createTestCommand({
|
|
699
|
-
name: 'logwithsub',
|
|
700
|
-
subCommands: [
|
|
701
|
-
createTestCommand({
|
|
702
|
-
name: 'sub',
|
|
703
|
-
action: mockCommandAction,
|
|
704
|
-
}),
|
|
705
|
-
],
|
|
706
|
-
}),
|
|
707
|
-
createTestCommand({
|
|
708
|
-
name: 'fail',
|
|
709
|
-
action: vi.fn().mockRejectedValue(new Error('oh no!')),
|
|
710
|
-
}),
|
|
711
|
-
createTestCommand({
|
|
712
|
-
name: 'logalias',
|
|
713
|
-
altNames: ['la'],
|
|
714
|
-
action: mockCommandAction,
|
|
715
|
-
}),
|
|
716
|
-
];
|
|
717
|
-
});
|
|
718
|
-
it.each([
|
|
719
|
-
{
|
|
720
|
-
command: '/logtest',
|
|
721
|
-
expectedLog: {
|
|
722
|
-
command: 'logtest',
|
|
723
|
-
subcommand: undefined,
|
|
724
|
-
status: SlashCommandStatus.SUCCESS,
|
|
725
|
-
},
|
|
726
|
-
desc: 'simple slash command',
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
command: '/fail',
|
|
730
|
-
expectedLog: {
|
|
731
|
-
command: 'fail',
|
|
732
|
-
status: 'error',
|
|
733
|
-
subcommand: undefined,
|
|
734
|
-
},
|
|
735
|
-
desc: 'failure event for failed command',
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
command: '/logwithsub sub',
|
|
739
|
-
expectedLog: {
|
|
740
|
-
command: 'logwithsub',
|
|
741
|
-
subcommand: 'sub',
|
|
742
|
-
},
|
|
743
|
-
desc: 'slash command with subcommand',
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
command: '/la',
|
|
747
|
-
expectedLog: {
|
|
748
|
-
command: 'logalias',
|
|
749
|
-
},
|
|
750
|
-
desc: 'command path when alias is used',
|
|
751
|
-
},
|
|
752
|
-
])('should log $desc', async ({ command, expectedLog }) => {
|
|
753
|
-
const result = await setupProcessorHook({
|
|
754
|
-
builtinCommands: loggingTestCommands,
|
|
755
|
-
});
|
|
756
|
-
await waitFor(() => expect(result.current.slashCommands).toBeDefined());
|
|
757
|
-
await act(async () => {
|
|
758
|
-
await result.current.handleSlashCommand(command);
|
|
759
|
-
});
|
|
760
|
-
await waitFor(() => {
|
|
761
|
-
expect(logSlashCommand).toHaveBeenCalledWith(mockConfig, expect.objectContaining(expectedLog));
|
|
762
|
-
});
|
|
763
|
-
});
|
|
764
|
-
it.each([
|
|
765
|
-
{ command: '/bogusbogusbogus', desc: 'bogus command' },
|
|
766
|
-
{ command: '/unknown', desc: 'unknown command' },
|
|
767
|
-
])('should not log for $desc', async ({ command }) => {
|
|
768
|
-
const result = await setupProcessorHook({
|
|
769
|
-
builtinCommands: loggingTestCommands,
|
|
770
|
-
});
|
|
771
|
-
await waitFor(() => expect(result.current.slashCommands).toBeDefined());
|
|
772
|
-
await act(async () => {
|
|
773
|
-
await result.current.handleSlashCommand(command);
|
|
774
|
-
});
|
|
775
|
-
expect(logSlashCommand).not.toHaveBeenCalled();
|
|
776
|
-
});
|
|
777
|
-
});
|
|
778
|
-
it('should reload commands on extension events', async () => {
|
|
779
|
-
const result = await setupProcessorHook();
|
|
780
|
-
await waitFor(() => expect(result.current.slashCommands).toEqual([]));
|
|
781
|
-
// Create a new command and make that the result of the fileLoadCommands
|
|
782
|
-
// (which is where extension commands come from)
|
|
783
|
-
const newCommand = createTestCommand({
|
|
784
|
-
name: 'someNewCommand',
|
|
785
|
-
action: vi.fn(),
|
|
786
|
-
});
|
|
787
|
-
mockFileLoadCommands.mockResolvedValue([newCommand]);
|
|
788
|
-
// We should not see a change until we fire an event.
|
|
789
|
-
await waitFor(() => expect(result.current.slashCommands).toEqual([]));
|
|
790
|
-
act(() => {
|
|
791
|
-
coreEvents.emit('extensionsStarting');
|
|
792
|
-
});
|
|
793
|
-
await waitFor(() => expect(result.current.slashCommands).toEqual([newCommand]));
|
|
794
|
-
});
|
|
795
|
-
});
|
|
796
|
-
//# sourceMappingURL=slashCommandProcessor.test.js.map
|