@papert-code/papert-code 0.2.4 → 0.2.5
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/LICENSE +203 -0
- package/README.md +302 -0
- package/dist/cli.js +363533 -0
- package/dist/vendor/ripgrep/COPYING +3 -0
- package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/x64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/package.json +117 -79
- package/dist/.last_build +0 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -29
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -97
- package/dist/src/api/index.d.ts +0 -11
- package/dist/src/api/index.js +0 -12
- package/dist/src/api/index.js.map +0 -1
- package/dist/src/api/papertAgent.d.ts +0 -49
- package/dist/src/api/papertAgent.js +0 -98
- package/dist/src/api/papertAgent.js.map +0 -1
- package/dist/src/commands/extensions/disable.d.ts +0 -13
- package/dist/src/commands/extensions/disable.js +0 -56
- package/dist/src/commands/extensions/disable.js.map +0 -1
- package/dist/src/commands/extensions/enable.d.ts +0 -13
- package/dist/src/commands/extensions/enable.js +0 -59
- package/dist/src/commands/extensions/enable.js.map +0 -1
- package/dist/src/commands/extensions/examples/context/PAPERT.md +0 -8
- package/dist/src/commands/extensions/examples/context/papert-extension.json +0 -4
- package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +0 -6
- package/dist/src/commands/extensions/examples/custom-commands/papert-extension.json +0 -4
- package/dist/src/commands/extensions/examples/exclude-tools/papert-extension.json +0 -5
- package/dist/src/commands/extensions/examples/mcp-server/example.ts +0 -60
- package/dist/src/commands/extensions/examples/mcp-server/package.json +0 -18
- package/dist/src/commands/extensions/examples/mcp-server/papert-extension.json +0 -11
- package/dist/src/commands/extensions/examples/mcp-server/tsconfig.json +0 -13
- package/dist/src/commands/extensions/install.d.ts +0 -14
- package/dist/src/commands/extensions/install.js +0 -78
- package/dist/src/commands/extensions/install.js.map +0 -1
- package/dist/src/commands/extensions/install.test.d.ts +0 -6
- package/dist/src/commands/extensions/install.test.js +0 -102
- package/dist/src/commands/extensions/install.test.js.map +0 -1
- package/dist/src/commands/extensions/link.d.ts +0 -12
- package/dist/src/commands/extensions/link.js +0 -37
- package/dist/src/commands/extensions/link.js.map +0 -1
- package/dist/src/commands/extensions/list.d.ts +0 -8
- package/dist/src/commands/extensions/list.js +0 -32
- package/dist/src/commands/extensions/list.js.map +0 -1
- package/dist/src/commands/extensions/new.d.ts +0 -7
- package/dist/src/commands/extensions/new.js +0 -90
- package/dist/src/commands/extensions/new.js.map +0 -1
- package/dist/src/commands/extensions/new.test.d.ts +0 -6
- package/dist/src/commands/extensions/new.test.js +0 -59
- package/dist/src/commands/extensions/new.test.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.d.ts +0 -12
- package/dist/src/commands/extensions/uninstall.js +0 -38
- package/dist/src/commands/extensions/uninstall.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.test.d.ts +0 -6
- package/dist/src/commands/extensions/uninstall.test.js +0 -18
- package/dist/src/commands/extensions/uninstall.test.js.map +0 -1
- package/dist/src/commands/extensions/update.d.ts +0 -13
- package/dist/src/commands/extensions/update.js +0 -104
- package/dist/src/commands/extensions/update.js.map +0 -1
- package/dist/src/commands/extensions.d.ts +0 -7
- package/dist/src/commands/extensions.js +0 -33
- package/dist/src/commands/extensions.js.map +0 -1
- package/dist/src/commands/mcp/add.d.ts +0 -7
- package/dist/src/commands/mcp/add.js +0 -171
- package/dist/src/commands/mcp/add.js.map +0 -1
- package/dist/src/commands/mcp/list.d.ts +0 -8
- package/dist/src/commands/mcp/list.js +0 -111
- package/dist/src/commands/mcp/list.js.map +0 -1
- package/dist/src/commands/mcp/remove.d.ts +0 -7
- package/dist/src/commands/mcp/remove.js +0 -44
- package/dist/src/commands/mcp/remove.js.map +0 -1
- package/dist/src/commands/mcp.d.ts +0 -7
- package/dist/src/commands/mcp.js +0 -23
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/config/auth.d.ts +0 -6
- package/dist/src/config/auth.js +0 -25
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/auth.test.d.ts +0 -6
- package/dist/src/config/auth.test.js +0 -37
- package/dist/src/config/auth.test.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -64
- package/dist/src/config/config.js +0 -602
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -83
- package/dist/src/config/extension.js +0 -534
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.d.ts +0 -47
- package/dist/src/config/extensions/extensionEnablement.js +0 -189
- package/dist/src/config/extensions/extensionEnablement.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.test.d.ts +0 -6
- package/dist/src/config/extensions/extensionEnablement.test.js +0 -333
- package/dist/src/config/extensions/extensionEnablement.test.js.map +0 -1
- package/dist/src/config/extensions/github.d.ts +0 -30
- package/dist/src/config/extensions/github.js +0 -322
- package/dist/src/config/extensions/github.js.map +0 -1
- package/dist/src/config/extensions/github.test.d.ts +0 -6
- package/dist/src/config/extensions/github.test.js +0 -334
- package/dist/src/config/extensions/github.test.js.map +0 -1
- package/dist/src/config/extensions/update.d.ts +0 -19
- package/dist/src/config/extensions/update.js +0 -113
- package/dist/src/config/extensions/update.js.map +0 -1
- package/dist/src/config/extensions/update.test.d.ts +0 -6
- package/dist/src/config/extensions/update.test.js +0 -342
- package/dist/src/config/extensions/update.test.js.map +0 -1
- package/dist/src/config/extensions/variableSchema.d.ts +0 -36
- package/dist/src/config/extensions/variableSchema.js +0 -22
- package/dist/src/config/extensions/variableSchema.js.map +0 -1
- package/dist/src/config/extensions/variables.d.ts +0 -17
- package/dist/src/config/extensions/variables.js +0 -40
- package/dist/src/config/extensions/variables.js.map +0 -1
- package/dist/src/config/extensions/variables.test.d.ts +0 -6
- package/dist/src/config/extensions/variables.test.js +0 -17
- package/dist/src/config/extensions/variables.test.js.map +0 -1
- package/dist/src/config/keyBindings.d.ts +0 -70
- package/dist/src/config/keyBindings.js +0 -130
- package/dist/src/config/keyBindings.js.map +0 -1
- package/dist/src/config/keyBindings.test.d.ts +0 -6
- package/dist/src/config/keyBindings.test.js +0 -51
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -13
- package/dist/src/config/sandboxConfig.js +0 -73
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -67
- package/dist/src/config/settings.js +0 -618
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/config/settingsSchema.d.ts +0 -1150
- package/dist/src/config/settingsSchema.js +0 -1101
- package/dist/src/config/settingsSchema.js.map +0 -1
- package/dist/src/config/settingsSchema.test.d.ts +0 -6
- package/dist/src/config/settingsSchema.test.js +0 -201
- package/dist/src/config/settingsSchema.test.js.map +0 -1
- package/dist/src/config/trustedFolders.d.ts +0 -56
- package/dist/src/config/trustedFolders.js +0 -168
- package/dist/src/config/trustedFolders.js.map +0 -1
- package/dist/src/config/trustedFolders.test.d.ts +0 -6
- package/dist/src/config/trustedFolders.test.js +0 -340
- package/dist/src/config/trustedFolders.test.js.map +0 -1
- package/dist/src/config/webSearch.d.ts +0 -35
- package/dist/src/config/webSearch.js +0 -87
- package/dist/src/config/webSearch.js.map +0 -1
- package/dist/src/core/auth.d.ts +0 -13
- package/dist/src/core/auth.js +0 -27
- package/dist/src/core/auth.js.map +0 -1
- package/dist/src/core/initializer.d.ts +0 -21
- package/dist/src/core/initializer.js +0 -33
- package/dist/src/core/initializer.js.map +0 -1
- package/dist/src/core/theme.d.ts +0 -12
- package/dist/src/core/theme.js +0 -20
- package/dist/src/core/theme.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -12
- package/dist/src/gemini.js +0 -310
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -394
- package/dist/src/gemini.test.js.map +0 -1
- package/dist/src/generated/git-commit.d.ts +0 -7
- package/dist/src/generated/git-commit.js +0 -10
- package/dist/src/generated/git-commit.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -8
- package/dist/src/nonInteractiveCli.js +0 -121
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/nonInteractiveCliCommands.d.ts +0 -17
- package/dist/src/nonInteractiveCliCommands.js +0 -79
- package/dist/src/nonInteractiveCliCommands.js.map +0 -1
- package/dist/src/patches/is-in-ci.d.ts +0 -7
- package/dist/src/patches/is-in-ci.js +0 -15
- package/dist/src/patches/is-in-ci.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +0 -24
- package/dist/src/services/BuiltinCommandLoader.js +0 -91
- package/dist/src/services/BuiltinCommandLoader.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
- package/dist/src/services/BuiltinCommandLoader.test.js +0 -164
- package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -55
- package/dist/src/services/CommandService.js +0 -90
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/services/CommandService.test.d.ts +0 -6
- package/dist/src/services/CommandService.test.js +0 -233
- package/dist/src/services/CommandService.test.js.map +0 -1
- package/dist/src/services/FileCommandLoader.d.ts +0 -51
- package/dist/src/services/FileCommandLoader.js +0 -230
- package/dist/src/services/FileCommandLoader.js.map +0 -1
- package/dist/src/services/McpPromptLoader.d.ts +0 -35
- package/dist/src/services/McpPromptLoader.js +0 -253
- package/dist/src/services/McpPromptLoader.js.map +0 -1
- package/dist/src/services/McpPromptLoader.test.d.ts +0 -6
- package/dist/src/services/McpPromptLoader.test.js +0 -341
- package/dist/src/services/McpPromptLoader.test.js.map +0 -1
- package/dist/src/services/prompt-processors/argumentProcessor.d.ts +0 -16
- package/dist/src/services/prompt-processors/argumentProcessor.js +0 -21
- package/dist/src/services/prompt-processors/argumentProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.d.ts +0 -12
- package/dist/src/services/prompt-processors/atFileProcessor.js +0 -62
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +0 -174
- package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.d.ts +0 -29
- package/dist/src/services/prompt-processors/injectionParser.js +0 -60
- package/dist/src/services/prompt-processors/injectionParser.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/injectionParser.test.js +0 -189
- package/dist/src/services/prompt-processors/injectionParser.test.js.map +0 -1
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +0 -27
- package/dist/src/services/prompt-processors/shellProcessor.js +0 -128
- package/dist/src/services/prompt-processors/shellProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/types.d.ts +0 -45
- package/dist/src/services/prompt-processors/types.js +0 -20
- package/dist/src/services/prompt-processors/types.js.map +0 -1
- package/dist/src/services/types.d.ts +0 -22
- package/dist/src/services/types.js +0 -7
- package/dist/src/services/types.js.map +0 -1
- package/dist/src/test-utils/createExtension.d.ts +0 -15
- package/dist/src/test-utils/createExtension.js +0 -25
- package/dist/src/test-utils/createExtension.js.map +0 -1
- package/dist/src/test-utils/customMatchers.d.ts +0 -14
- package/dist/src/test-utils/customMatchers.js +0 -40
- package/dist/src/test-utils/customMatchers.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.d.ts +0 -18
- package/dist/src/test-utils/mockCommandContext.js +0 -92
- package/dist/src/test-utils/mockCommandContext.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.test.d.ts +0 -6
- package/dist/src/test-utils/mockCommandContext.test.js +0 -51
- package/dist/src/test-utils/mockCommandContext.test.js.map +0 -1
- package/dist/src/test-utils/render.d.ts +0 -12
- package/dist/src/test-utils/render.js +0 -14
- package/dist/src/test-utils/render.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -6
- package/dist/src/ui/App.js +0 -37
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/AppContainer.d.ts +0 -17
- package/dist/src/ui/AppContainer.js +0 -1077
- package/dist/src/ui/AppContainer.js.map +0 -1
- package/dist/src/ui/AppContainer.test.d.ts +0 -6
- package/dist/src/ui/AppContainer.test.js +0 -831
- package/dist/src/ui/AppContainer.test.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -16
- package/dist/src/ui/IdeIntegrationNudge.js +0 -50
- package/dist/src/ui/IdeIntegrationNudge.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.d.ts +0 -19
- package/dist/src/ui/auth/AuthDialog.js +0 -94
- package/dist/src/ui/auth/AuthDialog.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.test.d.ts +0 -6
- package/dist/src/ui/auth/AuthDialog.test.js +0 -403
- package/dist/src/ui/auth/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/auth/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/auth/AuthInProgress.js +0 -23
- package/dist/src/ui/auth/AuthInProgress.js.map +0 -1
- package/dist/src/ui/auth/useAuth.d.ts +0 -24
- package/dist/src/ui/auth/useAuth.js +0 -108
- package/dist/src/ui/auth/useAuth.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -54
- package/dist/src/ui/colors.js.map +0 -1
- package/dist/src/ui/commands/aboutCommand.d.ts +0 -7
- package/dist/src/ui/commands/aboutCommand.js +0 -22
- package/dist/src/ui/commands/aboutCommand.js.map +0 -1
- package/dist/src/ui/commands/agentsCommand.d.ts +0 -7
- package/dist/src/ui/commands/agentsCommand.js +0 -32
- package/dist/src/ui/commands/agentsCommand.js.map +0 -1
- package/dist/src/ui/commands/approvalModeCommand.d.ts +0 -7
- package/dist/src/ui/commands/approvalModeCommand.js +0 -16
- package/dist/src/ui/commands/approvalModeCommand.js.map +0 -1
- package/dist/src/ui/commands/approvalModeCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/approvalModeCommand.test.js +0 -49
- package/dist/src/ui/commands/approvalModeCommand.test.js.map +0 -1
- package/dist/src/ui/commands/authCommand.d.ts +0 -7
- package/dist/src/ui/commands/authCommand.js +0 -16
- package/dist/src/ui/commands/authCommand.js.map +0 -1
- package/dist/src/ui/commands/bugCommand.d.ts +0 -7
- package/dist/src/ui/commands/bugCommand.js +0 -48
- package/dist/src/ui/commands/bugCommand.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.d.ts +0 -9
- package/dist/src/ui/commands/chatCommand.js +0 -325
- package/dist/src/ui/commands/chatCommand.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.d.ts +0 -7
- package/dist/src/ui/commands/clearCommand.js +0 -27
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.d.ts +0 -7
- package/dist/src/ui/commands/compressCommand.js +0 -66
- package/dist/src/ui/commands/compressCommand.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.d.ts +0 -7
- package/dist/src/ui/commands/copyCommand.js +0 -59
- package/dist/src/ui/commands/copyCommand.js.map +0 -1
- package/dist/src/ui/commands/corgiCommand.d.ts +0 -7
- package/dist/src/ui/commands/corgiCommand.js +0 -16
- package/dist/src/ui/commands/corgiCommand.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +0 -8
- package/dist/src/ui/commands/directoryCommand.js +0 -135
- package/dist/src/ui/commands/directoryCommand.js.map +0 -1
- package/dist/src/ui/commands/docsCommand.d.ts +0 -7
- package/dist/src/ui/commands/docsCommand.js +0 -31
- package/dist/src/ui/commands/docsCommand.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.d.ts +0 -7
- package/dist/src/ui/commands/editorCommand.js +0 -16
- package/dist/src/ui/commands/editorCommand.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.d.ts +0 -7
- package/dist/src/ui/commands/extensionsCommand.js +0 -108
- package/dist/src/ui/commands/extensionsCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -21
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.d.ts +0 -7
- package/dist/src/ui/commands/ideCommand.js +0 -225
- package/dist/src/ui/commands/ideCommand.js.map +0 -1
- package/dist/src/ui/commands/initCommand.d.ts +0 -7
- package/dist/src/ui/commands/initCommand.js +0 -115
- package/dist/src/ui/commands/initCommand.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.d.ts +0 -7
- package/dist/src/ui/commands/mcpCommand.js +0 -249
- package/dist/src/ui/commands/mcpCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/memoryCommand.js +0 -225
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.d.ts +0 -7
- package/dist/src/ui/commands/modelCommand.js +0 -53
- package/dist/src/ui/commands/modelCommand.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/modelCommand.test.js +0 -137
- package/dist/src/ui/commands/modelCommand.test.js.map +0 -1
- package/dist/src/ui/commands/permissionsCommand.d.ts +0 -7
- package/dist/src/ui/commands/permissionsCommand.js +0 -16
- package/dist/src/ui/commands/permissionsCommand.js.map +0 -1
- package/dist/src/ui/commands/permissionsCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/permissionsCommand.test.js +0 -30
- package/dist/src/ui/commands/permissionsCommand.test.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.d.ts +0 -8
- package/dist/src/ui/commands/quitCommand.js +0 -59
- package/dist/src/ui/commands/quitCommand.js.map +0 -1
- package/dist/src/ui/commands/restoreCommand.d.ts +0 -8
- package/dist/src/ui/commands/restoreCommand.js +0 -124
- package/dist/src/ui/commands/restoreCommand.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +0 -7
- package/dist/src/ui/commands/settingsCommand.js +0 -16
- package/dist/src/ui/commands/settingsCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +0 -9
- package/dist/src/ui/commands/setupGithubCommand.js +0 -154
- package/dist/src/ui/commands/setupGithubCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/setupGithubCommand.test.js +0 -167
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.d.ts +0 -7
- package/dist/src/ui/commands/statsCommand.js +0 -54
- package/dist/src/ui/commands/statsCommand.js.map +0 -1
- package/dist/src/ui/commands/summaryCommand.d.ts +0 -7
- package/dist/src/ui/commands/summaryCommand.js +0 -149
- package/dist/src/ui/commands/summaryCommand.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
- package/dist/src/ui/commands/terminalSetupCommand.js +0 -41
- package/dist/src/ui/commands/terminalSetupCommand.js.map +0 -1
- package/dist/src/ui/commands/themeCommand.d.ts +0 -7
- package/dist/src/ui/commands/themeCommand.js +0 -16
- package/dist/src/ui/commands/themeCommand.js.map +0 -1
- package/dist/src/ui/commands/toolsCommand.d.ts +0 -7
- package/dist/src/ui/commands/toolsCommand.js +0 -42
- package/dist/src/ui/commands/toolsCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -158
- package/dist/src/ui/commands/types.js +0 -12
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/commands/vimCommand.d.ts +0 -7
- package/dist/src/ui/commands/vimCommand.js +0 -23
- package/dist/src/ui/commands/vimCommand.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -10
- package/dist/src/ui/components/AboutBox.js +0 -9
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.d.ts +0 -13
- package/dist/src/ui/components/AnsiOutput.js +0 -12
- package/dist/src/ui/components/AnsiOutput.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.test.d.ts +0 -6
- package/dist/src/ui/components/AnsiOutput.test.js +0 -97
- package/dist/src/ui/components/AnsiOutput.test.js.map +0 -1
- package/dist/src/ui/components/AppHeader.d.ts +0 -10
- package/dist/src/ui/components/AppHeader.js +0 -19
- package/dist/src/ui/components/AppHeader.js.map +0 -1
- package/dist/src/ui/components/ApprovalModeDialog.d.ts +0 -21
- package/dist/src/ui/components/ApprovalModeDialog.js +0 -67
- package/dist/src/ui/components/ApprovalModeDialog.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -8
- package/dist/src/ui/components/AsciiArt.js +0 -30
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
- package/dist/src/ui/components/AutoAcceptIndicator.js +0 -31
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/components/Composer.d.ts +0 -6
- package/dist/src/ui/components/Composer.js +0 -54
- package/dist/src/ui/components/Composer.js.map +0 -1
- package/dist/src/ui/components/Composer.test.d.ts +0 -6
- package/dist/src/ui/components/Composer.test.js +0 -337
- package/dist/src/ui/components/Composer.test.js.map +0 -1
- package/dist/src/ui/components/ConfigInitDisplay.d.ts +0 -6
- package/dist/src/ui/components/ConfigInitDisplay.js +0 -38
- package/dist/src/ui/components/ConfigInitDisplay.js.map +0 -1
- package/dist/src/ui/components/ConsentPrompt.d.ts +0 -13
- package/dist/src/ui/components/ConsentPrompt.js +0 -19
- package/dist/src/ui/components/ConsentPrompt.js.map +0 -1
- package/dist/src/ui/components/ConsentPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/ConsentPrompt.test.js +0 -67
- package/dist/src/ui/components/ConsentPrompt.test.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -20
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -66
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +0 -10
- package/dist/src/ui/components/ContextUsageDisplay.js +0 -16
- package/dist/src/ui/components/ContextUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.d.ts +0 -6
- package/dist/src/ui/components/DebugProfiler.js +0 -27
- package/dist/src/ui/components/DebugProfiler.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
- package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
- package/dist/src/ui/components/DialogManager.d.ts +0 -12
- package/dist/src/ui/components/DialogManager.js +0 -134
- package/dist/src/ui/components/DialogManager.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -16
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -80
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/ExitWarning.d.ts +0 -7
- package/dist/src/ui/components/ExitWarning.js +0 -9
- package/dist/src/ui/components/ExitWarning.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +0 -17
- package/dist/src/ui/components/FolderTrustDialog.js +0 -58
- package/dist/src/ui/components/FolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/FolderTrustDialog.test.js +0 -88
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -7
- package/dist/src/ui/components/Footer.js +0 -47
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -22
- package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -23
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -13
- package/dist/src/ui/components/Header.js +0 -28
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Header.test.d.ts +0 -6
- package/dist/src/ui/components/Header.test.js +0 -37
- package/dist/src/ui/components/Header.test.js.map +0 -1
- package/dist/src/ui/components/Help.d.ts +0 -12
- package/dist/src/ui/components/Help.js +0 -13
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/Help.test.d.ts +0 -6
- package/dist/src/ui/components/Help.test.js +0 -57
- package/dist/src/ui/components/Help.test.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -21
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -31
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -183
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
- package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +0 -11
- package/dist/src/ui/components/IdeTrustChangeDialog.js +0 -32
- package/dist/src/ui/components/IdeTrustChangeDialog.js.map +0 -1
- package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js +0 -57
- package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -37
- package/dist/src/ui/components/InputPrompt.js +0 -709
- package/dist/src/ui/components/InputPrompt.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
- package/dist/src/ui/components/LoadingIndicator.js +0 -25
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/LoadingIndicator.test.js +0 -194
- package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +0 -13
- package/dist/src/ui/components/LoopDetectionConfirmation.js +0 -37
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +0 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +0 -6
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js +0 -28
- package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +0 -1
- package/dist/src/ui/components/MainContent.d.ts +0 -6
- package/dist/src/ui/components/MainContent.js +0 -28
- package/dist/src/ui/components/MainContent.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -24
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelDialog.d.ts +0 -11
- package/dist/src/ui/components/ModelDialog.js +0 -42
- package/dist/src/ui/components/ModelDialog.js.map +0 -1
- package/dist/src/ui/components/ModelDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ModelDialog.test.js +0 -158
- package/dist/src/ui/components/ModelDialog.test.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
- package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelSwitchDialog.d.ts +0 -15
- package/dist/src/ui/components/ModelSwitchDialog.js +0 -40
- package/dist/src/ui/components/ModelSwitchDialog.js.map +0 -1
- package/dist/src/ui/components/ModelSwitchDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ModelSwitchDialog.test.js +0 -128
- package/dist/src/ui/components/ModelSwitchDialog.test.js.map +0 -1
- package/dist/src/ui/components/Notifications.d.ts +0 -6
- package/dist/src/ui/components/Notifications.js +0 -23
- package/dist/src/ui/components/Notifications.js.map +0 -1
- package/dist/src/ui/components/OpenAIKeyPrompt.d.ts +0 -12
- package/dist/src/ui/components/OpenAIKeyPrompt.js +0 -137
- package/dist/src/ui/components/OpenAIKeyPrompt.js.map +0 -1
- package/dist/src/ui/components/OpenAIKeyPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/OpenAIKeyPrompt.test.js +0 -51
- package/dist/src/ui/components/OpenAIKeyPrompt.test.js.map +0 -1
- package/dist/src/ui/components/PapertOAuthProgress.d.ts +0 -16
- package/dist/src/ui/components/PapertOAuthProgress.js +0 -104
- package/dist/src/ui/components/PapertOAuthProgress.js.map +0 -1
- package/dist/src/ui/components/PapertOAuthProgress.test.d.ts +0 -6
- package/dist/src/ui/components/PapertOAuthProgress.test.js +0 -363
- package/dist/src/ui/components/PapertOAuthProgress.test.js.map +0 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +0 -13
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js +0 -48
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +0 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +0 -154
- package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/PlanSummaryDisplay.d.ts +0 -14
- package/dist/src/ui/components/PlanSummaryDisplay.js +0 -9
- package/dist/src/ui/components/PlanSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/PrepareLabel.d.ts +0 -15
- package/dist/src/ui/components/PrepareLabel.js +0 -72
- package/dist/src/ui/components/PrepareLabel.js.map +0 -1
- package/dist/src/ui/components/PrepareLabel.test.d.ts +0 -6
- package/dist/src/ui/components/PrepareLabel.test.js +0 -71
- package/dist/src/ui/components/PrepareLabel.test.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.d.ts +0 -13
- package/dist/src/ui/components/ProQuotaDialog.js +0 -23
- package/dist/src/ui/components/ProQuotaDialog.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ProQuotaDialog.test.js +0 -58
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.d.ts +0 -9
- package/dist/src/ui/components/QueuedMessageDisplay.js +0 -20
- package/dist/src/ui/components/QueuedMessageDisplay.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/QueuedMessageDisplay.test.js +0 -56
- package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +0 -1
- package/dist/src/ui/components/QuitConfirmationDialog.d.ts +0 -17
- package/dist/src/ui/components/QuitConfirmationDialog.js +0 -48
- package/dist/src/ui/components/QuitConfirmationDialog.js.map +0 -1
- package/dist/src/ui/components/QuittingDisplay.d.ts +0 -6
- package/dist/src/ui/components/QuittingDisplay.js +0 -20
- package/dist/src/ui/components/QuittingDisplay.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +0 -18
- package/dist/src/ui/components/SettingsDialog.js +0 -642
- package/dist/src/ui/components/SettingsDialog.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/SettingsDialog.test.js +0 -1036
- package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +0 -15
- package/dist/src/ui/components/ShellConfirmationDialog.js +0 -49
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +0 -40
- package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellInputPrompt.d.ts +0 -11
- package/dist/src/ui/components/ShellInputPrompt.js +0 -36
- package/dist/src/ui/components/ShellInputPrompt.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
- package/dist/src/ui/components/ShellModeIndicator.js +0 -5
- package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
- package/dist/src/ui/components/ShowMoreLines.js +0 -24
- package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
- package/dist/src/ui/components/StatsDisplay.js +0 -43
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -27
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -40
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -20
- package/dist/src/ui/components/ThemeDialog.js +0 -123
- package/dist/src/ui/components/ThemeDialog.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ThemeDialog.test.js +0 -75
- package/dist/src/ui/components/ThemeDialog.test.js.map +0 -1
- package/dist/src/ui/components/Tips.d.ts +0 -12
- package/dist/src/ui/components/Tips.js +0 -9
- package/dist/src/ui/components/Tips.js.map +0 -1
- package/dist/src/ui/components/TodoDisplay.d.ts +0 -16
- package/dist/src/ui/components/TodoDisplay.js +0 -27
- package/dist/src/ui/components/TodoDisplay.js.map +0 -1
- package/dist/src/ui/components/TodoDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/TodoDisplay.test.js +0 -77
- package/dist/src/ui/components/TodoDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
- package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
- package/dist/src/ui/components/UpdateNotification.js +0 -10
- package/dist/src/ui/components/UpdateNotification.js.map +0 -1
- package/dist/src/ui/components/WelcomeBackDialog.d.ts +0 -13
- package/dist/src/ui/components/WelcomeBackDialog.js +0 -34
- package/dist/src/ui/components/WelcomeBackDialog.js.map +0 -1
- package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +0 -11
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +0 -45
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -10
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -46
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/CompressionMessage.test.js +0 -160
- package/dist/src/ui/components/messages/CompressionMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -17
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -218
- package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
- package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -239
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
- package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessage.js +0 -11
- package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -15
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/InfoMessage.js +0 -14
- package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
- package/dist/src/ui/components/messages/SummaryMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/SummaryMessage.js +0 -35
- package/dist/src/ui/components/messages/SummaryMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -16
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -234
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -165
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -19
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -58
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +0 -261
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -19
- package/dist/src/ui/components/messages/ToolMessage.js +0 -180
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessage.test.js +0 -182
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserMessage.js +0 -13
- package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
- package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
- package/dist/src/ui/components/messages/WarningMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/WarningMessage.js +0 -10
- package/dist/src/ui/components/messages/WarningMessage.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSelectionList.d.ts +0 -38
- package/dist/src/ui/components/shared/BaseSelectionList.js +0 -72
- package/dist/src/ui/components/shared/BaseSelectionList.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +0 -6
- package/dist/src/ui/components/shared/BaseSelectionList.test.js +0 -376
- package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +0 -1
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +0 -35
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +0 -13
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +0 -79
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/EnumSelector.d.ts +0 -18
- package/dist/src/ui/components/shared/EnumSelector.js +0 -44
- package/dist/src/ui/components/shared/EnumSelector.js.map +0 -1
- package/dist/src/ui/components/shared/EnumSelector.test.d.ts +0 -6
- package/dist/src/ui/components/shared/EnumSelector.test.js +0 -70
- package/dist/src/ui/components/shared/EnumSelector.test.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
- package/dist/src/ui/components/shared/MaxSizedBox.js +0 -451
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -154
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -45
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -21
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +0 -134
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/ScopeSelector.d.ts +0 -19
- package/dist/src/ui/components/shared/ScopeSelector.js +0 -14
- package/dist/src/ui/components/shared/ScopeSelector.js.map +0 -1
- package/dist/src/ui/components/shared/TextInput.d.ts +0 -16
- package/dist/src/ui/components/shared/TextInput.js +0 -127
- package/dist/src/ui/components/shared/TextInput.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -490
- package/dist/src/ui/components/shared/text-buffer.js +0 -1598
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +0 -72
- package/dist/src/ui/components/shared/vim-buffer-actions.js +0 -552
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +0 -1
- package/dist/src/ui/components/subagents/constants.d.ts +0 -23
- package/dist/src/ui/components/subagents/constants.js +0 -67
- package/dist/src/ui/components/subagents/constants.js.map +0 -1
- package/dist/src/ui/components/subagents/create/AgentCreationWizard.d.ts +0 -15
- package/dist/src/ui/components/subagents/create/AgentCreationWizard.js +0 -173
- package/dist/src/ui/components/subagents/create/AgentCreationWizard.js.map +0 -1
- package/dist/src/ui/components/subagents/create/ColorSelector.d.ts +0 -15
- package/dist/src/ui/components/subagents/create/ColorSelector.js +0 -43
- package/dist/src/ui/components/subagents/create/ColorSelector.js.map +0 -1
- package/dist/src/ui/components/subagents/create/CreationSummary.d.ts +0 -10
- package/dist/src/ui/components/subagents/create/CreationSummary.js +0 -164
- package/dist/src/ui/components/subagents/create/CreationSummary.js.map +0 -1
- package/dist/src/ui/components/subagents/create/DescriptionInput.d.ts +0 -10
- package/dist/src/ui/components/subagents/create/DescriptionInput.js +0 -104
- package/dist/src/ui/components/subagents/create/DescriptionInput.js.map +0 -1
- package/dist/src/ui/components/subagents/create/GenerationMethodSelector.d.ts +0 -10
- package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js +0 -34
- package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js.map +0 -1
- package/dist/src/ui/components/subagents/create/LocationSelector.d.ts +0 -10
- package/dist/src/ui/components/subagents/create/LocationSelector.js +0 -34
- package/dist/src/ui/components/subagents/create/LocationSelector.js.map +0 -1
- package/dist/src/ui/components/subagents/create/TextEntryStep.d.ts +0 -26
- package/dist/src/ui/components/subagents/create/TextEntryStep.js +0 -28
- package/dist/src/ui/components/subagents/create/TextEntryStep.js.map +0 -1
- package/dist/src/ui/components/subagents/create/ToolSelector.d.ts +0 -16
- package/dist/src/ui/components/subagents/create/ToolSelector.js +0 -144
- package/dist/src/ui/components/subagents/create/ToolSelector.js.map +0 -1
- package/dist/src/ui/components/subagents/index.d.ts +0 -8
- package/dist/src/ui/components/subagents/index.js +0 -12
- package/dist/src/ui/components/subagents/index.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/ActionSelectionStep.d.ts +0 -13
- package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js +0 -46
- package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentDeleteStep.d.ts +0 -13
- package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js +0 -33
- package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentEditStep.d.ts +0 -15
- package/dist/src/ui/components/subagents/manage/AgentEditStep.js +0 -64
- package/dist/src/ui/components/subagents/manage/AgentEditStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentSelectionStep.d.ts +0 -12
- package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js +0 -224
- package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentViewerStep.d.ts +0 -11
- package/dist/src/ui/components/subagents/manage/AgentViewerStep.js +0 -19
- package/dist/src/ui/components/subagents/manage/AgentViewerStep.js.map +0 -1
- package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.d.ts +0 -15
- package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js +0 -211
- package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js.map +0 -1
- package/dist/src/ui/components/subagents/reducers.d.ts +0 -14
- package/dist/src/ui/components/subagents/reducers.js +0 -162
- package/dist/src/ui/components/subagents/reducers.js.map +0 -1
- package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.d.ts +0 -20
- package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js +0 -193
- package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js.map +0 -1
- package/dist/src/ui/components/subagents/types.d.ts +0 -137
- package/dist/src/ui/components/subagents/types.js +0 -15
- package/dist/src/ui/components/subagents/types.js.map +0 -1
- package/dist/src/ui/components/subagents/utils.d.ts +0 -15
- package/dist/src/ui/components/subagents/utils.js +0 -79
- package/dist/src/ui/components/subagents/utils.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionsList.d.ts +0 -6
- package/dist/src/ui/components/views/ExtensionsList.js +0 -47
- package/dist/src/ui/components/views/ExtensionsList.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ExtensionsList.test.js +0 -97
- package/dist/src/ui/components/views/ExtensionsList.test.js.map +0 -1
- package/dist/src/ui/components/views/McpStatus.d.ts +0 -27
- package/dist/src/ui/components/views/McpStatus.js +0 -77
- package/dist/src/ui/components/views/McpStatus.js.map +0 -1
- package/dist/src/ui/components/views/McpStatus.test.d.ts +0 -6
- package/dist/src/ui/components/views/McpStatus.test.js +0 -117
- package/dist/src/ui/components/views/McpStatus.test.js.map +0 -1
- package/dist/src/ui/components/views/ToolsList.d.ts +0 -14
- package/dist/src/ui/components/views/ToolsList.js +0 -7
- package/dist/src/ui/components/views/ToolsList.js.map +0 -1
- package/dist/src/ui/components/views/ToolsList.test.d.ts +0 -6
- package/dist/src/ui/components/views/ToolsList.test.js +0 -45
- package/dist/src/ui/components/views/ToolsList.test.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -18
- package/dist/src/ui/constants.js +0 -23
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/AppContext.d.ts +0 -11
- package/dist/src/ui/contexts/AppContext.js +0 -15
- package/dist/src/ui/contexts/AppContext.js.map +0 -1
- package/dist/src/ui/contexts/ConfigContext.d.ts +0 -9
- package/dist/src/ui/contexts/ConfigContext.js +0 -16
- package/dist/src/ui/contexts/ConfigContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +0 -35
- package/dist/src/ui/contexts/KeypressContext.js +0 -636
- package/dist/src/ui/contexts/KeypressContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/KeypressContext.test.js +0 -1180
- package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -38
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -45
- package/dist/src/ui/contexts/SessionContext.js +0 -157
- package/dist/src/ui/contexts/SessionContext.js.map +0 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +0 -9
- package/dist/src/ui/contexts/SettingsContext.js +0 -15
- package/dist/src/ui/contexts/SettingsContext.js.map +0 -1
- package/dist/src/ui/contexts/ShellFocusContext.d.ts +0 -7
- package/dist/src/ui/contexts/ShellFocusContext.js +0 -9
- package/dist/src/ui/contexts/ShellFocusContext.js.map +0 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
- package/dist/src/ui/contexts/StreamingContext.js +0 -15
- package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +0 -46
- package/dist/src/ui/contexts/UIActionsContext.js +0 -21
- package/dist/src/ui/contexts/UIActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +0 -118
- package/dist/src/ui/contexts/UIStateContext.js +0 -17
- package/dist/src/ui/contexts/UIStateContext.js.map +0 -1
- package/dist/src/ui/contexts/VimModeContext.d.ts +0 -19
- package/dist/src/ui/contexts/VimModeContext.js +0 -48
- package/dist/src/ui/contexts/VimModeContext.js.map +0 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
- package/dist/src/ui/editors/editorSettingsManager.js +0 -47
- package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
- package/dist/src/ui/hooks/atCommandProcessor.js +0 -364
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -836
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/keyToAnsi.d.ts +0 -15
- package/dist/src/ui/hooks/keyToAnsi.js +0 -67
- package/dist/src/ui/hooks/keyToAnsi.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -18
- package/dist/src/ui/hooks/shellCommandProcessor.js +0 -284
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -508
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -51
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -502
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/useAgentsManagerDialog.d.ts +0 -11
- package/dist/src/ui/hooks/useAgentsManagerDialog.js +0 -21
- package/dist/src/ui/hooks/useAgentsManagerDialog.js.map +0 -1
- package/dist/src/ui/hooks/useApprovalModeCommand.d.ts +0 -14
- package/dist/src/ui/hooks/useApprovalModeCommand.js +0 -33
- package/dist/src/ui/hooks/useApprovalModeCommand.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useAtCompletion.js +0 -179
- package/dist/src/ui/hooks/useAtCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -13
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -40
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +0 -306
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
- package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
- package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +0 -32
- package/dist/src/ui/hooks/useCommandCompletion.js +0 -186
- package/dist/src/ui/hooks/useCommandCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +0 -24
- package/dist/src/ui/hooks/useCompletion.js +0 -88
- package/dist/src/ui/hooks/useCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
- package/dist/src/ui/hooks/useConsoleMessages.js +0 -76
- package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
- package/dist/src/ui/hooks/useDialogClose.d.ts +0 -34
- package/dist/src/ui/hooks/useDialogClose.js +0 -53
- package/dist/src/ui/hooks/useDialogClose.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
- package/dist/src/ui/hooks/useEditorSettings.js +0 -43
- package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/useEditorSettings.test.js +0 -164
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionUpdates.d.ts +0 -21
- package/dist/src/ui/hooks/useExtensionUpdates.js +0 -116
- package/dist/src/ui/hooks/useExtensionUpdates.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +0 -6
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +0 -243
- package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.d.ts +0 -10
- package/dist/src/ui/hooks/useFocus.js +0 -51
- package/dist/src/ui/hooks/useFocus.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +0 -13
- package/dist/src/ui/hooks/useFolderTrust.js +0 -60
- package/dist/src/ui/hooks/useFolderTrust.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -39
- package/dist/src/ui/hooks/useGeminiStream.js +0 -781
- package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.js +0 -58
- package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.test.js +0 -171
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
- package/dist/src/ui/hooks/useHistoryManager.js +0 -72
- package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHistoryManager.test.js +0 -171
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useIdeTrustListener.d.ts +0 -16
- package/dist/src/ui/hooks/useIdeTrustListener.js +0 -65
- package/dist/src/ui/hooks/useIdeTrustListener.js.map +0 -1
- package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +0 -6
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +0 -183
- package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistory.js +0 -84
- package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistory.test.js +0 -207
- package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistoryStore.js +0 -81
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +0 -234
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +0 -17
- package/dist/src/ui/hooks/useKeypress.js +0 -27
- package/dist/src/ui/hooks/useKeypress.js.map +0 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +0 -15
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +0 -20
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +0 -1
- package/dist/src/ui/hooks/useLaunchEditor.d.ts +0 -10
- package/dist/src/ui/hooks/useLaunchEditor.js +0 -70
- package/dist/src/ui/hooks/useLaunchEditor.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -91
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useLogger.d.ts +0 -11
- package/dist/src/ui/hooks/useLogger.js +0 -29
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.d.ts +0 -13
- package/dist/src/ui/hooks/useMemoryMonitor.js +0 -28
- package/dist/src/ui/hooks/useMemoryMonitor.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMemoryMonitor.test.js +0 -57
- package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +0 -23
- package/dist/src/ui/hooks/useMessageQueue.js +0 -51
- package/dist/src/ui/hooks/useMessageQueue.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMessageQueue.test.js +0 -167
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
- package/dist/src/ui/hooks/useModelCommand.d.ts +0 -12
- package/dist/src/ui/hooks/useModelCommand.js +0 -21
- package/dist/src/ui/hooks/useModelCommand.js.map +0 -1
- package/dist/src/ui/hooks/useModelCommand.test.d.ts +0 -6
- package/dist/src/ui/hooks/useModelCommand.test.js +0 -35
- package/dist/src/ui/hooks/useModelCommand.test.js.map +0 -1
- package/dist/src/ui/hooks/usePapertAuth.d.ts +0 -20
- package/dist/src/ui/hooks/usePapertAuth.js +0 -78
- package/dist/src/ui/hooks/usePapertAuth.js.map +0 -1
- package/dist/src/ui/hooks/usePapertAuth.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePapertAuth.test.js +0 -292
- package/dist/src/ui/hooks/usePapertAuth.test.js.map +0 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +0 -17
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js +0 -78
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +0 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +0 -182
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -190
- package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/usePromptCompletion.js +0 -177
- package/dist/src/ui/hooks/usePromptCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useQuitConfirmation.d.ts +0 -14
- package/dist/src/ui/hooks/useQuitConfirmation.js +0 -36
- package/dist/src/ui/hooks/useQuitConfirmation.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +0 -21
- package/dist/src/ui/hooks/useQuotaAndFallback.js +0 -122
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +0 -6
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +0 -269
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -34
- package/dist/src/ui/hooks/useReactToolScheduler.js +0 -192
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +0 -19
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +0 -103
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -163
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useSelectionList.d.ts +0 -34
- package/dist/src/ui/hooks/useSelectionList.js +0 -245
- package/dist/src/ui/hooks/useSelectionList.js.map +0 -1
- package/dist/src/ui/hooks/useSelectionList.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSelectionList.test.js +0 -701
- package/dist/src/ui/hooks/useSelectionList.test.js.map +0 -1
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +0 -10
- package/dist/src/ui/hooks/useSettingsCommand.js +0 -21
- package/dist/src/ui/hooks/useSettingsCommand.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +0 -14
- package/dist/src/ui/hooks/useShellHistory.js +0 -111
- package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellHistory.test.js +0 -187
- package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
- package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +0 -20
- package/dist/src/ui/hooks/useSlashCompletion.js +0 -349
- package/dist/src/ui/hooks/useSlashCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -9
- package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -597
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
- package/dist/src/ui/hooks/useStateAndRef.js +0 -26
- package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
- package/dist/src/ui/hooks/useSubagentCreateDialog.d.ts +0 -10
- package/dist/src/ui/hooks/useSubagentCreateDialog.js +0 -21
- package/dist/src/ui/hooks/useSubagentCreateDialog.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
- package/dist/src/ui/hooks/useTerminalSize.js +0 -27
- package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
- package/dist/src/ui/hooks/useThemeCommand.js +0 -68
- package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.d.ts +0 -12
- package/dist/src/ui/hooks/useTimer.js +0 -58
- package/dist/src/ui/hooks/useTimer.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTimer.test.js +0 -90
- package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolScheduler.test.js +0 -623
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useVisionAutoSwitch.d.ts +0 -47
- package/dist/src/ui/hooks/useVisionAutoSwitch.js +0 -262
- package/dist/src/ui/hooks/useVisionAutoSwitch.js.map +0 -1
- package/dist/src/ui/hooks/useVisionAutoSwitch.test.d.ts +0 -6
- package/dist/src/ui/hooks/useVisionAutoSwitch.test.js +0 -515
- package/dist/src/ui/hooks/useVisionAutoSwitch.test.js.map +0 -1
- package/dist/src/ui/hooks/useWelcomeBack.d.ts +0 -23
- package/dist/src/ui/hooks/useWelcomeBack.js +0 -79
- package/dist/src/ui/hooks/useWelcomeBack.js.map +0 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +0 -13
- package/dist/src/ui/hooks/useWorkspaceMigration.js +0 -54
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +0 -1
- package/dist/src/ui/hooks/vim.d.ts +0 -28
- package/dist/src/ui/hooks/vim.js +0 -639
- package/dist/src/ui/hooks/vim.js.map +0 -1
- package/dist/src/ui/keyMatchers.d.ts +0 -27
- package/dist/src/ui/keyMatchers.js +0 -68
- package/dist/src/ui/keyMatchers.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.d.ts +0 -6
- package/dist/src/ui/keyMatchers.test.js +0 -293
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/layouts/DefaultAppLayout.d.ts +0 -9
- package/dist/src/ui/layouts/DefaultAppLayout.js +0 -13
- package/dist/src/ui/layouts/DefaultAppLayout.js.map +0 -1
- package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +0 -7
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js +0 -14
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +0 -1
- package/dist/src/ui/models/availableModels.d.ts +0 -32
- package/dist/src/ui/models/availableModels.js +0 -64
- package/dist/src/ui/models/availableModels.js.map +0 -1
- package/dist/src/ui/noninteractive/nonInteractiveUi.d.ts +0 -12
- package/dist/src/ui/noninteractive/nonInteractiveUi.js +0 -28
- package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +0 -1
- package/dist/src/ui/semantic-colors.d.ts +0 -7
- package/dist/src/ui/semantic-colors.js +0 -24
- package/dist/src/ui/semantic-colors.js.map +0 -1
- package/dist/src/ui/state/extensions.d.ts +0 -42
- package/dist/src/ui/state/extensions.js +0 -62
- package/dist/src/ui/state/extensions.js.map +0 -1
- package/dist/src/ui/textConstants.d.ts +0 -9
- package/dist/src/ui/textConstants.js +0 -10
- package/dist/src/ui/textConstants.js.map +0 -1
- package/dist/src/ui/themes/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/ansi-light.js +0 -142
- package/dist/src/ui/themes/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/ansi.d.ts +0 -7
- package/dist/src/ui/themes/ansi.js +0 -152
- package/dist/src/ui/themes/ansi.js.map +0 -1
- package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
- package/dist/src/ui/themes/atom-one-dark.js +0 -138
- package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/ayu-light.d.ts +0 -7
- package/dist/src/ui/themes/ayu-light.js +0 -130
- package/dist/src/ui/themes/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/ayu.d.ts +0 -7
- package/dist/src/ui/themes/ayu.js +0 -104
- package/dist/src/ui/themes/ayu.js.map +0 -1
- package/dist/src/ui/themes/color-utils.d.ts +0 -21
- package/dist/src/ui/themes/color-utils.js +0 -221
- package/dist/src/ui/themes/color-utils.js.map +0 -1
- package/dist/src/ui/themes/color-utils.test.d.ts +0 -6
- package/dist/src/ui/themes/color-utils.test.js +0 -197
- package/dist/src/ui/themes/color-utils.test.js.map +0 -1
- package/dist/src/ui/themes/default-light.d.ts +0 -7
- package/dist/src/ui/themes/default-light.js +0 -100
- package/dist/src/ui/themes/default-light.js.map +0 -1
- package/dist/src/ui/themes/default.d.ts +0 -7
- package/dist/src/ui/themes/default.js +0 -143
- package/dist/src/ui/themes/default.js.map +0 -1
- package/dist/src/ui/themes/dracula.d.ts +0 -7
- package/dist/src/ui/themes/dracula.js +0 -115
- package/dist/src/ui/themes/dracula.js.map +0 -1
- package/dist/src/ui/themes/github-dark.d.ts +0 -7
- package/dist/src/ui/themes/github-dark.js +0 -138
- package/dist/src/ui/themes/github-dark.js.map +0 -1
- package/dist/src/ui/themes/github-light.d.ts +0 -7
- package/dist/src/ui/themes/github-light.js +0 -140
- package/dist/src/ui/themes/github-light.js.map +0 -1
- package/dist/src/ui/themes/googlecode.d.ts +0 -7
- package/dist/src/ui/themes/googlecode.js +0 -137
- package/dist/src/ui/themes/googlecode.js.map +0 -1
- package/dist/src/ui/themes/no-color.d.ts +0 -7
- package/dist/src/ui/themes/no-color.js +0 -115
- package/dist/src/ui/themes/no-color.js.map +0 -1
- package/dist/src/ui/themes/papert-dark.d.ts +0 -7
- package/dist/src/ui/themes/papert-dark.js +0 -105
- package/dist/src/ui/themes/papert-dark.js.map +0 -1
- package/dist/src/ui/themes/papert-light.d.ts +0 -7
- package/dist/src/ui/themes/papert-light.js +0 -131
- package/dist/src/ui/themes/papert-light.js.map +0 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +0 -37
- package/dist/src/ui/themes/semantic-tokens.js +0 -94
- package/dist/src/ui/themes/semantic-tokens.js.map +0 -1
- package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
- package/dist/src/ui/themes/shades-of-purple.js +0 -304
- package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -66
- package/dist/src/ui/themes/theme-manager.js +0 -270
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.test.d.ts +0 -6
- package/dist/src/ui/themes/theme-manager.test.js +0 -142
- package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -130
- package/dist/src/ui/themes/theme.js +0 -379
- package/dist/src/ui/themes/theme.js.map +0 -1
- package/dist/src/ui/themes/xcode.d.ts +0 -7
- package/dist/src/ui/themes/xcode.js +0 -145
- package/dist/src/ui/themes/xcode.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -311
- package/dist/src/ui/types.js +0 -60
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -17
- package/dist/src/ui/utils/CodeColorizer.js +0 -111
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +0 -25
- package/dist/src/ui/utils/ConsolePatcher.js +0 -52
- package/dist/src/ui/utils/ConsolePatcher.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -111
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
- package/dist/src/ui/utils/MarkdownDisplay.js +0 -207
- package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
- package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -169
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
- package/dist/src/ui/utils/TableRenderer.js +0 -84
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.d.ts +0 -22
- package/dist/src/ui/utils/clipboardUtils.js +0 -126
- package/dist/src/ui/utils/clipboardUtils.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.test.js +0 -65
- package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -24
- package/dist/src/ui/utils/commandUtils.js +0 -131
- package/dist/src/ui/utils/commandUtils.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/commandUtils.test.js +0 -349
- package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
- package/dist/src/ui/utils/computeStats.d.ts +0 -10
- package/dist/src/ui/utils/computeStats.js +0 -57
- package/dist/src/ui/utils/computeStats.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.d.ts +0 -18
- package/dist/src/ui/utils/displayUtils.js +0 -27
- package/dist/src/ui/utils/displayUtils.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/displayUtils.test.js +0 -61
- package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
- package/dist/src/ui/utils/formatters.d.ts +0 -13
- package/dist/src/ui/utils/formatters.js +0 -56
- package/dist/src/ui/utils/formatters.js.map +0 -1
- package/dist/src/ui/utils/formatters.test.d.ts +0 -6
- package/dist/src/ui/utils/formatters.test.js +0 -56
- package/dist/src/ui/utils/formatters.test.js.map +0 -1
- package/dist/src/ui/utils/highlight.d.ts +0 -11
- package/dist/src/ui/utils/highlight.js +0 -78
- package/dist/src/ui/utils/highlight.js.map +0 -1
- package/dist/src/ui/utils/highlight.test.d.ts +0 -6
- package/dist/src/ui/utils/highlight.test.js +0 -120
- package/dist/src/ui/utils/highlight.test.js.map +0 -1
- package/dist/src/ui/utils/isNarrowWidth.d.ts +0 -6
- package/dist/src/ui/utils/isNarrowWidth.js +0 -9
- package/dist/src/ui/utils/isNarrowWidth.js.map +0 -1
- package/dist/src/ui/utils/kittyProtocolDetector.d.ts +0 -13
- package/dist/src/ui/utils/kittyProtocolDetector.js +0 -98
- package/dist/src/ui/utils/kittyProtocolDetector.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.js +0 -110
- package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.test.js +0 -42
- package/dist/src/ui/utils/markdownUtilities.test.js.map +0 -1
- package/dist/src/ui/utils/platformConstants.d.ts +0 -75
- package/dist/src/ui/utils/platformConstants.js +0 -78
- package/dist/src/ui/utils/platformConstants.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +0 -30
- package/dist/src/ui/utils/terminalSetup.js +0 -281
- package/dist/src/ui/utils/terminalSetup.js.map +0 -1
- package/dist/src/ui/utils/textUtils.d.ts +0 -42
- package/dist/src/ui/utils/textUtils.js +0 -185
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/textUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/textUtils.test.js +0 -132
- package/dist/src/ui/utils/textUtils.test.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -12
- package/dist/src/ui/utils/updateCheck.js +0 -78
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.test.js +0 -145
- package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
- package/dist/src/utils/checks.d.ts +0 -19
- package/dist/src/utils/checks.js +0 -24
- package/dist/src/utils/checks.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -8
- package/dist/src/utils/cleanup.js +0 -35
- package/dist/src/utils/cleanup.js.map +0 -1
- package/dist/src/utils/commands.d.ts +0 -20
- package/dist/src/utils/commands.js +0 -53
- package/dist/src/utils/commands.js.map +0 -1
- package/dist/src/utils/commands.test.d.ts +0 -6
- package/dist/src/utils/commands.test.js +0 -115
- package/dist/src/utils/commands.test.js.map +0 -1
- package/dist/src/utils/commentJson.d.ts +0 -9
- package/dist/src/utils/commentJson.js +0 -48
- package/dist/src/utils/commentJson.js.map +0 -1
- package/dist/src/utils/commentJson.test.d.ts +0 -6
- package/dist/src/utils/commentJson.test.js +0 -146
- package/dist/src/utils/commentJson.test.js.map +0 -1
- package/dist/src/utils/deepMerge.d.ts +0 -9
- package/dist/src/utils/deepMerge.js +0 -58
- package/dist/src/utils/deepMerge.js.map +0 -1
- package/dist/src/utils/deepMerge.test.d.ts +0 -6
- package/dist/src/utils/deepMerge.test.js +0 -143
- package/dist/src/utils/deepMerge.test.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +0 -28
- package/dist/src/utils/dialogScopeUtils.js +0 -51
- package/dist/src/utils/dialogScopeUtils.js.map +0 -1
- package/dist/src/utils/envVarResolver.d.ts +0 -39
- package/dist/src/utils/envVarResolver.js +0 -97
- package/dist/src/utils/envVarResolver.js.map +0 -1
- package/dist/src/utils/envVarResolver.test.d.ts +0 -6
- package/dist/src/utils/envVarResolver.test.js +0 -221
- package/dist/src/utils/envVarResolver.test.js.map +0 -1
- package/dist/src/utils/errors.d.ts +0 -27
- package/dist/src/utils/errors.js +0 -105
- package/dist/src/utils/errors.js.map +0 -1
- package/dist/src/utils/errors.test.d.ts +0 -6
- package/dist/src/utils/errors.test.js +0 -303
- package/dist/src/utils/errors.test.js.map +0 -1
- package/dist/src/utils/events.d.ts +0 -12
- package/dist/src/utils/events.js +0 -14
- package/dist/src/utils/events.js.map +0 -1
- package/dist/src/utils/gitUtils.d.ts +0 -30
- package/dist/src/utils/gitUtils.js +0 -89
- package/dist/src/utils/gitUtils.js.map +0 -1
- package/dist/src/utils/gitUtils.test.d.ts +0 -6
- package/dist/src/utils/gitUtils.test.js +0 -113
- package/dist/src/utils/gitUtils.test.js.map +0 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +0 -11
- package/dist/src/utils/handleAutoUpdate.js +0 -102
- package/dist/src/utils/handleAutoUpdate.js.map +0 -1
- package/dist/src/utils/installationInfo.d.ts +0 -23
- package/dist/src/utils/installationInfo.js +0 -153
- package/dist/src/utils/installationInfo.js.map +0 -1
- package/dist/src/utils/installationInfo.test.d.ts +0 -6
- package/dist/src/utils/installationInfo.test.js +0 -242
- package/dist/src/utils/installationInfo.test.js.map +0 -1
- package/dist/src/utils/math.d.ts +0 -13
- package/dist/src/utils/math.js +0 -14
- package/dist/src/utils/math.js.map +0 -1
- package/dist/src/utils/package.d.ts +0 -12
- package/dist/src/utils/package.js +0 -24
- package/dist/src/utils/package.js.map +0 -1
- package/dist/src/utils/processUtils.d.ts +0 -13
- package/dist/src/utils/processUtils.js +0 -18
- package/dist/src/utils/processUtils.js.map +0 -1
- package/dist/src/utils/processUtils.test.d.ts +0 -6
- package/dist/src/utils/processUtils.test.js +0 -20
- package/dist/src/utils/processUtils.test.js.map +0 -1
- package/dist/src/utils/readStdin.d.ts +0 -6
- package/dist/src/utils/readStdin.js +0 -59
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/readStdin.test.d.ts +0 -6
- package/dist/src/utils/readStdin.test.js +0 -88
- package/dist/src/utils/readStdin.test.js.map +0 -1
- package/dist/src/utils/relaunch.d.ts +0 -7
- package/dist/src/utils/relaunch.js +0 -57
- package/dist/src/utils/relaunch.js.map +0 -1
- package/dist/src/utils/relaunch.test.d.ts +0 -6
- package/dist/src/utils/relaunch.test.js +0 -273
- package/dist/src/utils/relaunch.test.js.map +0 -1
- package/dist/src/utils/resolvePath.d.ts +0 -6
- package/dist/src/utils/resolvePath.js +0 -21
- package/dist/src/utils/resolvePath.js.map +0 -1
- package/dist/src/utils/sandbox.d.ts +0 -7
- package/dist/src/utils/sandbox.js +0 -763
- package/dist/src/utils/sandbox.js.map +0 -1
- package/dist/src/utils/settingsUtils.d.ts +0 -144
- package/dist/src/utils/settingsUtils.js +0 -340
- package/dist/src/utils/settingsUtils.js.map +0 -1
- package/dist/src/utils/settingsUtils.test.d.ts +0 -6
- package/dist/src/utils/settingsUtils.test.js +0 -808
- package/dist/src/utils/settingsUtils.test.js.map +0 -1
- package/dist/src/utils/spawnWrapper.d.ts +0 -7
- package/dist/src/utils/spawnWrapper.js +0 -8
- package/dist/src/utils/spawnWrapper.js.map +0 -1
- package/dist/src/utils/startupWarnings.d.ts +0 -6
- package/dist/src/utils/startupWarnings.js +0 -40
- package/dist/src/utils/startupWarnings.js.map +0 -1
- package/dist/src/utils/systemInfo.d.ts +0 -66
- package/dist/src/utils/systemInfo.js +0 -125
- package/dist/src/utils/systemInfo.js.map +0 -1
- package/dist/src/utils/systemInfo.test.d.ts +0 -6
- package/dist/src/utils/systemInfo.test.js +0 -259
- package/dist/src/utils/systemInfo.test.js.map +0 -1
- package/dist/src/utils/systemInfoFields.d.ts +0 -22
- package/dist/src/utils/systemInfoFields.js +0 -95
- package/dist/src/utils/systemInfoFields.js.map +0 -1
- package/dist/src/utils/updateEventEmitter.d.ts +0 -11
- package/dist/src/utils/updateEventEmitter.js +0 -12
- package/dist/src/utils/updateEventEmitter.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.d.ts +0 -12
- package/dist/src/utils/userStartupWarnings.js +0 -69
- package/dist/src/utils/userStartupWarnings.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.test.js +0 -88
- package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
- package/dist/src/utils/version.d.ts +0 -6
- package/dist/src/utils/version.js +0 -11
- package/dist/src/utils/version.js.map +0 -1
- package/dist/src/utils/windowTitle.d.ts +0 -12
- package/dist/src/utils/windowTitle.js +0 -19
- package/dist/src/utils/windowTitle.js.map +0 -1
- package/dist/src/utils/windowTitle.test.d.ts +0 -6
- package/dist/src/utils/windowTitle.test.js +0 -49
- package/dist/src/utils/windowTitle.test.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +0 -9
- package/dist/src/validateNonInterActiveAuth.js +0 -55
- package/dist/src/validateNonInterActiveAuth.js.map +0 -1
- package/dist/src/zed-integration/acp.d.ts +0 -63
- package/dist/src/zed-integration/acp.js +0 -225
- package/dist/src/zed-integration/acp.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.d.ts +0 -20
- package/dist/src/zed-integration/fileSystemService.js +0 -46
- package/dist/src/zed-integration/fileSystemService.js.map +0 -1
- package/dist/src/zed-integration/schema.d.ts +0 -11782
- package/dist/src/zed-integration/schema.js +0 -311
- package/dist/src/zed-integration/schema.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.d.ts +0 -17
- package/dist/src/zed-integration/zedIntegration.js +0 -1063
- package/dist/src/zed-integration/zedIntegration.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/{src/utils/sandbox-macos-permissive-closed.sb → sandbox-macos-permissive-closed.sb} +0 -0
- /package/dist/{src/utils/sandbox-macos-permissive-open.sb → sandbox-macos-permissive-open.sb} +0 -0
- /package/dist/{src/utils/sandbox-macos-permissive-proxied.sb → sandbox-macos-permissive-proxied.sb} +0 -0
- /package/dist/{src/utils/sandbox-macos-restrictive-closed.sb → sandbox-macos-restrictive-closed.sb} +0 -0
- /package/dist/{src/utils/sandbox-macos-restrictive-open.sb → sandbox-macos-restrictive-open.sb} +0 -0
- /package/dist/{src/utils/sandbox-macos-restrictive-proxied.sb → sandbox-macos-restrictive-proxied.sb} +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { useState, useCallback } from 'react';
|
|
7
|
-
import { QuitChoice } from '../components/QuitConfirmationDialog.js';
|
|
8
|
-
export const useQuitConfirmation = () => {
|
|
9
|
-
const [isQuitConfirmationOpen, setIsQuitConfirmationOpen] = useState(false);
|
|
10
|
-
const showQuitConfirmation = useCallback(() => {
|
|
11
|
-
setIsQuitConfirmationOpen(true);
|
|
12
|
-
}, []);
|
|
13
|
-
const handleQuitConfirmationSelect = useCallback((choice) => {
|
|
14
|
-
setIsQuitConfirmationOpen(false);
|
|
15
|
-
if (choice === QuitChoice.CANCEL) {
|
|
16
|
-
return { shouldQuit: false, action: 'cancel' };
|
|
17
|
-
}
|
|
18
|
-
else if (choice === QuitChoice.QUIT) {
|
|
19
|
-
return { shouldQuit: true, action: 'quit' };
|
|
20
|
-
}
|
|
21
|
-
else if (choice === QuitChoice.SAVE_AND_QUIT) {
|
|
22
|
-
return { shouldQuit: true, action: 'save_and_quit' };
|
|
23
|
-
}
|
|
24
|
-
else if (choice === QuitChoice.SUMMARY_AND_QUIT) {
|
|
25
|
-
return { shouldQuit: true, action: 'summary_and_quit' };
|
|
26
|
-
}
|
|
27
|
-
// Default to cancel if unknown choice
|
|
28
|
-
return { shouldQuit: false, action: 'cancel' };
|
|
29
|
-
}, []);
|
|
30
|
-
return {
|
|
31
|
-
isQuitConfirmationOpen,
|
|
32
|
-
showQuitConfirmation,
|
|
33
|
-
handleQuitConfirmationSelect,
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=useQuitConfirmation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQuitConfirmation.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useQuitConfirmation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM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
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { type Config, UserTierId } from '@papert-code/papert-code-core';
|
|
7
|
-
import { type UseHistoryManagerReturn } from './useHistoryManager.js';
|
|
8
|
-
import { AuthState } from '../types.js';
|
|
9
|
-
import { type ProQuotaDialogRequest } from '../contexts/UIStateContext.js';
|
|
10
|
-
interface UseQuotaAndFallbackArgs {
|
|
11
|
-
config: Config;
|
|
12
|
-
historyManager: UseHistoryManagerReturn;
|
|
13
|
-
userTier: UserTierId | undefined;
|
|
14
|
-
setAuthState: (state: AuthState) => void;
|
|
15
|
-
setModelSwitchedFromQuotaError: (value: boolean) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare function useQuotaAndFallback({ config, historyManager, userTier, setAuthState, setModelSwitchedFromQuotaError, }: UseQuotaAndFallbackArgs): {
|
|
18
|
-
proQuotaRequest: ProQuotaDialogRequest | null;
|
|
19
|
-
handleProQuotaChoice: (choice: "auth" | "continue") => void;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { AuthType, isGenericQuotaExceededError, isProQuotaExceededError, UserTierId, } from '@papert-code/papert-code-core';
|
|
7
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
|
-
import {} from './useHistoryManager.js';
|
|
9
|
-
import { AuthState, MessageType } from '../types.js';
|
|
10
|
-
import {} from '../contexts/UIStateContext.js';
|
|
11
|
-
export function useQuotaAndFallback({ config, historyManager, userTier, setAuthState, setModelSwitchedFromQuotaError, }) {
|
|
12
|
-
const [proQuotaRequest, setProQuotaRequest] = useState(null);
|
|
13
|
-
const isDialogPending = useRef(false);
|
|
14
|
-
// Set up Flash fallback handler
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
const fallbackHandler = async (failedModel, fallbackModel, error) => {
|
|
17
|
-
if (config.isInFallbackMode()) {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
// Fallbacks are currently only handled for OAuth users.
|
|
21
|
-
const contentGeneratorConfig = config.getContentGeneratorConfig();
|
|
22
|
-
if (!contentGeneratorConfig ||
|
|
23
|
-
contentGeneratorConfig.authType !== AuthType.LOGIN_WITH_GOOGLE) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
// Use actual user tier if available; otherwise, default to FREE tier behavior (safe default)
|
|
27
|
-
const isPaidTier = userTier === UserTierId.LEGACY || userTier === UserTierId.STANDARD;
|
|
28
|
-
let message;
|
|
29
|
-
if (error && isProQuotaExceededError(error)) {
|
|
30
|
-
// Pro Quota specific messages (Interactive)
|
|
31
|
-
if (isPaidTier) {
|
|
32
|
-
message = `⚡ You have reached your daily ${failedModel} quota limit.
|
|
33
|
-
⚡ You can choose to authenticate with a paid API key or continue with the fallback model.
|
|
34
|
-
⚡ To continue accessing the ${failedModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
message = `⚡ You have reached your daily ${failedModel} quota limit.
|
|
38
|
-
⚡ You can choose to authenticate with a paid API key or continue with the fallback model.
|
|
39
|
-
⚡ To increase your limits, upgrade to a Gemini Code Assist Standard or Enterprise plan with higher limits at https://goo.gle/set-up-gemini-code-assist
|
|
40
|
-
⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
|
|
41
|
-
⚡ You can switch authentication methods by typing /auth`;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else if (error && isGenericQuotaExceededError(error)) {
|
|
45
|
-
// Generic Quota (Automatic fallback)
|
|
46
|
-
const actionMessage = `⚡ You have reached your daily quota limit.\n⚡ Automatically switching from ${failedModel} to ${fallbackModel} for the remainder of this session.`;
|
|
47
|
-
if (isPaidTier) {
|
|
48
|
-
message = `${actionMessage}
|
|
49
|
-
⚡ To continue accessing the ${failedModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
message = `${actionMessage}
|
|
53
|
-
⚡ To increase your limits, upgrade to a Gemini Code Assist Standard or Enterprise plan with higher limits at https://goo.gle/set-up-gemini-code-assist
|
|
54
|
-
⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
|
|
55
|
-
⚡ You can switch authentication methods by typing /auth`;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
// Consecutive 429s or other errors (Automatic fallback)
|
|
60
|
-
const actionMessage = `⚡ Automatically switching from ${failedModel} to ${fallbackModel} for faster responses for the remainder of this session.`;
|
|
61
|
-
if (isPaidTier) {
|
|
62
|
-
message = `${actionMessage}
|
|
63
|
-
⚡ Possible reasons for this are that you have received multiple consecutive capacity errors or you have reached your daily ${failedModel} quota limit
|
|
64
|
-
⚡ To continue accessing the ${failedModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
message = `${actionMessage}
|
|
68
|
-
⚡ Possible reasons for this are that you have received multiple consecutive capacity errors or you have reached your daily ${failedModel} quota limit
|
|
69
|
-
⚡ To increase your limits, upgrade to a Gemini Code Assist Standard or Enterprise plan with higher limits at https://goo.gle/set-up-gemini-code-assist
|
|
70
|
-
⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
|
|
71
|
-
⚡ You can switch authentication methods by typing /auth`;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
// Add message to UI history
|
|
75
|
-
historyManager.addItem({
|
|
76
|
-
type: MessageType.INFO,
|
|
77
|
-
text: message,
|
|
78
|
-
}, Date.now());
|
|
79
|
-
setModelSwitchedFromQuotaError(true);
|
|
80
|
-
config.setQuotaErrorOccurred(true);
|
|
81
|
-
// Interactive Fallback for Pro quota
|
|
82
|
-
if (error && isProQuotaExceededError(error)) {
|
|
83
|
-
if (isDialogPending.current) {
|
|
84
|
-
return 'stop'; // A dialog is already active, so just stop this request.
|
|
85
|
-
}
|
|
86
|
-
isDialogPending.current = true;
|
|
87
|
-
const intent = await new Promise((resolve) => {
|
|
88
|
-
setProQuotaRequest({
|
|
89
|
-
failedModel,
|
|
90
|
-
fallbackModel,
|
|
91
|
-
resolve,
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
return intent;
|
|
95
|
-
}
|
|
96
|
-
return 'stop';
|
|
97
|
-
};
|
|
98
|
-
config.setFallbackModelHandler(fallbackHandler);
|
|
99
|
-
}, [config, historyManager, userTier, setModelSwitchedFromQuotaError]);
|
|
100
|
-
const handleProQuotaChoice = useCallback((choice) => {
|
|
101
|
-
if (!proQuotaRequest)
|
|
102
|
-
return;
|
|
103
|
-
const intent = choice === 'auth' ? 'auth' : 'retry';
|
|
104
|
-
proQuotaRequest.resolve(intent);
|
|
105
|
-
setProQuotaRequest(null);
|
|
106
|
-
isDialogPending.current = false; // Reset the flag here
|
|
107
|
-
if (choice === 'auth') {
|
|
108
|
-
setAuthState(AuthState.Updating);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
historyManager.addItem({
|
|
112
|
-
type: MessageType.INFO,
|
|
113
|
-
text: 'Switched to fallback model. Tip: Press Ctrl+P (or Up Arrow) to recall your previous prompt and submit it again if you wish.',
|
|
114
|
-
}, Date.now());
|
|
115
|
-
}
|
|
116
|
-
}, [proQuotaRequest, setAuthState, historyManager]);
|
|
117
|
-
return {
|
|
118
|
-
proQuotaRequest,
|
|
119
|
-
handleProQuotaChoice,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=useQuot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C,CAChD,CAAC;IAEF,OAAO;QACL,eAAe;QACf,oBAAoB;KACrB,CAAC;AACJ,CAAC"}
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { vi, describe, it, expect, beforeEach, afterEach, } from 'vitest';
|
|
7
|
-
import { act, renderHook } from '@testing-library/react';
|
|
8
|
-
import { UserTierId, AuthType, isGenericQuotaExceededError, isProQuotaExceededError, makeFakeConfig, } from '@papert-code/papert-code-core';
|
|
9
|
-
import { useQuotaAndFallback } from './useQuotaAndFallback.js';
|
|
10
|
-
import { AuthState, MessageType } from '../types.js';
|
|
11
|
-
// Mock the error checking functions from the core package to control test scenarios
|
|
12
|
-
vi.mock('@papert-code/papert-code-core', async (importOriginal) => {
|
|
13
|
-
const original = await importOriginal();
|
|
14
|
-
return {
|
|
15
|
-
...original,
|
|
16
|
-
isGenericQuotaExceededError: vi.fn(),
|
|
17
|
-
isProQuotaExceededError: vi.fn(),
|
|
18
|
-
};
|
|
19
|
-
});
|
|
20
|
-
describe('useQuotaAndFallback', () => {
|
|
21
|
-
let mockConfig;
|
|
22
|
-
let mockHistoryManager;
|
|
23
|
-
let mockSetAuthState;
|
|
24
|
-
let mockSetModelSwitchedFromQuotaError;
|
|
25
|
-
let setFallbackHandlerSpy;
|
|
26
|
-
const mockedIsGenericQuotaExceededError = isGenericQuotaExceededError;
|
|
27
|
-
const mockedIsProQuotaExceededError = isProQuotaExceededError;
|
|
28
|
-
beforeEach(() => {
|
|
29
|
-
mockConfig = makeFakeConfig();
|
|
30
|
-
// Spy on the method that requires the private field and mock its return.
|
|
31
|
-
// This is cleaner than modifying the config class for tests.
|
|
32
|
-
vi.spyOn(mockConfig, 'getContentGeneratorConfig').mockReturnValue({
|
|
33
|
-
model: 'test-model',
|
|
34
|
-
authType: AuthType.LOGIN_WITH_GOOGLE,
|
|
35
|
-
});
|
|
36
|
-
mockHistoryManager = {
|
|
37
|
-
addItem: vi.fn(),
|
|
38
|
-
history: [],
|
|
39
|
-
updateItem: vi.fn(),
|
|
40
|
-
clearItems: vi.fn(),
|
|
41
|
-
loadHistory: vi.fn(),
|
|
42
|
-
};
|
|
43
|
-
mockSetAuthState = vi.fn();
|
|
44
|
-
mockSetModelSwitchedFromQuotaError = vi.fn();
|
|
45
|
-
setFallbackHandlerSpy = vi.spyOn(mockConfig, 'setFallbackModelHandler');
|
|
46
|
-
vi.spyOn(mockConfig, 'setQuotaErrorOccurred');
|
|
47
|
-
mockedIsGenericQuotaExceededError.mockReturnValue(false);
|
|
48
|
-
mockedIsProQuotaExceededError.mockReturnValue(false);
|
|
49
|
-
});
|
|
50
|
-
afterEach(() => {
|
|
51
|
-
vi.clearAllMocks();
|
|
52
|
-
});
|
|
53
|
-
it('should register a fallback handler on initialization', () => {
|
|
54
|
-
renderHook(() => useQuotaAndFallback({
|
|
55
|
-
config: mockConfig,
|
|
56
|
-
historyManager: mockHistoryManager,
|
|
57
|
-
userTier: UserTierId.FREE,
|
|
58
|
-
setAuthState: mockSetAuthState,
|
|
59
|
-
setModelSwitchedFromQuotaError: mockSetModelSwitchedFromQuotaError,
|
|
60
|
-
}));
|
|
61
|
-
expect(setFallbackHandlerSpy).toHaveBeenCalledTimes(1);
|
|
62
|
-
expect(setFallbackHandlerSpy.mock.calls[0][0]).toBeInstanceOf(Function);
|
|
63
|
-
});
|
|
64
|
-
describe('Fallback Handler Logic', () => {
|
|
65
|
-
// Helper function to render the hook and extract the registered handler
|
|
66
|
-
const getRegisteredHandler = (userTier = UserTierId.FREE) => {
|
|
67
|
-
renderHook((props) => useQuotaAndFallback({
|
|
68
|
-
config: mockConfig,
|
|
69
|
-
historyManager: mockHistoryManager,
|
|
70
|
-
userTier: props.userTier,
|
|
71
|
-
setAuthState: mockSetAuthState,
|
|
72
|
-
setModelSwitchedFromQuotaError: mockSetModelSwitchedFromQuotaError,
|
|
73
|
-
}), { initialProps: { userTier } });
|
|
74
|
-
return setFallbackHandlerSpy.mock.calls[0][0];
|
|
75
|
-
};
|
|
76
|
-
it('should return null and take no action if already in fallback mode', async () => {
|
|
77
|
-
vi.spyOn(mockConfig, 'isInFallbackMode').mockReturnValue(true);
|
|
78
|
-
const handler = getRegisteredHandler();
|
|
79
|
-
const result = await handler('gemini-pro', 'gemini-flash', new Error());
|
|
80
|
-
expect(result).toBeNull();
|
|
81
|
-
expect(mockHistoryManager.addItem).not.toHaveBeenCalled();
|
|
82
|
-
});
|
|
83
|
-
it('should return null and take no action if authType is not LOGIN_WITH_GOOGLE', async () => {
|
|
84
|
-
// Override the default mock from beforeEach for this specific test
|
|
85
|
-
vi.spyOn(mockConfig, 'getContentGeneratorConfig').mockReturnValue({
|
|
86
|
-
model: 'test-model',
|
|
87
|
-
authType: AuthType.USE_GEMINI,
|
|
88
|
-
});
|
|
89
|
-
const handler = getRegisteredHandler();
|
|
90
|
-
const result = await handler('gemini-pro', 'gemini-flash', new Error());
|
|
91
|
-
expect(result).toBeNull();
|
|
92
|
-
expect(mockHistoryManager.addItem).not.toHaveBeenCalled();
|
|
93
|
-
});
|
|
94
|
-
describe('Automatic Fallback Scenarios', () => {
|
|
95
|
-
const testCases = [
|
|
96
|
-
{
|
|
97
|
-
errorType: 'generic',
|
|
98
|
-
tier: UserTierId.FREE,
|
|
99
|
-
expectedMessageSnippets: [
|
|
100
|
-
'Automatically switching from model-A to model-B',
|
|
101
|
-
'upgrade to a Gemini Code Assist Standard or Enterprise plan',
|
|
102
|
-
],
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
errorType: 'generic',
|
|
106
|
-
tier: UserTierId.STANDARD, // Paid tier
|
|
107
|
-
expectedMessageSnippets: [
|
|
108
|
-
'Automatically switching from model-A to model-B',
|
|
109
|
-
'switch to using a paid API key from AI Studio',
|
|
110
|
-
],
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
errorType: 'other',
|
|
114
|
-
tier: UserTierId.FREE,
|
|
115
|
-
expectedMessageSnippets: [
|
|
116
|
-
'Automatically switching from model-A to model-B for faster responses',
|
|
117
|
-
'upgrade to a Gemini Code Assist Standard or Enterprise plan',
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
errorType: 'other',
|
|
122
|
-
tier: UserTierId.LEGACY, // Paid tier
|
|
123
|
-
expectedMessageSnippets: [
|
|
124
|
-
'Automatically switching from model-A to model-B for faster responses',
|
|
125
|
-
'switch to using a paid API key from AI Studio',
|
|
126
|
-
],
|
|
127
|
-
},
|
|
128
|
-
];
|
|
129
|
-
for (const { errorType, tier, expectedMessageSnippets } of testCases) {
|
|
130
|
-
it(`should handle ${errorType} error for ${tier} tier correctly`, async () => {
|
|
131
|
-
mockedIsGenericQuotaExceededError.mockReturnValue(errorType === 'generic');
|
|
132
|
-
const handler = getRegisteredHandler(tier);
|
|
133
|
-
const result = await handler('model-A', 'model-B', new Error('quota exceeded'));
|
|
134
|
-
// Automatic fallbacks should return 'stop'
|
|
135
|
-
expect(result).toBe('stop');
|
|
136
|
-
expect(mockHistoryManager.addItem).toHaveBeenCalledWith(expect.objectContaining({ type: MessageType.INFO }), expect.any(Number));
|
|
137
|
-
const message = mockHistoryManager.addItem.mock.calls[0][0]
|
|
138
|
-
.text;
|
|
139
|
-
for (const snippet of expectedMessageSnippets) {
|
|
140
|
-
expect(message).toContain(snippet);
|
|
141
|
-
}
|
|
142
|
-
expect(mockSetModelSwitchedFromQuotaError).toHaveBeenCalledWith(true);
|
|
143
|
-
expect(mockConfig.setQuotaErrorOccurred).toHaveBeenCalledWith(true);
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
describe('Interactive Fallback (Pro Quota Error)', () => {
|
|
148
|
-
beforeEach(() => {
|
|
149
|
-
mockedIsProQuotaExceededError.mockReturnValue(true);
|
|
150
|
-
});
|
|
151
|
-
it('should set an interactive request and wait for user choice', async () => {
|
|
152
|
-
const { result } = renderHook(() => useQuotaAndFallback({
|
|
153
|
-
config: mockConfig,
|
|
154
|
-
historyManager: mockHistoryManager,
|
|
155
|
-
userTier: UserTierId.FREE,
|
|
156
|
-
setAuthState: mockSetAuthState,
|
|
157
|
-
setModelSwitchedFromQuotaError: mockSetModelSwitchedFromQuotaError,
|
|
158
|
-
}));
|
|
159
|
-
const handler = setFallbackHandlerSpy.mock
|
|
160
|
-
.calls[0][0];
|
|
161
|
-
// Call the handler but do not await it, to check the intermediate state
|
|
162
|
-
const promise = handler('gemini-pro', 'gemini-flash', new Error('pro quota'));
|
|
163
|
-
await act(async () => { });
|
|
164
|
-
// The hook should now have a pending request for the UI to handle
|
|
165
|
-
expect(result.current.proQuotaRequest).not.toBeNull();
|
|
166
|
-
expect(result.current.proQuotaRequest?.failedModel).toBe('gemini-pro');
|
|
167
|
-
// Simulate the user choosing to continue with the fallback model
|
|
168
|
-
act(() => {
|
|
169
|
-
result.current.handleProQuotaChoice('continue');
|
|
170
|
-
});
|
|
171
|
-
// The original promise from the handler should now resolve
|
|
172
|
-
const intent = await promise;
|
|
173
|
-
expect(intent).toBe('retry');
|
|
174
|
-
// The pending request should be cleared from the state
|
|
175
|
-
expect(result.current.proQuotaRequest).toBeNull();
|
|
176
|
-
});
|
|
177
|
-
it('should handle race conditions by stopping subsequent requests', async () => {
|
|
178
|
-
const { result } = renderHook(() => useQuotaAndFallback({
|
|
179
|
-
config: mockConfig,
|
|
180
|
-
historyManager: mockHistoryManager,
|
|
181
|
-
userTier: UserTierId.FREE,
|
|
182
|
-
setAuthState: mockSetAuthState,
|
|
183
|
-
setModelSwitchedFromQuotaError: mockSetModelSwitchedFromQuotaError,
|
|
184
|
-
}));
|
|
185
|
-
const handler = setFallbackHandlerSpy.mock
|
|
186
|
-
.calls[0][0];
|
|
187
|
-
const promise1 = handler('gemini-pro', 'gemini-flash', new Error('pro quota 1'));
|
|
188
|
-
await act(async () => { });
|
|
189
|
-
const firstRequest = result.current.proQuotaRequest;
|
|
190
|
-
expect(firstRequest).not.toBeNull();
|
|
191
|
-
const result2 = await handler('gemini-pro', 'gemini-flash', new Error('pro quota 2'));
|
|
192
|
-
// The lock should have stopped the second request
|
|
193
|
-
expect(result2).toBe('stop');
|
|
194
|
-
expect(result.current.proQuotaRequest).toBe(firstRequest);
|
|
195
|
-
act(() => {
|
|
196
|
-
result.current.handleProQuotaChoice('continue');
|
|
197
|
-
});
|
|
198
|
-
const intent1 = await promise1;
|
|
199
|
-
expect(intent1).toBe('retry');
|
|
200
|
-
expect(result.current.proQuotaRequest).toBeNull();
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
describe('handleProQuotaChoice', () => {
|
|
205
|
-
beforeEach(() => {
|
|
206
|
-
mockedIsProQuotaExceededError.mockReturnValue(true);
|
|
207
|
-
});
|
|
208
|
-
it('should do nothing if there is no pending pro quota request', () => {
|
|
209
|
-
const { result } = renderHook(() => useQuotaAndFallback({
|
|
210
|
-
config: mockConfig,
|
|
211
|
-
historyManager: mockHistoryManager,
|
|
212
|
-
userTier: UserTierId.FREE,
|
|
213
|
-
setAuthState: mockSetAuthState,
|
|
214
|
-
setModelSwitchedFromQuotaError: mockSetModelSwitchedFromQuotaError,
|
|
215
|
-
}));
|
|
216
|
-
act(() => {
|
|
217
|
-
result.current.handleProQuotaChoice('auth');
|
|
218
|
-
});
|
|
219
|
-
expect(mockSetAuthState).not.toHaveBeenCalled();
|
|
220
|
-
expect(mockHistoryManager.addItem).not.toHaveBeenCalled();
|
|
221
|
-
});
|
|
222
|
-
it('should resolve intent to "auth" and trigger auth state update', async () => {
|
|
223
|
-
const { result } = renderHook(() => useQuotaAndFallback({
|
|
224
|
-
config: mockConfig,
|
|
225
|
-
historyManager: mockHistoryManager,
|
|
226
|
-
userTier: UserTierId.FREE,
|
|
227
|
-
setAuthState: mockSetAuthState,
|
|
228
|
-
setModelSwitchedFromQuotaError: mockSetModelSwitchedFromQuotaError,
|
|
229
|
-
}));
|
|
230
|
-
const handler = setFallbackHandlerSpy.mock
|
|
231
|
-
.calls[0][0];
|
|
232
|
-
const promise = handler('gemini-pro', 'gemini-flash', new Error('pro quota'));
|
|
233
|
-
await act(async () => { }); // Allow state to update
|
|
234
|
-
act(() => {
|
|
235
|
-
result.current.handleProQuotaChoice('auth');
|
|
236
|
-
});
|
|
237
|
-
const intent = await promise;
|
|
238
|
-
expect(intent).toBe('auth');
|
|
239
|
-
expect(mockSetAuthState).toHaveBeenCalledWith(AuthState.Updating);
|
|
240
|
-
expect(result.current.proQuotaRequest).toBeNull();
|
|
241
|
-
});
|
|
242
|
-
it('should resolve intent to "retry" and add info message on continue', async () => {
|
|
243
|
-
const { result } = renderHook(() => useQuotaAndFallback({
|
|
244
|
-
config: mockConfig,
|
|
245
|
-
historyManager: mockHistoryManager,
|
|
246
|
-
userTier: UserTierId.FREE,
|
|
247
|
-
setAuthState: mockSetAuthState,
|
|
248
|
-
setModelSwitchedFromQuotaError: mockSetModelSwitchedFromQuotaError,
|
|
249
|
-
}));
|
|
250
|
-
const handler = setFallbackHandlerSpy.mock
|
|
251
|
-
.calls[0][0];
|
|
252
|
-
// The first `addItem` call is for the initial quota error message
|
|
253
|
-
const promise = handler('gemini-pro', 'gemini-flash', new Error('pro quota'));
|
|
254
|
-
await act(async () => { }); // Allow state to update
|
|
255
|
-
act(() => {
|
|
256
|
-
result.current.handleProQuotaChoice('continue');
|
|
257
|
-
});
|
|
258
|
-
const intent = await promise;
|
|
259
|
-
expect(intent).toBe('retry');
|
|
260
|
-
expect(result.current.proQuotaRequest).toBeNull();
|
|
261
|
-
// Check for the second "Switched to fallback model" message
|
|
262
|
-
expect(mockHistoryManager.addItem).toHaveBeenCalledTimes(2);
|
|
263
|
-
const lastCall = mockHistoryManager.addItem.mock.calls[1][0];
|
|
264
|
-
expect(lastCall.type).toBe(MessageType.INFO);
|
|
265
|
-
expect(lastCall.text).toContain('Switched to fallback model.');
|
|
266
|
-
});
|
|
267
|
-
});
|
|
268
|
-
});
|
|
269
|
-
//# sourceMappingURL=useQuotaAndFallback.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQuotaAndFallback.test.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useQuotaAndFallback.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,EAAE,EACF,QAAQ,EACR,EAAE,EACF,MAAM,EACN,UAAU,EACV,SAAS,GAEV,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAGL,UAAU,EACV,QAAQ,EACR,2BAA2B,EAC3B,uBAAuB,EACvB,cAAc,GACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAErD,oFAAoF;AACpF,EAAE,CAAC,IAAI,CAAC,+BAA+B,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IAChE,MAAM,QAAQ,GACZ,MAAM,cAAc,EAAkD,CAAC;IACzE,OAAO;QACL,GAAG,QAAQ;QACX,2BAA2B,EAAE,EAAE,CAAC,EAAE,EAAE;QACpC,uBAAuB,EAAE,EAAE,CAAC,EAAE,EAAE;KACjC,CAAC;AACJ,CAAC,CAAC,CAAC;AAKH,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,UAAkB,CAAC;IACvB,IAAI,kBAA2C,CAAC;IAChD,IAAI,gBAAsB,CAAC;IAC3B,IAAI,kCAAwC,CAAC;IAC7C,IAAI,qBAAkC,CAAC;IAEvC,MAAM,iCAAiC,GAAG,2BAAmC,CAAC;IAC9E,MAAM,6BAA6B,GAAG,uBAA+B,CAAC;IAEtE,UAAU,CAAC,GAAG,EAAE;QACd,UAAU,GAAG,cAAc,EAAE,CAAC;QAE9B,yEAAy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,MAAM,GAAG,MAAM,OAAO,CAAC;YAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7B,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE,CAAC;YAElD,4DAA4D;YAC5D,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAC5D,MAAM,QAAQ,GAAI,kBAAkB,CAAC,OAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAC7C,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { Config, ToolCallRequestInfo, ExecutingToolCall, ScheduledToolCall, ValidatingToolCall, WaitingToolCall, CompletedToolCall, CancelledToolCall, EditorType } from '@papert-code/papert-code-core';
|
|
7
|
-
import type { HistoryItemToolGroup } from '../types.js';
|
|
8
|
-
export type ScheduleFn = (request: ToolCallRequestInfo | ToolCallRequestInfo[], signal: AbortSignal) => void;
|
|
9
|
-
export type MarkToolsAsSubmittedFn = (callIds: string[]) => void;
|
|
10
|
-
export type TrackedScheduledToolCall = ScheduledToolCall & {
|
|
11
|
-
responseSubmittedToGemini?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type TrackedValidatingToolCall = ValidatingToolCall & {
|
|
14
|
-
responseSubmittedToGemini?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type TrackedWaitingToolCall = WaitingToolCall & {
|
|
17
|
-
responseSubmittedToGemini?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export type TrackedExecutingToolCall = ExecutingToolCall & {
|
|
20
|
-
responseSubmittedToGemini?: boolean;
|
|
21
|
-
pid?: number;
|
|
22
|
-
};
|
|
23
|
-
export type TrackedCompletedToolCall = CompletedToolCall & {
|
|
24
|
-
responseSubmittedToGemini?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export type TrackedCancelledToolCall = CancelledToolCall & {
|
|
27
|
-
responseSubmittedToGemini?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export type TrackedToolCall = TrackedScheduledToolCall | TrackedValidatingToolCall | TrackedWaitingToolCall | TrackedExecutingToolCall | TrackedCompletedToolCall | TrackedCancelledToolCall;
|
|
30
|
-
export declare function useReactToolScheduler(onComplete: (tools: CompletedToolCall[]) => Promise<void>, config: Config, getPreferredEditor: () => EditorType | undefined, onEditorClose: () => void): [TrackedToolCall[], ScheduleFn, MarkToolsAsSubmittedFn];
|
|
31
|
-
/**
|
|
32
|
-
* Transforms `TrackedToolCall` objects into `HistoryItemToolGroup` objects for UI display.
|
|
33
|
-
*/
|
|
34
|
-
export declare function mapToDisplay(toolOrTools: TrackedToolCall[] | TrackedToolCall): HistoryItemToolGroup;
|