@machina.ai/cell-cli 1.10.0-rc1 → 1.13.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/package.json +14 -12
- package/dist/src/commands/extensions/disable.d.ts +1 -1
- package/dist/src/commands/extensions/disable.js +19 -8
- package/dist/src/commands/extensions/disable.js.map +1 -1
- package/dist/src/commands/extensions/enable.d.ts +1 -1
- package/dist/src/commands/extensions/enable.js +19 -9
- package/dist/src/commands/extensions/enable.js.map +1 -1
- package/dist/src/commands/extensions/examples/mcp-server/example.js +46 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.js.map +1 -0
- package/dist/src/commands/extensions/install.d.ts +1 -0
- package/dist/src/commands/extensions/install.js +29 -4
- package/dist/src/commands/extensions/install.js.map +1 -1
- package/dist/src/commands/extensions/install.test.js +39 -19
- package/dist/src/commands/extensions/install.test.js.map +1 -1
- package/dist/src/commands/extensions/link.js +16 -4
- package/dist/src/commands/extensions/link.js.map +1 -1
- package/dist/src/commands/extensions/list.js +17 -6
- package/dist/src/commands/extensions/list.js.map +1 -1
- package/dist/src/commands/extensions/new.js +14 -20
- package/dist/src/commands/extensions/new.js.map +1 -1
- package/dist/src/commands/extensions/uninstall.js +16 -4
- package/dist/src/commands/extensions/uninstall.js.map +1 -1
- package/dist/src/commands/extensions/update.js +28 -23
- package/dist/src/commands/extensions/update.js.map +1 -1
- package/dist/src/commands/extensions/validate.d.ts +12 -0
- package/dist/src/commands/extensions/validate.js +83 -0
- package/dist/src/commands/extensions/validate.js.map +1 -0
- package/dist/src/commands/extensions/validate.test.d.ts +6 -0
- package/dist/src/commands/extensions/validate.test.js +93 -0
- package/dist/src/commands/extensions/validate.test.js.map +1 -0
- package/dist/src/commands/extensions.js +3 -0
- package/dist/src/commands/extensions.js.map +1 -1
- package/dist/src/commands/mcp/add.js +7 -4
- package/dist/src/commands/mcp/add.js.map +1 -1
- package/dist/src/commands/mcp/add.test.d.ts +6 -0
- package/dist/src/commands/mcp/add.test.js +247 -0
- package/dist/src/commands/mcp/add.test.js.map +1 -0
- package/dist/src/commands/mcp/list.js +18 -9
- package/dist/src/commands/mcp/list.js.map +1 -1
- package/dist/src/commands/mcp/list.test.d.ts +6 -0
- package/dist/src/commands/mcp/list.test.js +128 -0
- package/dist/src/commands/mcp/list.test.js.map +1 -0
- package/dist/src/commands/mcp/remove.js +3 -2
- package/dist/src/commands/mcp/remove.js.map +1 -1
- package/dist/src/commands/mcp/remove.test.d.ts +6 -0
- package/dist/src/commands/mcp/remove.test.js +175 -0
- package/dist/src/commands/mcp/remove.test.js.map +1 -0
- package/dist/src/commands/mcp.test.d.ts +6 -0
- package/dist/src/commands/mcp.test.js +62 -0
- package/dist/src/commands/mcp.test.js.map +1 -0
- package/dist/src/config/auth.js +0 -3
- package/dist/src/config/auth.js.map +1 -1
- package/dist/src/config/config.d.ts +6 -15
- package/dist/src/config/config.integration.test.d.ts +6 -0
- package/dist/src/config/config.integration.test.js +321 -0
- package/dist/src/config/config.integration.test.js.map +1 -0
- package/dist/src/config/config.js +85 -164
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/config.test.d.ts +6 -0
- package/dist/src/config/config.test.js +1972 -0
- package/dist/src/config/config.test.js.map +1 -0
- package/dist/src/config/extension-manager.d.ts +63 -0
- package/dist/src/config/extension-manager.js +450 -0
- package/dist/src/config/extension-manager.js.map +1 -0
- package/dist/src/config/extension.d.ts +4 -61
- package/dist/src/config/extension.js +1 -538
- package/dist/src/config/extension.js.map +1 -1
- package/dist/src/config/extension.test.d.ts +6 -0
- package/dist/src/config/extension.test.js +1412 -0
- package/dist/src/config/extension.test.js.map +1 -0
- package/dist/src/config/extensions/consent.d.ts +38 -0
- package/dist/src/config/extensions/consent.js +123 -0
- package/dist/src/config/extensions/consent.js.map +1 -0
- package/dist/src/config/extensions/extensionEnablement.d.ts +2 -2
- package/dist/src/config/extensions/extensionEnablement.js +7 -5
- package/dist/src/config/extensions/extensionEnablement.js.map +1 -1
- package/dist/src/config/extensions/extensionEnablement.test.js +31 -28
- package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -1
- package/dist/src/config/extensions/extensionSettings.d.ts +15 -0
- package/dist/src/config/extensions/extensionSettings.js +113 -0
- package/dist/src/config/extensions/extensionSettings.js.map +1 -0
- package/dist/src/config/extensions/extensionSettings.test.d.ts +6 -0
- package/dist/src/config/extensions/extensionSettings.test.js +254 -0
- package/dist/src/config/extensions/extensionSettings.test.js.map +1 -0
- package/dist/src/config/extensions/github.d.ts +18 -9
- package/dist/src/config/extensions/github.js +108 -36
- package/dist/src/config/extensions/github.js.map +1 -1
- package/dist/src/config/extensions/github.test.js +158 -164
- package/dist/src/config/extensions/github.test.js.map +1 -1
- package/dist/src/config/extensions/github_fetch.d.ts +1 -1
- package/dist/src/config/extensions/github_fetch.js +13 -1
- package/dist/src/config/extensions/github_fetch.js.map +1 -1
- package/dist/src/config/extensions/github_fetch.test.d.ts +6 -0
- package/dist/src/config/extensions/github_fetch.test.js +169 -0
- package/dist/src/config/extensions/github_fetch.test.js.map +1 -0
- package/dist/src/config/extensions/storage.d.ts +14 -0
- package/dist/src/config/extensions/storage.js +32 -0
- package/dist/src/config/extensions/storage.js.map +1 -0
- package/dist/src/config/extensions/update.d.ts +5 -4
- package/dist/src/config/extensions/update.js +41 -37
- package/dist/src/config/extensions/update.js.map +1 -1
- package/dist/src/config/extensions/update.test.js +72 -74
- package/dist/src/config/extensions/update.test.js.map +1 -1
- package/dist/src/config/extensions/variableSchema.d.ts +0 -4
- package/dist/src/config/extensions/variableSchema.js.map +1 -1
- package/dist/src/config/extensions/variables.d.ts +4 -0
- package/dist/src/config/extensions/variables.js +6 -0
- package/dist/src/config/extensions/variables.js.map +1 -1
- package/dist/src/config/keyBindings.d.ts +5 -1
- package/dist/src/config/keyBindings.js +34 -10
- package/dist/src/config/keyBindings.js.map +1 -1
- package/dist/src/config/keyBindings.test.js +17 -0
- package/dist/src/config/keyBindings.test.js.map +1 -1
- package/dist/src/config/policies/read-only.toml +56 -0
- package/dist/src/config/policies/write.toml +63 -0
- package/dist/src/config/policies/yolo.toml +31 -0
- package/dist/src/config/policy-engine.integration.test.js +41 -38
- package/dist/src/config/policy-engine.integration.test.js.map +1 -1
- package/dist/src/config/policy.d.ts +4 -3
- package/dist/src/config/policy.js +13 -142
- package/dist/src/config/policy.js.map +1 -1
- package/dist/src/config/sandboxConfig.d.ts +1 -2
- package/dist/src/config/sandboxConfig.js +7 -6
- package/dist/src/config/sandboxConfig.js.map +1 -1
- package/dist/src/config/settings.d.ts +2 -1
- package/dist/src/config/settings.js +59 -15
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/config/settings.test.d.ts +6 -0
- package/dist/src/config/settings.test.js +2000 -0
- package/dist/src/config/settings.test.js.map +1 -0
- package/dist/src/config/settingsSchema.d.ts +170 -28
- package/dist/src/config/settingsSchema.js +418 -27
- package/dist/src/config/settingsSchema.js.map +1 -1
- package/dist/src/config/settingsSchema.test.js +42 -1
- package/dist/src/config/settingsSchema.test.js.map +1 -1
- package/dist/src/config/trustedFolders.d.ts +1 -1
- package/dist/src/config/trustedFolders.js +4 -2
- package/dist/src/config/trustedFolders.js.map +1 -1
- package/dist/src/core/initializer.js +2 -1
- package/dist/src/core/initializer.js.map +1 -1
- package/dist/src/gemini.d.ts +1 -1
- package/dist/src/gemini.js +63 -27
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.js +123 -34
- package/dist/src/gemini.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/nonInteractiveCli.d.ts +9 -1
- package/dist/src/nonInteractiveCli.js +205 -10
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/nonInteractiveCli.test.d.ts +6 -0
- package/dist/src/nonInteractiveCli.test.js +984 -0
- package/dist/src/nonInteractiveCli.test.js.map +1 -0
- package/dist/src/nonInteractiveCliCommands.js +2 -2
- package/dist/src/nonInteractiveCliCommands.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.js +4 -0
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.test.js +22 -0
- package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
- package/dist/src/services/CommandService.js +2 -1
- package/dist/src/services/CommandService.js.map +1 -1
- package/dist/src/services/FeedbackService.js +2 -2
- package/dist/src/services/FeedbackService.js.map +1 -1
- package/dist/src/services/FileCommandLoader.test.d.ts +6 -0
- package/dist/src/services/FileCommandLoader.test.js +971 -0
- package/dist/src/services/FileCommandLoader.test.js.map +1 -0
- package/dist/src/services/McpPromptLoader.js +2 -2
- package/dist/src/services/McpPromptLoader.js.map +1 -1
- package/dist/src/services/McpPromptLoader.test.js +4 -2
- package/dist/src/services/McpPromptLoader.test.js.map +1 -1
- package/dist/src/services/prompt-processors/argumentProcessor.test.d.ts +6 -0
- package/dist/src/services/prompt-processors/argumentProcessor.test.js +40 -0
- package/dist/src/services/prompt-processors/argumentProcessor.test.js.map +1 -0
- package/dist/src/services/prompt-processors/atFileProcessor.js +3 -2
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.test.d.ts +6 -0
- package/dist/src/services/prompt-processors/shellProcessor.test.js +482 -0
- package/dist/src/services/prompt-processors/shellProcessor.test.js.map +1 -0
- package/dist/src/test-utils/async.d.ts +9 -0
- package/dist/src/test-utils/async.js +29 -0
- package/dist/src/test-utils/async.js.map +1 -0
- package/dist/src/test-utils/createExtension.d.ts +3 -1
- package/dist/src/test-utils/createExtension.js +3 -3
- package/dist/src/test-utils/createExtension.js.map +1 -1
- package/dist/src/test-utils/render.d.ts +17 -2
- package/dist/src/test-utils/render.js +69 -4
- package/dist/src/test-utils/render.js.map +1 -1
- package/dist/src/test-utils/render.test.d.ts +6 -0
- package/dist/src/test-utils/render.test.js +79 -0
- package/dist/src/test-utils/render.test.js.map +1 -0
- package/dist/src/ui/App.test.d.ts +6 -0
- package/dist/src/ui/App.test.js +110 -0
- package/dist/src/ui/App.test.js.map +1 -0
- package/dist/src/ui/AppContainer.js +223 -92
- package/dist/src/ui/AppContainer.js.map +1 -1
- package/dist/src/ui/AppContainer.test.js +531 -147
- package/dist/src/ui/AppContainer.test.js.map +1 -1
- package/dist/src/ui/IdeIntegrationNudge.js +1 -1
- package/dist/src/ui/IdeIntegrationNudge.js.map +1 -1
- package/dist/src/ui/auth/ApiAuthDialog.d.ts +14 -0
- package/dist/src/ui/auth/ApiAuthDialog.js +26 -0
- package/dist/src/ui/auth/ApiAuthDialog.js.map +1 -0
- package/dist/src/ui/auth/ApiAuthDialog.test.d.ts +6 -0
- package/dist/src/ui/auth/ApiAuthDialog.test.js +91 -0
- package/dist/src/ui/auth/ApiAuthDialog.test.js.map +1 -0
- package/dist/src/ui/auth/AuthDialog.d.ts +1 -1
- package/dist/src/ui/auth/AuthDialog.js +9 -3
- package/dist/src/ui/auth/AuthDialog.js.map +1 -1
- package/dist/src/ui/auth/useAuth.d.ts +3 -1
- package/dist/src/ui/auth/useAuth.js +35 -4
- package/dist/src/ui/auth/useAuth.js.map +1 -1
- package/dist/src/ui/colors.js +3 -0
- package/dist/src/ui/colors.js.map +1 -1
- package/dist/src/ui/commands/aboutCommand.js +1 -1
- package/dist/src/ui/commands/aboutCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/aboutCommand.test.js +130 -0
- package/dist/src/ui/commands/aboutCommand.test.js.map +1 -0
- package/dist/src/ui/commands/authCommand.js +1 -1
- package/dist/src/ui/commands/authCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/authCommand.test.js +30 -0
- package/dist/src/ui/commands/authCommand.test.js.map +1 -0
- package/dist/src/ui/commands/bugCommand.js +1 -1
- package/dist/src/ui/commands/bugCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/bugCommand.test.js +105 -0
- package/dist/src/ui/commands/bugCommand.test.js.map +1 -0
- package/dist/src/ui/commands/chatCommand.js +1 -1
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/chatCommand.test.js +555 -0
- package/dist/src/ui/commands/chatCommand.test.js.map +1 -0
- package/dist/src/ui/commands/clearCommand.js +1 -1
- package/dist/src/ui/commands/clearCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/clearCommand.test.js +76 -0
- package/dist/src/ui/commands/clearCommand.test.js.map +1 -0
- package/dist/src/ui/commands/compressCommand.js +1 -1
- package/dist/src/ui/commands/compressCommand.js.map +1 -1
- package/dist/src/ui/commands/compressCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/compressCommand.test.js +98 -0
- package/dist/src/ui/commands/compressCommand.test.js.map +1 -0
- package/dist/src/ui/commands/copyCommand.js +2 -1
- package/dist/src/ui/commands/copyCommand.js.map +1 -1
- package/dist/src/ui/commands/copyCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/copyCommand.test.js +242 -0
- package/dist/src/ui/commands/copyCommand.test.js.map +1 -0
- package/dist/src/ui/commands/corgiCommand.js +1 -1
- package/dist/src/ui/commands/corgiCommand.js.map +1 -1
- package/dist/src/ui/commands/corgiCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/corgiCommand.test.js +28 -0
- package/dist/src/ui/commands/corgiCommand.test.js.map +1 -0
- package/dist/src/ui/commands/directoryCommand.js +1 -1
- package/dist/src/ui/commands/directoryCommand.js.map +1 -1
- package/dist/src/ui/commands/directoryCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/directoryCommand.test.js +144 -0
- package/dist/src/ui/commands/directoryCommand.test.js.map +1 -0
- package/dist/src/ui/commands/docsCommand.js +1 -1
- package/dist/src/ui/commands/docsCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/docsCommand.test.js +72 -0
- package/dist/src/ui/commands/docsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/editorCommand.js +1 -1
- package/dist/src/ui/commands/editorCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/editorCommand.test.js +27 -0
- package/dist/src/ui/commands/editorCommand.test.js.map +1 -0
- package/dist/src/ui/commands/extensionsCommand.js +64 -11
- package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
- package/dist/src/ui/commands/extensionsCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/extensionsCommand.test.js +315 -0
- package/dist/src/ui/commands/extensionsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/helpCommand.js +1 -1
- package/dist/src/ui/commands/helpCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/helpCommand.test.js +42 -0
- package/dist/src/ui/commands/helpCommand.test.js.map +1 -0
- package/dist/src/ui/commands/ideCommand.js +6 -6
- package/dist/src/ui/commands/ideCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/ideCommand.test.js +205 -0
- package/dist/src/ui/commands/ideCommand.test.js.map +1 -0
- package/dist/src/ui/commands/initCommand.js +1 -1
- package/dist/src/ui/commands/initCommand.js.map +1 -1
- package/dist/src/ui/commands/initCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/initCommand.test.js +80 -0
- package/dist/src/ui/commands/initCommand.test.js.map +1 -0
- package/dist/src/ui/commands/mcpCommand.js +110 -100
- package/dist/src/ui/commands/mcpCommand.js.map +1 -1
- package/dist/src/ui/commands/mcpCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/mcpCommand.test.js +152 -0
- package/dist/src/ui/commands/mcpCommand.test.js.map +1 -0
- package/dist/src/ui/commands/memoryCommand.js +6 -6
- package/dist/src/ui/commands/memoryCommand.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/memoryCommand.test.js +268 -0
- package/dist/src/ui/commands/memoryCommand.test.js.map +1 -0
- package/dist/src/ui/commands/policiesCommand.d.ts +7 -0
- package/dist/src/ui/commands/policiesCommand.js +59 -0
- package/dist/src/ui/commands/policiesCommand.js.map +1 -0
- package/dist/src/ui/commands/policiesCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/policiesCommand.test.js +83 -0
- package/dist/src/ui/commands/policiesCommand.test.js.map +1 -0
- package/dist/src/ui/commands/privacyCommand.js +1 -1
- package/dist/src/ui/commands/privacyCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/privacyCommand.test.js +32 -0
- package/dist/src/ui/commands/privacyCommand.test.js.map +1 -0
- package/dist/src/ui/commands/quitCommand.js +1 -1
- package/dist/src/ui/commands/quitCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/quitCommand.test.js +50 -0
- package/dist/src/ui/commands/quitCommand.test.js.map +1 -0
- package/dist/src/ui/commands/restoreCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/restoreCommand.test.js +190 -0
- package/dist/src/ui/commands/restoreCommand.test.js.map +1 -0
- package/dist/src/ui/commands/settingsCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/settingsCommand.test.js +30 -0
- package/dist/src/ui/commands/settingsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/setupGithubCommand.js +4 -3
- package/dist/src/ui/commands/setupGithubCommand.js.map +1 -1
- package/dist/src/ui/commands/setupGithubCommand.test.js +1 -2
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -1
- package/dist/src/ui/commands/statsCommand.js +3 -3
- package/dist/src/ui/commands/statsCommand.js.map +1 -1
- package/dist/src/ui/commands/statsCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/statsCommand.test.js +53 -0
- package/dist/src/ui/commands/statsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/terminalSetupCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/terminalSetupCommand.test.js +66 -0
- package/dist/src/ui/commands/terminalSetupCommand.test.js.map +1 -0
- package/dist/src/ui/commands/themeCommand.js +1 -1
- package/dist/src/ui/commands/themeCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/themeCommand.test.js +32 -0
- package/dist/src/ui/commands/themeCommand.test.js.map +1 -0
- package/dist/src/ui/commands/toolsCommand.js +1 -1
- package/dist/src/ui/commands/toolsCommand.test.d.ts +6 -0
- package/dist/src/ui/commands/toolsCommand.test.js +100 -0
- package/dist/src/ui/commands/toolsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/types.d.ts +1 -0
- package/dist/src/ui/commands/vimCommand.js +1 -1
- package/dist/src/ui/components/AnsiOutput.test.js +1 -1
- package/dist/src/ui/components/AnsiOutput.test.js.map +1 -1
- package/dist/src/ui/components/AsciiArt.d.ts +3 -3
- package/dist/src/ui/components/AsciiArt.js +3 -3
- package/dist/src/ui/components/Composer.js +6 -4
- package/dist/src/ui/components/Composer.js.map +1 -1
- package/dist/src/ui/components/Composer.test.js +21 -3
- package/dist/src/ui/components/Composer.test.js.map +1 -1
- package/dist/src/ui/components/ConfigInitDisplay.js +4 -6
- package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -1
- package/dist/src/ui/components/ConsentPrompt.test.js +18 -8
- package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +1 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.js +2 -12
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/ContextSummaryDisplay.test.js +71 -0
- package/dist/src/ui/components/ContextSummaryDisplay.test.js.map +1 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js +1 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -1
- package/dist/src/ui/components/DialogManager.js +5 -5
- package/dist/src/ui/components/DialogManager.js.map +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.js +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.js +8 -3
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/Footer.js +4 -3
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/Footer.test.d.ts +6 -0
- package/dist/src/ui/components/Footer.test.js +314 -0
- package/dist/src/ui/components/Footer.test.js.map +1 -0
- package/dist/src/ui/components/Header.test.js +13 -5
- package/dist/src/ui/components/Header.test.js.map +1 -1
- package/dist/src/ui/components/Help.test.js +5 -4
- package/dist/src/ui/components/Help.test.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.d.ts +4 -0
- package/dist/src/ui/components/InputPrompt.js +80 -12
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.test.d.ts +6 -0
- package/dist/src/ui/components/InputPrompt.test.js +1786 -0
- package/dist/src/ui/components/InputPrompt.test.js.map +1 -0
- package/dist/src/ui/components/LoadingIndicator.js +2 -2
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
- package/dist/src/ui/components/LoadingIndicator.test.js +28 -15
- package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.js +1 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +2 -2
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -1
- package/dist/src/ui/components/MainContent.js +15 -4
- package/dist/src/ui/components/MainContent.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.js +1 -1
- package/dist/src/ui/components/ModelDialog.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.test.js +23 -13
- package/dist/src/ui/components/ModelDialog.test.js.map +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/ModelStatsDisplay.test.js +285 -0
- package/dist/src/ui/components/ModelStatsDisplay.test.js.map +1 -0
- package/dist/src/ui/components/Notifications.js +38 -5
- package/dist/src/ui/components/Notifications.js.map +1 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js +22 -18
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +12 -4
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -1
- package/dist/src/ui/components/PrepareLabel.test.js +14 -8
- package/dist/src/ui/components/PrepareLabel.test.js.map +1 -1
- package/dist/src/ui/components/ProQuotaDialog.test.js +14 -6
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -1
- package/dist/src/ui/components/QueuedMessageDisplay.js +3 -3
- package/dist/src/ui/components/QueuedMessageDisplay.js.map +1 -1
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +15 -6
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -1
- package/dist/src/ui/components/RawMarkdownIndicator.d.ts +7 -0
- package/dist/src/ui/components/RawMarkdownIndicator.js +8 -0
- package/dist/src/ui/components/RawMarkdownIndicator.js.map +1 -0
- package/dist/src/ui/components/SessionSummaryDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/SessionSummaryDisplay.test.js +74 -0
- package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +1 -0
- package/dist/src/ui/components/SettingsDialog.js +43 -35
- package/dist/src/ui/components/SettingsDialog.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.test.js +554 -545
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.js +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +2 -2
- package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +1 -1
- package/dist/src/ui/components/StatsDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/StatsDisplay.test.js +351 -0
- package/dist/src/ui/components/StatsDisplay.test.js.map +1 -0
- package/dist/src/ui/components/SuggestionsDisplay.js +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +4 -2
- package/dist/src/ui/components/ThemeDialog.js +3 -3
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.test.js +14 -1
- package/dist/src/ui/components/ThemeDialog.test.js.map +1 -1
- package/dist/src/ui/components/ToolStatsDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/ToolStatsDisplay.test.js +227 -0
- package/dist/src/ui/components/ToolStatsDisplay.test.js.map +1 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.js +25 -17
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.js +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.js +3 -1
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/GeminiMessage.test.js +35 -0
- package/dist/src/ui/components/messages/GeminiMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.js +3 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -1
- package/dist/src/ui/components/messages/InfoMessage.js +1 -1
- package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
- package/dist/src/ui/components/messages/Todo.d.ts +7 -0
- package/dist/src/ui/components/messages/Todo.js +91 -0
- package/dist/src/ui/components/messages/Todo.js.map +1 -0
- package/dist/src/ui/components/messages/Todo.test.d.ts +6 -0
- package/dist/src/ui/components/messages/Todo.test.js +114 -0
- package/dist/src/ui/components/messages/Todo.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.js +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +29 -15
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.js +8 -3
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.test.js +2 -2
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +30 -0
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +1 -0
- package/dist/src/ui/components/messages/UserShellMessage.js +1 -1
- package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -1
- package/dist/src/ui/components/messages/WarningMessage.js +2 -2
- package/dist/src/ui/components/messages/WarningMessage.js.map +1 -1
- package/dist/src/ui/components/shared/BaseSelectionList.test.js +34 -25
- package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +43 -22
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -1
- package/dist/src/ui/components/shared/TextInput.d.ts +15 -0
- package/dist/src/ui/components/shared/TextInput.js +38 -0
- package/dist/src/ui/components/shared/TextInput.js.map +1 -0
- package/dist/src/ui/components/shared/TextInput.test.d.ts +6 -0
- package/dist/src/ui/components/shared/TextInput.test.js +242 -0
- package/dist/src/ui/components/shared/TextInput.test.js.map +1 -0
- package/dist/src/ui/components/shared/text-buffer.d.ts +9 -2
- package/dist/src/ui/components/shared/text-buffer.js +52 -14
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
- package/dist/src/ui/components/shared/text-buffer.test.d.ts +6 -0
- package/dist/src/ui/components/shared/text-buffer.test.js +1761 -0
- package/dist/src/ui/components/shared/text-buffer.test.js.map +1 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.test.d.ts +6 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js +951 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js.map +1 -0
- package/dist/src/ui/components/views/ChatList.test.js +7 -4
- package/dist/src/ui/components/views/ChatList.test.js.map +1 -1
- package/dist/src/ui/components/views/ExtensionsList.d.ts +7 -1
- package/dist/src/ui/components/views/ExtensionsList.js +12 -15
- package/dist/src/ui/components/views/ExtensionsList.js.map +1 -1
- package/dist/src/ui/components/views/ExtensionsList.test.js +43 -29
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -1
- package/dist/src/ui/components/views/McpStatus.d.ts +0 -1
- package/dist/src/ui/components/views/McpStatus.js +4 -4
- package/dist/src/ui/components/views/McpStatus.js.map +1 -1
- package/dist/src/ui/components/views/McpStatus.test.js +23 -17
- package/dist/src/ui/components/views/McpStatus.test.js.map +1 -1
- package/dist/src/ui/components/views/ToolsList.test.js +4 -4
- package/dist/src/ui/components/views/ToolsList.test.js.map +1 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +4 -2
- package/dist/src/ui/contexts/KeypressContext.js +635 -439
- package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
- package/dist/src/ui/contexts/KeypressContext.test.js +634 -515
- package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -1
- package/dist/src/ui/contexts/MouseContext.d.ts +21 -0
- package/dist/src/ui/contexts/MouseContext.js +89 -0
- package/dist/src/ui/contexts/MouseContext.js.map +1 -0
- package/dist/src/ui/contexts/MouseContext.test.d.ts +6 -0
- package/dist/src/ui/contexts/MouseContext.test.js +164 -0
- package/dist/src/ui/contexts/MouseContext.test.js.map +1 -0
- package/dist/src/ui/contexts/SessionContext.test.d.ts +6 -0
- package/dist/src/ui/contexts/SessionContext.test.js +195 -0
- package/dist/src/ui/contexts/SessionContext.test.js.map +1 -0
- package/dist/src/ui/contexts/UIActionsContext.d.ts +7 -4
- package/dist/src/ui/contexts/UIStateContext.d.ts +5 -3
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.js +33 -11
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js +163 -64
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.js +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +64 -35
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.js +2 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.test.d.ts +6 -0
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +807 -0
- package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +1 -0
- package/dist/src/ui/hooks/useAtCompletion.js +2 -2
- package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useAtCompletion.test.d.ts +6 -0
- package/dist/src/ui/hooks/useAtCompletion.test.js +396 -0
- package/dist/src/ui/hooks/useAtCompletion.test.js.map +1 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +10 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +32 -2
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.js +5 -3
- package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.test.d.ts +6 -0
- package/dist/src/ui/hooks/useCommandCompletion.test.js +377 -0
- package/dist/src/ui/hooks/useCommandCompletion.test.js.map +1 -0
- package/dist/src/ui/hooks/useConsoleMessages.test.d.ts +6 -0
- package/dist/src/ui/hooks/useConsoleMessages.test.js +127 -0
- package/dist/src/ui/hooks/useConsoleMessages.test.js.map +1 -0
- package/dist/src/ui/hooks/useEditorSettings.test.js +40 -34
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -1
- package/dist/src/ui/hooks/useExtensionUpdates.d.ts +14 -4
- package/dist/src/ui/hooks/useExtensionUpdates.js +18 -11
- package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -1
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +52 -35
- package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -1
- package/dist/src/ui/hooks/useFlickerDetector.test.js +9 -5
- package/dist/src/ui/hooks/useFlickerDetector.test.js.map +1 -1
- package/dist/src/ui/hooks/useFocus.test.d.ts +6 -0
- package/dist/src/ui/hooks/useFocus.test.js +131 -0
- package/dist/src/ui/hooks/useFocus.test.js.map +1 -0
- package/dist/src/ui/hooks/useFolderTrust.test.d.ts +6 -0
- package/dist/src/ui/hooks/useFolderTrust.test.js +188 -0
- package/dist/src/ui/hooks/useFolderTrust.test.js.map +1 -0
- package/dist/src/ui/hooks/useGeminiStream.js +119 -74
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.test.d.ts +6 -0
- package/dist/src/ui/hooks/useGeminiStream.test.js +1820 -0
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +1 -0
- package/dist/src/ui/hooks/useGitBranchName.js +4 -0
- package/dist/src/ui/hooks/useGitBranchName.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.test.js +46 -34
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
- package/dist/src/ui/hooks/useHistoryManager.test.js +2 -1
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -1
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +40 -9
- package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -1
- package/dist/src/ui/hooks/useInputHistory.test.js +2 -1
- package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -1
- package/dist/src/ui/hooks/useInputHistoryStore.js +2 -1
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +2 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -1
- package/dist/src/ui/hooks/useKeypress.test.d.ts +6 -0
- package/dist/src/ui/hooks/useKeypress.test.js +223 -0
- package/dist/src/ui/hooks/useKeypress.test.js.map +1 -0
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +29 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -1
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +10 -5
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +1 -0
- package/dist/src/ui/hooks/useMessageQueue.js +14 -0
- package/dist/src/ui/hooks/useMessageQueue.js.map +1 -1
- package/dist/src/ui/hooks/useMessageQueue.test.js +173 -35
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -1
- package/dist/src/ui/hooks/useModelCommand.test.js +21 -11
- package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -1
- package/dist/src/ui/hooks/useMouse.d.ts +17 -0
- package/dist/src/ui/hooks/useMouse.js +27 -0
- package/dist/src/ui/hooks/useMouse.js.map +1 -0
- package/dist/src/ui/hooks/useMouse.test.d.ts +6 -0
- package/dist/src/ui/hooks/useMouse.test.js +57 -0
- package/dist/src/ui/hooks/useMouse.test.js.map +1 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +2 -2
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +1 -0
- package/dist/src/ui/hooks/usePhraseCycler.js +156 -5
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.test.d.ts +6 -0
- package/dist/src/ui/hooks/usePhraseCycler.test.js +158 -0
- package/dist/src/ui/hooks/usePhraseCycler.test.js.map +1 -0
- package/dist/src/ui/hooks/usePrivacySettings.test.js +26 -6
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -1
- package/dist/src/ui/hooks/usePromptCompletion.js +2 -2
- package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.js +13 -14
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +55 -48
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +8 -1
- package/dist/src/ui/hooks/useReactToolScheduler.js +61 -36
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.test.d.ts +6 -0
- package/dist/src/ui/hooks/useReactToolScheduler.test.js +65 -0
- package/dist/src/ui/hooks/useReactToolScheduler.test.js.map +1 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +2 -2
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useSelectionList.js +5 -4
- package/dist/src/ui/hooks/useSelectionList.js.map +1 -1
- package/dist/src/ui/hooks/useSelectionList.test.js +272 -183
- package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -1
- package/dist/src/ui/hooks/useShellHistory.test.js +52 -20
- package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.js +4 -3
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.js +20 -8
- package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.js +275 -137
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +2 -1
- package/dist/src/ui/hooks/useThemeCommand.js +6 -0
- package/dist/src/ui/hooks/useThemeCommand.js.map +1 -1
- package/dist/src/ui/hooks/useTimer.test.js +43 -14
- package/dist/src/ui/hooks/useTimer.test.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +229 -242
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/hooks/vim.js +2 -1
- package/dist/src/ui/hooks/vim.js.map +1 -1
- package/dist/src/ui/hooks/vim.test.d.ts +6 -0
- package/dist/src/ui/hooks/vim.test.js +1269 -0
- package/dist/src/ui/hooks/vim.test.js.map +1 -0
- package/dist/src/ui/keyMatchers.test.js +39 -6
- package/dist/src/ui/keyMatchers.test.js.map +1 -1
- package/dist/src/ui/state/extensions.d.ts +1 -0
- package/dist/src/ui/state/extensions.js +1 -0
- package/dist/src/ui/state/extensions.js.map +1 -1
- package/dist/src/ui/themes/ansi-light.js +1 -0
- package/dist/src/ui/themes/ansi-light.js.map +1 -1
- package/dist/src/ui/themes/ansi.js +1 -0
- package/dist/src/ui/themes/ansi.js.map +1 -1
- package/dist/src/ui/themes/atom-one-dark.js +2 -0
- package/dist/src/ui/themes/atom-one-dark.js.map +1 -1
- package/dist/src/ui/themes/ayu-light.js +2 -0
- package/dist/src/ui/themes/ayu-light.js.map +1 -1
- package/dist/src/ui/themes/ayu.js +2 -0
- package/dist/src/ui/themes/ayu.js.map +1 -1
- package/dist/src/ui/themes/color-utils.d.ts +1 -0
- package/dist/src/ui/themes/color-utils.js +8 -1
- package/dist/src/ui/themes/color-utils.js.map +1 -1
- package/dist/src/ui/themes/color-utils.test.js +13 -1
- package/dist/src/ui/themes/color-utils.test.js.map +1 -1
- package/dist/src/ui/themes/dracula.js +2 -0
- package/dist/src/ui/themes/dracula.js.map +1 -1
- package/dist/src/ui/themes/github-dark.js +2 -0
- package/dist/src/ui/themes/github-dark.js.map +1 -1
- package/dist/src/ui/themes/github-light.js +2 -0
- package/dist/src/ui/themes/github-light.js.map +1 -1
- package/dist/src/ui/themes/googlecode.js +2 -0
- package/dist/src/ui/themes/googlecode.js.map +1 -1
- package/dist/src/ui/themes/no-color.js +3 -0
- package/dist/src/ui/themes/no-color.js.map +1 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +2 -0
- package/dist/src/ui/themes/semantic-tokens.js +6 -0
- package/dist/src/ui/themes/semantic-tokens.js.map +1 -1
- package/dist/src/ui/themes/shades-of-purple.js +2 -0
- package/dist/src/ui/themes/shades-of-purple.js.map +1 -1
- package/dist/src/ui/themes/theme-manager.js +8 -7
- package/dist/src/ui/themes/theme-manager.js.map +1 -1
- package/dist/src/ui/themes/theme.d.ts +3 -0
- package/dist/src/ui/themes/theme.js +14 -3
- package/dist/src/ui/themes/theme.js.map +1 -1
- package/dist/src/ui/themes/theme.test.d.ts +6 -0
- package/dist/src/ui/themes/theme.test.js +151 -0
- package/dist/src/ui/themes/theme.test.js.map +1 -0
- package/dist/src/ui/themes/xcode.js +2 -0
- package/dist/src/ui/themes/xcode.js.map +1 -1
- package/dist/src/ui/types.d.ts +3 -2
- package/dist/src/ui/types.js +2 -0
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +1 -1
- package/dist/src/ui/utils/CodeColorizer.js +6 -3
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +1 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +11 -10
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +1 -0
- package/dist/src/ui/utils/MarkdownDisplay.js +19 -10
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/clipboardUtils.js +2 -2
- package/dist/src/ui/utils/clipboardUtils.js.map +1 -1
- package/dist/src/ui/utils/commandUtils.js +20 -3
- package/dist/src/ui/utils/commandUtils.js.map +1 -1
- package/dist/src/ui/utils/commandUtils.test.js +61 -6
- package/dist/src/ui/utils/commandUtils.test.js.map +1 -1
- package/dist/src/ui/utils/computeStats.js +5 -2
- package/dist/src/ui/utils/computeStats.js.map +1 -1
- package/dist/src/ui/utils/computeStats.test.d.ts +6 -0
- package/dist/src/ui/utils/computeStats.test.js +262 -0
- package/dist/src/ui/utils/computeStats.test.js.map +1 -0
- package/dist/src/ui/utils/input.d.ts +17 -0
- package/dist/src/ui/utils/input.js +51 -0
- package/dist/src/ui/utils/input.js.map +1 -0
- package/dist/src/ui/utils/input.test.d.ts +6 -0
- package/dist/src/ui/utils/input.test.js +44 -0
- package/dist/src/ui/utils/input.test.js.map +1 -0
- package/dist/src/ui/utils/kittyProtocolDetector.js +13 -4
- package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -1
- package/dist/src/ui/utils/mouse.d.ts +31 -0
- package/dist/src/ui/utils/mouse.js +164 -0
- package/dist/src/ui/utils/mouse.js.map +1 -0
- package/dist/src/ui/utils/mouse.test.d.ts +6 -0
- package/dist/src/ui/utils/mouse.test.js +131 -0
- package/dist/src/ui/utils/mouse.test.js.map +1 -0
- package/dist/src/ui/utils/terminalSetup.js +3 -2
- package/dist/src/ui/utils/terminalSetup.js.map +1 -1
- package/dist/src/ui/utils/textOutput.d.ts +25 -0
- package/dist/src/ui/utils/textOutput.js +49 -0
- package/dist/src/ui/utils/textOutput.js.map +1 -0
- package/dist/src/ui/utils/textOutput.test.d.ts +6 -0
- package/dist/src/ui/utils/textOutput.test.js +79 -0
- package/dist/src/ui/utils/textOutput.test.js.map +1 -0
- package/dist/src/ui/utils/updateCheck.d.ts +9 -2
- package/dist/src/ui/utils/updateCheck.js +38 -30
- package/dist/src/ui/utils/updateCheck.js.map +1 -1
- package/dist/src/ui/utils/updateCheck.test.js +48 -59
- package/dist/src/ui/utils/updateCheck.test.js.map +1 -1
- package/dist/src/utils/cleanup.test.d.ts +6 -0
- package/dist/src/utils/cleanup.test.js +49 -0
- package/dist/src/utils/cleanup.test.js.map +1 -0
- package/dist/src/utils/commentJson.js +2 -2
- package/dist/src/utils/commentJson.js.map +1 -1
- package/dist/src/utils/commentJson.test.js +7 -6
- package/dist/src/utils/commentJson.test.js.map +1 -1
- package/dist/src/utils/envVarResolver.d.ts +2 -2
- package/dist/src/utils/envVarResolver.js +10 -7
- package/dist/src/utils/envVarResolver.js.map +1 -1
- package/dist/src/utils/errors.d.ts +1 -0
- package/dist/src/utils/errors.js +66 -5
- package/dist/src/utils/errors.js.map +1 -1
- package/dist/src/utils/events.d.ts +11 -2
- package/dist/src/utils/events.js +1 -0
- package/dist/src/utils/events.js.map +1 -1
- package/dist/src/utils/gitUtils.js +3 -2
- package/dist/src/utils/gitUtils.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.js +9 -3
- package/dist/src/utils/handleAutoUpdate.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.test.d.ts +6 -0
- package/dist/src/utils/handleAutoUpdate.test.js +225 -0
- package/dist/src/utils/handleAutoUpdate.test.js.map +1 -0
- package/dist/src/utils/installationInfo.js +2 -2
- package/dist/src/utils/installationInfo.js.map +1 -1
- package/dist/src/utils/installationInfo.test.js +8 -4
- package/dist/src/utils/installationInfo.test.js.map +1 -1
- package/dist/src/utils/readStdin.js +2 -1
- package/dist/src/utils/readStdin.js.map +1 -1
- package/dist/src/utils/sandbox-macos-permissive-open.sb +2 -0
- package/dist/src/utils/sandbox.js +28 -30
- package/dist/src/utils/sandbox.js.map +1 -1
- package/dist/src/utils/sessionCleanup.js +4 -4
- package/dist/src/utils/sessionCleanup.js.map +1 -1
- package/dist/src/utils/startupWarnings.test.d.ts +6 -0
- package/dist/src/utils/startupWarnings.test.js +61 -0
- package/dist/src/utils/startupWarnings.test.js.map +1 -0
- package/dist/src/utils/version.js +6 -2
- package/dist/src/utils/version.js.map +1 -1
- package/dist/src/validateNonInterActiveAuth.js +2 -2
- package/dist/src/validateNonInterActiveAuth.js.map +1 -1
- package/dist/src/zed-integration/acp.js +2 -1
- package/dist/src/zed-integration/acp.js.map +1 -1
- package/dist/src/zed-integration/schema.d.ts +4 -4
- package/dist/src/zed-integration/zedIntegration.d.ts +2 -2
- package/dist/src/zed-integration/zedIntegration.js +16 -25
- package/dist/src/zed-integration/zedIntegration.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -17
- package/dist/src/config/policy.test.js +0 -336
- package/dist/src/config/policy.test.js.map +0 -1
- package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +0 -11
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +0 -44
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +0 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +0 -13
- package/dist/src/ui/hooks/useWorkspaceMigration.js +0 -59
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +0 -1
- package/dist/src/utils/package.d.ts +0 -12
- package/dist/src/utils/package.js +0 -24
- package/dist/src/utils/package.js.map +0 -1
- /package/dist/src/{config/policy.test.d.ts → commands/extensions/examples/mcp-server/example.d.ts} +0 -0
|
@@ -13,7 +13,7 @@ import { UIActionsContext, } from './contexts/UIActionsContext.js';
|
|
|
13
13
|
import { ConfigContext } from './contexts/ConfigContext.js';
|
|
14
14
|
import { ToolCallStatus, AuthState, } from './types.js';
|
|
15
15
|
import { MessageType, StreamingState } from './types.js';
|
|
16
|
-
import { DEFAULT_GEMINI_FLASH_MODEL, IdeClient, ideContextStore, getErrorMessage, getAllGeminiMdFilenames, AuthType, clearCachedCredentialFile, ShellExecutionService, } from '@google/gemini-cli-core';
|
|
16
|
+
import { DEFAULT_GEMINI_FLASH_MODEL, IdeClient, ideContextStore, getErrorMessage, getAllGeminiMdFilenames, AuthType, clearCachedCredentialFile, recordExitFail, ShellExecutionService, saveApiKey, debugLogger, coreEvents, CoreEvent, } from '@google/gemini-cli-core';
|
|
17
17
|
import { validateAuthMethod } from '../config/auth.js';
|
|
18
18
|
import { loadHierarchicalGeminiMemory } from '../config/config.js';
|
|
19
19
|
import process from 'node:process';
|
|
@@ -57,13 +57,16 @@ import { ConsolePatcher } from './utils/ConsolePatcher.js';
|
|
|
57
57
|
import { registerCleanup, runExitCleanup } from '../utils/cleanup.js';
|
|
58
58
|
import { useMessageQueue } from './hooks/useMessageQueue.js';
|
|
59
59
|
import { useAutoAcceptIndicator } from './hooks/useAutoAcceptIndicator.js';
|
|
60
|
-
import { useWorkspaceMigration } from './hooks/useWorkspaceMigration.js';
|
|
61
60
|
import { useSessionStats } from './contexts/SessionContext.js';
|
|
62
61
|
import { useGitBranchName } from './hooks/useGitBranchName.js';
|
|
63
|
-
import { useExtensionUpdates } from './hooks/useExtensionUpdates.js';
|
|
64
62
|
import { FeedbackService } from '../services/FeedbackService.js';
|
|
63
|
+
import { useConfirmUpdateRequests, useExtensionUpdates, } from './hooks/useExtensionUpdates.js';
|
|
65
64
|
import { ShellFocusContext } from './contexts/ShellFocusContext.js';
|
|
65
|
+
import {} from '../config/extension-manager.js';
|
|
66
|
+
import { requestConsentInteractive } from '../config/extensions/consent.js';
|
|
67
|
+
import { disableMouseEvents, enableMouseEvents } from './utils/mouse.js';
|
|
66
68
|
const CTRL_EXIT_PROMPT_DURATION_MS = 1000;
|
|
69
|
+
const QUEUE_ERROR_DISPLAY_DURATION_MS = 3000;
|
|
67
70
|
function isToolExecuting(pendingHistoryItems) {
|
|
68
71
|
return pendingHistoryItems.some((item) => {
|
|
69
72
|
if (item && item.type === 'tool_group') {
|
|
@@ -95,14 +98,20 @@ export const AppContainer = (props) => {
|
|
|
95
98
|
const [isProcessing, setIsProcessing] = useState(false);
|
|
96
99
|
const [embeddedShellFocused, setEmbeddedShellFocused] = useState(false);
|
|
97
100
|
const [showDebugProfiler, setShowDebugProfiler] = useState(false);
|
|
101
|
+
const [copyModeEnabled, setCopyModeEnabled] = useState(false);
|
|
98
102
|
const [geminiMdFileCount, setGeminiMdFileCount] = useState(initializationResult.geminiMdFileCount);
|
|
99
103
|
const [shellModeActive, setShellModeActive] = useState(false);
|
|
100
104
|
const [modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError] = useState(false);
|
|
101
105
|
const [historyRemountKey, setHistoryRemountKey] = useState(0);
|
|
102
106
|
const [updateInfo, setUpdateInfo] = useState(null);
|
|
103
107
|
const [isTrustedFolder, setIsTrustedFolder] = useState(config.isTrustedFolder());
|
|
104
|
-
const
|
|
105
|
-
const
|
|
108
|
+
const [queueErrorMessage, setQueueErrorMessage] = useState(null);
|
|
109
|
+
const extensionManager = config.getExtensionLoader();
|
|
110
|
+
// We are in the interactive CLI, update how we request consent and settings.
|
|
111
|
+
extensionManager.setRequestConsent((description) => requestConsentInteractive(description, addConfirmUpdateExtensionRequest));
|
|
112
|
+
extensionManager.setRequestSetting();
|
|
113
|
+
const { addConfirmUpdateExtensionRequest, confirmUpdateExtensionRequests } = useConfirmUpdateRequests();
|
|
114
|
+
const { extensionsUpdateState, extensionsUpdateStateInternal, dispatchExtensionStateUpdate, } = useExtensionUpdates(extensionManager, historyManager.addItem, config.getEnableExtensionReloading());
|
|
106
115
|
const [isPermissionsDialogOpen, setPermissionsDialogOpen] = useState(false);
|
|
107
116
|
const openPermissionsDialog = useCallback(() => setPermissionsDialogOpen(true), []);
|
|
108
117
|
const closePermissionsDialog = useCallback(() => setPermissionsDialogOpen(false), []);
|
|
@@ -143,23 +152,29 @@ export const AppContainer = (props) => {
|
|
|
143
152
|
setConfigInitialized(true);
|
|
144
153
|
})();
|
|
145
154
|
registerCleanup(async () => {
|
|
155
|
+
// Turn off mouse scroll.
|
|
156
|
+
disableMouseEvents();
|
|
146
157
|
const ideClient = await IdeClient.getInstance();
|
|
147
158
|
await ideClient.disconnect();
|
|
148
159
|
});
|
|
149
160
|
}, [config]);
|
|
150
161
|
useEffect(() => setUpdateHandler(historyManager.addItem, setUpdateInfo), [historyManager.addItem]);
|
|
151
|
-
//
|
|
162
|
+
// Subscribe to fallback mode and model changes from core
|
|
152
163
|
useEffect(() => {
|
|
153
|
-
const
|
|
164
|
+
const handleFallbackModeChanged = () => {
|
|
154
165
|
const effectiveModel = getEffectiveModel();
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
166
|
+
setCurrentModel(effectiveModel);
|
|
167
|
+
};
|
|
168
|
+
const handleModelChanged = (payload) => {
|
|
169
|
+
setCurrentModel(payload.model);
|
|
170
|
+
};
|
|
171
|
+
coreEvents.on(CoreEvent.FallbackModeChanged, handleFallbackModeChanged);
|
|
172
|
+
coreEvents.on(CoreEvent.ModelChanged, handleModelChanged);
|
|
173
|
+
return () => {
|
|
174
|
+
coreEvents.off(CoreEvent.FallbackModeChanged, handleFallbackModeChanged);
|
|
175
|
+
coreEvents.off(CoreEvent.ModelChanged, handleModelChanged);
|
|
158
176
|
};
|
|
159
|
-
|
|
160
|
-
const interval = setInterval(checkModelChange, 1000); // Check every second
|
|
161
|
-
return () => clearInterval(interval);
|
|
162
|
-
}, [config, currentModel, getEffectiveModel]);
|
|
177
|
+
}, [getEffectiveModel]);
|
|
163
178
|
const { consoleMessages, handleNewMessage, clearConsoleMessages: clearConsoleMessagesState, } = useConsoleMessages();
|
|
164
179
|
useEffect(() => {
|
|
165
180
|
const consolePatcher = new ConsolePatcher({
|
|
@@ -219,11 +234,13 @@ export const AppContainer = (props) => {
|
|
|
219
234
|
fetchUserMessages();
|
|
220
235
|
}, [historyManager.history, logger]);
|
|
221
236
|
const refreshStatic = useCallback(() => {
|
|
222
|
-
|
|
237
|
+
if (settings.merged.ui?.useAlternateBuffer === false) {
|
|
238
|
+
stdout.write(ansiEscapes.clearTerminal);
|
|
239
|
+
}
|
|
223
240
|
setHistoryRemountKey((prev) => prev + 1);
|
|
224
|
-
}, [setHistoryRemountKey, stdout]);
|
|
225
|
-
const { isThemeDialogOpen, openThemeDialog, handleThemeSelect, handleThemeHighlight, } = useThemeCommand(settings, setThemeError, historyManager.addItem, initializationResult.themeError);
|
|
226
|
-
const { authState, setAuthState, authError, onAuthError } = useAuthCommand(settings, config);
|
|
241
|
+
}, [setHistoryRemountKey, stdout, settings]);
|
|
242
|
+
const { isThemeDialogOpen, openThemeDialog, closeThemeDialog, handleThemeSelect, handleThemeHighlight, } = useThemeCommand(settings, setThemeError, historyManager.addItem, initializationResult.themeError);
|
|
243
|
+
const { authState, setAuthState, authError, onAuthError, apiKeyDefaultValue, reloadApiKey, } = useAuthCommand(settings, config);
|
|
227
244
|
const { proQuotaRequest, handleProQuotaChoice } = useQuotaAndFallback({
|
|
228
245
|
config,
|
|
229
246
|
historyManager,
|
|
@@ -250,7 +267,7 @@ export const AppContainer = (props) => {
|
|
|
250
267
|
if (authType === AuthType.LOGIN_WITH_GOOGLE &&
|
|
251
268
|
config.isBrowserLaunchSuppressed()) {
|
|
252
269
|
await runExitCleanup();
|
|
253
|
-
|
|
270
|
+
debugLogger.log(`
|
|
254
271
|
----------------------------------------------------------------
|
|
255
272
|
Logging in with Google... Please restart Gemini CLI to continue.
|
|
256
273
|
----------------------------------------------------------------
|
|
@@ -260,6 +277,26 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
260
277
|
}
|
|
261
278
|
setAuthState(AuthState.Authenticated);
|
|
262
279
|
}, [settings, config, setAuthState, onAuthError]);
|
|
280
|
+
const handleApiKeySubmit = useCallback(async (apiKey) => {
|
|
281
|
+
try {
|
|
282
|
+
onAuthError(null);
|
|
283
|
+
if (!apiKey.trim() && apiKey.length > 1) {
|
|
284
|
+
onAuthError('API key cannot be empty string with length greater than 1.');
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
await saveApiKey(apiKey);
|
|
288
|
+
await reloadApiKey();
|
|
289
|
+
await config.refreshAuth(AuthType.USE_GEMINI);
|
|
290
|
+
setAuthState(AuthState.Authenticated);
|
|
291
|
+
}
|
|
292
|
+
catch (e) {
|
|
293
|
+
onAuthError(`Failed to save API key: ${e instanceof Error ? e.message : String(e)}`);
|
|
294
|
+
}
|
|
295
|
+
}, [setAuthState, onAuthError, reloadApiKey, config]);
|
|
296
|
+
const handleApiKeyCancel = useCallback(() => {
|
|
297
|
+
// Go back to auth method selection
|
|
298
|
+
setAuthState(AuthState.Updating);
|
|
299
|
+
}, [setAuthState]);
|
|
263
300
|
// Sync user tier from config when authentication changes
|
|
264
301
|
useEffect(() => {
|
|
265
302
|
// Only sync when not currently authenticating
|
|
@@ -292,7 +329,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
292
329
|
const { isEditorDialogOpen, openEditorDialog, handleEditorSelect, exitEditorDialog, } = useEditorSettings(settings, setEditorError, historyManager.addItem);
|
|
293
330
|
const { isSettingsDialogOpen, openSettingsDialog, closeSettingsDialog } = useSettingsCommand();
|
|
294
331
|
const { isModelDialogOpen, openModelDialog, closeModelDialog } = useModelCommand();
|
|
295
|
-
const { showWorkspaceMigrationDialog, workspaceExtensions, onWorkspaceMigrationDialogOpen, onWorkspaceMigrationDialogClose, } = useWorkspaceMigration(settings);
|
|
296
332
|
const { toggleVimEnabled } = useVimMode();
|
|
297
333
|
const slashCommandActions = useMemo(() => ({
|
|
298
334
|
openAuthDialog: () => setAuthState(AuthState.Updating),
|
|
@@ -362,7 +398,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
362
398
|
try {
|
|
363
399
|
const { memoryContent, fileCount, filePaths } = await loadHierarchicalGeminiMemory(process.cwd(), settings.merged.context?.loadMemoryFromIncludeDirectories
|
|
364
400
|
? config.getWorkspaceContext().getDirectories()
|
|
365
|
-
: [], config.getDebugMode(), config.getFileService(), settings.merged, config.
|
|
401
|
+
: [], config.getDebugMode(), config.getFileService(), settings.merged, config.getExtensionLoader(), config.isTrustedFolder(), settings.merged.context?.importFormat || 'tree', // Use setting or default to 'tree'
|
|
366
402
|
config.getFileFilteringOptions());
|
|
367
403
|
config.setUserMemory(memoryContent);
|
|
368
404
|
config.setGeminiMdFileCount(fileCount);
|
|
@@ -375,7 +411,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
375
411
|
: 'No memory content found.'}`,
|
|
376
412
|
}, Date.now());
|
|
377
413
|
if (config.getDebugMode()) {
|
|
378
|
-
|
|
414
|
+
debugLogger.log(`[DEBUG] Refreshed memory content in config: ${memoryContent.substring(0, 200)}...`);
|
|
379
415
|
}
|
|
380
416
|
}
|
|
381
417
|
catch (error) {
|
|
@@ -384,18 +420,22 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
384
420
|
type: MessageType.ERROR,
|
|
385
421
|
text: `Error refreshing memory: ${errorMessage}`,
|
|
386
422
|
}, Date.now());
|
|
387
|
-
|
|
423
|
+
debugLogger.warn('Error refreshing memory:', error);
|
|
388
424
|
}
|
|
389
425
|
}, [config, historyManager, settings.merged]);
|
|
390
426
|
const cancelHandlerRef = useRef(() => { });
|
|
391
|
-
const
|
|
427
|
+
const getPreferredEditor = useCallback(() => settings.merged.general?.preferredEditor, [settings.merged.general?.preferredEditor]);
|
|
428
|
+
const onCancelSubmit = useCallback(() => {
|
|
429
|
+
cancelHandlerRef.current();
|
|
430
|
+
}, []);
|
|
431
|
+
const { streamingState, submitQuery, initError, pendingHistoryItems: pendingGeminiHistoryItems, thought, cancelOngoingRequest, handleApprovalModeChange, activePtyId, loopDetectionConfirmationRequest, } = useGeminiStream(config.getGeminiClient(), historyManager.history, historyManager.addItem, config, settings, setDebugMessage, handleSlashCommand, shellModeActive, getPreferredEditor, onAuthError, performMemoryRefresh, modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError, refreshStatic, onCancelSubmit, setEmbeddedShellFocused, terminalWidth, terminalHeight, embeddedShellFocused);
|
|
392
432
|
// Auto-accept indicator
|
|
393
433
|
const showAutoAcceptIndicator = useAutoAcceptIndicator({
|
|
394
434
|
config,
|
|
395
435
|
addItem: historyManager.addItem,
|
|
396
436
|
onApprovalModeChange: handleApprovalModeChange,
|
|
397
437
|
});
|
|
398
|
-
const { messageQueue, addMessage, clearQueue, getQueuedMessagesText } = useMessageQueue({
|
|
438
|
+
const { messageQueue, addMessage, clearQueue, getQueuedMessagesText, popAllMessages, } = useMessageQueue({
|
|
399
439
|
isConfigInitialized,
|
|
400
440
|
streamingState,
|
|
401
441
|
submitQuery,
|
|
@@ -485,7 +525,17 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
485
525
|
const geminiClient = config.getGeminiClient();
|
|
486
526
|
useEffect(() => {
|
|
487
527
|
if (activePtyId) {
|
|
488
|
-
|
|
528
|
+
try {
|
|
529
|
+
ShellExecutionService.resizePty(activePtyId, Math.floor(terminalWidth * SHELL_WIDTH_FRACTION), Math.max(Math.floor(availableTerminalHeight - SHELL_HEIGHT_PADDING), 1));
|
|
530
|
+
}
|
|
531
|
+
catch (e) {
|
|
532
|
+
// This can happen in a race condition where the pty exits
|
|
533
|
+
// right before we try to resize it.
|
|
534
|
+
if (!(e instanceof Error &&
|
|
535
|
+
e.message.includes('Cannot resize a pty that has already exited'))) {
|
|
536
|
+
throw e;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
489
539
|
}
|
|
490
540
|
}, [terminalWidth, availableTerminalHeight, activePtyId]);
|
|
491
541
|
useEffect(() => {
|
|
@@ -527,10 +577,11 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
527
577
|
!settings.merged.ide?.hasSeenNudge &&
|
|
528
578
|
!idePromptAnswered);
|
|
529
579
|
const [showErrorDetails, setShowErrorDetails] = useState(false);
|
|
530
|
-
const [
|
|
531
|
-
const [
|
|
580
|
+
const [showFullTodos, setShowFullTodos] = useState(false);
|
|
581
|
+
const [renderMarkdown, setRenderMarkdown] = useState(true);
|
|
582
|
+
const [ctrlCPressCount, setCtrlCPressCount] = useState(0);
|
|
532
583
|
const ctrlCTimerRef = useRef(null);
|
|
533
|
-
const [
|
|
584
|
+
const [ctrlDPressCount, setCtrlDPressCount] = useState(0);
|
|
534
585
|
const ctrlDTimerRef = useRef(null);
|
|
535
586
|
const [constrainHeight, setConstrainHeight] = useState(true);
|
|
536
587
|
const [ideContextState, setIdeContextState] = useState();
|
|
@@ -545,6 +596,15 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
545
596
|
setShowIdeRestartPrompt(true);
|
|
546
597
|
}
|
|
547
598
|
}, [ideNeedsRestart]);
|
|
599
|
+
useEffect(() => {
|
|
600
|
+
if (queueErrorMessage) {
|
|
601
|
+
const timer = setTimeout(() => {
|
|
602
|
+
setQueueErrorMessage(null);
|
|
603
|
+
}, QUEUE_ERROR_DISPLAY_DURATION_MS);
|
|
604
|
+
return () => clearTimeout(timer);
|
|
605
|
+
}
|
|
606
|
+
return undefined;
|
|
607
|
+
}, [queueErrorMessage, setQueueErrorMessage]);
|
|
548
608
|
useEffect(() => {
|
|
549
609
|
if (isInitialMount.current) {
|
|
550
610
|
isInitialMount.current = false;
|
|
@@ -580,7 +640,43 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
580
640
|
appEvents.off(AppEvent.OpenDebugConsole, openDebugConsole);
|
|
581
641
|
appEvents.off(AppEvent.LogError, logErrorHandler);
|
|
582
642
|
};
|
|
583
|
-
}, [handleNewMessage]);
|
|
643
|
+
}, [handleNewMessage, config]);
|
|
644
|
+
useEffect(() => {
|
|
645
|
+
if (ctrlCTimerRef.current) {
|
|
646
|
+
clearTimeout(ctrlCTimerRef.current);
|
|
647
|
+
ctrlCTimerRef.current = null;
|
|
648
|
+
}
|
|
649
|
+
if (ctrlCPressCount > 2) {
|
|
650
|
+
recordExitFail(config);
|
|
651
|
+
}
|
|
652
|
+
if (ctrlCPressCount > 1) {
|
|
653
|
+
handleSlashCommand('/quit');
|
|
654
|
+
}
|
|
655
|
+
else {
|
|
656
|
+
ctrlCTimerRef.current = setTimeout(() => {
|
|
657
|
+
setCtrlCPressCount(0);
|
|
658
|
+
ctrlCTimerRef.current = null;
|
|
659
|
+
}, CTRL_EXIT_PROMPT_DURATION_MS);
|
|
660
|
+
}
|
|
661
|
+
}, [ctrlCPressCount, config, setCtrlCPressCount, handleSlashCommand]);
|
|
662
|
+
useEffect(() => {
|
|
663
|
+
if (ctrlDTimerRef.current) {
|
|
664
|
+
clearTimeout(ctrlDTimerRef.current);
|
|
665
|
+
ctrlCTimerRef.current = null;
|
|
666
|
+
}
|
|
667
|
+
if (ctrlDPressCount > 2) {
|
|
668
|
+
recordExitFail(config);
|
|
669
|
+
}
|
|
670
|
+
if (ctrlDPressCount > 1) {
|
|
671
|
+
handleSlashCommand('/quit');
|
|
672
|
+
}
|
|
673
|
+
else {
|
|
674
|
+
ctrlDTimerRef.current = setTimeout(() => {
|
|
675
|
+
setCtrlDPressCount(0);
|
|
676
|
+
ctrlDTimerRef.current = null;
|
|
677
|
+
}, CTRL_EXIT_PROMPT_DURATION_MS);
|
|
678
|
+
}
|
|
679
|
+
}, [ctrlDPressCount, config, setCtrlDPressCount, handleSlashCommand]);
|
|
584
680
|
const handleEscapePromptChange = useCallback((showPrompt) => {
|
|
585
681
|
setShowEscapePrompt(showPrompt);
|
|
586
682
|
}, []);
|
|
@@ -595,46 +691,35 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
595
691
|
setIdePromptAnswered(true);
|
|
596
692
|
}, [handleSlashCommand, settings]);
|
|
597
693
|
const { elapsedTime, currentLoadingPhrase } = useLoadingIndicator(streamingState, settings.merged.ui?.customWittyPhrases);
|
|
598
|
-
const handleExit = useCallback((pressedOnce, setPressedOnce, timerRef) => {
|
|
599
|
-
if (pressedOnce) {
|
|
600
|
-
if (timerRef.current) {
|
|
601
|
-
clearTimeout(timerRef.current);
|
|
602
|
-
}
|
|
603
|
-
handleSlashCommand('/quit');
|
|
604
|
-
}
|
|
605
|
-
else {
|
|
606
|
-
setPressedOnce(true);
|
|
607
|
-
timerRef.current = setTimeout(() => {
|
|
608
|
-
setPressedOnce(false);
|
|
609
|
-
timerRef.current = null;
|
|
610
|
-
}, CTRL_EXIT_PROMPT_DURATION_MS);
|
|
611
|
-
}
|
|
612
|
-
}, [handleSlashCommand]);
|
|
613
694
|
const handleGlobalKeypress = useCallback((key) => {
|
|
695
|
+
if (copyModeEnabled) {
|
|
696
|
+
setCopyModeEnabled(false);
|
|
697
|
+
enableMouseEvents();
|
|
698
|
+
// We don't want to process any other keys if we're in copy mode.
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
614
701
|
// Debug log keystrokes if enabled
|
|
615
702
|
if (settings.merged.general?.debugKeystrokeLogging) {
|
|
616
|
-
|
|
703
|
+
debugLogger.log('[DEBUG] Keystroke:', JSON.stringify(key));
|
|
704
|
+
}
|
|
705
|
+
if (settings.merged.ui?.useAlternateBuffer &&
|
|
706
|
+
keyMatchers[Command.TOGGLE_COPY_MODE](key)) {
|
|
707
|
+
setCopyModeEnabled(true);
|
|
708
|
+
disableMouseEvents();
|
|
709
|
+
return;
|
|
617
710
|
}
|
|
618
711
|
if (keyMatchers[Command.QUIT](key)) {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
setCtrlCPressedOnce(true);
|
|
624
|
-
ctrlCTimerRef.current = setTimeout(() => {
|
|
625
|
-
setCtrlCPressedOnce(false);
|
|
626
|
-
ctrlCTimerRef.current = null;
|
|
627
|
-
}, CTRL_EXIT_PROMPT_DURATION_MS);
|
|
628
|
-
return;
|
|
629
|
-
}
|
|
630
|
-
handleExit(ctrlCPressedOnce, setCtrlCPressedOnce, ctrlCTimerRef);
|
|
712
|
+
// If the user presses Ctrl+C, we want to cancel any ongoing requests.
|
|
713
|
+
// This should happen regardless of the count.
|
|
714
|
+
cancelOngoingRequest?.();
|
|
715
|
+
setCtrlCPressCount((prev) => prev + 1);
|
|
631
716
|
return;
|
|
632
717
|
}
|
|
633
718
|
else if (keyMatchers[Command.EXIT](key)) {
|
|
634
719
|
if (buffer.text.length > 0) {
|
|
635
720
|
return;
|
|
636
721
|
}
|
|
637
|
-
|
|
722
|
+
setCtrlDPressCount((prev) => prev + 1);
|
|
638
723
|
return;
|
|
639
724
|
}
|
|
640
725
|
let enteringConstrainHeightMode = false;
|
|
@@ -645,13 +730,16 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
645
730
|
if (keyMatchers[Command.SHOW_ERROR_DETAILS](key)) {
|
|
646
731
|
setShowErrorDetails((prev) => !prev);
|
|
647
732
|
}
|
|
648
|
-
else if (keyMatchers[Command.
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
733
|
+
else if (keyMatchers[Command.SHOW_FULL_TODOS](key)) {
|
|
734
|
+
setShowFullTodos((prev) => !prev);
|
|
735
|
+
}
|
|
736
|
+
else if (keyMatchers[Command.TOGGLE_MARKDOWN](key)) {
|
|
737
|
+
setRenderMarkdown((prev) => {
|
|
738
|
+
const newValue = !prev;
|
|
739
|
+
// Force re-render of static content
|
|
740
|
+
refreshStatic();
|
|
741
|
+
return newValue;
|
|
742
|
+
});
|
|
655
743
|
}
|
|
656
744
|
else if (keyMatchers[Command.TOGGLE_IDE_CONTEXT_DETAIL](key) &&
|
|
657
745
|
config.getIdeMode() &&
|
|
@@ -671,23 +759,20 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
671
759
|
constrainHeight,
|
|
672
760
|
setConstrainHeight,
|
|
673
761
|
setShowErrorDetails,
|
|
674
|
-
showToolDescriptions,
|
|
675
|
-
setShowToolDescriptions,
|
|
676
762
|
config,
|
|
677
763
|
ideContextState,
|
|
678
|
-
|
|
679
|
-
ctrlCPressedOnce,
|
|
680
|
-
setCtrlCPressedOnce,
|
|
681
|
-
ctrlCTimerRef,
|
|
764
|
+
setCtrlCPressCount,
|
|
682
765
|
buffer.text.length,
|
|
683
|
-
|
|
684
|
-
setCtrlDPressedOnce,
|
|
685
|
-
ctrlDTimerRef,
|
|
766
|
+
setCtrlDPressCount,
|
|
686
767
|
handleSlashCommand,
|
|
687
768
|
cancelOngoingRequest,
|
|
688
769
|
activePtyId,
|
|
689
770
|
embeddedShellFocused,
|
|
690
771
|
settings.merged.general?.debugKeystrokeLogging,
|
|
772
|
+
refreshStatic,
|
|
773
|
+
setCopyModeEnabled,
|
|
774
|
+
copyModeEnabled,
|
|
775
|
+
settings.merged.ui?.useAlternateBuffer,
|
|
691
776
|
]);
|
|
692
777
|
useKeypress(handleGlobalKeypress, { isActive: true });
|
|
693
778
|
// Update terminal title with Gemini CLI status and thoughts
|
|
@@ -721,6 +806,39 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
721
806
|
settings.merged.ui?.hideWindowTitle,
|
|
722
807
|
stdout,
|
|
723
808
|
]);
|
|
809
|
+
useEffect(() => {
|
|
810
|
+
const handleUserFeedback = (payload) => {
|
|
811
|
+
let type;
|
|
812
|
+
switch (payload.severity) {
|
|
813
|
+
case 'error':
|
|
814
|
+
type = MessageType.ERROR;
|
|
815
|
+
break;
|
|
816
|
+
case 'warning':
|
|
817
|
+
type = MessageType.WARNING;
|
|
818
|
+
break;
|
|
819
|
+
case 'info':
|
|
820
|
+
type = MessageType.INFO;
|
|
821
|
+
break;
|
|
822
|
+
default:
|
|
823
|
+
throw new Error(`Unexpected severity for user feedback: ${payload.severity}`);
|
|
824
|
+
}
|
|
825
|
+
historyManager.addItem({
|
|
826
|
+
type,
|
|
827
|
+
text: payload.message,
|
|
828
|
+
}, Date.now());
|
|
829
|
+
// If there is an attached error object, log it to the debug drawer.
|
|
830
|
+
if (payload.error) {
|
|
831
|
+
debugLogger.warn(`[Feedback Details for "${payload.message}"]`, payload.error);
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
coreEvents.on(CoreEvent.UserFeedback, handleUserFeedback);
|
|
835
|
+
// Flush any messages that happened during startup before this component
|
|
836
|
+
// mounted.
|
|
837
|
+
coreEvents.drainFeedbackBacklog();
|
|
838
|
+
return () => {
|
|
839
|
+
coreEvents.off(CoreEvent.UserFeedback, handleUserFeedback);
|
|
840
|
+
};
|
|
841
|
+
}, [historyManager]);
|
|
724
842
|
const filteredConsoleMessages = useMemo(() => {
|
|
725
843
|
if (config.getDebugMode()) {
|
|
726
844
|
return consoleMessages;
|
|
@@ -732,8 +850,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
732
850
|
.filter((msg) => msg.type === 'error')
|
|
733
851
|
.reduce((total, msg) => total + msg.count, 0), [filteredConsoleMessages]);
|
|
734
852
|
const nightly = props.version.includes('nightly');
|
|
735
|
-
const dialogsVisible =
|
|
736
|
-
shouldShowIdePrompt ||
|
|
853
|
+
const dialogsVisible = shouldShowIdePrompt ||
|
|
737
854
|
isFolderTrustDialogOpen ||
|
|
738
855
|
!!shellConfirmationRequest ||
|
|
739
856
|
!!confirmationRequest ||
|
|
@@ -748,7 +865,9 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
748
865
|
isEditorDialogOpen ||
|
|
749
866
|
showPrivacyNotice ||
|
|
750
867
|
showIdeRestartPrompt ||
|
|
751
|
-
!!proQuotaRequest
|
|
868
|
+
!!proQuotaRequest ||
|
|
869
|
+
isAuthDialogOpen ||
|
|
870
|
+
authState === AuthState.AwaitingApiKeyInput;
|
|
752
871
|
const pendingHistoryItems = useMemo(() => [...pendingSlashCommandHistoryItems, ...pendingGeminiHistoryItems], [pendingSlashCommandHistoryItems, pendingGeminiHistoryItems]);
|
|
753
872
|
const uiState = useMemo(() => ({
|
|
754
873
|
history: historyManager.history,
|
|
@@ -760,6 +879,8 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
760
879
|
authError,
|
|
761
880
|
authMessage: authError ?? '',
|
|
762
881
|
isAuthDialogOpen,
|
|
882
|
+
isAwaitingApiKeyInput: authState === AuthState.AwaitingApiKeyInput,
|
|
883
|
+
apiKeyDefaultValue,
|
|
763
884
|
editorError,
|
|
764
885
|
isEditorDialogOpen,
|
|
765
886
|
showPrivacyNotice,
|
|
@@ -797,20 +918,20 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
797
918
|
isTrustedFolder,
|
|
798
919
|
constrainHeight,
|
|
799
920
|
showErrorDetails,
|
|
921
|
+
showFullTodos,
|
|
800
922
|
filteredConsoleMessages,
|
|
801
923
|
ideContextState,
|
|
802
|
-
|
|
803
|
-
ctrlCPressedOnce,
|
|
804
|
-
ctrlDPressedOnce,
|
|
924
|
+
renderMarkdown,
|
|
925
|
+
ctrlCPressedOnce: ctrlCPressCount >= 1,
|
|
926
|
+
ctrlDPressedOnce: ctrlDPressCount >= 1,
|
|
805
927
|
showEscapePrompt,
|
|
806
928
|
isFocused,
|
|
807
929
|
elapsedTime,
|
|
808
930
|
currentLoadingPhrase,
|
|
809
931
|
historyRemountKey,
|
|
810
932
|
messageQueue,
|
|
933
|
+
queueErrorMessage,
|
|
811
934
|
showAutoAcceptIndicator,
|
|
812
|
-
showWorkspaceMigrationDialog,
|
|
813
|
-
workspaceExtensions,
|
|
814
935
|
currentModel,
|
|
815
936
|
userTier,
|
|
816
937
|
proQuotaRequest,
|
|
@@ -838,6 +959,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
838
959
|
activePtyId,
|
|
839
960
|
embeddedShellFocused,
|
|
840
961
|
showDebugProfiler,
|
|
962
|
+
copyModeEnabled,
|
|
841
963
|
}), [
|
|
842
964
|
isThemeDialogOpen,
|
|
843
965
|
themeError,
|
|
@@ -877,20 +999,20 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
877
999
|
isTrustedFolder,
|
|
878
1000
|
constrainHeight,
|
|
879
1001
|
showErrorDetails,
|
|
1002
|
+
showFullTodos,
|
|
880
1003
|
filteredConsoleMessages,
|
|
881
1004
|
ideContextState,
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
1005
|
+
renderMarkdown,
|
|
1006
|
+
ctrlCPressCount,
|
|
1007
|
+
ctrlDPressCount,
|
|
885
1008
|
showEscapePrompt,
|
|
886
1009
|
isFocused,
|
|
887
1010
|
elapsedTime,
|
|
888
1011
|
currentLoadingPhrase,
|
|
889
1012
|
historyRemountKey,
|
|
890
1013
|
messageQueue,
|
|
1014
|
+
queueErrorMessage,
|
|
891
1015
|
showAutoAcceptIndicator,
|
|
892
|
-
showWorkspaceMigrationDialog,
|
|
893
|
-
workspaceExtensions,
|
|
894
1016
|
userTier,
|
|
895
1017
|
proQuotaRequest,
|
|
896
1018
|
contextFileNames,
|
|
@@ -920,10 +1042,14 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
920
1042
|
embeddedShellFocused,
|
|
921
1043
|
awaitingFeedback,
|
|
922
1044
|
showDebugProfiler,
|
|
1045
|
+
apiKeyDefaultValue,
|
|
1046
|
+
authState,
|
|
1047
|
+
copyModeEnabled,
|
|
923
1048
|
]);
|
|
924
1049
|
const exitPrivacyNotice = useCallback(() => setShowPrivacyNotice(false), [setShowPrivacyNotice]);
|
|
925
1050
|
const uiActions = useMemo(() => ({
|
|
926
1051
|
handleThemeSelect,
|
|
1052
|
+
closeThemeDialog,
|
|
927
1053
|
handleThemeHighlight,
|
|
928
1054
|
handleAuthSelect,
|
|
929
1055
|
setAuthState,
|
|
@@ -943,11 +1069,14 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
943
1069
|
refreshStatic,
|
|
944
1070
|
handleFinalSubmit,
|
|
945
1071
|
handleClearScreen,
|
|
946
|
-
onWorkspaceMigrationDialogOpen,
|
|
947
|
-
onWorkspaceMigrationDialogClose,
|
|
948
1072
|
handleProQuotaChoice,
|
|
1073
|
+
setQueueErrorMessage,
|
|
1074
|
+
popAllMessages,
|
|
1075
|
+
handleApiKeySubmit,
|
|
1076
|
+
handleApiKeyCancel,
|
|
949
1077
|
}), [
|
|
950
1078
|
handleThemeSelect,
|
|
1079
|
+
closeThemeDialog,
|
|
951
1080
|
handleThemeHighlight,
|
|
952
1081
|
handleAuthSelect,
|
|
953
1082
|
setAuthState,
|
|
@@ -967,9 +1096,11 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
|
|
967
1096
|
refreshStatic,
|
|
968
1097
|
handleFinalSubmit,
|
|
969
1098
|
handleClearScreen,
|
|
970
|
-
onWorkspaceMigrationDialogOpen,
|
|
971
|
-
onWorkspaceMigrationDialogClose,
|
|
972
1099
|
handleProQuotaChoice,
|
|
1100
|
+
setQueueErrorMessage,
|
|
1101
|
+
popAllMessages,
|
|
1102
|
+
handleApiKeySubmit,
|
|
1103
|
+
handleApiKeyCancel,
|
|
973
1104
|
]);
|
|
974
1105
|
return (_jsx(UIStateContext.Provider, { value: uiState, children: _jsx(UIActionsContext.Provider, { value: uiActions, children: _jsx(ConfigContext.Provider, { value: config, children: _jsx(AppContext.Provider, { value: {
|
|
975
1106
|
version: props.version,
|