@terminai/cli 0.21.0
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/.last_build +0 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +98 -0
- package/dist/src/commands/extensions/disable.d.ts +14 -0
- package/dist/src/commands/extensions/disable.js +70 -0
- package/dist/src/commands/extensions/disable.js.map +1 -0
- package/dist/src/commands/extensions/disable.test.d.ts +7 -0
- package/dist/src/commands/extensions/disable.test.js +170 -0
- package/dist/src/commands/extensions/disable.test.js.map +1 -0
- package/dist/src/commands/extensions/enable.d.ts +14 -0
- package/dist/src/commands/extensions/enable.js +72 -0
- package/dist/src/commands/extensions/enable.js.map +1 -0
- package/dist/src/commands/extensions/enable.test.d.ts +7 -0
- package/dist/src/commands/extensions/enable.test.js +151 -0
- package/dist/src/commands/extensions/enable.test.js.map +1 -0
- package/dist/src/commands/extensions/examples/context/gemini-extension.json +4 -0
- package/dist/src/commands/extensions/examples/context/terminaI.md +14 -0
- package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +6 -0
- package/dist/src/commands/extensions/examples/custom-commands/gemini-extension.json +4 -0
- package/dist/src/commands/extensions/examples/exclude-tools/gemini-extension.json +5 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.d.ts +7 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.js +47 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.js.map +1 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.test.d.ts +7 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.test.js +112 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.test.js.map +1 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.test.ts +136 -0
- package/dist/src/commands/extensions/examples/mcp-server/example.ts +61 -0
- package/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +11 -0
- package/dist/src/commands/extensions/examples/mcp-server/package.json +18 -0
- package/dist/src/commands/extensions/examples/mcp-server/tsconfig.json +13 -0
- package/dist/src/commands/extensions/install.d.ts +17 -0
- package/dist/src/commands/extensions/install.js +112 -0
- package/dist/src/commands/extensions/install.js.map +1 -0
- package/dist/src/commands/extensions/install.test.d.ts +7 -0
- package/dist/src/commands/extensions/install.test.js +123 -0
- package/dist/src/commands/extensions/install.test.js.map +1 -0
- package/dist/src/commands/extensions/link.d.ts +14 -0
- package/dist/src/commands/extensions/link.js +65 -0
- package/dist/src/commands/extensions/link.js.map +1 -0
- package/dist/src/commands/extensions/link.test.d.ts +7 -0
- package/dist/src/commands/extensions/link.test.js +138 -0
- package/dist/src/commands/extensions/link.test.js.map +1 -0
- package/dist/src/commands/extensions/list.d.ts +9 -0
- package/dist/src/commands/extensions/list.js +46 -0
- package/dist/src/commands/extensions/list.js.map +1 -0
- package/dist/src/commands/extensions/list.test.d.ts +7 -0
- package/dist/src/commands/extensions/list.test.js +112 -0
- package/dist/src/commands/extensions/list.test.js.map +1 -0
- package/dist/src/commands/extensions/new.d.ts +8 -0
- package/dist/src/commands/extensions/new.js +87 -0
- package/dist/src/commands/extensions/new.js.map +1 -0
- package/dist/src/commands/extensions/new.test.d.ts +7 -0
- package/dist/src/commands/extensions/new.test.js +63 -0
- package/dist/src/commands/extensions/new.test.js.map +1 -0
- package/dist/src/commands/extensions/settings.d.ts +8 -0
- package/dist/src/commands/extensions/settings.js +112 -0
- package/dist/src/commands/extensions/settings.js.map +1 -0
- package/dist/src/commands/extensions/uninstall.d.ts +13 -0
- package/dist/src/commands/extensions/uninstall.js +68 -0
- package/dist/src/commands/extensions/uninstall.js.map +1 -0
- package/dist/src/commands/extensions/uninstall.test.d.ts +7 -0
- package/dist/src/commands/extensions/uninstall.test.js +200 -0
- package/dist/src/commands/extensions/uninstall.test.js.map +1 -0
- package/dist/src/commands/extensions/update.d.ts +14 -0
- package/dist/src/commands/extensions/update.js +108 -0
- package/dist/src/commands/extensions/update.js.map +1 -0
- package/dist/src/commands/extensions/update.test.d.ts +7 -0
- package/dist/src/commands/extensions/update.test.js +171 -0
- package/dist/src/commands/extensions/update.test.js.map +1 -0
- package/dist/src/commands/extensions/utils.d.ts +14 -0
- package/dist/src/commands/extensions/utils.js +30 -0
- package/dist/src/commands/extensions/utils.js.map +1 -0
- package/dist/src/commands/extensions/validate.d.ts +13 -0
- package/dist/src/commands/extensions/validate.js +86 -0
- package/dist/src/commands/extensions/validate.js.map +1 -0
- package/dist/src/commands/extensions/validate.test.d.ts +7 -0
- package/dist/src/commands/extensions/validate.test.js +97 -0
- package/dist/src/commands/extensions/validate.test.js.map +1 -0
- package/dist/src/commands/extensions.d.ts +8 -0
- package/dist/src/commands/extensions.js +41 -0
- package/dist/src/commands/extensions.js.map +1 -0
- package/dist/src/commands/extensions.test.d.ts +7 -0
- package/dist/src/commands/extensions.test.js +68 -0
- package/dist/src/commands/extensions.test.js.map +1 -0
- package/dist/src/commands/hooks/migrate.d.ts +12 -0
- package/dist/src/commands/hooks/migrate.js +207 -0
- package/dist/src/commands/hooks/migrate.js.map +1 -0
- package/dist/src/commands/hooks/migrate.test.d.ts +7 -0
- package/dist/src/commands/hooks/migrate.test.js +390 -0
- package/dist/src/commands/hooks/migrate.test.js.map +1 -0
- package/dist/src/commands/hooks.d.ts +8 -0
- package/dist/src/commands/hooks.js +23 -0
- package/dist/src/commands/hooks.js.map +1 -0
- package/dist/src/commands/mcp/add.d.ts +8 -0
- package/dist/src/commands/mcp/add.js +179 -0
- package/dist/src/commands/mcp/add.js.map +1 -0
- package/dist/src/commands/mcp/add.test.d.ts +7 -0
- package/dist/src/commands/mcp/add.test.js +275 -0
- package/dist/src/commands/mcp/add.test.js.map +1 -0
- package/dist/src/commands/mcp/list.d.ts +9 -0
- package/dist/src/commands/mcp/list.js +123 -0
- package/dist/src/commands/mcp/list.js.map +1 -0
- package/dist/src/commands/mcp/list.test.d.ts +7 -0
- package/dist/src/commands/mcp/list.test.js +127 -0
- package/dist/src/commands/mcp/list.test.js.map +1 -0
- package/dist/src/commands/mcp/remove.d.ts +8 -0
- package/dist/src/commands/mcp/remove.js +48 -0
- package/dist/src/commands/mcp/remove.js.map +1 -0
- package/dist/src/commands/mcp/remove.test.d.ts +7 -0
- package/dist/src/commands/mcp/remove.test.js +190 -0
- package/dist/src/commands/mcp/remove.test.js.map +1 -0
- package/dist/src/commands/mcp.d.ts +8 -0
- package/dist/src/commands/mcp.js +26 -0
- package/dist/src/commands/mcp.js.map +1 -0
- package/dist/src/commands/mcp.test.d.ts +7 -0
- package/dist/src/commands/mcp.test.js +64 -0
- package/dist/src/commands/mcp.test.js.map +1 -0
- package/dist/src/commands/utils.d.ts +7 -0
- package/dist/src/commands/utils.js +12 -0
- package/dist/src/commands/utils.js.map +1 -0
- package/dist/src/commands/utils.test.d.ts +7 -0
- package/dist/src/commands/utils.test.js +36 -0
- package/dist/src/commands/utils.test.js.map +1 -0
- package/dist/src/commands/voice/install.d.ts +8 -0
- package/dist/src/commands/voice/install.js +214 -0
- package/dist/src/commands/voice/install.js.map +1 -0
- package/dist/src/commands/voice.d.ts +8 -0
- package/dist/src/commands/voice.js +19 -0
- package/dist/src/commands/voice.js.map +1 -0
- package/dist/src/config/auth.d.ts +7 -0
- package/dist/src/config/auth.js +41 -0
- package/dist/src/config/auth.js.map +1 -0
- package/dist/src/config/auth.test.d.ts +7 -0
- package/dist/src/config/auth.test.js +99 -0
- package/dist/src/config/auth.test.js.map +1 -0
- package/dist/src/config/config.d.ts +52 -0
- package/dist/src/config/config.integration.test.d.ts +7 -0
- package/dist/src/config/config.integration.test.js +222 -0
- package/dist/src/config/config.integration.test.js.map +1 -0
- package/dist/src/config/config.js +682 -0
- package/dist/src/config/config.js.map +1 -0
- package/dist/src/config/config.test.d.ts +7 -0
- package/dist/src/config/config.test.js +2143 -0
- package/dist/src/config/config.test.js.map +1 -0
- package/dist/src/config/extension-manager.d.ts +64 -0
- package/dist/src/config/extension-manager.js +519 -0
- package/dist/src/config/extension-manager.js.map +1 -0
- package/dist/src/config/extension.d.ts +29 -0
- package/dist/src/config/extension.js +21 -0
- package/dist/src/config/extension.js.map +1 -0
- package/dist/src/config/extension.test.d.ts +7 -0
- package/dist/src/config/extension.test.js +1543 -0
- package/dist/src/config/extension.test.js.map +1 -0
- package/dist/src/config/extensions/consent.d.ts +39 -0
- package/dist/src/config/extensions/consent.js +127 -0
- package/dist/src/config/extensions/consent.js.map +1 -0
- package/dist/src/config/extensions/consent.test.d.ts +7 -0
- package/dist/src/config/extensions/consent.test.js +163 -0
- package/dist/src/config/extensions/consent.test.js.map +1 -0
- package/dist/src/config/extensions/extensionEnablement.d.ts +48 -0
- package/dist/src/config/extensions/extensionEnablement.js +191 -0
- package/dist/src/config/extensions/extensionEnablement.js.map +1 -0
- package/dist/src/config/extensions/extensionEnablement.test.d.ts +7 -0
- package/dist/src/config/extensions/extensionEnablement.test.js +405 -0
- package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -0
- package/dist/src/config/extensions/extensionSettings.d.ts +22 -0
- package/dist/src/config/extensions/extensionSettings.js +185 -0
- package/dist/src/config/extensions/extensionSettings.js.map +1 -0
- package/dist/src/config/extensions/extensionSettings.test.d.ts +7 -0
- package/dist/src/config/extensions/extensionSettings.test.js +494 -0
- package/dist/src/config/extensions/extensionSettings.test.js.map +1 -0
- package/dist/src/config/extensions/github.d.ts +51 -0
- package/dist/src/config/extensions/github.js +417 -0
- package/dist/src/config/extensions/github.js.map +1 -0
- package/dist/src/config/extensions/github.test.d.ts +7 -0
- package/dist/src/config/extensions/github.test.js +442 -0
- package/dist/src/config/extensions/github.test.js.map +1 -0
- package/dist/src/config/extensions/github_fetch.d.ts +8 -0
- package/dist/src/config/extensions/github_fetch.js +47 -0
- package/dist/src/config/extensions/github_fetch.js.map +1 -0
- package/dist/src/config/extensions/github_fetch.test.d.ts +7 -0
- package/dist/src/config/extensions/github_fetch.test.js +170 -0
- package/dist/src/config/extensions/github_fetch.test.js.map +1 -0
- package/dist/src/config/extensions/storage.d.ts +15 -0
- package/dist/src/config/extensions/storage.js +33 -0
- package/dist/src/config/extensions/storage.js.map +1 -0
- package/dist/src/config/extensions/storage.test.d.ts +7 -0
- package/dist/src/config/extensions/storage.test.js +65 -0
- package/dist/src/config/extensions/storage.test.js.map +1 -0
- package/dist/src/config/extensions/update.d.ts +21 -0
- package/dist/src/config/extensions/update.js +121 -0
- package/dist/src/config/extensions/update.js.map +1 -0
- package/dist/src/config/extensions/update.test.d.ts +7 -0
- package/dist/src/config/extensions/update.test.js +232 -0
- package/dist/src/config/extensions/update.test.js.map +1 -0
- package/dist/src/config/extensions/variableSchema.d.ts +33 -0
- package/dist/src/config/extensions/variableSchema.js +23 -0
- package/dist/src/config/extensions/variableSchema.js.map +1 -0
- package/dist/src/config/extensions/variables.d.ts +22 -0
- package/dist/src/config/extensions/variables.js +47 -0
- package/dist/src/config/extensions/variables.js.map +1 -0
- package/dist/src/config/extensions/variables.test.d.ts +7 -0
- package/dist/src/config/extensions/variables.test.js +104 -0
- package/dist/src/config/extensions/variables.test.js.map +1 -0
- package/dist/src/config/keyBindings.d.ts +94 -0
- package/dist/src/config/keyBindings.js +309 -0
- package/dist/src/config/keyBindings.js.map +1 -0
- package/dist/src/config/keyBindings.test.d.ts +7 -0
- package/dist/src/config/keyBindings.test.js +94 -0
- package/dist/src/config/keyBindings.test.js.map +1 -0
- package/dist/src/config/policy-engine.integration.test.d.ts +7 -0
- package/dist/src/config/policy-engine.integration.test.js +292 -0
- package/dist/src/config/policy-engine.integration.test.js.map +1 -0
- package/dist/src/config/policy.d.ts +11 -0
- package/dist/src/config/policy.js +25 -0
- package/dist/src/config/policy.js.map +1 -0
- package/dist/src/config/sandboxConfig.d.ts +13 -0
- package/dist/src/config/sandboxConfig.js +81 -0
- package/dist/src/config/sandboxConfig.js.map +1 -0
- package/dist/src/config/sandboxConfig.test.d.ts +7 -0
- package/dist/src/config/sandboxConfig.test.js +179 -0
- package/dist/src/config/sandboxConfig.test.js.map +1 -0
- package/dist/src/config/settingPaths.d.ts +11 -0
- package/dist/src/config/settingPaths.js +12 -0
- package/dist/src/config/settingPaths.js.map +1 -0
- package/dist/src/config/settingPaths.test.d.ts +7 -0
- package/dist/src/config/settingPaths.test.js +23 -0
- package/dist/src/config/settingPaths.test.js.map +1 -0
- package/dist/src/config/settings-validation.d.ts +24 -0
- package/dist/src/config/settings-validation.js +250 -0
- package/dist/src/config/settings-validation.js.map +1 -0
- package/dist/src/config/settings-validation.test.d.ts +7 -0
- package/dist/src/config/settings-validation.test.js +323 -0
- package/dist/src/config/settings-validation.test.js.map +1 -0
- package/dist/src/config/settings.d.ts +22 -0
- package/dist/src/config/settings.js +55 -0
- package/dist/src/config/settings.js.map +1 -0
- package/dist/src/config/settings.test.d.ts +7 -0
- package/dist/src/config/settings.test.js +1648 -0
- package/dist/src/config/settings.test.js.map +1 -0
- package/dist/src/config/settingsSchema.d.ts +2132 -0
- package/dist/src/config/settingsSchema.js +2340 -0
- package/dist/src/config/settingsSchema.js.map +1 -0
- package/dist/src/config/settingsSchema.test.d.ts +7 -0
- package/dist/src/config/settingsSchema.test.js +274 -0
- package/dist/src/config/settingsSchema.test.js.map +1 -0
- package/dist/src/config/settings_repro.test.d.ts +7 -0
- package/dist/src/config/settings_repro.test.js +162 -0
- package/dist/src/config/settings_repro.test.js.map +1 -0
- package/dist/src/config/trustedFolders.d.ts +57 -0
- package/dist/src/config/trustedFolders.js +192 -0
- package/dist/src/config/trustedFolders.js.map +1 -0
- package/dist/src/config/trustedFolders.test.d.ts +7 -0
- package/dist/src/config/trustedFolders.test.js +379 -0
- package/dist/src/config/trustedFolders.test.js.map +1 -0
- package/dist/src/core/auth.d.ts +14 -0
- package/dist/src/core/auth.js +28 -0
- package/dist/src/core/auth.js.map +1 -0
- package/dist/src/core/auth.test.d.ts +7 -0
- package/dist/src/core/auth.test.js +44 -0
- package/dist/src/core/auth.test.js.map +1 -0
- package/dist/src/core/initializer.d.ts +22 -0
- package/dist/src/core/initializer.js +45 -0
- package/dist/src/core/initializer.js.map +1 -0
- package/dist/src/core/initializer.test.d.ts +7 -0
- package/dist/src/core/initializer.test.js +102 -0
- package/dist/src/core/initializer.test.js.map +1 -0
- package/dist/src/core/theme.d.ts +13 -0
- package/dist/src/core/theme.js +21 -0
- package/dist/src/core/theme.js.map +1 -0
- package/dist/src/core/theme.test.d.ts +7 -0
- package/dist/src/core/theme.test.js +47 -0
- package/dist/src/core/theme.test.js.map +1 -0
- package/dist/src/gemini.d.ts +17 -0
- package/dist/src/gemini.js +694 -0
- package/dist/src/gemini.js.map +1 -0
- package/dist/src/gemini.test.d.ts +7 -0
- package/dist/src/gemini.test.js +1315 -0
- package/dist/src/gemini.test.js.map +1 -0
- package/dist/src/gemini_cleanup.test.d.ts +7 -0
- package/dist/src/gemini_cleanup.test.js +204 -0
- package/dist/src/gemini_cleanup.test.js.map +1 -0
- package/dist/src/generated/git-commit.d.ts +8 -0
- package/dist/src/generated/git-commit.js +11 -0
- package/dist/src/generated/git-commit.js.map +1 -0
- package/dist/src/nonInteractiveCli.d.ts +18 -0
- package/dist/src/nonInteractiveCli.js +443 -0
- package/dist/src/nonInteractiveCli.js.map +1 -0
- package/dist/src/nonInteractiveCli.test.d.ts +7 -0
- package/dist/src/nonInteractiveCli.test.js +1397 -0
- package/dist/src/nonInteractiveCli.test.js.map +1 -0
- package/dist/src/nonInteractiveCliCommands.d.ts +18 -0
- package/dist/src/nonInteractiveCliCommands.js +79 -0
- package/dist/src/nonInteractiveCliCommands.js.map +1 -0
- package/dist/src/patches/is-in-ci.d.ts +8 -0
- package/dist/src/patches/is-in-ci.js +16 -0
- package/dist/src/patches/is-in-ci.js.map +1 -0
- package/dist/src/services/BuiltinCommandLoader.d.ts +25 -0
- package/dist/src/services/BuiltinCommandLoader.js +111 -0
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -0
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +7 -0
- package/dist/src/services/BuiltinCommandLoader.test.js +201 -0
- package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -0
- package/dist/src/services/CommandService.d.ts +56 -0
- package/dist/src/services/CommandService.js +92 -0
- package/dist/src/services/CommandService.js.map +1 -0
- package/dist/src/services/CommandService.test.d.ts +7 -0
- package/dist/src/services/CommandService.test.js +235 -0
- package/dist/src/services/CommandService.test.js.map +1 -0
- package/dist/src/services/FileCommandLoader.d.ts +52 -0
- package/dist/src/services/FileCommandLoader.js +231 -0
- package/dist/src/services/FileCommandLoader.js.map +1 -0
- package/dist/src/services/FileCommandLoader.test.d.ts +7 -0
- package/dist/src/services/FileCommandLoader.test.js +1047 -0
- package/dist/src/services/FileCommandLoader.test.js.map +1 -0
- package/dist/src/services/McpPromptLoader.d.ts +36 -0
- package/dist/src/services/McpPromptLoader.js +257 -0
- package/dist/src/services/McpPromptLoader.js.map +1 -0
- package/dist/src/services/McpPromptLoader.test.d.ts +7 -0
- package/dist/src/services/McpPromptLoader.test.js +412 -0
- package/dist/src/services/McpPromptLoader.test.js.map +1 -0
- package/dist/src/services/prompt-processors/argumentProcessor.d.ts +17 -0
- package/dist/src/services/prompt-processors/argumentProcessor.js +22 -0
- package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -0
- package/dist/src/services/prompt-processors/argumentProcessor.test.d.ts +7 -0
- package/dist/src/services/prompt-processors/argumentProcessor.test.js +41 -0
- package/dist/src/services/prompt-processors/argumentProcessor.test.js.map +1 -0
- package/dist/src/services/prompt-processors/atFileProcessor.d.ts +13 -0
- package/dist/src/services/prompt-processors/atFileProcessor.js +64 -0
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -0
- package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +7 -0
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +175 -0
- package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +1 -0
- package/dist/src/services/prompt-processors/injectionParser.d.ts +30 -0
- package/dist/src/services/prompt-processors/injectionParser.js +61 -0
- package/dist/src/services/prompt-processors/injectionParser.js.map +1 -0
- package/dist/src/services/prompt-processors/injectionParser.test.d.ts +7 -0
- package/dist/src/services/prompt-processors/injectionParser.test.js +190 -0
- package/dist/src/services/prompt-processors/injectionParser.test.js.map +1 -0
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +28 -0
- package/dist/src/services/prompt-processors/shellProcessor.js +129 -0
- package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -0
- package/dist/src/services/prompt-processors/shellProcessor.test.d.ts +7 -0
- package/dist/src/services/prompt-processors/shellProcessor.test.js +483 -0
- package/dist/src/services/prompt-processors/shellProcessor.test.js.map +1 -0
- package/dist/src/services/prompt-processors/types.d.ts +46 -0
- package/dist/src/services/prompt-processors/types.js +21 -0
- package/dist/src/services/prompt-processors/types.js.map +1 -0
- package/dist/src/services/types.d.ts +23 -0
- package/dist/src/services/types.js +8 -0
- package/dist/src/services/types.js.map +1 -0
- package/dist/src/test-utils/async.d.ts +10 -0
- package/dist/src/test-utils/async.js +30 -0
- package/dist/src/test-utils/async.js.map +1 -0
- package/dist/src/test-utils/createExtension.d.ts +18 -0
- package/dist/src/test-utils/createExtension.js +26 -0
- package/dist/src/test-utils/createExtension.js.map +1 -0
- package/dist/src/test-utils/customMatchers.d.ts +15 -0
- package/dist/src/test-utils/customMatchers.js +41 -0
- package/dist/src/test-utils/customMatchers.js.map +1 -0
- package/dist/src/test-utils/mockCommandContext.d.ts +19 -0
- package/dist/src/test-utils/mockCommandContext.js +89 -0
- package/dist/src/test-utils/mockCommandContext.js.map +1 -0
- package/dist/src/test-utils/mockCommandContext.test.d.ts +7 -0
- package/dist/src/test-utils/mockCommandContext.test.js +52 -0
- package/dist/src/test-utils/mockCommandContext.test.js.map +1 -0
- package/dist/src/test-utils/render.d.ts +59 -0
- package/dist/src/test-utils/render.js +230 -0
- package/dist/src/test-utils/render.js.map +1 -0
- package/dist/src/test-utils/render.test.d.ts +7 -0
- package/dist/src/test-utils/render.test.js +80 -0
- package/dist/src/test-utils/render.test.js.map +1 -0
- package/dist/src/ui/App.d.ts +7 -0
- package/dist/src/ui/App.js +30 -0
- package/dist/src/ui/App.js.map +1 -0
- package/dist/src/ui/App.test.d.ts +7 -0
- package/dist/src/ui/App.test.js +165 -0
- package/dist/src/ui/App.test.js.map +1 -0
- package/dist/src/ui/AppContainer.d.ts +25 -0
- package/dist/src/ui/AppContainer.js +1751 -0
- package/dist/src/ui/AppContainer.js.map +1 -0
- package/dist/src/ui/AppContainer.test.d.ts +7 -0
- package/dist/src/ui/AppContainer.test.js +1707 -0
- package/dist/src/ui/AppContainer.test.js.map +1 -0
- package/dist/src/ui/IdeIntegrationNudge.d.ts +17 -0
- package/dist/src/ui/IdeIntegrationNudge.js +50 -0
- package/dist/src/ui/IdeIntegrationNudge.js.map +1 -0
- package/dist/src/ui/IdeIntegrationNudge.test.d.ts +7 -0
- package/dist/src/ui/IdeIntegrationNudge.test.js +148 -0
- package/dist/src/ui/IdeIntegrationNudge.test.js.map +1 -0
- package/dist/src/ui/Onboarding.d.ts +14 -0
- package/dist/src/ui/Onboarding.js +74 -0
- package/dist/src/ui/Onboarding.js.map +1 -0
- package/dist/src/ui/RemoteConsent.d.ts +17 -0
- package/dist/src/ui/RemoteConsent.js +30 -0
- package/dist/src/ui/RemoteConsent.js.map +1 -0
- package/dist/src/ui/auth/ApiAuthDialog.d.ts +15 -0
- package/dist/src/ui/auth/ApiAuthDialog.js +59 -0
- package/dist/src/ui/auth/ApiAuthDialog.js.map +1 -0
- package/dist/src/ui/auth/ApiAuthDialog.test.d.ts +7 -0
- package/dist/src/ui/auth/ApiAuthDialog.test.js +111 -0
- package/dist/src/ui/auth/ApiAuthDialog.test.js.map +1 -0
- package/dist/src/ui/auth/AuthDialog.d.ts +19 -0
- package/dist/src/ui/auth/AuthDialog.js +135 -0
- package/dist/src/ui/auth/AuthDialog.js.map +1 -0
- package/dist/src/ui/auth/AuthDialog.test.d.ts +7 -0
- package/dist/src/ui/auth/AuthDialog.test.js +289 -0
- package/dist/src/ui/auth/AuthDialog.test.js.map +1 -0
- package/dist/src/ui/auth/AuthInProgress.d.ts +12 -0
- package/dist/src/ui/auth/AuthInProgress.js +23 -0
- package/dist/src/ui/auth/AuthInProgress.js.map +1 -0
- package/dist/src/ui/auth/AuthInProgress.test.d.ts +7 -0
- package/dist/src/ui/auth/AuthInProgress.test.js +72 -0
- package/dist/src/ui/auth/AuthInProgress.test.js.map +1 -0
- package/dist/src/ui/auth/OpenAICompatibleSetupDialog.d.ts +15 -0
- package/dist/src/ui/auth/OpenAICompatibleSetupDialog.js +114 -0
- package/dist/src/ui/auth/OpenAICompatibleSetupDialog.js.map +1 -0
- package/dist/src/ui/auth/ProviderWizard.d.ts +15 -0
- package/dist/src/ui/auth/ProviderWizard.js +53 -0
- package/dist/src/ui/auth/ProviderWizard.js.map +1 -0
- package/dist/src/ui/auth/ProviderWizard.test.d.ts +7 -0
- package/dist/src/ui/auth/ProviderWizard.test.js +54 -0
- package/dist/src/ui/auth/ProviderWizard.test.js.map +1 -0
- package/dist/src/ui/auth/useAuth.d.ts +18 -0
- package/dist/src/ui/auth/useAuth.js +115 -0
- package/dist/src/ui/auth/useAuth.js.map +1 -0
- package/dist/src/ui/auth/useAuth.test.d.ts +7 -0
- package/dist/src/ui/auth/useAuth.test.js +190 -0
- package/dist/src/ui/auth/useAuth.test.js.map +1 -0
- package/dist/src/ui/colors.d.ts +8 -0
- package/dist/src/ui/colors.js +58 -0
- package/dist/src/ui/colors.js.map +1 -0
- package/dist/src/ui/commands/aboutCommand.d.ts +8 -0
- package/dist/src/ui/commands/aboutCommand.js +82 -0
- package/dist/src/ui/commands/aboutCommand.js.map +1 -0
- package/dist/src/ui/commands/aboutCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/aboutCommand.test.js +135 -0
- package/dist/src/ui/commands/aboutCommand.test.js.map +1 -0
- package/dist/src/ui/commands/auditCommand.d.ts +8 -0
- package/dist/src/ui/commands/auditCommand.js +99 -0
- package/dist/src/ui/commands/auditCommand.js.map +1 -0
- package/dist/src/ui/commands/auditCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/auditCommand.test.js +103 -0
- package/dist/src/ui/commands/auditCommand.test.js.map +1 -0
- package/dist/src/ui/commands/authCommand.d.ts +8 -0
- package/dist/src/ui/commands/authCommand.js +45 -0
- package/dist/src/ui/commands/authCommand.js.map +1 -0
- package/dist/src/ui/commands/authCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/authCommand.test.js +99 -0
- package/dist/src/ui/commands/authCommand.test.js.map +1 -0
- package/dist/src/ui/commands/bugCommand.d.ts +8 -0
- package/dist/src/ui/commands/bugCommand.js +86 -0
- package/dist/src/ui/commands/bugCommand.js.map +1 -0
- package/dist/src/ui/commands/bugCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/bugCommand.test.js +119 -0
- package/dist/src/ui/commands/bugCommand.test.js.map +1 -0
- package/dist/src/ui/commands/chatCommand.d.ts +10 -0
- package/dist/src/ui/commands/chatCommand.js +319 -0
- package/dist/src/ui/commands/chatCommand.js.map +1 -0
- package/dist/src/ui/commands/chatCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/chatCommand.test.js +594 -0
- package/dist/src/ui/commands/chatCommand.test.js.map +1 -0
- package/dist/src/ui/commands/clearCommand.d.ts +8 -0
- package/dist/src/ui/commands/clearCommand.js +58 -0
- package/dist/src/ui/commands/clearCommand.js.map +1 -0
- package/dist/src/ui/commands/clearCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/clearCommand.test.js +84 -0
- package/dist/src/ui/commands/clearCommand.test.js.map +1 -0
- package/dist/src/ui/commands/compressCommand.d.ts +8 -0
- package/dist/src/ui/commands/compressCommand.js +68 -0
- package/dist/src/ui/commands/compressCommand.js.map +1 -0
- package/dist/src/ui/commands/compressCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/compressCommand.test.js +99 -0
- package/dist/src/ui/commands/compressCommand.test.js.map +1 -0
- package/dist/src/ui/commands/copyCommand.d.ts +8 -0
- package/dist/src/ui/commands/copyCommand.js +62 -0
- package/dist/src/ui/commands/copyCommand.js.map +1 -0
- package/dist/src/ui/commands/copyCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/copyCommand.test.js +243 -0
- package/dist/src/ui/commands/copyCommand.test.js.map +1 -0
- package/dist/src/ui/commands/corgiCommand.d.ts +8 -0
- package/dist/src/ui/commands/corgiCommand.js +18 -0
- package/dist/src/ui/commands/corgiCommand.js.map +1 -0
- package/dist/src/ui/commands/corgiCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/corgiCommand.test.js +29 -0
- package/dist/src/ui/commands/corgiCommand.test.js.map +1 -0
- package/dist/src/ui/commands/directoryCommand.d.ts +8 -0
- package/dist/src/ui/commands/directoryCommand.js +190 -0
- package/dist/src/ui/commands/directoryCommand.js.map +1 -0
- package/dist/src/ui/commands/directoryCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/directoryCommand.test.js +236 -0
- package/dist/src/ui/commands/directoryCommand.test.js.map +1 -0
- package/dist/src/ui/commands/docsCommand.d.ts +8 -0
- package/dist/src/ui/commands/docsCommand.js +33 -0
- package/dist/src/ui/commands/docsCommand.js.map +1 -0
- package/dist/src/ui/commands/docsCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/docsCommand.test.js +73 -0
- package/dist/src/ui/commands/docsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/editorCommand.d.ts +8 -0
- package/dist/src/ui/commands/editorCommand.js +18 -0
- package/dist/src/ui/commands/editorCommand.js.map +1 -0
- package/dist/src/ui/commands/editorCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/editorCommand.test.js +28 -0
- package/dist/src/ui/commands/editorCommand.test.js.map +1 -0
- package/dist/src/ui/commands/evaluateCommand.d.ts +8 -0
- package/dist/src/ui/commands/evaluateCommand.js +98 -0
- package/dist/src/ui/commands/evaluateCommand.js.map +1 -0
- package/dist/src/ui/commands/extensionsCommand.d.ts +13 -0
- package/dist/src/ui/commands/extensionsCommand.js +404 -0
- package/dist/src/ui/commands/extensionsCommand.js.map +1 -0
- package/dist/src/ui/commands/extensionsCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/extensionsCommand.test.js +589 -0
- package/dist/src/ui/commands/extensionsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/helpCommand.d.ts +8 -0
- package/dist/src/ui/commands/helpCommand.js +23 -0
- package/dist/src/ui/commands/helpCommand.js.map +1 -0
- package/dist/src/ui/commands/helpCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/helpCommand.test.js +43 -0
- package/dist/src/ui/commands/helpCommand.test.js.map +1 -0
- package/dist/src/ui/commands/hooksCommand.d.ts +8 -0
- package/dist/src/ui/commands/hooksCommand.js +208 -0
- package/dist/src/ui/commands/hooksCommand.js.map +1 -0
- package/dist/src/ui/commands/hooksCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/hooksCommand.test.js +405 -0
- package/dist/src/ui/commands/hooksCommand.test.js.map +1 -0
- package/dist/src/ui/commands/ideCommand.d.ts +8 -0
- package/dist/src/ui/commands/ideCommand.js +234 -0
- package/dist/src/ui/commands/ideCommand.js.map +1 -0
- package/dist/src/ui/commands/ideCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/ideCommand.test.js +204 -0
- package/dist/src/ui/commands/ideCommand.test.js.map +1 -0
- package/dist/src/ui/commands/initCommand.d.ts +8 -0
- package/dist/src/ui/commands/initCommand.js +38 -0
- package/dist/src/ui/commands/initCommand.js.map +1 -0
- package/dist/src/ui/commands/initCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/initCommand.test.js +81 -0
- package/dist/src/ui/commands/initCommand.test.js.map +1 -0
- package/dist/src/ui/commands/mcpCommand.d.ts +8 -0
- package/dist/src/ui/commands/mcpCommand.js +286 -0
- package/dist/src/ui/commands/mcpCommand.js.map +1 -0
- package/dist/src/ui/commands/mcpCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/mcpCommand.test.js +182 -0
- package/dist/src/ui/commands/mcpCommand.test.js.map +1 -0
- package/dist/src/ui/commands/memoryCommand.d.ts +8 -0
- package/dist/src/ui/commands/memoryCommand.js +120 -0
- package/dist/src/ui/commands/memoryCommand.js.map +1 -0
- package/dist/src/ui/commands/memoryCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/memoryCommand.test.js +281 -0
- package/dist/src/ui/commands/memoryCommand.test.js.map +1 -0
- package/dist/src/ui/commands/modelCommand.d.ts +8 -0
- package/dist/src/ui/commands/modelCommand.js +23 -0
- package/dist/src/ui/commands/modelCommand.js.map +1 -0
- package/dist/src/ui/commands/modelCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/modelCommand.test.js +42 -0
- package/dist/src/ui/commands/modelCommand.test.js.map +1 -0
- package/dist/src/ui/commands/permissionsCommand.d.ts +8 -0
- package/dist/src/ui/commands/permissionsCommand.js +76 -0
- package/dist/src/ui/commands/permissionsCommand.js.map +1 -0
- package/dist/src/ui/commands/permissionsCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/permissionsCommand.test.js +87 -0
- package/dist/src/ui/commands/permissionsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/policiesCommand.d.ts +8 -0
- package/dist/src/ui/commands/policiesCommand.js +62 -0
- package/dist/src/ui/commands/policiesCommand.js.map +1 -0
- package/dist/src/ui/commands/policiesCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/policiesCommand.test.js +84 -0
- package/dist/src/ui/commands/policiesCommand.test.js.map +1 -0
- package/dist/src/ui/commands/privacyCommand.d.ts +8 -0
- package/dist/src/ui/commands/privacyCommand.js +18 -0
- package/dist/src/ui/commands/privacyCommand.js.map +1 -0
- package/dist/src/ui/commands/privacyCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/privacyCommand.test.js +33 -0
- package/dist/src/ui/commands/privacyCommand.test.js.map +1 -0
- package/dist/src/ui/commands/profileCommand.d.ts +8 -0
- package/dist/src/ui/commands/profileCommand.js +25 -0
- package/dist/src/ui/commands/profileCommand.js.map +1 -0
- package/dist/src/ui/commands/quitCommand.d.ts +8 -0
- package/dist/src/ui/commands/quitCommand.js +36 -0
- package/dist/src/ui/commands/quitCommand.js.map +1 -0
- package/dist/src/ui/commands/quitCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/quitCommand.test.js +51 -0
- package/dist/src/ui/commands/quitCommand.test.js.map +1 -0
- package/dist/src/ui/commands/recipesCommand.d.ts +14 -0
- package/dist/src/ui/commands/recipesCommand.js +211 -0
- package/dist/src/ui/commands/recipesCommand.js.map +1 -0
- package/dist/src/ui/commands/recipesCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/recipesCommand.test.js +108 -0
- package/dist/src/ui/commands/recipesCommand.test.js.map +1 -0
- package/dist/src/ui/commands/restoreCommand.d.ts +9 -0
- package/dist/src/ui/commands/restoreCommand.js +131 -0
- package/dist/src/ui/commands/restoreCommand.js.map +1 -0
- package/dist/src/ui/commands/restoreCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/restoreCommand.test.js +191 -0
- package/dist/src/ui/commands/restoreCommand.test.js.map +1 -0
- package/dist/src/ui/commands/resumeCommand.d.ts +8 -0
- package/dist/src/ui/commands/resumeCommand.js +18 -0
- package/dist/src/ui/commands/resumeCommand.js.map +1 -0
- package/dist/src/ui/commands/sessionsCommand.d.ts +8 -0
- package/dist/src/ui/commands/sessionsCommand.js +104 -0
- package/dist/src/ui/commands/sessionsCommand.js.map +1 -0
- package/dist/src/ui/commands/sessionsCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/sessionsCommand.test.js +52 -0
- package/dist/src/ui/commands/sessionsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/settingsCommand.d.ts +8 -0
- package/dist/src/ui/commands/settingsCommand.js +18 -0
- package/dist/src/ui/commands/settingsCommand.js.map +1 -0
- package/dist/src/ui/commands/settingsCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/settingsCommand.test.js +31 -0
- package/dist/src/ui/commands/settingsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/setupGithubCommand.d.ts +11 -0
- package/dist/src/ui/commands/setupGithubCommand.js +196 -0
- package/dist/src/ui/commands/setupGithubCommand.js.map +1 -0
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/setupGithubCommand.test.js +239 -0
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -0
- package/dist/src/ui/commands/statsCommand.d.ts +8 -0
- package/dist/src/ui/commands/statsCommand.js +76 -0
- package/dist/src/ui/commands/statsCommand.js.map +1 -0
- package/dist/src/ui/commands/statsCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/statsCommand.test.js +71 -0
- package/dist/src/ui/commands/statsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +14 -0
- package/dist/src/ui/commands/terminalSetupCommand.js +44 -0
- package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -0
- package/dist/src/ui/commands/terminalSetupCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/terminalSetupCommand.test.js +67 -0
- package/dist/src/ui/commands/terminalSetupCommand.test.js.map +1 -0
- package/dist/src/ui/commands/themeCommand.d.ts +8 -0
- package/dist/src/ui/commands/themeCommand.js +18 -0
- package/dist/src/ui/commands/themeCommand.js.map +1 -0
- package/dist/src/ui/commands/themeCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/themeCommand.test.js +33 -0
- package/dist/src/ui/commands/themeCommand.test.js.map +1 -0
- package/dist/src/ui/commands/toolsCommand.d.ts +8 -0
- package/dist/src/ui/commands/toolsCommand.js +44 -0
- package/dist/src/ui/commands/toolsCommand.js.map +1 -0
- package/dist/src/ui/commands/toolsCommand.test.d.ts +7 -0
- package/dist/src/ui/commands/toolsCommand.test.js +101 -0
- package/dist/src/ui/commands/toolsCommand.test.js.map +1 -0
- package/dist/src/ui/commands/types.d.ts +141 -0
- package/dist/src/ui/commands/types.js +13 -0
- package/dist/src/ui/commands/types.js.map +1 -0
- package/dist/src/ui/commands/viewModeCommand.d.ts +8 -0
- package/dist/src/ui/commands/viewModeCommand.js +34 -0
- package/dist/src/ui/commands/viewModeCommand.js.map +1 -0
- package/dist/src/ui/commands/vimCommand.d.ts +8 -0
- package/dist/src/ui/commands/vimCommand.js +25 -0
- package/dist/src/ui/commands/vimCommand.js.map +1 -0
- package/dist/src/ui/components/AboutBox.d.ts +22 -0
- package/dist/src/ui/components/AboutBox.js +6 -0
- package/dist/src/ui/components/AboutBox.js.map +1 -0
- package/dist/src/ui/components/AboutBox.test.d.ts +7 -0
- package/dist/src/ui/components/AboutBox.test.js +58 -0
- package/dist/src/ui/components/AboutBox.test.js.map +1 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.d.ts +7 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js +25 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js.map +1 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +162 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js.map +1 -0
- package/dist/src/ui/components/AnsiOutput.d.ts +15 -0
- package/dist/src/ui/components/AnsiOutput.js +12 -0
- package/dist/src/ui/components/AnsiOutput.js.map +1 -0
- package/dist/src/ui/components/AnsiOutput.test.d.ts +7 -0
- package/dist/src/ui/components/AnsiOutput.test.js +93 -0
- package/dist/src/ui/components/AnsiOutput.test.js.map +1 -0
- package/dist/src/ui/components/AppHeader.d.ts +11 -0
- package/dist/src/ui/components/AppHeader.js +27 -0
- package/dist/src/ui/components/AppHeader.js.map +1 -0
- package/dist/src/ui/components/AppHeader.test.d.ts +7 -0
- package/dist/src/ui/components/AppHeader.test.js +145 -0
- package/dist/src/ui/components/AppHeader.test.js.map +1 -0
- package/dist/src/ui/components/AsciiArt.d.ts +16 -0
- package/dist/src/ui/components/AsciiArt.js +23 -0
- package/dist/src/ui/components/AsciiArt.js.map +1 -0
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +13 -0
- package/dist/src/ui/components/AutoAcceptIndicator.js +26 -0
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -0
- package/dist/src/ui/components/AutoAcceptIndicator.test.d.ts +7 -0
- package/dist/src/ui/components/AutoAcceptIndicator.test.js +32 -0
- package/dist/src/ui/components/AutoAcceptIndicator.test.js.map +1 -0
- package/dist/src/ui/components/Banner.d.ts +15 -0
- package/dist/src/ui/components/Banner.js +29 -0
- package/dist/src/ui/components/Banner.js.map +1 -0
- package/dist/src/ui/components/Banner.test.d.ts +7 -0
- package/dist/src/ui/components/Banner.test.js +25 -0
- package/dist/src/ui/components/Banner.test.js.map +1 -0
- package/dist/src/ui/components/CliSpinner.d.ts +10 -0
- package/dist/src/ui/components/CliSpinner.js +20 -0
- package/dist/src/ui/components/CliSpinner.js.map +1 -0
- package/dist/src/ui/components/CliSpinner.test.d.ts +7 -0
- package/dist/src/ui/components/CliSpinner.test.js +24 -0
- package/dist/src/ui/components/CliSpinner.test.js.map +1 -0
- package/dist/src/ui/components/Composer.d.ts +7 -0
- package/dist/src/ui/components/Composer.js +63 -0
- package/dist/src/ui/components/Composer.js.map +1 -0
- package/dist/src/ui/components/Composer.test.d.ts +7 -0
- package/dist/src/ui/components/Composer.test.js +356 -0
- package/dist/src/ui/components/Composer.test.js.map +1 -0
- package/dist/src/ui/components/ConfigInitDisplay.d.ts +7 -0
- package/dist/src/ui/components/ConfigInitDisplay.js +50 -0
- package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -0
- package/dist/src/ui/components/ConfigInitDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/ConfigInitDisplay.test.js +134 -0
- package/dist/src/ui/components/ConfigInitDisplay.test.js.map +1 -0
- package/dist/src/ui/components/ConsentPrompt.d.ts +14 -0
- package/dist/src/ui/components/ConsentPrompt.js +20 -0
- package/dist/src/ui/components/ConsentPrompt.js.map +1 -0
- package/dist/src/ui/components/ConsentPrompt.test.d.ts +7 -0
- package/dist/src/ui/components/ConsentPrompt.test.js +78 -0
- package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +12 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js +27 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.test.js.map +1 -0
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +20 -0
- package/dist/src/ui/components/ContextSummaryDisplay.js +56 -0
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/ContextSummaryDisplay.test.d.ts +7 -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/ContextUsageDisplay.d.ts +11 -0
- package/dist/src/ui/components/ContextUsageDisplay.js +17 -0
- package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -0
- package/dist/src/ui/components/ContextUsageDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/ContextUsageDisplay.test.js +40 -0
- package/dist/src/ui/components/ContextUsageDisplay.test.js.map +1 -0
- package/dist/src/ui/components/CopyModeWarning.d.ts +8 -0
- package/dist/src/ui/components/CopyModeWarning.js +12 -0
- package/dist/src/ui/components/CopyModeWarning.js.map +1 -0
- package/dist/src/ui/components/CopyModeWarning.test.d.ts +7 -0
- package/dist/src/ui/components/CopyModeWarning.test.js +34 -0
- package/dist/src/ui/components/CopyModeWarning.test.js.map +1 -0
- package/dist/src/ui/components/DebugProfiler.d.ts +26 -0
- package/dist/src/ui/components/DebugProfiler.js +163 -0
- package/dist/src/ui/components/DebugProfiler.js.map +1 -0
- package/dist/src/ui/components/DebugProfiler.test.d.ts +7 -0
- package/dist/src/ui/components/DebugProfiler.test.js +202 -0
- package/dist/src/ui/components/DebugProfiler.test.js.map +1 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +16 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js +55 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js +40 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.test.js.map +1 -0
- package/dist/src/ui/components/DialogManager.d.ts +13 -0
- package/dist/src/ui/components/DialogManager.js +122 -0
- package/dist/src/ui/components/DialogManager.js.map +1 -0
- package/dist/src/ui/components/DialogManager.test.d.ts +7 -0
- package/dist/src/ui/components/DialogManager.test.js +168 -0
- package/dist/src/ui/components/DialogManager.test.js.map +1 -0
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +16 -0
- package/dist/src/ui/components/EditorSettingsDialog.js +80 -0
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
- package/dist/src/ui/components/EditorSettingsDialog.test.d.ts +7 -0
- package/dist/src/ui/components/EditorSettingsDialog.test.js +119 -0
- package/dist/src/ui/components/EditorSettingsDialog.test.js.map +1 -0
- package/dist/src/ui/components/ExitWarning.d.ts +8 -0
- package/dist/src/ui/components/ExitWarning.js +9 -0
- package/dist/src/ui/components/ExitWarning.js.map +1 -0
- package/dist/src/ui/components/ExitWarning.test.d.ts +7 -0
- package/dist/src/ui/components/ExitWarning.test.js +55 -0
- package/dist/src/ui/components/ExitWarning.test.js.map +1 -0
- package/dist/src/ui/components/FolderTrustDialog.d.ts +18 -0
- package/dist/src/ui/components/FolderTrustDialog.js +67 -0
- package/dist/src/ui/components/FolderTrustDialog.js.map +1 -0
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +7 -0
- package/dist/src/ui/components/FolderTrustDialog.test.js +91 -0
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -0
- package/dist/src/ui/components/Footer.d.ts +8 -0
- package/dist/src/ui/components/Footer.js +43 -0
- package/dist/src/ui/components/Footer.js.map +1 -0
- package/dist/src/ui/components/Footer.test.d.ts +7 -0
- package/dist/src/ui/components/Footer.test.js +315 -0
- package/dist/src/ui/components/Footer.test.js.map +1 -0
- package/dist/src/ui/components/FullScreenTerminalView.d.ts +26 -0
- package/dist/src/ui/components/FullScreenTerminalView.js +68 -0
- package/dist/src/ui/components/FullScreenTerminalView.js.map +1 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +23 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.js +23 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.test.d.ts +7 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js +62 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.test.js.map +1 -0
- package/dist/src/ui/components/GradientRegression.test.d.ts +7 -0
- package/dist/src/ui/components/GradientRegression.test.js +106 -0
- package/dist/src/ui/components/GradientRegression.test.js.map +1 -0
- package/dist/src/ui/components/Header.d.ts +14 -0
- package/dist/src/ui/components/Header.js +29 -0
- package/dist/src/ui/components/Header.js.map +1 -0
- package/dist/src/ui/components/Header.test.d.ts +7 -0
- package/dist/src/ui/components/Header.test.js +76 -0
- package/dist/src/ui/components/Header.test.js.map +1 -0
- package/dist/src/ui/components/Help.d.ts +13 -0
- package/dist/src/ui/components/Help.js +13 -0
- package/dist/src/ui/components/Help.js.map +1 -0
- package/dist/src/ui/components/Help.test.d.ts +7 -0
- package/dist/src/ui/components/Help.test.js +68 -0
- package/dist/src/ui/components/Help.test.js.map +1 -0
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +22 -0
- package/dist/src/ui/components/HistoryItemDisplay.js +31 -0
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/HistoryItemDisplay.test.js +186 -0
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +12 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.js +34 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.js.map +1 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +7 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js +58 -0
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +1 -0
- package/dist/src/ui/components/InputPrompt.d.ts +51 -0
- package/dist/src/ui/components/InputPrompt.js +836 -0
- package/dist/src/ui/components/InputPrompt.js.map +1 -0
- package/dist/src/ui/components/InputPrompt.test.d.ts +7 -0
- package/dist/src/ui/components/InputPrompt.test.js +2174 -0
- package/dist/src/ui/components/InputPrompt.test.js.map +1 -0
- package/dist/src/ui/components/LoadingIndicator.d.ts +16 -0
- package/dist/src/ui/components/LoadingIndicator.js +30 -0
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +7 -0
- package/dist/src/ui/components/LoadingIndicator.test.js +208 -0
- package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -0
- package/dist/src/ui/components/LogoutConfirmationDialog.d.ts +16 -0
- package/dist/src/ui/components/LogoutConfirmationDialog.js +38 -0
- package/dist/src/ui/components/LogoutConfirmationDialog.js.map +1 -0
- package/dist/src/ui/components/LogoutConfirmationDialog.test.d.ts +7 -0
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js +60 -0
- package/dist/src/ui/components/LogoutConfirmationDialog.test.js.map +1 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +14 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.js +38 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +7 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +26 -0
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -0
- package/dist/src/ui/components/MainContent.d.ts +7 -0
- package/dist/src/ui/components/MainContent.js +57 -0
- package/dist/src/ui/components/MainContent.js.map +1 -0
- package/dist/src/ui/components/MainContent.test.d.ts +7 -0
- package/dist/src/ui/components/MainContent.test.js +74 -0
- package/dist/src/ui/components/MainContent.test.js.map +1 -0
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +8 -0
- package/dist/src/ui/components/MemoryUsageDisplay.js +24 -0
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
- package/dist/src/ui/components/MemoryUsageDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/MemoryUsageDisplay.test.js +50 -0
- package/dist/src/ui/components/MemoryUsageDisplay.test.js.map +1 -0
- package/dist/src/ui/components/ModelDialog.d.ts +12 -0
- package/dist/src/ui/components/ModelDialog.js +186 -0
- package/dist/src/ui/components/ModelDialog.js.map +1 -0
- package/dist/src/ui/components/ModelDialog.test.d.ts +7 -0
- package/dist/src/ui/components/ModelDialog.test.js +200 -0
- package/dist/src/ui/components/ModelDialog.test.js.map +1 -0
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +8 -0
- package/dist/src/ui/components/ModelStatsDisplay.js +87 -0
- package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
- package/dist/src/ui/components/ModelStatsDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/ModelStatsDisplay.test.js +344 -0
- package/dist/src/ui/components/ModelStatsDisplay.test.js.map +1 -0
- package/dist/src/ui/components/MultiFolderTrustDialog.d.ts +24 -0
- package/dist/src/ui/components/MultiFolderTrustDialog.js +92 -0
- package/dist/src/ui/components/MultiFolderTrustDialog.js.map +1 -0
- package/dist/src/ui/components/MultiFolderTrustDialog.test.d.ts +7 -0
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js +162 -0
- package/dist/src/ui/components/MultiFolderTrustDialog.test.js.map +1 -0
- package/dist/src/ui/components/Notifications.d.ts +7 -0
- package/dist/src/ui/components/Notifications.js +75 -0
- package/dist/src/ui/components/Notifications.js.map +1 -0
- package/dist/src/ui/components/Notifications.test.d.ts +7 -0
- package/dist/src/ui/components/Notifications.test.js +160 -0
- package/dist/src/ui/components/Notifications.test.js.map +1 -0
- package/dist/src/ui/components/PasswordInputModal.d.ts +23 -0
- package/dist/src/ui/components/PasswordInputModal.js +46 -0
- package/dist/src/ui/components/PasswordInputModal.js.map +1 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +17 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js +59 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +7 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +163 -0
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -0
- package/dist/src/ui/components/PrepareLabel.d.ts +16 -0
- package/dist/src/ui/components/PrepareLabel.js +73 -0
- package/dist/src/ui/components/PrepareLabel.js.map +1 -0
- package/dist/src/ui/components/PrepareLabel.test.d.ts +7 -0
- package/dist/src/ui/components/PrepareLabel.test.js +78 -0
- package/dist/src/ui/components/PrepareLabel.test.js.map +1 -0
- package/dist/src/ui/components/ProQuotaDialog.d.ts +19 -0
- package/dist/src/ui/components/ProQuotaDialog.js +90 -0
- package/dist/src/ui/components/ProQuotaDialog.js.map +1 -0
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +7 -0
- package/dist/src/ui/components/ProQuotaDialog.test.js +172 -0
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -0
- package/dist/src/ui/components/QueuedMessageDisplay.d.ts +10 -0
- package/dist/src/ui/components/QueuedMessageDisplay.js +21 -0
- package/dist/src/ui/components/QueuedMessageDisplay.js.map +1 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +66 -0
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -0
- package/dist/src/ui/components/QuittingDisplay.d.ts +7 -0
- package/dist/src/ui/components/QuittingDisplay.js +21 -0
- package/dist/src/ui/components/QuittingDisplay.js.map +1 -0
- package/dist/src/ui/components/QuittingDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/QuittingDisplay.test.js +50 -0
- package/dist/src/ui/components/QuittingDisplay.test.js.map +1 -0
- package/dist/src/ui/components/RawMarkdownIndicator.d.ts +8 -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/RawMarkdownIndicator.test.d.ts +7 -0
- package/dist/src/ui/components/RawMarkdownIndicator.test.js +35 -0
- package/dist/src/ui/components/RawMarkdownIndicator.test.js.map +1 -0
- package/dist/src/ui/components/RemoteIndicator.d.ts +13 -0
- package/dist/src/ui/components/RemoteIndicator.js +11 -0
- package/dist/src/ui/components/RemoteIndicator.js.map +1 -0
- package/dist/src/ui/components/ReplOutputPane.d.ts +19 -0
- package/dist/src/ui/components/ReplOutputPane.js +58 -0
- package/dist/src/ui/components/ReplOutputPane.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser.d.ts +99 -0
- package/dist/src/ui/components/SessionBrowser.js +459 -0
- package/dist/src/ui/components/SessionBrowser.js.map +1 -0
- package/dist/src/ui/components/SessionBrowser.test.d.ts +7 -0
- package/dist/src/ui/components/SessionBrowser.test.js +251 -0
- package/dist/src/ui/components/SessionBrowser.test.js.map +1 -0
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +12 -0
- package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/SessionSummaryDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/SessionSummaryDisplay.test.js +76 -0
- package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +1 -0
- package/dist/src/ui/components/SettingsDialog.d.ts +19 -0
- package/dist/src/ui/components/SettingsDialog.js +705 -0
- package/dist/src/ui/components/SettingsDialog.js.map +1 -0
- package/dist/src/ui/components/SettingsDialog.test.d.ts +7 -0
- package/dist/src/ui/components/SettingsDialog.test.js +1134 -0
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -0
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +16 -0
- package/dist/src/ui/components/ShellConfirmationDialog.js +50 -0
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -0
- package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +7 -0
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +41 -0
- package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +1 -0
- package/dist/src/ui/components/ShellInputPrompt.d.ts +12 -0
- package/dist/src/ui/components/ShellInputPrompt.js +37 -0
- package/dist/src/ui/components/ShellInputPrompt.js.map +1 -0
- package/dist/src/ui/components/ShellInputPrompt.test.d.ts +7 -0
- package/dist/src/ui/components/ShellInputPrompt.test.js +83 -0
- package/dist/src/ui/components/ShellInputPrompt.test.js.map +1 -0
- package/dist/src/ui/components/ShellModeIndicator.d.ts +8 -0
- package/dist/src/ui/components/ShellModeIndicator.js +5 -0
- package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
- package/dist/src/ui/components/ShellModeIndicator.test.d.ts +7 -0
- package/dist/src/ui/components/ShellModeIndicator.test.js +18 -0
- package/dist/src/ui/components/ShellModeIndicator.test.js.map +1 -0
- package/dist/src/ui/components/ShowMoreLines.d.ts +11 -0
- package/dist/src/ui/components/ShowMoreLines.js +25 -0
- package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
- package/dist/src/ui/components/ShowMoreLines.test.d.ts +7 -0
- package/dist/src/ui/components/ShowMoreLines.test.js +41 -0
- package/dist/src/ui/components/ShowMoreLines.test.js.map +1 -0
- package/dist/src/ui/components/SpotlightDialog.d.ts +7 -0
- package/dist/src/ui/components/SpotlightDialog.js +81 -0
- package/dist/src/ui/components/SpotlightDialog.js.map +1 -0
- package/dist/src/ui/components/StatsDisplay.d.ts +15 -0
- package/dist/src/ui/components/StatsDisplay.js +119 -0
- package/dist/src/ui/components/StatsDisplay.js.map +1 -0
- package/dist/src/ui/components/StatsDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/StatsDisplay.test.js +439 -0
- package/dist/src/ui/components/StatsDisplay.test.js.map +1 -0
- package/dist/src/ui/components/StickyHeader.d.ts +15 -0
- package/dist/src/ui/components/StickyHeader.js +5 -0
- package/dist/src/ui/components/StickyHeader.js.map +1 -0
- package/dist/src/ui/components/StickyHeader.test.d.ts +7 -0
- package/dist/src/ui/components/StickyHeader.test.js +18 -0
- package/dist/src/ui/components/StickyHeader.test.js.map +1 -0
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +28 -0
- package/dist/src/ui/components/SuggestionsDisplay.js +41 -0
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
- package/dist/src/ui/components/SuggestionsDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/SuggestionsDisplay.test.js +57 -0
- package/dist/src/ui/components/SuggestionsDisplay.test.js.map +1 -0
- package/dist/src/ui/components/Table.d.ts +22 -0
- package/dist/src/ui/components/Table.js +7 -0
- package/dist/src/ui/components/Table.js.map +1 -0
- package/dist/src/ui/components/Table.test.d.ts +7 -0
- package/dist/src/ui/components/Table.test.js +54 -0
- package/dist/src/ui/components/Table.test.js.map +1 -0
- package/dist/src/ui/components/ThemeDialog.d.ts +22 -0
- package/dist/src/ui/components/ThemeDialog.js +181 -0
- package/dist/src/ui/components/ThemeDialog.js.map +1 -0
- package/dist/src/ui/components/ThemeDialog.test.d.ts +7 -0
- package/dist/src/ui/components/ThemeDialog.test.js +168 -0
- package/dist/src/ui/components/ThemeDialog.test.js.map +1 -0
- package/dist/src/ui/components/ThemedGradient.d.ts +9 -0
- package/dist/src/ui/components/ThemedGradient.js +16 -0
- package/dist/src/ui/components/ThemedGradient.js.map +1 -0
- package/dist/src/ui/components/ThemedGradient.test.d.ts +7 -0
- package/dist/src/ui/components/ThemedGradient.test.js +31 -0
- package/dist/src/ui/components/ThemedGradient.test.js.map +1 -0
- package/dist/src/ui/components/Tips.d.ts +13 -0
- package/dist/src/ui/components/Tips.js +9 -0
- package/dist/src/ui/components/Tips.js.map +1 -0
- package/dist/src/ui/components/Tips.test.d.ts +7 -0
- package/dist/src/ui/components/Tips.test.js +24 -0
- package/dist/src/ui/components/Tips.test.js.map +1 -0
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +8 -0
- package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
- package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
- package/dist/src/ui/components/ToolStatsDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/ToolStatsDisplay.test.js +228 -0
- package/dist/src/ui/components/ToolStatsDisplay.test.js.map +1 -0
- package/dist/src/ui/components/UpdateNotification.d.ts +11 -0
- package/dist/src/ui/components/UpdateNotification.js +11 -0
- package/dist/src/ui/components/UpdateNotification.js.map +1 -0
- package/dist/src/ui/components/UpdateNotification.test.d.ts +7 -0
- package/dist/src/ui/components/UpdateNotification.test.js +17 -0
- package/dist/src/ui/components/UpdateNotification.test.js.map +1 -0
- package/dist/src/ui/components/VoiceOrb.d.ts +8 -0
- package/dist/src/ui/components/VoiceOrb.js +30 -0
- package/dist/src/ui/components/VoiceOrb.js.map +1 -0
- package/dist/src/ui/components/VoiceOrb.test.d.ts +7 -0
- package/dist/src/ui/components/VoiceOrb.test.js +34 -0
- package/dist/src/ui/components/VoiceOrb.test.js.map +1 -0
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/CompressionMessage.js +47 -0
- package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.js +169 -0
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +18 -0
- package/dist/src/ui/components/messages/DiffRenderer.js +258 -0
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +7 -0
- package/dist/src/ui/components/messages/DiffRenderer.test.js +232 -0
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -0
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +12 -0
- package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
- package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ErrorMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/ErrorMessage.test.js +24 -0
- package/dist/src/ui/components/messages/ErrorMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +15 -0
- package/dist/src/ui/components/messages/GeminiMessage.js +15 -0
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
- package/dist/src/ui/components/messages/GeminiMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/GeminiMessage.test.js +36 -0
- package/dist/src/ui/components/messages/GeminiMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +15 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.js +19 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
- package/dist/src/ui/components/messages/InfoMessage.d.ts +14 -0
- package/dist/src/ui/components/messages/InfoMessage.js +11 -0
- package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
- package/dist/src/ui/components/messages/InfoMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/InfoMessage.test.js +29 -0
- package/dist/src/ui/components/messages/InfoMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/ModelMessage.d.ts +12 -0
- package/dist/src/ui/components/messages/ModelMessage.js +5 -0
- package/dist/src/ui/components/messages/ModelMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ShellToolMessage.d.ts +15 -0
- package/dist/src/ui/components/messages/ShellToolMessage.js +77 -0
- package/dist/src/ui/components/messages/ShellToolMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ShellToolMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/ShellToolMessage.test.js +124 -0
- package/dist/src/ui/components/messages/ShellToolMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/Todo.d.ts +8 -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 +7 -0
- package/dist/src/ui/components/messages/Todo.test.js +115 -0
- package/dist/src/ui/components/messages/Todo.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +16 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +294 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +150 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +20 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.js +80 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +345 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolMessage.d.ts +25 -0
- package/dist/src/ui/components/messages/ToolMessage.js +36 -0
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/ToolMessage.test.js +154 -0
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.d.ts +7 -0
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +62 -0
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolResultDisplay.d.ts +14 -0
- package/dist/src/ui/components/messages/ToolResultDisplay.js +55 -0
- package/dist/src/ui/components/messages/ToolResultDisplay.js.map +1 -0
- package/dist/src/ui/components/messages/ToolResultDisplay.test.d.ts +7 -0
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js +97 -0
- package/dist/src/ui/components/messages/ToolResultDisplay.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolShared.d.ts +24 -0
- package/dist/src/ui/components/messages/ToolShared.js +41 -0
- package/dist/src/ui/components/messages/ToolShared.js.map +1 -0
- package/dist/src/ui/components/messages/UserMessage.d.ts +13 -0
- package/dist/src/ui/components/messages/UserMessage.js +13 -0
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
- package/dist/src/ui/components/messages/UserMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/UserMessage.test.js +33 -0
- package/dist/src/ui/components/messages/UserMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +12 -0
- package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
- package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
- package/dist/src/ui/components/messages/WarningMessage.d.ts +12 -0
- package/dist/src/ui/components/messages/WarningMessage.js +10 -0
- package/dist/src/ui/components/messages/WarningMessage.js.map +1 -0
- package/dist/src/ui/components/messages/WarningMessage.test.d.ts +7 -0
- package/dist/src/ui/components/messages/WarningMessage.test.js +24 -0
- package/dist/src/ui/components/messages/WarningMessage.test.js.map +1 -0
- package/dist/src/ui/components/shared/BaseSelectionList.d.ts +39 -0
- package/dist/src/ui/components/shared/BaseSelectionList.js +82 -0
- package/dist/src/ui/components/shared/BaseSelectionList.js.map +1 -0
- package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +7 -0
- package/dist/src/ui/components/shared/BaseSelectionList.test.js +386 -0
- package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +36 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +1 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +7 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +80 -0
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +1 -0
- package/dist/src/ui/components/shared/EnumSelector.d.ts +19 -0
- package/dist/src/ui/components/shared/EnumSelector.js +45 -0
- package/dist/src/ui/components/shared/EnumSelector.js.map +1 -0
- package/dist/src/ui/components/shared/EnumSelector.test.d.ts +7 -0
- package/dist/src/ui/components/shared/EnumSelector.test.js +71 -0
- package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -0
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +62 -0
- package/dist/src/ui/components/shared/MaxSizedBox.js +452 -0
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +7 -0
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +176 -0
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +49 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.js +22 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +7 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +135 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -0
- package/dist/src/ui/components/shared/ScopeSelector.d.ts +20 -0
- package/dist/src/ui/components/shared/ScopeSelector.js +14 -0
- package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -0
- package/dist/src/ui/components/shared/Scrollable.d.ts +19 -0
- package/dist/src/ui/components/shared/Scrollable.js +85 -0
- package/dist/src/ui/components/shared/Scrollable.js.map +1 -0
- package/dist/src/ui/components/shared/Scrollable.test.d.ts +7 -0
- package/dist/src/ui/components/shared/Scrollable.test.js +75 -0
- package/dist/src/ui/components/shared/Scrollable.test.js.map +1 -0
- package/dist/src/ui/components/shared/ScrollableList.d.ts +27 -0
- package/dist/src/ui/components/shared/ScrollableList.js +153 -0
- package/dist/src/ui/components/shared/ScrollableList.js.map +1 -0
- package/dist/src/ui/components/shared/ScrollableList.test.d.ts +7 -0
- package/dist/src/ui/components/shared/ScrollableList.test.js +229 -0
- package/dist/src/ui/components/shared/ScrollableList.test.js.map +1 -0
- package/dist/src/ui/components/shared/TextInput.d.ts +16 -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 +7 -0
- package/dist/src/ui/components/shared/TextInput.test.js +243 -0
- package/dist/src/ui/components/shared/TextInput.test.js.map +1 -0
- package/dist/src/ui/components/shared/VirtualizedList.d.ts +45 -0
- package/dist/src/ui/components/shared/VirtualizedList.js +313 -0
- package/dist/src/ui/components/shared/VirtualizedList.js.map +1 -0
- package/dist/src/ui/components/shared/VirtualizedList.test.d.ts +7 -0
- package/dist/src/ui/components/shared/VirtualizedList.test.js +172 -0
- package/dist/src/ui/components/shared/VirtualizedList.test.js.map +1 -0
- package/dist/src/ui/components/shared/text-buffer.d.ts +493 -0
- package/dist/src/ui/components/shared/text-buffer.js +1664 -0
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
- package/dist/src/ui/components/shared/text-buffer.test.d.ts +7 -0
- package/dist/src/ui/components/shared/text-buffer.test.js +1917 -0
- package/dist/src/ui/components/shared/text-buffer.test.js.map +1 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +73 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.js +553 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.test.d.ts +7 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js +952 -0
- package/dist/src/ui/components/shared/vim-buffer-actions.test.js.map +1 -0
- package/dist/src/ui/components/views/ChatList.d.ts +13 -0
- package/dist/src/ui/components/views/ChatList.js +17 -0
- package/dist/src/ui/components/views/ChatList.js.map +1 -0
- package/dist/src/ui/components/views/ChatList.test.d.ts +7 -0
- package/dist/src/ui/components/views/ChatList.test.js +46 -0
- package/dist/src/ui/components/views/ChatList.test.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionsList.d.ts +13 -0
- package/dist/src/ui/components/views/ExtensionsList.js +44 -0
- package/dist/src/ui/components/views/ExtensionsList.js.map +1 -0
- package/dist/src/ui/components/views/ExtensionsList.test.d.ts +7 -0
- package/dist/src/ui/components/views/ExtensionsList.test.js +112 -0
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -0
- package/dist/src/ui/components/views/HooksList.d.ts +25 -0
- package/dist/src/ui/components/views/HooksList.js +25 -0
- package/dist/src/ui/components/views/HooksList.js.map +1 -0
- package/dist/src/ui/components/views/McpStatus.d.ts +28 -0
- package/dist/src/ui/components/views/McpStatus.js +87 -0
- package/dist/src/ui/components/views/McpStatus.js.map +1 -0
- package/dist/src/ui/components/views/McpStatus.test.d.ts +7 -0
- package/dist/src/ui/components/views/McpStatus.test.js +137 -0
- package/dist/src/ui/components/views/McpStatus.test.js.map +1 -0
- package/dist/src/ui/components/views/ToolsList.d.ts +15 -0
- package/dist/src/ui/components/views/ToolsList.js +7 -0
- package/dist/src/ui/components/views/ToolsList.js.map +1 -0
- package/dist/src/ui/components/views/ToolsList.test.d.ts +7 -0
- package/dist/src/ui/components/views/ToolsList.test.js +46 -0
- package/dist/src/ui/components/views/ToolsList.test.js.map +1 -0
- package/dist/src/ui/constants/tips.d.ts +7 -0
- package/dist/src/ui/constants/tips.js +166 -0
- package/dist/src/ui/constants/tips.js.map +1 -0
- package/dist/src/ui/constants/wittyPhrases.d.ts +7 -0
- package/dist/src/ui/constants/wittyPhrases.js +138 -0
- package/dist/src/ui/constants/wittyPhrases.js.map +1 -0
- package/dist/src/ui/constants.d.ts +18 -0
- package/dist/src/ui/constants.js +24 -0
- package/dist/src/ui/constants.js.map +1 -0
- package/dist/src/ui/contexts/AppContext.d.ts +12 -0
- package/dist/src/ui/contexts/AppContext.js +16 -0
- package/dist/src/ui/contexts/AppContext.js.map +1 -0
- package/dist/src/ui/contexts/ConfigContext.d.ts +10 -0
- package/dist/src/ui/contexts/ConfigContext.js +17 -0
- package/dist/src/ui/contexts/ConfigContext.js.map +1 -0
- package/dist/src/ui/contexts/KeypressContext.d.ts +32 -0
- package/dist/src/ui/contexts/KeypressContext.js +530 -0
- package/dist/src/ui/contexts/KeypressContext.js.map +1 -0
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +7 -0
- package/dist/src/ui/contexts/KeypressContext.test.js +712 -0
- package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -0
- package/dist/src/ui/contexts/MouseContext.d.ts +22 -0
- package/dist/src/ui/contexts/MouseContext.js +105 -0
- package/dist/src/ui/contexts/MouseContext.js.map +1 -0
- package/dist/src/ui/contexts/MouseContext.test.d.ts +7 -0
- package/dist/src/ui/contexts/MouseContext.test.js +199 -0
- package/dist/src/ui/contexts/MouseContext.test.js.map +1 -0
- package/dist/src/ui/contexts/OverflowContext.d.ts +20 -0
- package/dist/src/ui/contexts/OverflowContext.js +38 -0
- package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
- package/dist/src/ui/contexts/ScrollProvider.d.ts +26 -0
- package/dist/src/ui/contexts/ScrollProvider.drag.test.d.ts +7 -0
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js +320 -0
- package/dist/src/ui/contexts/ScrollProvider.drag.test.js.map +1 -0
- package/dist/src/ui/contexts/ScrollProvider.js +242 -0
- package/dist/src/ui/contexts/ScrollProvider.js.map +1 -0
- package/dist/src/ui/contexts/ScrollProvider.test.d.ts +7 -0
- package/dist/src/ui/contexts/ScrollProvider.test.js +378 -0
- package/dist/src/ui/contexts/ScrollProvider.test.js.map +1 -0
- package/dist/src/ui/contexts/SessionContext.d.ts +47 -0
- package/dist/src/ui/contexts/SessionContext.js +158 -0
- package/dist/src/ui/contexts/SessionContext.js.map +1 -0
- package/dist/src/ui/contexts/SessionContext.test.d.ts +7 -0
- package/dist/src/ui/contexts/SessionContext.test.js +199 -0
- package/dist/src/ui/contexts/SessionContext.test.js.map +1 -0
- package/dist/src/ui/contexts/SettingsContext.d.ts +10 -0
- package/dist/src/ui/contexts/SettingsContext.js +16 -0
- package/dist/src/ui/contexts/SettingsContext.js.map +1 -0
- package/dist/src/ui/contexts/ShellFocusContext.d.ts +8 -0
- package/dist/src/ui/contexts/ShellFocusContext.js +10 -0
- package/dist/src/ui/contexts/ShellFocusContext.js.map +1 -0
- package/dist/src/ui/contexts/StreamingContext.d.ts +10 -0
- package/dist/src/ui/contexts/StreamingContext.js +16 -0
- package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
- package/dist/src/ui/contexts/ThemeContext.d.ts +22 -0
- package/dist/src/ui/contexts/ThemeContext.js +13 -0
- package/dist/src/ui/contexts/ThemeContext.js.map +1 -0
- package/dist/src/ui/contexts/UIActionsContext.d.ts +56 -0
- package/dist/src/ui/contexts/UIActionsContext.js +22 -0
- package/dist/src/ui/contexts/UIActionsContext.js.map +1 -0
- package/dist/src/ui/contexts/UIStateContext.d.ts +129 -0
- package/dist/src/ui/contexts/UIStateContext.js +18 -0
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -0
- package/dist/src/ui/contexts/VimModeContext.d.ts +20 -0
- package/dist/src/ui/contexts/VimModeContext.js +49 -0
- package/dist/src/ui/contexts/VimModeContext.js.map +1 -0
- package/dist/src/ui/contexts/VoiceContext.d.ts +14 -0
- package/dist/src/ui/contexts/VoiceContext.js +18 -0
- package/dist/src/ui/contexts/VoiceContext.js.map +1 -0
- package/dist/src/ui/debug.d.ts +9 -0
- package/dist/src/ui/debug.js +12 -0
- package/dist/src/ui/debug.js.map +1 -0
- package/dist/src/ui/editors/editorSettingsManager.d.ts +19 -0
- package/dist/src/ui/editors/editorSettingsManager.js +38 -0
- package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +33 -0
- package/dist/src/ui/hooks/atCommandProcessor.js +500 -0
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +7 -0
- package/dist/src/ui/hooks/atCommandProcessor.test.js +1027 -0
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -0
- package/dist/src/ui/hooks/keyToAnsi.d.ts +16 -0
- package/dist/src/ui/hooks/keyToAnsi.js +68 -0
- package/dist/src/ui/hooks/keyToAnsi.js.map +1 -0
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +23 -0
- package/dist/src/ui/hooks/shellCommandProcessor.js +312 -0
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +7 -0
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +522 -0
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -0
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +51 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js +471 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/slashCommandProcessor.test.d.ts +7 -0
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +846 -0
- package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +1 -0
- package/dist/src/ui/hooks/useAlternateBuffer.d.ts +9 -0
- package/dist/src/ui/hooks/useAlternateBuffer.js +13 -0
- package/dist/src/ui/hooks/useAlternateBuffer.js.map +1 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.d.ts +11 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.js +92 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.js.map +1 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.d.ts +7 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js +86 -0
- package/dist/src/ui/hooks/useAnimatedScrollbar.test.js.map +1 -0
- package/dist/src/ui/hooks/useAtCompletion.d.ts +24 -0
- package/dist/src/ui/hooks/useAtCompletion.js +230 -0
- package/dist/src/ui/hooks/useAtCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useAtCompletion.test.d.ts +7 -0
- package/dist/src/ui/hooks/useAtCompletion.test.js +418 -0
- package/dist/src/ui/hooks/useAtCompletion.test.js.map +1 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +14 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +61 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +7 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +411 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -0
- package/dist/src/ui/hooks/useBanner.d.ts +15 -0
- package/dist/src/ui/hooks/useBanner.js +49 -0
- package/dist/src/ui/hooks/useBanner.js.map +1 -0
- package/dist/src/ui/hooks/useBanner.test.d.ts +7 -0
- package/dist/src/ui/hooks/useBanner.test.js +93 -0
- package/dist/src/ui/hooks/useBanner.test.js.map +1 -0
- package/dist/src/ui/hooks/useBatchedScroll.d.ts +15 -0
- package/dist/src/ui/hooks/useBatchedScroll.js +28 -0
- package/dist/src/ui/hooks/useBatchedScroll.js.map +1 -0
- package/dist/src/ui/hooks/useBatchedScroll.test.d.ts +7 -0
- package/dist/src/ui/hooks/useBatchedScroll.test.js +63 -0
- package/dist/src/ui/hooks/useBatchedScroll.test.js.map +1 -0
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +13 -0
- package/dist/src/ui/hooks/useBracketedPaste.js +32 -0
- package/dist/src/ui/hooks/useBracketedPaste.js.map +1 -0
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +42 -0
- package/dist/src/ui/hooks/useCommandCompletion.js +233 -0
- package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useCommandCompletion.test.d.ts +7 -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/useCompletion.d.ts +25 -0
- package/dist/src/ui/hooks/useCompletion.js +89 -0
- package/dist/src/ui/hooks/useCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +12 -0
- package/dist/src/ui/hooks/useConsoleMessages.js +102 -0
- package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
- package/dist/src/ui/hooks/useConsoleMessages.test.d.ts +7 -0
- package/dist/src/ui/hooks/useConsoleMessages.test.js +160 -0
- package/dist/src/ui/hooks/useConsoleMessages.test.js.map +1 -0
- package/dist/src/ui/hooks/useEditorSettings.d.ts +17 -0
- package/dist/src/ui/hooks/useEditorSettings.js +45 -0
- package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +7 -0
- package/dist/src/ui/hooks/useEditorSettings.test.js +180 -0
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -0
- package/dist/src/ui/hooks/useExtensionUpdates.d.ts +32 -0
- package/dist/src/ui/hooks/useExtensionUpdates.js +176 -0
- package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -0
- package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +7 -0
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +264 -0
- package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -0
- package/dist/src/ui/hooks/useFlickerDetector.d.ts +15 -0
- package/dist/src/ui/hooks/useFlickerDetector.js +38 -0
- package/dist/src/ui/hooks/useFlickerDetector.js.map +1 -0
- package/dist/src/ui/hooks/useFlickerDetector.test.d.ts +7 -0
- package/dist/src/ui/hooks/useFlickerDetector.test.js +107 -0
- package/dist/src/ui/hooks/useFlickerDetector.test.js.map +1 -0
- package/dist/src/ui/hooks/useFocus.d.ts +11 -0
- package/dist/src/ui/hooks/useFocus.js +52 -0
- package/dist/src/ui/hooks/useFocus.js.map +1 -0
- package/dist/src/ui/hooks/useFocus.test.d.ts +7 -0
- package/dist/src/ui/hooks/useFocus.test.js +132 -0
- package/dist/src/ui/hooks/useFocus.test.js.map +1 -0
- package/dist/src/ui/hooks/useFolderTrust.d.ts +15 -0
- package/dist/src/ui/hooks/useFolderTrust.js +82 -0
- package/dist/src/ui/hooks/useFolderTrust.js.map +1 -0
- package/dist/src/ui/hooks/useFolderTrust.test.d.ts +7 -0
- package/dist/src/ui/hooks/useFolderTrust.test.js +211 -0
- package/dist/src/ui/hooks/useFolderTrust.test.js.map +1 -0
- package/dist/src/ui/hooks/useGeminiStream.d.ts +40 -0
- package/dist/src/ui/hooks/useGeminiStream.js +860 -0
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
- package/dist/src/ui/hooks/useGeminiStream.test.d.ts +7 -0
- package/dist/src/ui/hooks/useGeminiStream.test.js +1829 -0
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +1 -0
- package/dist/src/ui/hooks/useGitBranchName.d.ts +7 -0
- package/dist/src/ui/hooks/useGitBranchName.js +66 -0
- package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +7 -0
- package/dist/src/ui/hooks/useGitBranchName.test.js +183 -0
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -0
- package/dist/src/ui/hooks/useHistoryManager.d.ts +26 -0
- package/dist/src/ui/hooks/useHistoryManager.js +109 -0
- package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +7 -0
- package/dist/src/ui/hooks/useHistoryManager.test.js +173 -0
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -0
- package/dist/src/ui/hooks/useIdeTrustListener.d.ts +17 -0
- package/dist/src/ui/hooks/useIdeTrustListener.js +68 -0
- package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -0
- package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +7 -0
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +215 -0
- package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -0
- package/dist/src/ui/hooks/useInactivityTimer.d.ts +15 -0
- package/dist/src/ui/hooks/useInactivityTimer.js +31 -0
- package/dist/src/ui/hooks/useInactivityTimer.js.map +1 -0
- package/dist/src/ui/hooks/useIncludeDirsTrust.d.ts +9 -0
- package/dist/src/ui/hooks/useIncludeDirsTrust.js +122 -0
- package/dist/src/ui/hooks/useIncludeDirsTrust.js.map +1 -0
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.d.ts +7 -0
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js +152 -0
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistory.d.ts +20 -0
- package/dist/src/ui/hooks/useInputHistory.js +85 -0
- package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +7 -0
- package/dist/src/ui/hooks/useInputHistory.test.js +209 -0
- package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistoryStore.d.ts +20 -0
- package/dist/src/ui/hooks/useInputHistoryStore.js +83 -0
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +7 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +239 -0
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -0
- package/dist/src/ui/hooks/useKeypress.d.ts +18 -0
- package/dist/src/ui/hooks/useKeypress.js +28 -0
- package/dist/src/ui/hooks/useKeypress.js.map +1 -0
- package/dist/src/ui/hooks/useKeypress.test.d.ts +7 -0
- package/dist/src/ui/hooks/useKeypress.test.js +201 -0
- package/dist/src/ui/hooks/useKeypress.test.js.map +1 -0
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +15 -0
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +20 -0
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +1 -0
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +11 -0
- package/dist/src/ui/hooks/useLoadingIndicator.js +45 -0
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +7 -0
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +128 -0
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -0
- package/dist/src/ui/hooks/useLogger.d.ts +12 -0
- package/dist/src/ui/hooks/useLogger.js +30 -0
- package/dist/src/ui/hooks/useLogger.js.map +1 -0
- package/dist/src/ui/hooks/useMemoryMonitor.d.ts +14 -0
- package/dist/src/ui/hooks/useMemoryMonitor.js +29 -0
- package/dist/src/ui/hooks/useMemoryMonitor.js.map +1 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +7 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +63 -0
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -0
- package/dist/src/ui/hooks/useMessageQueue.d.ts +25 -0
- package/dist/src/ui/hooks/useMessageQueue.js +62 -0
- package/dist/src/ui/hooks/useMessageQueue.js.map +1 -0
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +7 -0
- package/dist/src/ui/hooks/useMessageQueue.test.js +294 -0
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -0
- package/dist/src/ui/hooks/useModelCommand.d.ts +13 -0
- package/dist/src/ui/hooks/useModelCommand.js +22 -0
- package/dist/src/ui/hooks/useModelCommand.js.map +1 -0
- package/dist/src/ui/hooks/useModelCommand.test.d.ts +7 -0
- package/dist/src/ui/hooks/useModelCommand.test.js +46 -0
- package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -0
- package/dist/src/ui/hooks/useMouse.d.ts +18 -0
- package/dist/src/ui/hooks/useMouse.js +28 -0
- package/dist/src/ui/hooks/useMouse.js.map +1 -0
- package/dist/src/ui/hooks/useMouse.test.d.ts +7 -0
- package/dist/src/ui/hooks/useMouse.test.js +58 -0
- package/dist/src/ui/hooks/useMouse.test.js.map +1 -0
- package/dist/src/ui/hooks/useMouseClick.d.ts +13 -0
- package/dist/src/ui/hooks/useMouseClick.js +29 -0
- package/dist/src/ui/hooks/useMouseClick.js.map +1 -0
- package/dist/src/ui/hooks/useMouseClick.test.d.ts +7 -0
- package/dist/src/ui/hooks/useMouseClick.test.js +60 -0
- package/dist/src/ui/hooks/useMouseClick.test.js.map +1 -0
- package/dist/src/ui/hooks/useMouseHover.d.ts +11 -0
- package/dist/src/ui/hooks/useMouseHover.js +35 -0
- package/dist/src/ui/hooks/useMouseHover.js.map +1 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +18 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js +116 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +1 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +7 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +285 -0
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -0
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +17 -0
- package/dist/src/ui/hooks/usePhraseCycler.js +92 -0
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
- package/dist/src/ui/hooks/usePhraseCycler.test.d.ts +7 -0
- package/dist/src/ui/hooks/usePhraseCycler.test.js +238 -0
- package/dist/src/ui/hooks/usePhraseCycler.test.js.map +1 -0
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +17 -0
- package/dist/src/ui/hooks/usePrivacySettings.js +104 -0
- package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +7 -0
- package/dist/src/ui/hooks/usePrivacySettings.test.js +105 -0
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -0
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +24 -0
- package/dist/src/ui/hooks/usePromptCompletion.js +170 -0
- package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +20 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.js +112 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +7 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +333 -0
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -0
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +43 -0
- package/dist/src/ui/hooks/useReactToolScheduler.js +224 -0
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
- package/dist/src/ui/hooks/useReactToolScheduler.test.d.ts +7 -0
- package/dist/src/ui/hooks/useReactToolScheduler.test.js +59 -0
- package/dist/src/ui/hooks/useReactToolScheduler.test.js.map +1 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +7 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +8 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +20 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +104 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +7 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +170 -0
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -0
- package/dist/src/ui/hooks/useSelectionList.d.ts +35 -0
- package/dist/src/ui/hooks/useSelectionList.js +274 -0
- package/dist/src/ui/hooks/useSelectionList.js.map +1 -0
- package/dist/src/ui/hooks/useSelectionList.test.d.ts +7 -0
- package/dist/src/ui/hooks/useSelectionList.test.js +820 -0
- package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -0
- package/dist/src/ui/hooks/useSessionBrowser.d.ts +36 -0
- package/dist/src/ui/hooks/useSessionBrowser.js +225 -0
- package/dist/src/ui/hooks/useSessionBrowser.js.map +1 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.d.ts +7 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.js +210 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.js.map +1 -0
- package/dist/src/ui/hooks/useSessionResume.d.ts +31 -0
- package/dist/src/ui/hooks/useSessionResume.js +58 -0
- package/dist/src/ui/hooks/useSessionResume.js.map +1 -0
- package/dist/src/ui/hooks/useSessionResume.test.d.ts +7 -0
- package/dist/src/ui/hooks/useSessionResume.test.js +326 -0
- package/dist/src/ui/hooks/useSessionResume.test.js.map +1 -0
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +11 -0
- package/dist/src/ui/hooks/useSettingsCommand.js +22 -0
- package/dist/src/ui/hooks/useSettingsCommand.js.map +1 -0
- package/dist/src/ui/hooks/useShellHistory.d.ts +15 -0
- package/dist/src/ui/hooks/useShellHistory.js +114 -0
- package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +7 -0
- package/dist/src/ui/hooks/useShellHistory.test.js +224 -0
- package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +10 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.js +60 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +24 -0
- package/dist/src/ui/hooks/useSlashCompletion.js +395 -0
- package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +10 -0
- package/dist/src/ui/hooks/useSlashCompletion.test.js +846 -0
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -0
- package/dist/src/ui/hooks/useStateAndRef.d.ts +8 -0
- package/dist/src/ui/hooks/useStateAndRef.js +27 -0
- package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
- package/dist/src/ui/hooks/useTerminalSize.d.ts +10 -0
- package/dist/src/ui/hooks/useTerminalSize.js +27 -0
- package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
- package/dist/src/ui/hooks/useThemeCommand.d.ts +17 -0
- package/dist/src/ui/hooks/useThemeCommand.js +75 -0
- package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
- package/dist/src/ui/hooks/useTimer.d.ts +13 -0
- package/dist/src/ui/hooks/useTimer.js +59 -0
- package/dist/src/ui/hooks/useTimer.js.map +1 -0
- package/dist/src/ui/hooks/useTimer.test.d.ts +7 -0
- package/dist/src/ui/hooks/useTimer.test.js +120 -0
- package/dist/src/ui/hooks/useTimer.test.js.map +1 -0
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +7 -0
- package/dist/src/ui/hooks/useToolScheduler.test.js +858 -0
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -0
- package/dist/src/ui/hooks/vim.d.ts +29 -0
- package/dist/src/ui/hooks/vim.js +642 -0
- package/dist/src/ui/hooks/vim.js.map +1 -0
- package/dist/src/ui/hooks/vim.test.d.ts +7 -0
- package/dist/src/ui/hooks/vim.test.js +1271 -0
- package/dist/src/ui/hooks/vim.test.js.map +1 -0
- package/dist/src/ui/keyMatchers.d.ts +28 -0
- package/dist/src/ui/keyMatchers.js +69 -0
- package/dist/src/ui/keyMatchers.js.map +1 -0
- package/dist/src/ui/keyMatchers.test.d.ts +7 -0
- package/dist/src/ui/keyMatchers.test.js +365 -0
- package/dist/src/ui/keyMatchers.test.js.map +1 -0
- package/dist/src/ui/kit/InteractiveBox.d.ts +17 -0
- package/dist/src/ui/kit/InteractiveBox.js +34 -0
- package/dist/src/ui/kit/InteractiveBox.js.map +1 -0
- package/dist/src/ui/kit/InteractiveBox.test.d.ts +7 -0
- package/dist/src/ui/kit/InteractiveBox.test.js +36 -0
- package/dist/src/ui/kit/InteractiveBox.test.js.map +1 -0
- package/dist/src/ui/kit/Theme.d.ts +29 -0
- package/dist/src/ui/kit/Theme.js +30 -0
- package/dist/src/ui/kit/Theme.js.map +1 -0
- package/dist/src/ui/layouts/DefaultAppLayout.d.ts +8 -0
- package/dist/src/ui/layouts/DefaultAppLayout.js +53 -0
- package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -0
- package/dist/src/ui/layouts/DialogLayer.d.ts +11 -0
- package/dist/src/ui/layouts/DialogLayer.js +14 -0
- package/dist/src/ui/layouts/DialogLayer.js.map +1 -0
- package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +8 -0
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js +17 -0
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +1 -0
- package/dist/src/ui/noninteractive/nonInteractiveUi.d.ts +13 -0
- package/dist/src/ui/noninteractive/nonInteractiveUi.js +31 -0
- package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +13 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +43 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.d.ts +7 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js +122 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js.map +1 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +11 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +19 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.d.ts +7 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js +35 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js.map +1 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +11 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +19 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.d.ts +7 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js +35 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js.map +1 -0
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +13 -0
- package/dist/src/ui/privacy/PrivacyNotice.js +26 -0
- package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/PrivacyNotice.test.d.ts +7 -0
- package/dist/src/ui/privacy/PrivacyNotice.test.js +63 -0
- package/dist/src/ui/privacy/PrivacyNotice.test.js.map +1 -0
- package/dist/src/ui/semantic-colors.d.ts +8 -0
- package/dist/src/ui/semantic-colors.js +25 -0
- package/dist/src/ui/semantic-colors.js.map +1 -0
- package/dist/src/ui/state/extensions.d.ts +68 -0
- package/dist/src/ui/state/extensions.js +98 -0
- package/dist/src/ui/state/extensions.js.map +1 -0
- package/dist/src/ui/state/extensions.test.d.ts +7 -0
- package/dist/src/ui/state/extensions.test.js +220 -0
- package/dist/src/ui/state/extensions.test.js.map +1 -0
- package/dist/src/ui/textConstants.d.ts +10 -0
- package/dist/src/ui/textConstants.js +11 -0
- package/dist/src/ui/textConstants.js.map +1 -0
- package/dist/src/ui/themes/ansi-light.d.ts +8 -0
- package/dist/src/ui/themes/ansi-light.js +144 -0
- package/dist/src/ui/themes/ansi-light.js.map +1 -0
- package/dist/src/ui/themes/ansi.d.ts +8 -0
- package/dist/src/ui/themes/ansi.js +154 -0
- package/dist/src/ui/themes/ansi.js.map +1 -0
- package/dist/src/ui/themes/atom-one-dark.d.ts +8 -0
- package/dist/src/ui/themes/atom-one-dark.js +141 -0
- package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
- package/dist/src/ui/themes/ayu-light.d.ts +8 -0
- package/dist/src/ui/themes/ayu-light.js +133 -0
- package/dist/src/ui/themes/ayu-light.js.map +1 -0
- package/dist/src/ui/themes/ayu.d.ts +8 -0
- package/dist/src/ui/themes/ayu.js +107 -0
- package/dist/src/ui/themes/ayu.js.map +1 -0
- package/dist/src/ui/themes/color-utils.d.ts +24 -0
- package/dist/src/ui/themes/color-utils.js +251 -0
- package/dist/src/ui/themes/color-utils.js.map +1 -0
- package/dist/src/ui/themes/color-utils.test.d.ts +7 -0
- package/dist/src/ui/themes/color-utils.test.js +246 -0
- package/dist/src/ui/themes/color-utils.test.js.map +1 -0
- package/dist/src/ui/themes/default-light.d.ts +8 -0
- package/dist/src/ui/themes/default-light.js +101 -0
- package/dist/src/ui/themes/default-light.js.map +1 -0
- package/dist/src/ui/themes/default.d.ts +8 -0
- package/dist/src/ui/themes/default.js +144 -0
- package/dist/src/ui/themes/default.js.map +1 -0
- package/dist/src/ui/themes/dracula.d.ts +8 -0
- package/dist/src/ui/themes/dracula.js +118 -0
- package/dist/src/ui/themes/dracula.js.map +1 -0
- package/dist/src/ui/themes/github-dark.d.ts +8 -0
- package/dist/src/ui/themes/github-dark.js +141 -0
- package/dist/src/ui/themes/github-dark.js.map +1 -0
- package/dist/src/ui/themes/github-light.d.ts +8 -0
- package/dist/src/ui/themes/github-light.js +143 -0
- package/dist/src/ui/themes/github-light.js.map +1 -0
- package/dist/src/ui/themes/googlecode.d.ts +8 -0
- package/dist/src/ui/themes/googlecode.js +140 -0
- package/dist/src/ui/themes/googlecode.js.map +1 -0
- package/dist/src/ui/themes/holiday.d.ts +8 -0
- package/dist/src/ui/themes/holiday.js +163 -0
- package/dist/src/ui/themes/holiday.js.map +1 -0
- package/dist/src/ui/themes/no-color.d.ts +8 -0
- package/dist/src/ui/themes/no-color.js +119 -0
- package/dist/src/ui/themes/no-color.js.map +1 -0
- package/dist/src/ui/themes/semantic-tokens.d.ts +40 -0
- package/dist/src/ui/themes/semantic-tokens.js +101 -0
- package/dist/src/ui/themes/semantic-tokens.js.map +1 -0
- package/dist/src/ui/themes/shades-of-purple.d.ts +12 -0
- package/dist/src/ui/themes/shades-of-purple.js +307 -0
- package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
- package/dist/src/ui/themes/termai-dark.d.ts +8 -0
- package/dist/src/ui/themes/termai-dark.js +163 -0
- package/dist/src/ui/themes/termai-dark.js.map +1 -0
- package/dist/src/ui/themes/termai-light.d.ts +8 -0
- package/dist/src/ui/themes/termai-light.js +120 -0
- package/dist/src/ui/themes/termai-light.js.map +1 -0
- package/dist/src/ui/themes/theme-manager.d.ts +72 -0
- package/dist/src/ui/themes/theme-manager.js +277 -0
- package/dist/src/ui/themes/theme-manager.js.map +1 -0
- package/dist/src/ui/themes/theme-manager.test.d.ts +7 -0
- package/dist/src/ui/themes/theme-manager.test.js +144 -0
- package/dist/src/ui/themes/theme-manager.test.js.map +1 -0
- package/dist/src/ui/themes/theme.d.ts +146 -0
- package/dist/src/ui/themes/theme.js +423 -0
- package/dist/src/ui/themes/theme.js.map +1 -0
- package/dist/src/ui/themes/theme.test.d.ts +7 -0
- package/dist/src/ui/themes/theme.test.js +175 -0
- package/dist/src/ui/themes/theme.test.js.map +1 -0
- package/dist/src/ui/themes/xcode.d.ts +8 -0
- package/dist/src/ui/themes/xcode.js +148 -0
- package/dist/src/ui/themes/xcode.js.map +1 -0
- package/dist/src/ui/types.d.ts +322 -0
- package/dist/src/ui/types.js +72 -0
- package/dist/src/ui/types.js.map +1 -0
- package/dist/src/ui/utils/CodeColorizer.d.ts +26 -0
- package/dist/src/ui/utils/CodeColorizer.js +124 -0
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
- package/dist/src/ui/utils/CodeColorizer.test.d.ts +7 -0
- package/dist/src/ui/utils/CodeColorizer.test.js +39 -0
- package/dist/src/ui/utils/CodeColorizer.test.js.map +1 -0
- package/dist/src/ui/utils/ConsolePatcher.d.ts +26 -0
- package/dist/src/ui/utils/ConsolePatcher.js +50 -0
- package/dist/src/ui/utils/ConsolePatcher.js.map +1 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +18 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +113 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.d.ts +7 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.js +22 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.test.js.map +1 -0
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +16 -0
- package/dist/src/ui/utils/MarkdownDisplay.js +243 -0
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +7 -0
- package/dist/src/ui/utils/MarkdownDisplay.test.js +160 -0
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -0
- package/dist/src/ui/utils/TableRenderer.d.ts +18 -0
- package/dist/src/ui/utils/TableRenderer.js +85 -0
- package/dist/src/ui/utils/TableRenderer.js.map +1 -0
- package/dist/src/ui/utils/bracketedPaste.d.ts +8 -0
- package/dist/src/ui/utils/bracketedPaste.js +16 -0
- package/dist/src/ui/utils/bracketedPaste.js.map +1 -0
- package/dist/src/ui/utils/clipboardUtils.d.ts +48 -0
- package/dist/src/ui/utils/clipboardUtils.js +259 -0
- package/dist/src/ui/utils/clipboardUtils.js.map +1 -0
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +7 -0
- package/dist/src/ui/utils/clipboardUtils.test.js +188 -0
- package/dist/src/ui/utils/clipboardUtils.test.js.map +1 -0
- package/dist/src/ui/utils/clipboardUtils.windows.test.d.ts +7 -0
- package/dist/src/ui/utils/clipboardUtils.windows.test.js +53 -0
- package/dist/src/ui/utils/clipboardUtils.windows.test.js.map +1 -0
- package/dist/src/ui/utils/commandUtils.d.ts +37 -0
- package/dist/src/ui/utils/commandUtils.js +190 -0
- package/dist/src/ui/utils/commandUtils.js.map +1 -0
- package/dist/src/ui/utils/commandUtils.test.d.ts +7 -0
- package/dist/src/ui/utils/commandUtils.test.js +310 -0
- package/dist/src/ui/utils/commandUtils.test.js.map +1 -0
- package/dist/src/ui/utils/computeStats.d.ts +11 -0
- package/dist/src/ui/utils/computeStats.js +63 -0
- package/dist/src/ui/utils/computeStats.js.map +1 -0
- package/dist/src/ui/utils/computeStats.test.d.ts +7 -0
- package/dist/src/ui/utils/computeStats.test.js +272 -0
- package/dist/src/ui/utils/computeStats.test.js.map +1 -0
- package/dist/src/ui/utils/directoryUtils.d.ts +7 -0
- package/dist/src/ui/utils/directoryUtils.js +22 -0
- package/dist/src/ui/utils/directoryUtils.js.map +1 -0
- package/dist/src/ui/utils/directoryUtils.test.d.ts +7 -0
- package/dist/src/ui/utils/directoryUtils.test.js +53 -0
- package/dist/src/ui/utils/directoryUtils.test.js.map +1 -0
- package/dist/src/ui/utils/displayUtils.d.ts +19 -0
- package/dist/src/ui/utils/displayUtils.js +28 -0
- package/dist/src/ui/utils/displayUtils.js.map +1 -0
- package/dist/src/ui/utils/displayUtils.test.d.ts +7 -0
- package/dist/src/ui/utils/displayUtils.test.js +62 -0
- package/dist/src/ui/utils/displayUtils.test.js.map +1 -0
- package/dist/src/ui/utils/formatters.d.ts +14 -0
- package/dist/src/ui/utils/formatters.js +57 -0
- package/dist/src/ui/utils/formatters.js.map +1 -0
- package/dist/src/ui/utils/formatters.test.d.ts +7 -0
- package/dist/src/ui/utils/formatters.test.js +57 -0
- package/dist/src/ui/utils/formatters.test.js.map +1 -0
- package/dist/src/ui/utils/highlight.d.ts +12 -0
- package/dist/src/ui/utils/highlight.js +83 -0
- package/dist/src/ui/utils/highlight.js.map +1 -0
- package/dist/src/ui/utils/highlight.test.d.ts +7 -0
- package/dist/src/ui/utils/highlight.test.js +121 -0
- package/dist/src/ui/utils/highlight.test.js.map +1 -0
- package/dist/src/ui/utils/input.d.ts +18 -0
- package/dist/src/ui/utils/input.js +52 -0
- package/dist/src/ui/utils/input.js.map +1 -0
- package/dist/src/ui/utils/input.test.d.ts +7 -0
- package/dist/src/ui/utils/input.test.js +45 -0
- package/dist/src/ui/utils/input.test.js.map +1 -0
- package/dist/src/ui/utils/isNarrowWidth.d.ts +7 -0
- package/dist/src/ui/utils/isNarrowWidth.js +10 -0
- package/dist/src/ui/utils/isNarrowWidth.js.map +1 -0
- package/dist/src/ui/utils/markdownUtilities.d.ts +7 -0
- package/dist/src/ui/utils/markdownUtilities.js +111 -0
- package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +7 -0
- package/dist/src/ui/utils/markdownUtilities.test.js +43 -0
- package/dist/src/ui/utils/markdownUtilities.test.js.map +1 -0
- package/dist/src/ui/utils/mouse.d.ts +33 -0
- package/dist/src/ui/utils/mouse.js +182 -0
- package/dist/src/ui/utils/mouse.js.map +1 -0
- package/dist/src/ui/utils/mouse.test.d.ts +7 -0
- package/dist/src/ui/utils/mouse.test.js +137 -0
- package/dist/src/ui/utils/mouse.test.js.map +1 -0
- package/dist/src/ui/utils/terminalCapabilityManager.d.ts +39 -0
- package/dist/src/ui/utils/terminalCapabilityManager.js +191 -0
- package/dist/src/ui/utils/terminalCapabilityManager.js.map +1 -0
- package/dist/src/ui/utils/terminalCapabilityManager.test.d.ts +7 -0
- package/dist/src/ui/utils/terminalCapabilityManager.test.js +137 -0
- package/dist/src/ui/utils/terminalCapabilityManager.test.js.map +1 -0
- package/dist/src/ui/utils/terminalSetup.d.ts +35 -0
- package/dist/src/ui/utils/terminalSetup.js +291 -0
- package/dist/src/ui/utils/terminalSetup.js.map +1 -0
- package/dist/src/ui/utils/terminalSetup.test.d.ts +7 -0
- package/dist/src/ui/utils/terminalSetup.test.js +139 -0
- package/dist/src/ui/utils/terminalSetup.test.js.map +1 -0
- package/dist/src/ui/utils/textOutput.d.ts +28 -0
- package/dist/src/ui/utils/textOutput.js +54 -0
- package/dist/src/ui/utils/textOutput.js.map +1 -0
- package/dist/src/ui/utils/textOutput.test.d.ts +7 -0
- package/dist/src/ui/utils/textOutput.test.js +80 -0
- package/dist/src/ui/utils/textOutput.test.js.map +1 -0
- package/dist/src/ui/utils/textUtils.d.ts +44 -0
- package/dist/src/ui/utils/textUtils.js +187 -0
- package/dist/src/ui/utils/textUtils.js.map +1 -0
- package/dist/src/ui/utils/textUtils.test.d.ts +7 -0
- package/dist/src/ui/utils/textUtils.test.js +139 -0
- package/dist/src/ui/utils/textUtils.test.js.map +1 -0
- package/dist/src/ui/utils/ui-sizing.d.ts +8 -0
- package/dist/src/ui/utils/ui-sizing.js +31 -0
- package/dist/src/ui/utils/ui-sizing.js.map +1 -0
- package/dist/src/ui/utils/ui-sizing.test.d.ts +7 -0
- package/dist/src/ui/utils/ui-sizing.test.js +57 -0
- package/dist/src/ui/utils/ui-sizing.test.js.map +1 -0
- package/dist/src/ui/utils/updateCheck.d.ts +19 -0
- package/dist/src/ui/utils/updateCheck.js +12 -0
- package/dist/src/ui/utils/updateCheck.js.map +1 -0
- package/dist/src/ui/utils/updateCheck.test.d.ts +7 -0
- package/dist/src/ui/utils/updateCheck.test.js +135 -0
- package/dist/src/ui/utils/updateCheck.test.js.map +1 -0
- package/dist/src/ui/views/SessionView.d.ts +8 -0
- package/dist/src/ui/views/SessionView.js +8 -0
- package/dist/src/ui/views/SessionView.js.map +1 -0
- package/dist/src/ui/views/ZenView.d.ts +11 -0
- package/dist/src/ui/views/ZenView.js +66 -0
- package/dist/src/ui/views/ZenView.js.map +1 -0
- package/dist/src/utils/checks.d.ts +20 -0
- package/dist/src/utils/checks.js +25 -0
- package/dist/src/utils/checks.js.map +1 -0
- package/dist/src/utils/checks.test.d.ts +7 -0
- package/dist/src/utils/checks.test.js +30 -0
- package/dist/src/utils/checks.test.js.map +1 -0
- package/dist/src/utils/cleanup.d.ts +17 -0
- package/dist/src/utils/cleanup.js +79 -0
- package/dist/src/utils/cleanup.js.map +1 -0
- package/dist/src/utils/cleanup.test.d.ts +7 -0
- package/dist/src/utils/cleanup.test.js +103 -0
- package/dist/src/utils/cleanup.test.js.map +1 -0
- package/dist/src/utils/commands.d.ts +21 -0
- package/dist/src/utils/commands.js +54 -0
- package/dist/src/utils/commands.js.map +1 -0
- package/dist/src/utils/commands.test.d.ts +7 -0
- package/dist/src/utils/commands.test.js +116 -0
- package/dist/src/utils/commands.test.js.map +1 -0
- package/dist/src/utils/commentJson.d.ts +10 -0
- package/dist/src/utils/commentJson.js +131 -0
- package/dist/src/utils/commentJson.js.map +1 -0
- package/dist/src/utils/commentJson.test.d.ts +7 -0
- package/dist/src/utils/commentJson.test.js +309 -0
- package/dist/src/utils/commentJson.test.js.map +1 -0
- package/dist/src/utils/deepMerge.d.ts +10 -0
- package/dist/src/utils/deepMerge.js +64 -0
- package/dist/src/utils/deepMerge.js.map +1 -0
- package/dist/src/utils/deepMerge.test.d.ts +7 -0
- package/dist/src/utils/deepMerge.test.js +202 -0
- package/dist/src/utils/deepMerge.test.js.map +1 -0
- package/dist/src/utils/dialogScopeUtils.d.ts +26 -0
- package/dist/src/utils/dialogScopeUtils.js +51 -0
- package/dist/src/utils/dialogScopeUtils.js.map +1 -0
- package/dist/src/utils/dialogScopeUtils.test.d.ts +7 -0
- package/dist/src/utils/dialogScopeUtils.test.js +82 -0
- package/dist/src/utils/dialogScopeUtils.test.js.map +1 -0
- package/dist/src/utils/envAliases.d.ts +7 -0
- package/dist/src/utils/envAliases.js +9 -0
- package/dist/src/utils/envAliases.js.map +1 -0
- package/dist/src/utils/envVarResolver.d.ts +40 -0
- package/dist/src/utils/envVarResolver.js +101 -0
- package/dist/src/utils/envVarResolver.js.map +1 -0
- package/dist/src/utils/envVarResolver.test.d.ts +7 -0
- package/dist/src/utils/envVarResolver.test.js +222 -0
- package/dist/src/utils/envVarResolver.test.js.map +1 -0
- package/dist/src/utils/errors.d.ts +34 -0
- package/dist/src/utils/errors.js +187 -0
- package/dist/src/utils/errors.js.map +1 -0
- package/dist/src/utils/errors.test.d.ts +7 -0
- package/dist/src/utils/errors.test.js +378 -0
- package/dist/src/utils/errors.test.js.map +1 -0
- package/dist/src/utils/events.d.ts +25 -0
- package/dist/src/utils/events.js +18 -0
- package/dist/src/utils/events.js.map +1 -0
- package/dist/src/utils/events.test.d.ts +7 -0
- package/dist/src/utils/events.test.js +25 -0
- package/dist/src/utils/events.test.js.map +1 -0
- package/dist/src/utils/firstRun.d.ts +8 -0
- package/dist/src/utils/firstRun.js +32 -0
- package/dist/src/utils/firstRun.js.map +1 -0
- package/dist/src/utils/gitUtils.d.ts +31 -0
- package/dist/src/utils/gitUtils.js +91 -0
- package/dist/src/utils/gitUtils.js.map +1 -0
- package/dist/src/utils/gitUtils.test.d.ts +7 -0
- package/dist/src/utils/gitUtils.test.js +114 -0
- package/dist/src/utils/gitUtils.test.js.map +1 -0
- package/dist/src/utils/handleAutoUpdate.d.ts +12 -0
- package/dist/src/utils/handleAutoUpdate.js +116 -0
- package/dist/src/utils/handleAutoUpdate.js.map +1 -0
- package/dist/src/utils/handleAutoUpdate.test.d.ts +7 -0
- package/dist/src/utils/handleAutoUpdate.test.js +304 -0
- package/dist/src/utils/handleAutoUpdate.test.js.map +1 -0
- package/dist/src/utils/installationInfo.d.ts +25 -0
- package/dist/src/utils/installationInfo.js +147 -0
- package/dist/src/utils/installationInfo.js.map +1 -0
- package/dist/src/utils/installationInfo.test.d.ts +7 -0
- package/dist/src/utils/installationInfo.test.js +248 -0
- package/dist/src/utils/installationInfo.test.js.map +1 -0
- package/dist/src/utils/logCleanup.d.ts +11 -0
- package/dist/src/utils/logCleanup.js +47 -0
- package/dist/src/utils/logCleanup.js.map +1 -0
- package/dist/src/utils/math.d.ts +14 -0
- package/dist/src/utils/math.js +15 -0
- package/dist/src/utils/math.js.map +1 -0
- package/dist/src/utils/math.test.d.ts +7 -0
- package/dist/src/utils/math.test.js +24 -0
- package/dist/src/utils/math.test.js.map +1 -0
- package/dist/src/utils/persistentState.d.ts +24 -0
- package/dist/src/utils/persistentState.js +66 -0
- package/dist/src/utils/persistentState.js.map +1 -0
- package/dist/src/utils/persistentState.test.d.ts +7 -0
- package/dist/src/utils/persistentState.test.js +69 -0
- package/dist/src/utils/persistentState.test.js.map +1 -0
- package/dist/src/utils/processUtils.d.ts +14 -0
- package/dist/src/utils/processUtils.js +19 -0
- package/dist/src/utils/processUtils.js.map +1 -0
- package/dist/src/utils/processUtils.test.d.ts +7 -0
- package/dist/src/utils/processUtils.test.js +21 -0
- package/dist/src/utils/processUtils.test.js.map +1 -0
- package/dist/src/utils/readStdin.d.ts +7 -0
- package/dist/src/utils/readStdin.js +62 -0
- package/dist/src/utils/readStdin.js.map +1 -0
- package/dist/src/utils/readStdin.test.d.ts +7 -0
- package/dist/src/utils/readStdin.test.js +114 -0
- package/dist/src/utils/readStdin.test.js.map +1 -0
- package/dist/src/utils/relaunch.d.ts +8 -0
- package/dist/src/utils/relaunch.js +58 -0
- package/dist/src/utils/relaunch.js.map +1 -0
- package/dist/src/utils/relaunch.test.d.ts +7 -0
- package/dist/src/utils/relaunch.test.js +274 -0
- package/dist/src/utils/relaunch.test.js.map +1 -0
- package/dist/src/utils/resolvePath.d.ts +7 -0
- package/dist/src/utils/resolvePath.js +22 -0
- package/dist/src/utils/resolvePath.js.map +1 -0
- package/dist/src/utils/resolvePath.test.d.ts +7 -0
- package/dist/src/utils/resolvePath.test.js +32 -0
- package/dist/src/utils/resolvePath.test.js.map +1 -0
- package/dist/src/utils/sandbox-macos-permissive-closed.sb +32 -0
- package/dist/src/utils/sandbox-macos-permissive-open.sb +27 -0
- package/dist/src/utils/sandbox-macos-permissive-proxied.sb +37 -0
- package/dist/src/utils/sandbox-macos-restrictive-closed.sb +93 -0
- package/dist/src/utils/sandbox-macos-restrictive-open.sb +96 -0
- package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +98 -0
- package/dist/src/utils/sandbox.d.ts +8 -0
- package/dist/src/utils/sandbox.js +617 -0
- package/dist/src/utils/sandbox.js.map +1 -0
- package/dist/src/utils/sandbox.test.d.ts +7 -0
- package/dist/src/utils/sandbox.test.js +303 -0
- package/dist/src/utils/sandbox.test.js.map +1 -0
- package/dist/src/utils/sandboxUtils.d.ts +15 -0
- package/dist/src/utils/sandboxUtils.js +122 -0
- package/dist/src/utils/sandboxUtils.js.map +1 -0
- package/dist/src/utils/sandboxUtils.test.d.ts +7 -0
- package/dist/src/utils/sandboxUtils.test.js +123 -0
- package/dist/src/utils/sandboxUtils.test.js.map +1 -0
- package/dist/src/utils/sessionCleanup.d.ts +23 -0
- package/dist/src/utils/sessionCleanup.integration.test.d.ts +7 -0
- package/dist/src/utils/sessionCleanup.integration.test.js +183 -0
- package/dist/src/utils/sessionCleanup.integration.test.js.map +1 -0
- package/dist/src/utils/sessionCleanup.js +215 -0
- package/dist/src/utils/sessionCleanup.js.map +1 -0
- package/dist/src/utils/sessionCleanup.test.d.ts +7 -0
- package/dist/src/utils/sessionCleanup.test.js +1349 -0
- package/dist/src/utils/sessionCleanup.test.js.map +1 -0
- package/dist/src/utils/sessionUtils.d.ts +151 -0
- package/dist/src/utils/sessionUtils.js +307 -0
- package/dist/src/utils/sessionUtils.js.map +1 -0
- package/dist/src/utils/sessionUtils.test.d.ts +7 -0
- package/dist/src/utils/sessionUtils.test.js +504 -0
- package/dist/src/utils/sessionUtils.test.js.map +1 -0
- package/dist/src/utils/sessions.d.ts +9 -0
- package/dist/src/utils/sessions.js +70 -0
- package/dist/src/utils/sessions.js.map +1 -0
- package/dist/src/utils/sessions.test.d.ts +7 -0
- package/dist/src/utils/sessions.test.js +585 -0
- package/dist/src/utils/sessions.test.js.map +1 -0
- package/dist/src/utils/settingsUtils.d.ts +145 -0
- package/dist/src/utils/settingsUtils.js +341 -0
- package/dist/src/utils/settingsUtils.js.map +1 -0
- package/dist/src/utils/settingsUtils.test.d.ts +7 -0
- package/dist/src/utils/settingsUtils.test.js +809 -0
- package/dist/src/utils/settingsUtils.test.js.map +1 -0
- package/dist/src/utils/spawnWrapper.d.ts +8 -0
- package/dist/src/utils/spawnWrapper.js +9 -0
- package/dist/src/utils/spawnWrapper.js.map +1 -0
- package/dist/src/utils/startupWarnings.d.ts +7 -0
- package/dist/src/utils/startupWarnings.js +41 -0
- package/dist/src/utils/startupWarnings.js.map +1 -0
- package/dist/src/utils/startupWarnings.test.d.ts +7 -0
- package/dist/src/utils/startupWarnings.test.js +62 -0
- package/dist/src/utils/startupWarnings.test.js.map +1 -0
- package/dist/src/utils/terminalTheme.d.ts +16 -0
- package/dist/src/utils/terminalTheme.js +51 -0
- package/dist/src/utils/terminalTheme.js.map +1 -0
- package/dist/src/utils/updateEventEmitter.d.ts +12 -0
- package/dist/src/utils/updateEventEmitter.js +13 -0
- package/dist/src/utils/updateEventEmitter.js.map +1 -0
- package/dist/src/utils/updateEventEmitter.test.d.ts +7 -0
- package/dist/src/utils/updateEventEmitter.test.js +19 -0
- package/dist/src/utils/updateEventEmitter.test.js.map +1 -0
- package/dist/src/utils/userStartupWarnings.d.ts +7 -0
- package/dist/src/utils/userStartupWarnings.js +33 -0
- package/dist/src/utils/userStartupWarnings.js.map +1 -0
- package/dist/src/utils/userStartupWarnings.test.d.ts +7 -0
- package/dist/src/utils/userStartupWarnings.test.js +53 -0
- package/dist/src/utils/userStartupWarnings.test.js.map +1 -0
- package/dist/src/utils/webRemoteConsent.d.ts +14 -0
- package/dist/src/utils/webRemoteConsent.js +21 -0
- package/dist/src/utils/webRemoteConsent.js.map +1 -0
- package/dist/src/utils/webRemoteServer.d.ts +29 -0
- package/dist/src/utils/webRemoteServer.js +124 -0
- package/dist/src/utils/webRemoteServer.js.map +1 -0
- package/dist/src/utils/webRemoteServer.test.d.ts +7 -0
- package/dist/src/utils/webRemoteServer.test.js +113 -0
- package/dist/src/utils/webRemoteServer.test.js.map +1 -0
- package/dist/src/utils/windowTitle.d.ts +13 -0
- package/dist/src/utils/windowTitle.js +20 -0
- package/dist/src/utils/windowTitle.js.map +1 -0
- package/dist/src/utils/windowTitle.test.d.ts +7 -0
- package/dist/src/utils/windowTitle.test.js +50 -0
- package/dist/src/utils/windowTitle.test.js.map +1 -0
- package/dist/src/validateNonInterActiveAuth.d.ts +10 -0
- package/dist/src/validateNonInterActiveAuth.js +60 -0
- package/dist/src/validateNonInterActiveAuth.js.map +1 -0
- package/dist/src/validateNonInterActiveAuth.test.d.ts +7 -0
- package/dist/src/validateNonInterActiveAuth.test.js +338 -0
- package/dist/src/validateNonInterActiveAuth.test.js.map +1 -0
- package/dist/src/voice/AudioController.d.ts +27 -0
- package/dist/src/voice/AudioController.js +121 -0
- package/dist/src/voice/AudioController.js.map +1 -0
- package/dist/src/voice/ConversationStack.d.ts +42 -0
- package/dist/src/voice/ConversationStack.js +66 -0
- package/dist/src/voice/ConversationStack.js.map +1 -0
- package/dist/src/voice/ConversationStack.test.d.ts +7 -0
- package/dist/src/voice/ConversationStack.test.js +47 -0
- package/dist/src/voice/ConversationStack.test.js.map +1 -0
- package/dist/src/voice/VoiceStateMachine.d.ts +32 -0
- package/dist/src/voice/VoiceStateMachine.js +83 -0
- package/dist/src/voice/VoiceStateMachine.js.map +1 -0
- package/dist/src/voice/VoiceStateMachine.test.d.ts +7 -0
- package/dist/src/voice/VoiceStateMachine.test.js +41 -0
- package/dist/src/voice/VoiceStateMachine.test.js.map +1 -0
- package/dist/src/voice/spokenReply.d.ts +11 -0
- package/dist/src/voice/spokenReply.js +35 -0
- package/dist/src/voice/spokenReply.js.map +1 -0
- package/dist/src/voice/spokenReply.test.d.ts +7 -0
- package/dist/src/voice/spokenReply.test.js +33 -0
- package/dist/src/voice/spokenReply.test.js.map +1 -0
- package/dist/src/voice/stt/AudioRecorder.d.ts +27 -0
- package/dist/src/voice/stt/AudioRecorder.js +132 -0
- package/dist/src/voice/stt/AudioRecorder.js.map +1 -0
- package/dist/src/voice/stt/StreamingWhisper.d.ts +25 -0
- package/dist/src/voice/stt/StreamingWhisper.js +88 -0
- package/dist/src/voice/stt/StreamingWhisper.js.map +1 -0
- package/dist/src/voice/stt/StreamingWhisper.test.d.ts +7 -0
- package/dist/src/voice/stt/StreamingWhisper.test.js +62 -0
- package/dist/src/voice/stt/StreamingWhisper.test.js.map +1 -0
- package/dist/src/voice/tts/auto.d.ts +13 -0
- package/dist/src/voice/tts/auto.js +87 -0
- package/dist/src/voice/tts/auto.js.map +1 -0
- package/dist/src/voice/tts/auto.test.d.ts +7 -0
- package/dist/src/voice/tts/auto.test.js +39 -0
- package/dist/src/voice/tts/auto.test.js.map +1 -0
- package/dist/src/voice/tts/types.d.ts +15 -0
- package/dist/src/voice/tts/types.js +8 -0
- package/dist/src/voice/tts/types.js.map +1 -0
- package/dist/src/voice/voiceController.d.ts +20 -0
- package/dist/src/voice/voiceController.js +51 -0
- package/dist/src/voice/voiceController.js.map +1 -0
- package/dist/src/voice/voiceController.test.d.ts +7 -0
- package/dist/src/voice/voiceController.test.js +36 -0
- package/dist/src/voice/voiceController.test.js.map +1 -0
- package/dist/src/zed-integration/fileSystemService.d.ts +20 -0
- package/dist/src/zed-integration/fileSystemService.js +42 -0
- package/dist/src/zed-integration/fileSystemService.js.map +1 -0
- package/dist/src/zed-integration/fileSystemService.test.d.ts +7 -0
- package/dist/src/zed-integration/fileSystemService.test.js +89 -0
- package/dist/src/zed-integration/fileSystemService.test.js.map +1 -0
- package/dist/src/zed-integration/zedIntegration.d.ts +40 -0
- package/dist/src/zed-integration/zedIntegration.js +749 -0
- package/dist/src/zed-integration/zedIntegration.js.map +1 -0
- package/dist/src/zed-integration/zedIntegration.test.d.ts +7 -0
- package/dist/src/zed-integration/zedIntegration.test.js +614 -0
- package/dist/src/zed-integration/zedIntegration.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Google LLC
|
|
5
|
+
* Portions Copyright 2025 TerminaI Authors
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*/
|
|
8
|
+
import React, { Fragment, useEffect, useId } from 'react';
|
|
9
|
+
import { Box, Text } from 'ink';
|
|
10
|
+
import stringWidth from 'string-width';
|
|
11
|
+
import { theme } from '../../semantic-colors.js';
|
|
12
|
+
import { toCodePoints } from '../../utils/textUtils.js';
|
|
13
|
+
import { useOverflowActions } from '../../contexts/OverflowContext.js';
|
|
14
|
+
let enableDebugLog = false;
|
|
15
|
+
/**
|
|
16
|
+
* Minimum height for the MaxSizedBox component.
|
|
17
|
+
* This ensures there is room for at least one line of content as well as the
|
|
18
|
+
* message that content was truncated.
|
|
19
|
+
*/
|
|
20
|
+
export const MINIMUM_MAX_HEIGHT = 2;
|
|
21
|
+
export function setMaxSizedBoxDebugging(value) {
|
|
22
|
+
enableDebugLog = value;
|
|
23
|
+
}
|
|
24
|
+
function debugReportError(message, element) {
|
|
25
|
+
if (!enableDebugLog)
|
|
26
|
+
return;
|
|
27
|
+
if (!React.isValidElement(element)) {
|
|
28
|
+
console.error(message, `Invalid element: '${String(element)}' typeof=${typeof element}`);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
let sourceMessage = '<Unknown file>';
|
|
32
|
+
try {
|
|
33
|
+
const elementWithSource = element;
|
|
34
|
+
const fileName = elementWithSource._source?.fileName;
|
|
35
|
+
const lineNumber = elementWithSource._source?.lineNumber;
|
|
36
|
+
sourceMessage = fileName ? `${fileName}:${lineNumber}` : '<Unknown file>';
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
console.error('Error while trying to get file name:', error);
|
|
40
|
+
}
|
|
41
|
+
console.error(message, `${String(element.type)}. Source: ${sourceMessage}`);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A React component that constrains the size of its children and provides
|
|
45
|
+
* content-aware truncation when the content exceeds the specified `maxHeight`.
|
|
46
|
+
*
|
|
47
|
+
* `MaxSizedBox` requires a specific structure for its children to correctly
|
|
48
|
+
* measure and render the content:
|
|
49
|
+
*
|
|
50
|
+
* 1. **Direct children must be `<Box>` elements.** Each `<Box>` represents a
|
|
51
|
+
* single row of content.
|
|
52
|
+
* 2. **Row `<Box>` elements must contain only `<Text>` elements.** These
|
|
53
|
+
* `<Text>` elements can be nested and there are no restrictions to Text
|
|
54
|
+
* element styling other than that non-wrapping text elements must be
|
|
55
|
+
* before wrapping text elements.
|
|
56
|
+
*
|
|
57
|
+
* **Constraints:**
|
|
58
|
+
* - **Box Properties:** Custom properties on the child `<Box>` elements are
|
|
59
|
+
* ignored. In debug mode, runtime checks will report errors for any
|
|
60
|
+
* unsupported properties.
|
|
61
|
+
* - **Text Wrapping:** Within a single row, `<Text>` elements with no wrapping
|
|
62
|
+
* (e.g., headers, labels) must appear before any `<Text>` elements that wrap.
|
|
63
|
+
* - **Element Types:** Runtime checks will warn if unsupported element types
|
|
64
|
+
* are used as children.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* <MaxSizedBox maxWidth={80} maxHeight={10}>
|
|
68
|
+
* <Box>
|
|
69
|
+
* <Text>This is the first line.</Text>
|
|
70
|
+
* </Box>
|
|
71
|
+
* <Box>
|
|
72
|
+
* <Text color="cyan" wrap="truncate">Non-wrapping Header: </Text>
|
|
73
|
+
* <Text>This is the rest of the line which will wrap if it's too long.</Text>
|
|
74
|
+
* </Box>
|
|
75
|
+
* <Box>
|
|
76
|
+
* <Text>
|
|
77
|
+
* Line 3 with <Text color="yellow">nested styled text</Text> inside of it.
|
|
78
|
+
* </Text>
|
|
79
|
+
* </Box>
|
|
80
|
+
* </MaxSizedBox>
|
|
81
|
+
*/
|
|
82
|
+
export const MaxSizedBox = ({ children, maxWidth, maxHeight, overflowDirection = 'top', additionalHiddenLinesCount = 0, }) => {
|
|
83
|
+
const id = useId();
|
|
84
|
+
const { addOverflowingId, removeOverflowingId } = useOverflowActions() || {};
|
|
85
|
+
const laidOutStyledText = [];
|
|
86
|
+
const targetMaxHeight = Math.max(Math.round(maxHeight ?? Number.MAX_SAFE_INTEGER), MINIMUM_MAX_HEIGHT);
|
|
87
|
+
if (maxWidth === undefined) {
|
|
88
|
+
throw new Error('maxWidth must be defined when maxHeight is set.');
|
|
89
|
+
}
|
|
90
|
+
function visitRows(element) {
|
|
91
|
+
if (!React.isValidElement(element)) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (element.type === Fragment) {
|
|
95
|
+
React.Children.forEach(element.props.children, visitRows);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (element.type === Box) {
|
|
99
|
+
layoutInkElementAsStyledText(element, maxWidth, laidOutStyledText);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
debugReportError('MaxSizedBox children must be <Box> elements', element);
|
|
103
|
+
}
|
|
104
|
+
React.Children.forEach(children, visitRows);
|
|
105
|
+
const contentWillOverflow = (targetMaxHeight !== undefined &&
|
|
106
|
+
laidOutStyledText.length > targetMaxHeight) ||
|
|
107
|
+
additionalHiddenLinesCount > 0;
|
|
108
|
+
const visibleContentHeight = contentWillOverflow && targetMaxHeight !== undefined
|
|
109
|
+
? targetMaxHeight - 1
|
|
110
|
+
: targetMaxHeight;
|
|
111
|
+
const hiddenLinesCount = visibleContentHeight !== undefined
|
|
112
|
+
? Math.max(0, laidOutStyledText.length - visibleContentHeight)
|
|
113
|
+
: 0;
|
|
114
|
+
const totalHiddenLines = hiddenLinesCount + additionalHiddenLinesCount;
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
if (totalHiddenLines > 0) {
|
|
117
|
+
addOverflowingId?.(id);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
removeOverflowingId?.(id);
|
|
121
|
+
}
|
|
122
|
+
return () => {
|
|
123
|
+
removeOverflowingId?.(id);
|
|
124
|
+
};
|
|
125
|
+
}, [id, totalHiddenLines, addOverflowingId, removeOverflowingId]);
|
|
126
|
+
const visibleStyledText = hiddenLinesCount > 0
|
|
127
|
+
? overflowDirection === 'top'
|
|
128
|
+
? laidOutStyledText.slice(hiddenLinesCount, laidOutStyledText.length)
|
|
129
|
+
: laidOutStyledText.slice(0, visibleContentHeight)
|
|
130
|
+
: laidOutStyledText;
|
|
131
|
+
const visibleLines = visibleStyledText.map((line, index) => (_jsx(Box, { children: line.length > 0 ? (line.map((segment, segIndex) => (_jsx(Text, { ...segment.props, children: segment.text }, segIndex)))) : (_jsx(Text, { children: " " })) }, index)));
|
|
132
|
+
return (_jsxs(Box, { flexDirection: "column", width: maxWidth, flexShrink: 0, children: [totalHiddenLines > 0 && overflowDirection === 'top' && (_jsxs(Text, { color: theme.text.secondary, wrap: "truncate", children: ["... first ", totalHiddenLines, " line", totalHiddenLines === 1 ? '' : 's', ' ', "hidden ..."] })), visibleLines, totalHiddenLines > 0 && overflowDirection === 'bottom' && (_jsxs(Text, { color: theme.text.secondary, wrap: "truncate", children: ["... last ", totalHiddenLines, " line", totalHiddenLines === 1 ? '' : 's', ' ', "hidden ..."] }))] }));
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Flattens the child elements of MaxSizedBox into an array of `Row` objects.
|
|
136
|
+
*
|
|
137
|
+
* This function expects a specific child structure to function correctly:
|
|
138
|
+
* 1. The top-level child of `MaxSizedBox` should be a single `<Box>`. This
|
|
139
|
+
* outer box is primarily for structure and is not directly rendered.
|
|
140
|
+
* 2. Inside the outer `<Box>`, there should be one or more children. Each of
|
|
141
|
+
* these children must be a `<Box>` that represents a row.
|
|
142
|
+
* 3. Inside each "row" `<Box>`, the children must be `<Text>` components.
|
|
143
|
+
*
|
|
144
|
+
* The structure should look like this:
|
|
145
|
+
* <MaxSizedBox>
|
|
146
|
+
* <Box> // Row 1
|
|
147
|
+
* <Text>...</Text>
|
|
148
|
+
* <Text>...</Text>
|
|
149
|
+
* </Box>
|
|
150
|
+
* <Box> // Row 2
|
|
151
|
+
* <Text>...</Text>
|
|
152
|
+
* </Box>
|
|
153
|
+
* </MaxSizedBox>
|
|
154
|
+
*
|
|
155
|
+
* It is an error for a <Text> child without wrapping to appear after a
|
|
156
|
+
* <Text> child with wrapping within the same row Box.
|
|
157
|
+
*
|
|
158
|
+
* @param element The React node to flatten.
|
|
159
|
+
* @returns An array of `Row` objects.
|
|
160
|
+
*/
|
|
161
|
+
function visitBoxRow(element) {
|
|
162
|
+
if (!React.isValidElement(element) ||
|
|
163
|
+
element.type !== Box) {
|
|
164
|
+
debugReportError(`All children of MaxSizedBox must be <Box> elements`, element);
|
|
165
|
+
return {
|
|
166
|
+
noWrapSegments: [{ text: '<ERROR>', props: {} }],
|
|
167
|
+
segments: [],
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
if (enableDebugLog) {
|
|
171
|
+
const boxProps = element.props;
|
|
172
|
+
// Ensure the Box has no props other than the default ones and key.
|
|
173
|
+
let maxExpectedProps = 4;
|
|
174
|
+
if (boxProps.children !== undefined) {
|
|
175
|
+
// Allow the key prop, which is automatically added by React.
|
|
176
|
+
maxExpectedProps += 1;
|
|
177
|
+
}
|
|
178
|
+
if (boxProps.flexDirection !== undefined &&
|
|
179
|
+
boxProps.flexDirection !== 'row') {
|
|
180
|
+
debugReportError('MaxSizedBox children must have flexDirection="row".', element);
|
|
181
|
+
}
|
|
182
|
+
if (Object.keys(boxProps).length > maxExpectedProps) {
|
|
183
|
+
debugReportError(`Boxes inside MaxSizedBox must not have additional props. ${Object.keys(boxProps).join(', ')}`, element);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
const row = {
|
|
187
|
+
noWrapSegments: [],
|
|
188
|
+
segments: [],
|
|
189
|
+
};
|
|
190
|
+
let hasSeenWrapped = false;
|
|
191
|
+
function visitRowChild(element, parentProps) {
|
|
192
|
+
if (element === null) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (typeof element === 'string' || typeof element === 'number') {
|
|
196
|
+
const text = String(element);
|
|
197
|
+
// Ignore empty strings as they don't need to be rendered.
|
|
198
|
+
if (!text) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
const segment = { text, props: parentProps ?? {} };
|
|
202
|
+
// Check the 'wrap' property from the merged props to decide the segment type.
|
|
203
|
+
if (parentProps === undefined || parentProps['wrap'] === 'wrap') {
|
|
204
|
+
hasSeenWrapped = true;
|
|
205
|
+
row.segments.push(segment);
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
if (!hasSeenWrapped) {
|
|
209
|
+
row.noWrapSegments.push(segment);
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
// put in the wrapped segment as the row is already stuck in wrapped mode.
|
|
213
|
+
row.segments.push(segment);
|
|
214
|
+
debugReportError('Text elements without wrapping cannot appear after elements with wrapping in the same row.', element);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (!React.isValidElement(element)) {
|
|
220
|
+
debugReportError('Invalid element.', element);
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
if (element.type === Fragment) {
|
|
224
|
+
React.Children.forEach(element.props.children, (child) => visitRowChild(child, parentProps));
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
if (element.type !== Text) {
|
|
228
|
+
debugReportError('Children of a row Box must be <Text> elements.', element);
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
// Merge props from parent <Text> elements. Child props take precedence.
|
|
232
|
+
const { children, ...currentProps } = element.props;
|
|
233
|
+
const mergedProps = parentProps === undefined
|
|
234
|
+
? currentProps
|
|
235
|
+
: { ...parentProps, ...currentProps };
|
|
236
|
+
React.Children.forEach(children, (child) => visitRowChild(child, mergedProps));
|
|
237
|
+
}
|
|
238
|
+
React.Children.forEach(element.props.children, (child) => visitRowChild(child, undefined));
|
|
239
|
+
return row;
|
|
240
|
+
}
|
|
241
|
+
function layoutInkElementAsStyledText(element, maxWidth, output) {
|
|
242
|
+
const row = visitBoxRow(element);
|
|
243
|
+
if (row.segments.length === 0 && row.noWrapSegments.length === 0) {
|
|
244
|
+
// Return a single empty line if there are no segments to display
|
|
245
|
+
output.push([]);
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
const lines = [];
|
|
249
|
+
const nonWrappingContent = [];
|
|
250
|
+
let noWrappingWidth = 0;
|
|
251
|
+
// First, lay out the non-wrapping segments
|
|
252
|
+
row.noWrapSegments.forEach((segment) => {
|
|
253
|
+
nonWrappingContent.push(segment);
|
|
254
|
+
noWrappingWidth += stringWidth(segment.text);
|
|
255
|
+
});
|
|
256
|
+
if (row.segments.length === 0) {
|
|
257
|
+
// This is a bit of a special case when there are no segments that allow
|
|
258
|
+
// wrapping. It would be ideal to unify.
|
|
259
|
+
const lines = [];
|
|
260
|
+
let currentLine = [];
|
|
261
|
+
nonWrappingContent.forEach((segment) => {
|
|
262
|
+
const textLines = segment.text.split('\n');
|
|
263
|
+
textLines.forEach((text, index) => {
|
|
264
|
+
if (index > 0) {
|
|
265
|
+
lines.push(currentLine);
|
|
266
|
+
currentLine = [];
|
|
267
|
+
}
|
|
268
|
+
if (text) {
|
|
269
|
+
currentLine.push({ text, props: segment.props });
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
if (currentLine.length > 0 ||
|
|
274
|
+
(nonWrappingContent.length > 0 &&
|
|
275
|
+
nonWrappingContent[nonWrappingContent.length - 1].text.endsWith('\n'))) {
|
|
276
|
+
lines.push(currentLine);
|
|
277
|
+
}
|
|
278
|
+
for (const line of lines) {
|
|
279
|
+
output.push(line);
|
|
280
|
+
}
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
const availableWidth = maxWidth - noWrappingWidth;
|
|
284
|
+
if (availableWidth < 1) {
|
|
285
|
+
// No room to render the wrapping segments. Truncate the non-wrapping
|
|
286
|
+
// content and append an ellipsis so the line always fits within maxWidth.
|
|
287
|
+
// Handle line breaks in non-wrapping content when truncating
|
|
288
|
+
const lines = [];
|
|
289
|
+
let currentLine = [];
|
|
290
|
+
let currentLineWidth = 0;
|
|
291
|
+
for (const segment of nonWrappingContent) {
|
|
292
|
+
const textLines = segment.text.split('\n');
|
|
293
|
+
textLines.forEach((text, index) => {
|
|
294
|
+
if (index > 0) {
|
|
295
|
+
// New line encountered, finish current line and start new one
|
|
296
|
+
lines.push(currentLine);
|
|
297
|
+
currentLine = [];
|
|
298
|
+
currentLineWidth = 0;
|
|
299
|
+
}
|
|
300
|
+
if (text) {
|
|
301
|
+
const textWidth = stringWidth(text);
|
|
302
|
+
// When there's no room for wrapping content, be very conservative
|
|
303
|
+
// For lines after the first line break, show only ellipsis if the text would be truncated
|
|
304
|
+
if (index > 0 && textWidth > 0) {
|
|
305
|
+
// This is content after a line break - just show ellipsis to indicate truncation
|
|
306
|
+
currentLine.push({ text: '…', props: {} });
|
|
307
|
+
currentLineWidth = stringWidth('…');
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
// This is the first line or a continuation, try to fit what we can
|
|
311
|
+
const maxContentWidth = Math.max(0, maxWidth - stringWidth('…'));
|
|
312
|
+
if (textWidth <= maxContentWidth && currentLineWidth === 0) {
|
|
313
|
+
// Text fits completely on this line
|
|
314
|
+
currentLine.push({ text, props: segment.props });
|
|
315
|
+
currentLineWidth += textWidth;
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
// Text needs truncation
|
|
319
|
+
const codePoints = toCodePoints(text);
|
|
320
|
+
let truncatedWidth = currentLineWidth;
|
|
321
|
+
let sliceEndIndex = 0;
|
|
322
|
+
for (const char of codePoints) {
|
|
323
|
+
const charWidth = stringWidth(char);
|
|
324
|
+
if (truncatedWidth + charWidth > maxContentWidth) {
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
truncatedWidth += charWidth;
|
|
328
|
+
sliceEndIndex++;
|
|
329
|
+
}
|
|
330
|
+
const slice = codePoints.slice(0, sliceEndIndex).join('');
|
|
331
|
+
if (slice) {
|
|
332
|
+
currentLine.push({ text: slice, props: segment.props });
|
|
333
|
+
}
|
|
334
|
+
currentLine.push({ text: '…', props: {} });
|
|
335
|
+
currentLineWidth = truncatedWidth + stringWidth('…');
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
// Add the last line if it has content or if the last segment ended with \n
|
|
342
|
+
if (currentLine.length > 0 ||
|
|
343
|
+
(nonWrappingContent.length > 0 &&
|
|
344
|
+
nonWrappingContent[nonWrappingContent.length - 1].text.endsWith('\n'))) {
|
|
345
|
+
lines.push(currentLine);
|
|
346
|
+
}
|
|
347
|
+
// If we don't have any lines yet, add an ellipsis line
|
|
348
|
+
if (lines.length === 0) {
|
|
349
|
+
lines.push([{ text: '…', props: {} }]);
|
|
350
|
+
}
|
|
351
|
+
for (const line of lines) {
|
|
352
|
+
output.push(line);
|
|
353
|
+
}
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
// Now, lay out the wrapping segments
|
|
357
|
+
let wrappingPart = [];
|
|
358
|
+
let wrappingPartWidth = 0;
|
|
359
|
+
function addWrappingPartToLines() {
|
|
360
|
+
if (lines.length === 0) {
|
|
361
|
+
lines.push([...nonWrappingContent, ...wrappingPart]);
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
if (noWrappingWidth > 0) {
|
|
365
|
+
lines.push([
|
|
366
|
+
...[{ text: ' '.repeat(noWrappingWidth), props: {} }],
|
|
367
|
+
...wrappingPart,
|
|
368
|
+
]);
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
lines.push(wrappingPart);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
wrappingPart = [];
|
|
375
|
+
wrappingPartWidth = 0;
|
|
376
|
+
}
|
|
377
|
+
function addToWrappingPart(text, props) {
|
|
378
|
+
if (wrappingPart.length > 0 &&
|
|
379
|
+
wrappingPart[wrappingPart.length - 1].props === props) {
|
|
380
|
+
wrappingPart[wrappingPart.length - 1].text += text;
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
wrappingPart.push({ text, props });
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
row.segments.forEach((segment) => {
|
|
387
|
+
const linesFromSegment = segment.text.split('\n');
|
|
388
|
+
linesFromSegment.forEach((lineText, lineIndex) => {
|
|
389
|
+
if (lineIndex > 0) {
|
|
390
|
+
addWrappingPartToLines();
|
|
391
|
+
}
|
|
392
|
+
const words = lineText.split(/(\s+)/); // Split by whitespace
|
|
393
|
+
words.forEach((word) => {
|
|
394
|
+
if (!word)
|
|
395
|
+
return;
|
|
396
|
+
const wordWidth = stringWidth(word);
|
|
397
|
+
if (wrappingPartWidth + wordWidth > availableWidth &&
|
|
398
|
+
wrappingPartWidth > 0) {
|
|
399
|
+
addWrappingPartToLines();
|
|
400
|
+
if (/^\s+$/.test(word)) {
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
if (wordWidth > availableWidth) {
|
|
405
|
+
// Word is too long, needs to be split across lines
|
|
406
|
+
const wordAsCodePoints = toCodePoints(word);
|
|
407
|
+
let remainingWordAsCodePoints = wordAsCodePoints;
|
|
408
|
+
while (remainingWordAsCodePoints.length > 0) {
|
|
409
|
+
let splitIndex = 0;
|
|
410
|
+
let currentSplitWidth = 0;
|
|
411
|
+
for (const char of remainingWordAsCodePoints) {
|
|
412
|
+
const charWidth = stringWidth(char);
|
|
413
|
+
if (wrappingPartWidth + currentSplitWidth + charWidth >
|
|
414
|
+
availableWidth) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
currentSplitWidth += charWidth;
|
|
418
|
+
splitIndex++;
|
|
419
|
+
}
|
|
420
|
+
if (splitIndex > 0) {
|
|
421
|
+
const part = remainingWordAsCodePoints
|
|
422
|
+
.slice(0, splitIndex)
|
|
423
|
+
.join('');
|
|
424
|
+
addToWrappingPart(part, segment.props);
|
|
425
|
+
wrappingPartWidth += stringWidth(part);
|
|
426
|
+
remainingWordAsCodePoints =
|
|
427
|
+
remainingWordAsCodePoints.slice(splitIndex);
|
|
428
|
+
}
|
|
429
|
+
if (remainingWordAsCodePoints.length > 0) {
|
|
430
|
+
addWrappingPartToLines();
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
addToWrappingPart(word, segment.props);
|
|
436
|
+
wrappingPartWidth += wordWidth;
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
// Split omits a trailing newline, so we need to handle it here
|
|
441
|
+
if (segment.text.endsWith('\n')) {
|
|
442
|
+
addWrappingPartToLines();
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
if (wrappingPart.length > 0) {
|
|
446
|
+
addWrappingPartToLines();
|
|
447
|
+
}
|
|
448
|
+
for (const line of lines) {
|
|
449
|
+
output.push(line);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
//# sourceMappingURL=MaxSizedBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaxSizedBox.js","sourceRoot":"","sources":["../../../../../src/ui/components/shared/MaxSizedBox.tsx"],"names":[],"mappings":";AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,IAAI,cAAc,GAAG,KAAK,CAAC;AAE3B;;;;GAIG;AACH,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yBAAyB;gCACvB,yBAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;wBAChD,CAAC;wBAED,IAAI,yBAAyB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;4BACzC,sBAAsB,EAAE,CAAC;wBAC3B,CAAC;oBACH,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;oBACvC,iBAAiB,IAAI,SAAS,CAAC;gBACjC,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,+DAA+D;QAC/D,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,sBAAsB,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,sBAAsB,EAAE,CAAC;IAC3B,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Google LLC
|
|
5
|
+
* Portions Copyright 2025 TerminaI Authors
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
*/
|
|
8
|
+
import { render } from '../../../test-utils/render.js';
|
|
9
|
+
import { OverflowProvider } from '../../contexts/OverflowContext.js';
|
|
10
|
+
import { MaxSizedBox, setMaxSizedBoxDebugging } from './MaxSizedBox.js';
|
|
11
|
+
import { Box, Text } from 'ink';
|
|
12
|
+
import { describe, it, expect } from 'vitest';
|
|
13
|
+
describe('<MaxSizedBox />', () => {
|
|
14
|
+
// Make sure MaxSizedBox logs errors on invalid configurations.
|
|
15
|
+
// This is useful for debugging issues with the component.
|
|
16
|
+
// It should be set to false in production for performance and to avoid
|
|
17
|
+
// cluttering the console if there are ignorable issues.
|
|
18
|
+
setMaxSizedBoxDebugging(true);
|
|
19
|
+
it('renders children without truncation when they fit', () => {
|
|
20
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 80, maxHeight: 10, children: _jsx(Box, { children: _jsx(Text, { children: "Hello, World!" }) }) }) }));
|
|
21
|
+
expect(lastFrame()).equals('Hello, World!');
|
|
22
|
+
unmount();
|
|
23
|
+
});
|
|
24
|
+
it('hides lines when content exceeds maxHeight', () => {
|
|
25
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 80, maxHeight: 2, children: [_jsx(Box, { children: _jsx(Text, { children: "Line 1" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 2" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 3" }) })] }) }));
|
|
26
|
+
expect(lastFrame()).equals(`... first 2 lines hidden ...
|
|
27
|
+
Line 3`);
|
|
28
|
+
unmount();
|
|
29
|
+
});
|
|
30
|
+
it('hides lines at the end when content exceeds maxHeight and overflowDirection is bottom', () => {
|
|
31
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 80, maxHeight: 2, overflowDirection: "bottom", children: [_jsx(Box, { children: _jsx(Text, { children: "Line 1" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 2" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 3" }) })] }) }));
|
|
32
|
+
expect(lastFrame()).equals(`Line 1
|
|
33
|
+
... last 2 lines hidden ...`);
|
|
34
|
+
unmount();
|
|
35
|
+
});
|
|
36
|
+
it('wraps text that exceeds maxWidth', () => {
|
|
37
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 10, maxHeight: 5, children: _jsx(Box, { children: _jsx(Text, { wrap: "wrap", children: "This is a long line of text" }) }) }) }));
|
|
38
|
+
expect(lastFrame()).equals(`This is a
|
|
39
|
+
long line
|
|
40
|
+
of text`);
|
|
41
|
+
unmount();
|
|
42
|
+
});
|
|
43
|
+
it('handles mixed wrapping and non-wrapping segments', () => {
|
|
44
|
+
const multilineText = `This part will wrap around.
|
|
45
|
+
And has a line break.
|
|
46
|
+
Leading spaces preserved.`;
|
|
47
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 20, maxHeight: 20, children: [_jsx(Box, { children: _jsx(Text, { children: "Example" }) }), _jsxs(Box, { children: [_jsx(Text, { children: "No Wrap: " }), _jsx(Text, { wrap: "wrap", children: multilineText })] }), _jsxs(Box, { children: [_jsx(Text, { children: "Longer No Wrap: " }), _jsx(Text, { wrap: "wrap", children: "This part will wrap around." })] })] }) }));
|
|
48
|
+
expect(lastFrame()).equals(`Example
|
|
49
|
+
No Wrap: This part
|
|
50
|
+
will wrap
|
|
51
|
+
around.
|
|
52
|
+
And has a
|
|
53
|
+
line break.
|
|
54
|
+
Leading
|
|
55
|
+
spaces
|
|
56
|
+
preserved.
|
|
57
|
+
Longer No Wrap: This
|
|
58
|
+
part
|
|
59
|
+
will
|
|
60
|
+
wrap
|
|
61
|
+
arou
|
|
62
|
+
nd.`);
|
|
63
|
+
unmount();
|
|
64
|
+
});
|
|
65
|
+
it('handles words longer than maxWidth by splitting them', () => {
|
|
66
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 5, maxHeight: 5, children: _jsx(Box, { children: _jsx(Text, { wrap: "wrap", children: "Supercalifragilisticexpialidocious" }) }) }) }));
|
|
67
|
+
expect(lastFrame()).equals(`... …
|
|
68
|
+
istic
|
|
69
|
+
expia
|
|
70
|
+
lidoc
|
|
71
|
+
ious`);
|
|
72
|
+
unmount();
|
|
73
|
+
});
|
|
74
|
+
it('does not truncate when maxHeight is undefined', () => {
|
|
75
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 80, maxHeight: undefined, children: [_jsx(Box, { children: _jsx(Text, { children: "Line 1" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 2" }) })] }) }));
|
|
76
|
+
expect(lastFrame()).equals(`Line 1
|
|
77
|
+
Line 2`);
|
|
78
|
+
unmount();
|
|
79
|
+
});
|
|
80
|
+
it('shows plural "lines" when more than one line is hidden', () => {
|
|
81
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 80, maxHeight: 2, children: [_jsx(Box, { children: _jsx(Text, { children: "Line 1" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 2" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 3" }) })] }) }));
|
|
82
|
+
expect(lastFrame()).equals(`... first 2 lines hidden ...
|
|
83
|
+
Line 3`);
|
|
84
|
+
unmount();
|
|
85
|
+
});
|
|
86
|
+
it('shows plural "lines" when more than one line is hidden and overflowDirection is bottom', () => {
|
|
87
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 80, maxHeight: 2, overflowDirection: "bottom", children: [_jsx(Box, { children: _jsx(Text, { children: "Line 1" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 2" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 3" }) })] }) }));
|
|
88
|
+
expect(lastFrame()).equals(`Line 1
|
|
89
|
+
... last 2 lines hidden ...`);
|
|
90
|
+
unmount();
|
|
91
|
+
});
|
|
92
|
+
it('renders an empty box for empty children', () => {
|
|
93
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 80, maxHeight: 10 }) }));
|
|
94
|
+
// Expect an empty string or a box with nothing in it.
|
|
95
|
+
// Ink renders an empty box as an empty string.
|
|
96
|
+
expect(lastFrame()).equals('');
|
|
97
|
+
unmount();
|
|
98
|
+
});
|
|
99
|
+
it('wraps text with multi-byte unicode characters correctly', () => {
|
|
100
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 5, maxHeight: 5, children: _jsx(Box, { children: _jsx(Text, { wrap: "wrap", children: "\u4F60\u597D\u4E16\u754C" }) }) }) }));
|
|
101
|
+
// "你好" has a visual width of 4. "世界" has a visual width of 4.
|
|
102
|
+
// With maxWidth=5, it should wrap after the second character.
|
|
103
|
+
expect(lastFrame()).equals(`你好
|
|
104
|
+
世界`);
|
|
105
|
+
unmount();
|
|
106
|
+
});
|
|
107
|
+
it('wraps text with multi-byte emoji characters correctly', () => {
|
|
108
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 5, maxHeight: 5, children: _jsx(Box, { children: _jsx(Text, { wrap: "wrap", children: "\uD83D\uDC36\uD83D\uDC36\uD83D\uDC36\uD83D\uDC36\uD83D\uDC36" }) }) }) }));
|
|
109
|
+
// Each "🐶" has a visual width of 2.
|
|
110
|
+
// With maxWidth=5, it should wrap every 2 emojis.
|
|
111
|
+
expect(lastFrame()).equals(`🐶🐶
|
|
112
|
+
🐶🐶
|
|
113
|
+
🐶`);
|
|
114
|
+
unmount();
|
|
115
|
+
});
|
|
116
|
+
it('falls back to an ellipsis when width is extremely small', () => {
|
|
117
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 2, maxHeight: 2, children: _jsxs(Box, { children: [_jsx(Text, { children: "No" }), _jsx(Text, { wrap: "wrap", children: "wrap" })] }) }) }));
|
|
118
|
+
expect(lastFrame()).equals('N…');
|
|
119
|
+
unmount();
|
|
120
|
+
});
|
|
121
|
+
it('truncates long non-wrapping text with ellipsis', () => {
|
|
122
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 3, maxHeight: 2, children: _jsxs(Box, { children: [_jsx(Text, { children: "ABCDE" }), _jsx(Text, { wrap: "wrap", children: "wrap" })] }) }) }));
|
|
123
|
+
expect(lastFrame()).equals('AB…');
|
|
124
|
+
unmount();
|
|
125
|
+
});
|
|
126
|
+
it('truncates non-wrapping text containing line breaks', () => {
|
|
127
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 3, maxHeight: 2, children: _jsxs(Box, { children: [_jsx(Text, { children: 'A\nBCDE' }), _jsx(Text, { wrap: "wrap", children: "wrap" })] }) }) }));
|
|
128
|
+
expect(lastFrame()).equals(`A\n…`);
|
|
129
|
+
unmount();
|
|
130
|
+
});
|
|
131
|
+
it('truncates emoji characters correctly with ellipsis', () => {
|
|
132
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 3, maxHeight: 2, children: _jsxs(Box, { children: [_jsx(Text, { children: "\uD83D\uDC36\uD83D\uDC36\uD83D\uDC36" }), _jsx(Text, { wrap: "wrap", children: "wrap" })] }) }) }));
|
|
133
|
+
expect(lastFrame()).equals(`🐶…`);
|
|
134
|
+
unmount();
|
|
135
|
+
});
|
|
136
|
+
it('shows ellipsis for multiple rows with long non-wrapping text', () => {
|
|
137
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 3, maxHeight: 3, children: [_jsxs(Box, { children: [_jsx(Text, { children: "AAA" }), _jsx(Text, { wrap: "wrap", children: "first" })] }), _jsxs(Box, { children: [_jsx(Text, { children: "BBB" }), _jsx(Text, { wrap: "wrap", children: "second" })] }), _jsxs(Box, { children: [_jsx(Text, { children: "CCC" }), _jsx(Text, { wrap: "wrap", children: "third" })] })] }) }));
|
|
138
|
+
expect(lastFrame()).equals(`AA…\nBB…\nCC…`);
|
|
139
|
+
unmount();
|
|
140
|
+
});
|
|
141
|
+
it('accounts for additionalHiddenLinesCount', () => {
|
|
142
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 80, maxHeight: 2, additionalHiddenLinesCount: 5, children: [_jsx(Box, { children: _jsx(Text, { children: "Line 1" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 2" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 3" }) })] }) }));
|
|
143
|
+
// 1 line is hidden by overflow, 5 are additionally hidden.
|
|
144
|
+
expect(lastFrame()).equals(`... first 7 lines hidden ...
|
|
145
|
+
Line 3`);
|
|
146
|
+
unmount();
|
|
147
|
+
});
|
|
148
|
+
it('handles React.Fragment as a child', () => {
|
|
149
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsxs(MaxSizedBox, { maxWidth: 80, maxHeight: 10, children: [_jsxs(_Fragment, { children: [_jsx(Box, { children: _jsx(Text, { children: "Line 1 from Fragment" }) }), _jsx(Box, { children: _jsx(Text, { children: "Line 2 from Fragment" }) })] }), _jsx(Box, { children: _jsx(Text, { children: "Line 3 direct child" }) })] }) }));
|
|
150
|
+
expect(lastFrame()).equals(`Line 1 from Fragment
|
|
151
|
+
Line 2 from Fragment
|
|
152
|
+
Line 3 direct child`);
|
|
153
|
+
unmount();
|
|
154
|
+
});
|
|
155
|
+
it('clips a long single text child from the top', () => {
|
|
156
|
+
const THIRTY_LINES = Array.from({ length: 30 }, (_, i) => `Line ${i + 1}`).join('\n');
|
|
157
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 80, maxHeight: 10, children: _jsx(Box, { children: _jsx(Text, { children: THIRTY_LINES }) }) }) }));
|
|
158
|
+
const expected = [
|
|
159
|
+
'... first 21 lines hidden ...',
|
|
160
|
+
...Array.from({ length: 9 }, (_, i) => `Line ${22 + i}`),
|
|
161
|
+
].join('\n');
|
|
162
|
+
expect(lastFrame()).equals(expected);
|
|
163
|
+
unmount();
|
|
164
|
+
});
|
|
165
|
+
it('clips a long single text child from the bottom', () => {
|
|
166
|
+
const THIRTY_LINES = Array.from({ length: 30 }, (_, i) => `Line ${i + 1}`).join('\n');
|
|
167
|
+
const { lastFrame, unmount } = render(_jsx(OverflowProvider, { children: _jsx(MaxSizedBox, { maxWidth: 80, maxHeight: 10, overflowDirection: "bottom", children: _jsx(Box, { children: _jsx(Text, { children: THIRTY_LINES }) }) }) }));
|
|
168
|
+
const expected = [
|
|
169
|
+
...Array.from({ length: 9 }, (_, i) => `Line ${i + 1}`),
|
|
170
|
+
'... last 21 lines hidden ...',
|
|
171
|
+
].join('\n');
|
|
172
|
+
expect(lastFrame()).equals(expected);
|
|
173
|
+
unmount();
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
//# sourceMappingURL=MaxSizedBox.test.js.map
|