osagent 0.1.41 → 0.1.43
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 +73 -0
- package/README.md +310 -0
- package/cli.js +387771 -0
- package/package.json +23 -84
- package/vendor/ripgrep/COPYING +3 -0
- package/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/vendor/ripgrep/arm64-linux/rg +0 -0
- package/vendor/ripgrep/x64-darwin/rg +0 -0
- package/vendor/ripgrep/x64-linux/rg +0 -0
- package/vendor/ripgrep/x64-win32/rg.exe +0 -0
- 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 -102
- package/dist/src/commands/doctor.d.ts +0 -7
- package/dist/src/commands/doctor.js +0 -171
- package/dist/src/commands/doctor.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/QWEN.md +0 -8
- package/dist/src/commands/extensions/examples/context/qwen-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/qwen-extension.json +0 -4
- package/dist/src/commands/extensions/examples/exclude-tools/qwen-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/qwen-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 -2
- package/dist/src/commands/extensions.js +0 -28
- 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 -7
- package/dist/src/config/auth.js +0 -46
- 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 -58
- package/dist/src/config/config.js +0 -678
- 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 -72
- package/dist/src/config/settings.js +0 -631
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/config/settingsSchema.d.ts +0 -1189
- package/dist/src/config/settingsSchema.js +0 -1129
- 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 -34
- 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 -44
- 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 -23
- package/dist/src/core/theme.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -13
- package/dist/src/gemini.js +0 -328
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -507
- 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/i18n/index.d.ts +0 -18
- package/dist/src/i18n/index.js +0 -184
- package/dist/src/i18n/index.js.map +0 -1
- package/dist/src/nonInteractive/control/ControlContext.d.ts +0 -63
- package/dist/src/nonInteractive/control/ControlContext.js +0 -31
- package/dist/src/nonInteractive/control/ControlContext.js.map +0 -1
- package/dist/src/nonInteractive/control/ControlDispatcher.d.ts +0 -86
- package/dist/src/nonInteractive/control/ControlDispatcher.js +0 -238
- package/dist/src/nonInteractive/control/ControlDispatcher.js.map +0 -1
- package/dist/src/nonInteractive/control/ControlDispatcher.test.d.ts +0 -6
- package/dist/src/nonInteractive/control/ControlDispatcher.test.js +0 -549
- package/dist/src/nonInteractive/control/ControlDispatcher.test.js.map +0 -1
- package/dist/src/nonInteractive/control/ControlService.d.ts +0 -78
- package/dist/src/nonInteractive/control/ControlService.js +0 -154
- package/dist/src/nonInteractive/control/ControlService.js.map +0 -1
- package/dist/src/nonInteractive/control/controllers/baseController.d.ts +0 -50
- package/dist/src/nonInteractive/control/controllers/baseController.js +0 -102
- package/dist/src/nonInteractive/control/controllers/baseController.js.map +0 -1
- package/dist/src/nonInteractive/control/controllers/hookController.d.ts +0 -25
- package/dist/src/nonInteractive/control/controllers/hookController.js +0 -42
- package/dist/src/nonInteractive/control/controllers/hookController.js.map +0 -1
- package/dist/src/nonInteractive/control/controllers/mcpController.d.ts +0 -42
- package/dist/src/nonInteractive/control/controllers/mcpController.js +0 -205
- package/dist/src/nonInteractive/control/controllers/mcpController.js.map +0 -1
- package/dist/src/nonInteractive/control/controllers/permissionController.d.ts +0 -78
- package/dist/src/nonInteractive/control/controllers/permissionController.js +0 -358
- package/dist/src/nonInteractive/control/controllers/permissionController.js.map +0 -1
- package/dist/src/nonInteractive/control/controllers/systemController.d.ts +0 -56
- package/dist/src/nonInteractive/control/controllers/systemController.js +0 -166
- package/dist/src/nonInteractive/control/controllers/systemController.js.map +0 -1
- package/dist/src/nonInteractive/control/types/serviceAPIs.d.ts +0 -120
- package/dist/src/nonInteractive/control/types/serviceAPIs.js +0 -7
- package/dist/src/nonInteractive/control/types/serviceAPIs.js.map +0 -1
- package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.d.ts +0 -446
- package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.js +0 -891
- package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.js.map +0 -1
- package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.test.d.ts +0 -6
- package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.test.js +0 -1197
- package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.test.js.map +0 -1
- package/dist/src/nonInteractive/io/JsonOutputAdapter.d.ts +0 -29
- package/dist/src/nonInteractive/io/JsonOutputAdapter.js +0 -56
- package/dist/src/nonInteractive/io/JsonOutputAdapter.js.map +0 -1
- package/dist/src/nonInteractive/io/JsonOutputAdapter.test.d.ts +0 -6
- package/dist/src/nonInteractive/io/JsonOutputAdapter.test.js +0 -624
- package/dist/src/nonInteractive/io/JsonOutputAdapter.test.js.map +0 -1
- package/dist/src/nonInteractive/io/StreamJsonInputReader.d.ts +0 -16
- package/dist/src/nonInteractive/io/StreamJsonInputReader.js +0 -54
- package/dist/src/nonInteractive/io/StreamJsonInputReader.js.map +0 -1
- package/dist/src/nonInteractive/io/StreamJsonInputReader.test.d.ts +0 -6
- package/dist/src/nonInteractive/io/StreamJsonInputReader.test.js +0 -178
- package/dist/src/nonInteractive/io/StreamJsonInputReader.test.js.map +0 -1
- package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.d.ts +0 -69
- package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.js +0 -185
- package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.js.map +0 -1
- package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.test.d.ts +0 -6
- package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.test.js +0 -808
- package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.test.js.map +0 -1
- package/dist/src/nonInteractive/session.d.ts +0 -23
- package/dist/src/nonInteractive/session.js +0 -549
- package/dist/src/nonInteractive/session.js.map +0 -1
- package/dist/src/nonInteractive/session.test.d.ts +0 -6
- package/dist/src/nonInteractive/session.test.js +0 -407
- package/dist/src/nonInteractive/session.test.js.map +0 -1
- package/dist/src/nonInteractive/types.d.ts +0 -344
- package/dist/src/nonInteractive/types.js +0 -78
- package/dist/src/nonInteractive/types.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -28
- package/dist/src/nonInteractiveCli.js +0 -268
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/nonInteractiveCliCommands.d.ts +0 -35
- package/dist/src/nonInteractiveCliCommands.js +0 -144
- 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/patches/punycode-shim.d.ts +0 -6
- package/dist/src/patches/punycode-shim.js +0 -19
- package/dist/src/patches/punycode-shim.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +0 -24
- package/dist/src/services/BuiltinCommandLoader.js +0 -120
- 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 -167
- 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 -254
- 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/ProjectAnalyzerService.d.ts +0 -136
- package/dist/src/services/ProjectAnalyzerService.js +0 -433
- package/dist/src/services/ProjectAnalyzerService.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 -93
- 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 -1139
- 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 -7
- 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 -392
- 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 -24
- package/dist/src/ui/auth/AuthInProgress.js.map +0 -1
- package/dist/src/ui/auth/useAuth.d.ts +0 -26
- package/dist/src/ui/auth/useAuth.js +0 -212
- 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 -25
- 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 -212
- 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 -19
- 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 -19
- 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 -51
- 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 -351
- 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 -30
- 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 -71
- package/dist/src/ui/commands/compressCommand.js.map +0 -1
- package/dist/src/ui/commands/consultCommand.d.ts +0 -12
- package/dist/src/ui/commands/consultCommand.js +0 -193
- package/dist/src/ui/commands/consultCommand.js.map +0 -1
- package/dist/src/ui/commands/contextCommand.d.ts +0 -7
- package/dist/src/ui/commands/contextCommand.js +0 -89
- package/dist/src/ui/commands/contextCommand.js.map +0 -1
- package/dist/src/ui/commands/continueCommand.d.ts +0 -10
- package/dist/src/ui/commands/continueCommand.js +0 -218
- package/dist/src/ui/commands/continueCommand.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.d.ts +0 -7
- package/dist/src/ui/commands/copyCommand.js +0 -62
- 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/dangerouslyCommand.d.ts +0 -15
- package/dist/src/ui/commands/dangerouslyCommand.js +0 -100
- package/dist/src/ui/commands/dangerouslyCommand.js.map +0 -1
- package/dist/src/ui/commands/delegateCommand.d.ts +0 -7
- package/dist/src/ui/commands/delegateCommand.js +0 -139
- package/dist/src/ui/commands/delegateCommand.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +0 -8
- package/dist/src/ui/commands/directoryCommand.js +0 -153
- 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 -40
- package/dist/src/ui/commands/docsCommand.js.map +0 -1
- package/dist/src/ui/commands/doctorCommand.d.ts +0 -7
- package/dist/src/ui/commands/doctorCommand.js +0 -681
- package/dist/src/ui/commands/doctorCommand.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.d.ts +0 -7
- package/dist/src/ui/commands/editorCommand.js +0 -19
- 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 -115
- 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 -24
- 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 -241
- 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 -118
- package/dist/src/ui/commands/initCommand.js.map +0 -1
- package/dist/src/ui/commands/languageCommand.d.ts +0 -7
- package/dist/src/ui/commands/languageCommand.js +0 -386
- package/dist/src/ui/commands/languageCommand.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.d.ts +0 -7
- package/dist/src/ui/commands/mcpCommand.js +0 -269
- 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 -254
- 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 -58
- 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/openaiProfileCommand.d.ts +0 -7
- package/dist/src/ui/commands/openaiProfileCommand.js +0 -135
- package/dist/src/ui/commands/openaiProfileCommand.js.map +0 -1
- package/dist/src/ui/commands/permissionsCommand.d.ts +0 -7
- package/dist/src/ui/commands/permissionsCommand.js +0 -19
- 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/providerCommand.d.ts +0 -11
- package/dist/src/ui/commands/providerCommand.js +0 -359
- package/dist/src/ui/commands/providerCommand.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.d.ts +0 -8
- package/dist/src/ui/commands/quitCommand.js +0 -64
- package/dist/src/ui/commands/quitCommand.js.map +0 -1
- package/dist/src/ui/commands/resetCommand.d.ts +0 -11
- package/dist/src/ui/commands/resetCommand.js +0 -34
- package/dist/src/ui/commands/resetCommand.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 -19
- 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 -157
- 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/spCommand.d.ts +0 -7
- package/dist/src/ui/commands/spCommand.js +0 -352
- package/dist/src/ui/commands/spCommand.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.d.ts +0 -7
- package/dist/src/ui/commands/statsCommand.js +0 -61
- 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 -156
- package/dist/src/ui/commands/summaryCommand.js.map +0 -1
- package/dist/src/ui/commands/systemPromptCommand.d.ts +0 -7
- package/dist/src/ui/commands/systemPromptCommand.js +0 -322
- package/dist/src/ui/commands/systemPromptCommand.js.map +0 -1
- package/dist/src/ui/commands/taskmasterCommand.d.ts +0 -10
- package/dist/src/ui/commands/taskmasterCommand.js +0 -174
- package/dist/src/ui/commands/taskmasterCommand.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
- package/dist/src/ui/commands/terminalSetupCommand.js +0 -47
- 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 -19
- 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 -45
- package/dist/src/ui/commands/toolsCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -188
- package/dist/src/ui/commands/types.js +0 -12
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/commands/viewCommand.d.ts +0 -7
- package/dist/src/ui/commands/viewCommand.js +0 -160
- package/dist/src/ui/commands/viewCommand.js.map +0 -1
- package/dist/src/ui/commands/vimCommand.d.ts +0 -7
- package/dist/src/ui/commands/vimCommand.js +0 -26
- 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 -10
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AgentResponseFooter.d.ts +0 -19
- package/dist/src/ui/components/AgentResponseFooter.js +0 -43
- package/dist/src/ui/components/AgentResponseFooter.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 -68
- package/dist/src/ui/components/ApprovalModeDialog.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -13
- package/dist/src/ui/components/AsciiArt.js +0 -47
- 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 -32
- 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 -56
- 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 -42
- 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/ConsultationDisplay.d.ts +0 -22
- package/dist/src/ui/components/ConsultationDisplay.js +0 -26
- package/dist/src/ui/components/ConsultationDisplay.js.map +0 -1
- package/dist/src/ui/components/ConsultationPanel.d.ts +0 -11
- package/dist/src/ui/components/ConsultationPanel.js +0 -36
- package/dist/src/ui/components/ConsultationPanel.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -20
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -90
- 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 -58
- 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 -192
- 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 -85
- 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 -48
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -21
- 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 -23
- 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 -583
- 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 -39
- 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 -43
- 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 -34
- 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 -32
- package/dist/src/ui/components/OpenAIKeyPrompt.js +0 -196
- 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/OrchestrationStatusDisplay.d.ts +0 -15
- package/dist/src/ui/components/OrchestrationStatusDisplay.js +0 -58
- package/dist/src/ui/components/OrchestrationStatusDisplay.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 -31
- 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/QueueStatusBar.d.ts +0 -17
- package/dist/src/ui/components/QueueStatusBar.js +0 -25
- package/dist/src/ui/components/QueueStatusBar.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 -49
- 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/QwenOAuthProgress.d.ts +0 -16
- package/dist/src/ui/components/QwenOAuthProgress.js +0 -111
- package/dist/src/ui/components/QwenOAuthProgress.js.map +0 -1
- package/dist/src/ui/components/QwenOAuthProgress.test.d.ts +0 -6
- package/dist/src/ui/components/QwenOAuthProgress.test.js +0 -364
- package/dist/src/ui/components/QwenOAuthProgress.test.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -5
- 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 -647
- 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 -1037
- 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 -50
- 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 -44
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/StatusBar.d.ts +0 -14
- package/dist/src/ui/components/StatusBar.js +0 -106
- package/dist/src/ui/components/StatusBar.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/TaskMasterPanel.d.ts +0 -18
- package/dist/src/ui/components/TaskMasterPanel.js +0 -142
- package/dist/src/ui/components/TaskMasterPanel.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -20
- package/dist/src/ui/components/ThemeDialog.js +0 -126
- 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 -10
- 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 -42
- 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 -43
- 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 -12
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -62
- 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 -245
- 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 -190
- 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 -16
- 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 -186
- 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 -174
- 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 -107
- 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 -39
- 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 -39
- 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 -145
- 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 -71
- 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 -36
- 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 -73
- 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 -231
- 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 -20
- 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 -212
- 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/runtime/MultiAgentSummary.d.ts +0 -50
- package/dist/src/ui/components/subagents/runtime/MultiAgentSummary.js +0 -131
- package/dist/src/ui/components/subagents/runtime/MultiAgentSummary.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 -90
- 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 -8
- 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/ConsultationContext.d.ts +0 -63
- package/dist/src/ui/contexts/ConsultationContext.js +0 -186
- package/dist/src/ui/contexts/ConsultationContext.js.map +0 -1
- package/dist/src/ui/contexts/IntelligentOrchestratorContext.d.ts +0 -87
- package/dist/src/ui/contexts/IntelligentOrchestratorContext.js +0 -336
- package/dist/src/ui/contexts/IntelligentOrchestratorContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +0 -35
- package/dist/src/ui/contexts/KeypressContext.js +0 -637
- 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/OrchestrationContext.d.ts +0 -55
- package/dist/src/ui/contexts/OrchestrationContext.js +0 -239
- package/dist/src/ui/contexts/OrchestrationContext.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/RoadmapContext.d.ts +0 -61
- package/dist/src/ui/contexts/RoadmapContext.js +0 -230
- package/dist/src/ui/contexts/RoadmapContext.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/TaskmasterContext.d.ts +0 -87
- package/dist/src/ui/contexts/TaskmasterContext.js +0 -184
- package/dist/src/ui/contexts/TaskmasterContext.js.map +0 -1
- package/dist/src/ui/contexts/TodoContext.d.ts +0 -26
- package/dist/src/ui/contexts/TodoContext.js +0 -50
- package/dist/src/ui/contexts/TodoContext.js.map +0 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +0 -46
- package/dist/src/ui/contexts/UIActionsContext.js +0 -22
- package/dist/src/ui/contexts/UIActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +0 -116
- 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 -48
- 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 -53
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -510
- 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/useAttentionNotifications.d.ts +0 -14
- package/dist/src/ui/hooks/useAttentionNotifications.js +0 -41
- package/dist/src/ui/hooks/useAttentionNotifications.js.map +0 -1
- package/dist/src/ui/hooks/useAttentionNotifications.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAttentionNotifications.test.js +0 -113
- package/dist/src/ui/hooks/useAttentionNotifications.test.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 -29
- package/dist/src/ui/hooks/useCommandCompletion.js +0 -164
- 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/useConsultationGenerator.d.ts +0 -17
- package/dist/src/ui/hooks/useConsultationGenerator.js +0 -207
- package/dist/src/ui/hooks/useConsultationGenerator.js.map +0 -1
- package/dist/src/ui/hooks/useDialogClose.d.ts +0 -35
- 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/useGeminiStream.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGeminiStream.test.js +0 -2036
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.js +0 -61
- 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 -189
- 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/useInitializationAuthError.d.ts +0 -22
- package/dist/src/ui/hooks/useInitializationAuthError.js +0 -40
- package/dist/src/ui/hooks/useInitializationAuthError.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/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 -192
- package/dist/src/ui/hooks/usePhraseCycler.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/useQwenAuth.d.ts +0 -15
- package/dist/src/ui/hooks/useQwenAuth.js +0 -74
- package/dist/src/ui/hooks/useQwenAuth.js.map +0 -1
- package/dist/src/ui/hooks/useQwenAuth.test.d.ts +0 -6
- package/dist/src/ui/hooks/useQwenAuth.test.js +0 -266
- package/dist/src/ui/hooks/useQwenAuth.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/useTaskmasterOrchestrator.d.ts +0 -35
- package/dist/src/ui/hooks/useTaskmasterOrchestrator.js +0 -177
- package/dist/src/ui/hooks/useTaskmasterOrchestrator.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 -73
- 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 -14
- 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 -56
- package/dist/src/ui/models/availableModels.js +0 -223
- 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 -29
- 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/qwen-dark.d.ts +0 -7
- package/dist/src/ui/themes/qwen-dark.js +0 -106
- package/dist/src/ui/themes/qwen-dark.js.map +0 -1
- package/dist/src/ui/themes/qwen-light.d.ts +0 -7
- package/dist/src/ui/themes/qwen-light.js +0 -131
- package/dist/src/ui/themes/qwen-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 -40
- package/dist/src/ui/utils/commandUtils.js +0 -146
- 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 -352
- 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 -308
- package/dist/src/ui/utils/terminalSetup.js.map +0 -1
- package/dist/src/ui/utils/terminalUI.d.ts +0 -162
- package/dist/src/ui/utils/terminalUI.js +0 -285
- package/dist/src/ui/utils/terminalUI.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/attentionNotification.d.ts +0 -20
- package/dist/src/utils/attentionNotification.js +0 -34
- package/dist/src/utils/attentionNotification.js.map +0 -1
- package/dist/src/utils/attentionNotification.test.d.ts +0 -6
- package/dist/src/utils/attentionNotification.test.js +0 -46
- package/dist/src/utils/attentionNotification.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 -55
- 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 -35
- package/dist/src/utils/errors.js +0 -106
- 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 -340
- 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/nonInteractiveHelpers.d.ts +0 -88
- package/dist/src/utils/nonInteractiveHelpers.js +0 -470
- package/dist/src/utils/nonInteractiveHelpers.js.map +0 -1
- package/dist/src/utils/nonInteractiveHelpers.test.d.ts +0 -6
- package/dist/src/utils/nonInteractiveHelpers.test.js +0 -945
- package/dist/src/utils/nonInteractiveHelpers.test.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 -346
- 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 -96
- 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 -74
- 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 -76
- 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 -12024
- package/dist/src/zed-integration/schema.js +0 -324
- 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 -1135
- package/dist/src/zed-integration/zedIntegration.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/{dist/src/i18n/locales → locales}/en.js +0 -0
- /package/{dist/src/i18n/locales → locales}/zh.js +0 -0
- /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,1139 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2025 OSAgent OC
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
import { useMemo, useState, useCallback, useEffect, useRef, useLayoutEffect, } from 'react';
|
|
8
|
-
import { measureElement } from 'ink';
|
|
9
|
-
import { App } from './App.js';
|
|
10
|
-
import { AppContext } from './contexts/AppContext.js';
|
|
11
|
-
import { UIStateContext } from './contexts/UIStateContext.js';
|
|
12
|
-
import { UIActionsContext, } from './contexts/UIActionsContext.js';
|
|
13
|
-
import { ConfigContext } from './contexts/ConfigContext.js';
|
|
14
|
-
import { ToolCallStatus, } from './types.js';
|
|
15
|
-
import { MessageType, StreamingState } from './types.js';
|
|
16
|
-
import { DEFAULT_OSA_FLASH_MODEL, IdeClient, ideContextStore, getErrorMessage, getAllOSAMdFilenames, ShellExecutionService, } from 'osagent-core';
|
|
17
|
-
import { validateAuthMethod } from '../config/auth.js';
|
|
18
|
-
import { loadHierarchicalOSAMemory } from '../config/config.js';
|
|
19
|
-
import process from 'node:process';
|
|
20
|
-
import { useHistory } from './hooks/useHistoryManager.js';
|
|
21
|
-
import { useMemoryMonitor } from './hooks/useMemoryMonitor.js';
|
|
22
|
-
import { useThemeCommand } from './hooks/useThemeCommand.js';
|
|
23
|
-
import { useAuthCommand } from './auth/useAuth.js';
|
|
24
|
-
import { useQuotaAndFallback } from './hooks/useQuotaAndFallback.js';
|
|
25
|
-
import { useEditorSettings } from './hooks/useEditorSettings.js';
|
|
26
|
-
import { useSettingsCommand } from './hooks/useSettingsCommand.js';
|
|
27
|
-
import { useModelCommand } from './hooks/useModelCommand.js';
|
|
28
|
-
import { useApprovalModeCommand } from './hooks/useApprovalModeCommand.js';
|
|
29
|
-
import { useSlashCommandProcessor } from './hooks/slashCommandProcessor.js';
|
|
30
|
-
import { useVimMode } from './contexts/VimModeContext.js';
|
|
31
|
-
import { useConsoleMessages } from './hooks/useConsoleMessages.js';
|
|
32
|
-
import { useTerminalSize } from './hooks/useTerminalSize.js';
|
|
33
|
-
import { calculatePromptWidths } from './components/InputPrompt.js';
|
|
34
|
-
import { useStdin, useStdout } from 'ink';
|
|
35
|
-
import ansiEscapes from 'ansi-escapes';
|
|
36
|
-
import * as fs from 'node:fs';
|
|
37
|
-
import { basename } from 'node:path';
|
|
38
|
-
import { computeWindowTitle } from '../utils/windowTitle.js';
|
|
39
|
-
import { useTextBuffer } from './components/shared/text-buffer.js';
|
|
40
|
-
import { useLogger } from './hooks/useLogger.js';
|
|
41
|
-
import { useOSAStream } from './hooks/useGeminiStream.js';
|
|
42
|
-
import { useVim } from './hooks/vim.js';
|
|
43
|
-
import { SettingScope } from '../config/settings.js';
|
|
44
|
-
import {} from '../core/initializer.js';
|
|
45
|
-
import { useFocus } from './hooks/useFocus.js';
|
|
46
|
-
import { useBracketedPaste } from './hooks/useBracketedPaste.js';
|
|
47
|
-
import { useKeypress } from './hooks/useKeypress.js';
|
|
48
|
-
import { keyMatchers, Command } from './keyMatchers.js';
|
|
49
|
-
import { useLoadingIndicator } from './hooks/useLoadingIndicator.js';
|
|
50
|
-
import { useFolderTrust } from './hooks/useFolderTrust.js';
|
|
51
|
-
import { useIdeTrustListener } from './hooks/useIdeTrustListener.js';
|
|
52
|
-
import {} from './IdeIntegrationNudge.js';
|
|
53
|
-
import { appEvents, AppEvent } from '../utils/events.js';
|
|
54
|
-
import {} from './utils/updateCheck.js';
|
|
55
|
-
import { setUpdateHandler } from '../utils/handleAutoUpdate.js';
|
|
56
|
-
import { ConsolePatcher } from './utils/ConsolePatcher.js';
|
|
57
|
-
import { registerCleanup, runExitCleanup } from '../utils/cleanup.js';
|
|
58
|
-
import { useMessageQueue } from './hooks/useMessageQueue.js';
|
|
59
|
-
import { useConsultationGenerator } from './hooks/useConsultationGenerator.js';
|
|
60
|
-
import { useConsultation } from './contexts/ConsultationContext.js';
|
|
61
|
-
import { useAutoAcceptIndicator } from './hooks/useAutoAcceptIndicator.js';
|
|
62
|
-
import { useWorkspaceMigration } from './hooks/useWorkspaceMigration.js';
|
|
63
|
-
import { useSessionStats } from './contexts/SessionContext.js';
|
|
64
|
-
import { OrchestrationProvider } from './contexts/OrchestrationContext.js';
|
|
65
|
-
import { useGitBranchName } from './hooks/useGitBranchName.js';
|
|
66
|
-
import { useExtensionUpdates } from './hooks/useExtensionUpdates.js';
|
|
67
|
-
import { ShellFocusContext } from './contexts/ShellFocusContext.js';
|
|
68
|
-
import { useQuitConfirmation } from './hooks/useQuitConfirmation.js';
|
|
69
|
-
import { t } from '../i18n/index.js';
|
|
70
|
-
import { useWelcomeBack } from './hooks/useWelcomeBack.js';
|
|
71
|
-
import { useDialogClose } from './hooks/useDialogClose.js';
|
|
72
|
-
import { useInitializationAuthError } from './hooks/useInitializationAuthError.js';
|
|
73
|
-
import {} from './components/ModelSwitchDialog.js';
|
|
74
|
-
import { processVisionSwitchOutcome } from './hooks/useVisionAutoSwitch.js';
|
|
75
|
-
import { useSubagentCreateDialog } from './hooks/useSubagentCreateDialog.js';
|
|
76
|
-
import { useAgentsManagerDialog } from './hooks/useAgentsManagerDialog.js';
|
|
77
|
-
import { useAttentionNotifications } from './hooks/useAttentionNotifications.js';
|
|
78
|
-
const CTRL_EXIT_PROMPT_DURATION_MS = 1000;
|
|
79
|
-
function isToolExecuting(pendingHistoryItems) {
|
|
80
|
-
return pendingHistoryItems.some((item) => {
|
|
81
|
-
if (item && item.type === 'tool_group') {
|
|
82
|
-
return item.tools.some((tool) => ToolCallStatus.Executing === tool.status);
|
|
83
|
-
}
|
|
84
|
-
return false;
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* The fraction of the terminal width to allocate to the shell.
|
|
89
|
-
* This provides horizontal padding.
|
|
90
|
-
*/
|
|
91
|
-
const SHELL_WIDTH_FRACTION = 0.89;
|
|
92
|
-
/**
|
|
93
|
-
* The number of lines to subtract from the available terminal height
|
|
94
|
-
* for the shell. This provides vertical padding and space for other UI elements.
|
|
95
|
-
*/
|
|
96
|
-
const SHELL_HEIGHT_PADDING = 10;
|
|
97
|
-
export const AppContainer = (props) => {
|
|
98
|
-
const { settings, config, initializationResult } = props;
|
|
99
|
-
const historyManager = useHistory();
|
|
100
|
-
useMemoryMonitor(historyManager);
|
|
101
|
-
const [corgiMode, setCorgiMode] = useState(false);
|
|
102
|
-
const [debugMessage, setDebugMessage] = useState('');
|
|
103
|
-
const [quittingMessages, setQuittingMessages] = useState(null);
|
|
104
|
-
const [themeError, setThemeError] = useState(initializationResult.themeError);
|
|
105
|
-
const [isProcessing, setIsProcessing] = useState(false);
|
|
106
|
-
const [embeddedShellFocused, setEmbeddedShellFocused] = useState(false);
|
|
107
|
-
const [OSAMdFileCount, setOSAMdFileCount] = useState(initializationResult.OSAMdFileCount);
|
|
108
|
-
const [shellModeActive, setShellModeActive] = useState(false);
|
|
109
|
-
const [modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError] = useState(false);
|
|
110
|
-
const [historyRemountKey, setHistoryRemountKey] = useState(0);
|
|
111
|
-
const [updateInfo, setUpdateInfo] = useState(null);
|
|
112
|
-
const [isTrustedFolder, setIsTrustedFolder] = useState(config.isTrustedFolder());
|
|
113
|
-
const [systemPromptPreset, setSystemPromptPreset] = useState(null);
|
|
114
|
-
const extensions = config.getExtensions();
|
|
115
|
-
const { extensionsUpdateState, extensionsUpdateStateInternal, dispatchExtensionStateUpdate, confirmUpdateExtensionRequests, addConfirmUpdateExtensionRequest, } = useExtensionUpdates(extensions, historyManager.addItem, config.getWorkingDir());
|
|
116
|
-
const [isPermissionsDialogOpen, setPermissionsDialogOpen] = useState(false);
|
|
117
|
-
const openPermissionsDialog = useCallback(() => setPermissionsDialogOpen(true), []);
|
|
118
|
-
const closePermissionsDialog = useCallback(() => setPermissionsDialogOpen(false), []);
|
|
119
|
-
// Helper to determine the effective model, considering the fallback state.
|
|
120
|
-
const getEffectiveModel = useCallback(() => {
|
|
121
|
-
if (config.isInFallbackMode()) {
|
|
122
|
-
return DEFAULT_OSA_FLASH_MODEL;
|
|
123
|
-
}
|
|
124
|
-
return config.getModel();
|
|
125
|
-
}, [config]);
|
|
126
|
-
const [currentModel, setCurrentModel] = useState(getEffectiveModel());
|
|
127
|
-
const [userTier] = useState(undefined);
|
|
128
|
-
const [isConfigInitialized, setConfigInitialized] = useState(false);
|
|
129
|
-
const logger = useLogger(config.storage);
|
|
130
|
-
const [userMessages, setUserMessages] = useState([]);
|
|
131
|
-
// Terminal and layout hooks
|
|
132
|
-
const { columns: terminalWidth, rows: terminalHeight } = useTerminalSize();
|
|
133
|
-
const { stdin, setRawMode } = useStdin();
|
|
134
|
-
const { stdout } = useStdout();
|
|
135
|
-
// Additional hooks moved from App.tsx
|
|
136
|
-
const { stats: sessionStats } = useSessionStats();
|
|
137
|
-
const branchName = useGitBranchName(config.getTargetDir());
|
|
138
|
-
// Consultation service for command context
|
|
139
|
-
const consultationContext = useConsultation();
|
|
140
|
-
// Layout measurements
|
|
141
|
-
const mainControlsRef = useRef(null);
|
|
142
|
-
const originalTitleRef = useRef(computeWindowTitle(basename(config.getTargetDir())));
|
|
143
|
-
const lastTitleRef = useRef(null);
|
|
144
|
-
const staticExtraHeight = 3;
|
|
145
|
-
useEffect(() => {
|
|
146
|
-
(async () => {
|
|
147
|
-
// Note: the program will not work if this fails so let errors be
|
|
148
|
-
// handled by the global catch.
|
|
149
|
-
await config.initialize();
|
|
150
|
-
setConfigInitialized(true);
|
|
151
|
-
})();
|
|
152
|
-
registerCleanup(async () => {
|
|
153
|
-
const ideClient = await IdeClient.getInstance();
|
|
154
|
-
await ideClient.disconnect();
|
|
155
|
-
});
|
|
156
|
-
}, [config]);
|
|
157
|
-
useEffect(() => setUpdateHandler(historyManager.addItem, setUpdateInfo), [historyManager.addItem]);
|
|
158
|
-
// Watch for model changes (e.g., from Flash fallback)
|
|
159
|
-
useEffect(() => {
|
|
160
|
-
const checkModelChange = () => {
|
|
161
|
-
const effectiveModel = getEffectiveModel();
|
|
162
|
-
if (effectiveModel !== currentModel) {
|
|
163
|
-
setCurrentModel(effectiveModel);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
checkModelChange();
|
|
167
|
-
const interval = setInterval(checkModelChange, 1000); // Check every second
|
|
168
|
-
return () => clearInterval(interval);
|
|
169
|
-
}, [config, currentModel, getEffectiveModel]);
|
|
170
|
-
const { consoleMessages, handleNewMessage, clearConsoleMessages: clearConsoleMessagesState, } = useConsoleMessages();
|
|
171
|
-
useEffect(() => {
|
|
172
|
-
const consolePatcher = new ConsolePatcher({
|
|
173
|
-
onNewMessage: handleNewMessage,
|
|
174
|
-
debugMode: config.getDebugMode(),
|
|
175
|
-
});
|
|
176
|
-
consolePatcher.patch();
|
|
177
|
-
registerCleanup(consolePatcher.cleanup);
|
|
178
|
-
}, [handleNewMessage, config]);
|
|
179
|
-
// Derive widths for InputPrompt using shared helper
|
|
180
|
-
const { inputWidth, suggestionsWidth } = useMemo(() => {
|
|
181
|
-
const { inputWidth, suggestionsWidth } = calculatePromptWidths(terminalWidth);
|
|
182
|
-
return { inputWidth, suggestionsWidth };
|
|
183
|
-
}, [terminalWidth]);
|
|
184
|
-
const mainAreaWidth = Math.floor(terminalWidth * 0.9);
|
|
185
|
-
const staticAreaMaxItemHeight = Math.max(terminalHeight * 4, 100);
|
|
186
|
-
const isValidPath = useCallback((filePath) => {
|
|
187
|
-
try {
|
|
188
|
-
return fs.existsSync(filePath) && fs.statSync(filePath).isFile();
|
|
189
|
-
}
|
|
190
|
-
catch (_e) {
|
|
191
|
-
return false;
|
|
192
|
-
}
|
|
193
|
-
}, []);
|
|
194
|
-
const buffer = useTextBuffer({
|
|
195
|
-
initialText: '',
|
|
196
|
-
viewport: { height: 10, width: inputWidth },
|
|
197
|
-
stdin,
|
|
198
|
-
setRawMode,
|
|
199
|
-
isValidPath,
|
|
200
|
-
shellModeActive,
|
|
201
|
-
});
|
|
202
|
-
useEffect(() => {
|
|
203
|
-
const fetchUserMessages = async () => {
|
|
204
|
-
const pastMessagesRaw = (await logger?.getPreviousUserMessages()) || [];
|
|
205
|
-
const currentSessionUserMessages = historyManager.history
|
|
206
|
-
.filter((item) => item.type === 'user' &&
|
|
207
|
-
typeof item.text === 'string' &&
|
|
208
|
-
item.text.trim() !== '')
|
|
209
|
-
.map((item) => item.text)
|
|
210
|
-
.reverse();
|
|
211
|
-
const combinedMessages = [
|
|
212
|
-
...currentSessionUserMessages,
|
|
213
|
-
...pastMessagesRaw,
|
|
214
|
-
];
|
|
215
|
-
const deduplicatedMessages = [];
|
|
216
|
-
if (combinedMessages.length > 0) {
|
|
217
|
-
deduplicatedMessages.push(combinedMessages[0]);
|
|
218
|
-
for (let i = 1; i < combinedMessages.length; i++) {
|
|
219
|
-
if (combinedMessages[i] !== combinedMessages[i - 1]) {
|
|
220
|
-
deduplicatedMessages.push(combinedMessages[i]);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
setUserMessages(deduplicatedMessages.reverse());
|
|
225
|
-
};
|
|
226
|
-
fetchUserMessages();
|
|
227
|
-
}, [historyManager.history, logger]);
|
|
228
|
-
const refreshStatic = useCallback(() => {
|
|
229
|
-
stdout.write(ansiEscapes.clearTerminal);
|
|
230
|
-
setHistoryRemountKey((prev) => prev + 1);
|
|
231
|
-
}, [setHistoryRemountKey, stdout]);
|
|
232
|
-
const { isThemeDialogOpen, openThemeDialog, handleThemeSelect, handleThemeHighlight, } = useThemeCommand(settings, setThemeError, historyManager.addItem, initializationResult.themeError);
|
|
233
|
-
const { isApprovalModeDialogOpen, openApprovalModeDialog, handleApprovalModeSelect, } = useApprovalModeCommand(settings, config);
|
|
234
|
-
const { setAuthState, authError, onAuthError, isAuthDialogOpen, isAuthenticating, pendingAuthType, OSAAuthState, handleAuthSelect, openAuthDialog, startAuthForProvider, cancelAuthentication, } = useAuthCommand(settings, config, historyManager.addItem);
|
|
235
|
-
const { proQuotaRequest, handleProQuotaChoice } = useQuotaAndFallback({
|
|
236
|
-
config,
|
|
237
|
-
historyManager,
|
|
238
|
-
userTier,
|
|
239
|
-
setAuthState,
|
|
240
|
-
setModelSwitchedFromQuotaError,
|
|
241
|
-
});
|
|
242
|
-
useInitializationAuthError(initializationResult.authError, onAuthError);
|
|
243
|
-
// Sync user tier from config when authentication changes
|
|
244
|
-
// TODO: Implement getUserTier() method on Config if needed
|
|
245
|
-
// useEffect(() => {
|
|
246
|
-
// if (authState === AuthState.Authenticated) {
|
|
247
|
-
// setUserTier(config.getUserTier());
|
|
248
|
-
// }
|
|
249
|
-
// }, [config, authState]);
|
|
250
|
-
// Check for enforced auth type mismatch
|
|
251
|
-
useEffect(() => {
|
|
252
|
-
// Check for initialization error first
|
|
253
|
-
if (settings.merged.security?.auth?.enforcedType &&
|
|
254
|
-
settings.merged.security?.auth.selectedType &&
|
|
255
|
-
settings.merged.security?.auth.enforcedType !==
|
|
256
|
-
settings.merged.security?.auth.selectedType) {
|
|
257
|
-
onAuthError(t('Authentication is enforced to be {{enforcedType}}, but you are currently using {{currentType}}.', {
|
|
258
|
-
enforcedType: settings.merged.security?.auth.enforcedType,
|
|
259
|
-
currentType: settings.merged.security?.auth.selectedType,
|
|
260
|
-
}));
|
|
261
|
-
}
|
|
262
|
-
else if (settings.merged.security?.auth?.selectedType &&
|
|
263
|
-
!settings.merged.security?.auth?.useExternal) {
|
|
264
|
-
const error = validateAuthMethod(settings.merged.security.auth.selectedType, settings.merged);
|
|
265
|
-
if (error) {
|
|
266
|
-
onAuthError(error);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}, [
|
|
270
|
-
settings.merged,
|
|
271
|
-
settings.merged.security?.auth?.selectedType,
|
|
272
|
-
settings.merged.security?.auth?.enforcedType,
|
|
273
|
-
settings.merged.security?.auth?.useExternal,
|
|
274
|
-
onAuthError,
|
|
275
|
-
]);
|
|
276
|
-
const [editorError, setEditorError] = useState(null);
|
|
277
|
-
const { isEditorDialogOpen, openEditorDialog, handleEditorSelect, exitEditorDialog, } = useEditorSettings(settings, setEditorError, historyManager.addItem);
|
|
278
|
-
const { isSettingsDialogOpen, openSettingsDialog, closeSettingsDialog } = useSettingsCommand();
|
|
279
|
-
const { isModelDialogOpen, openModelDialog, closeModelDialog } = useModelCommand();
|
|
280
|
-
const { showWorkspaceMigrationDialog, workspaceExtensions, onWorkspaceMigrationDialogOpen, onWorkspaceMigrationDialogClose, } = useWorkspaceMigration(settings);
|
|
281
|
-
const { toggleVimEnabled } = useVimMode();
|
|
282
|
-
const { showQuitConfirmation } = useQuitConfirmation();
|
|
283
|
-
const { isSubagentCreateDialogOpen, openSubagentCreateDialog, closeSubagentCreateDialog, } = useSubagentCreateDialog();
|
|
284
|
-
const { isAgentsManagerDialogOpen, openAgentsManagerDialog, closeAgentsManagerDialog, } = useAgentsManagerDialog();
|
|
285
|
-
// Vision model auto-switch dialog state (must be before slashCommandActions)
|
|
286
|
-
const [isVisionSwitchDialogOpen, setIsVisionSwitchDialogOpen] = useState(false);
|
|
287
|
-
const [visionSwitchResolver, setVisionSwitchResolver] = useState(null);
|
|
288
|
-
const slashCommandActions = useMemo(() => ({
|
|
289
|
-
openAuthDialog,
|
|
290
|
-
openThemeDialog,
|
|
291
|
-
openEditorDialog,
|
|
292
|
-
openSettingsDialog,
|
|
293
|
-
openModelDialog,
|
|
294
|
-
openPermissionsDialog,
|
|
295
|
-
openApprovalModeDialog,
|
|
296
|
-
quit: (messages) => {
|
|
297
|
-
setQuittingMessages(messages);
|
|
298
|
-
setTimeout(async () => {
|
|
299
|
-
await runExitCleanup();
|
|
300
|
-
process.exit(0);
|
|
301
|
-
}, 100);
|
|
302
|
-
},
|
|
303
|
-
setDebugMessage,
|
|
304
|
-
toggleCorgiMode: () => setCorgiMode((prev) => !prev),
|
|
305
|
-
setSystemPromptPreset,
|
|
306
|
-
dispatchExtensionStateUpdate,
|
|
307
|
-
addConfirmUpdateExtensionRequest,
|
|
308
|
-
openSubagentCreateDialog,
|
|
309
|
-
openAgentsManagerDialog,
|
|
310
|
-
_showQuitConfirmation: showQuitConfirmation,
|
|
311
|
-
startAuthForProvider,
|
|
312
|
-
}), [
|
|
313
|
-
openAuthDialog,
|
|
314
|
-
openThemeDialog,
|
|
315
|
-
openEditorDialog,
|
|
316
|
-
openSettingsDialog,
|
|
317
|
-
openModelDialog,
|
|
318
|
-
setDebugMessage,
|
|
319
|
-
setCorgiMode,
|
|
320
|
-
setSystemPromptPreset,
|
|
321
|
-
dispatchExtensionStateUpdate,
|
|
322
|
-
openPermissionsDialog,
|
|
323
|
-
openApprovalModeDialog,
|
|
324
|
-
addConfirmUpdateExtensionRequest,
|
|
325
|
-
showQuitConfirmation,
|
|
326
|
-
openSubagentCreateDialog,
|
|
327
|
-
openAgentsManagerDialog,
|
|
328
|
-
startAuthForProvider,
|
|
329
|
-
]);
|
|
330
|
-
const { handleSlashCommand, slashCommands, pendingHistoryItems: pendingSlashCommandHistoryItems, commandContext, shellConfirmationRequest, confirmationRequest, quitConfirmationRequest, } = useSlashCommandProcessor(config, settings, historyManager.addItem, historyManager.clearItems, historyManager.loadHistory, refreshStatic, toggleVimEnabled, setIsProcessing, setOSAMdFileCount, slashCommandActions, extensionsUpdateStateInternal, isConfigInitialized,
|
|
331
|
-
// Consultation service for command context - always active
|
|
332
|
-
{
|
|
333
|
-
isActive: consultationContext.isActive,
|
|
334
|
-
consultationMode: consultationContext.consultationMode,
|
|
335
|
-
setConsultationMode: consultationContext.setConsultationMode,
|
|
336
|
-
addQuestion: consultationContext.addQuestion,
|
|
337
|
-
getContextForAgent: consultationContext.getContextForAgent,
|
|
338
|
-
clearContext: consultationContext.clearContext,
|
|
339
|
-
questionQueue: consultationContext.questionQueue,
|
|
340
|
-
});
|
|
341
|
-
// Vision switch handlers
|
|
342
|
-
const handleVisionSwitchRequired = useCallback(async (_query) => new Promise((resolve, reject) => {
|
|
343
|
-
setVisionSwitchResolver({ resolve, reject });
|
|
344
|
-
setIsVisionSwitchDialogOpen(true);
|
|
345
|
-
}), []);
|
|
346
|
-
const handleVisionSwitchSelect = useCallback((outcome) => {
|
|
347
|
-
setIsVisionSwitchDialogOpen(false);
|
|
348
|
-
if (visionSwitchResolver) {
|
|
349
|
-
const result = processVisionSwitchOutcome(outcome);
|
|
350
|
-
visionSwitchResolver.resolve(result);
|
|
351
|
-
setVisionSwitchResolver(null);
|
|
352
|
-
}
|
|
353
|
-
}, [visionSwitchResolver]);
|
|
354
|
-
// onDebugMessage should log to console, not update footer debugMessage
|
|
355
|
-
const onDebugMessage = useCallback((message) => {
|
|
356
|
-
console.debug(message);
|
|
357
|
-
}, []);
|
|
358
|
-
const performMemoryRefresh = useCallback(async () => {
|
|
359
|
-
historyManager.addItem({
|
|
360
|
-
type: MessageType.INFO,
|
|
361
|
-
text: 'Refreshing hierarchical memory (OSA.md or other context files)...',
|
|
362
|
-
}, Date.now());
|
|
363
|
-
try {
|
|
364
|
-
const { memoryContent, fileCount } = await loadHierarchicalOSAMemory(process.cwd(), settings.merged.context?.loadMemoryFromIncludeDirectories
|
|
365
|
-
? config.getWorkspaceContext().getDirectories()
|
|
366
|
-
: [], config.getDebugMode(), config.getFileService(), settings.merged, config.getExtensionContextFilePaths(), config.isTrustedFolder(), settings.merged.context?.importFormat || 'tree', // Use setting or default to 'tree'
|
|
367
|
-
config.getFileFilteringOptions());
|
|
368
|
-
config.setUserMemory(memoryContent);
|
|
369
|
-
config.setOSAMdFileCount(fileCount);
|
|
370
|
-
setOSAMdFileCount(fileCount);
|
|
371
|
-
historyManager.addItem({
|
|
372
|
-
type: MessageType.INFO,
|
|
373
|
-
text: `Memory refreshed successfully. ${memoryContent.length > 0
|
|
374
|
-
? `Loaded ${memoryContent.length} characters from ${fileCount} file(s).`
|
|
375
|
-
: 'No memory content found.'}`,
|
|
376
|
-
}, Date.now());
|
|
377
|
-
if (config.getDebugMode()) {
|
|
378
|
-
console.log(`[DEBUG] Refreshed memory content in config: ${memoryContent.substring(0, 200)}...`);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
catch (error) {
|
|
382
|
-
const errorMessage = getErrorMessage(error);
|
|
383
|
-
historyManager.addItem({
|
|
384
|
-
type: MessageType.ERROR,
|
|
385
|
-
text: `Error refreshing memory: ${errorMessage}`,
|
|
386
|
-
}, Date.now());
|
|
387
|
-
console.error('Error refreshing memory:', error);
|
|
388
|
-
}
|
|
389
|
-
}, [config, historyManager, settings.merged]);
|
|
390
|
-
const cancelHandlerRef = useRef(() => { });
|
|
391
|
-
const { streamingState, submitQuery, initError, pendingHistoryItems: pendingOSAHistoryItems, thought, cancelOngoingRequest, handleApprovalModeChange, activePtyId, loopDetectionConfirmationRequest, } = useOSAStream(config.getOSAClient(), historyManager.history, historyManager.addItem, config, settings, onDebugMessage, handleSlashCommand, shellModeActive, () => settings.merged.general?.preferredEditor, onAuthError, performMemoryRefresh, modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError, refreshStatic, () => cancelHandlerRef.current(), settings.merged.experimental?.visionModelPreview ?? false, // visionModelPreviewEnabled
|
|
392
|
-
setEmbeddedShellFocused, terminalWidth, terminalHeight, handleVisionSwitchRequired, // onVisionSwitchRequired
|
|
393
|
-
embeddedShellFocused);
|
|
394
|
-
// Auto-accept indicator
|
|
395
|
-
const showAutoAcceptIndicator = useAutoAcceptIndicator({
|
|
396
|
-
config,
|
|
397
|
-
addItem: historyManager.addItem,
|
|
398
|
-
onApprovalModeChange: handleApprovalModeChange,
|
|
399
|
-
});
|
|
400
|
-
const { messageQueue, addMessage, clearQueue, getQueuedMessagesText } = useMessageQueue({
|
|
401
|
-
isConfigInitialized,
|
|
402
|
-
streamingState,
|
|
403
|
-
submitQuery,
|
|
404
|
-
});
|
|
405
|
-
// Track the current prompt for consultation question generation
|
|
406
|
-
const [currentPrompt, setCurrentPrompt] = useState(undefined);
|
|
407
|
-
// Generate consultation questions based on the current prompt
|
|
408
|
-
useConsultationGenerator({
|
|
409
|
-
streamingState,
|
|
410
|
-
currentPrompt,
|
|
411
|
-
});
|
|
412
|
-
// Callback for handling final submit (must be after addMessage from useMessageQueue)
|
|
413
|
-
const handleFinalSubmit = useCallback((submittedValue) => {
|
|
414
|
-
// Track the current prompt for consultation generation
|
|
415
|
-
setCurrentPrompt(submittedValue);
|
|
416
|
-
addMessage(submittedValue);
|
|
417
|
-
}, [addMessage]);
|
|
418
|
-
// Welcome back functionality (must be after handleFinalSubmit)
|
|
419
|
-
const { welcomeBackInfo, showWelcomeBackDialog, welcomeBackChoice, handleWelcomeBackSelection, handleWelcomeBackClose, } = useWelcomeBack(config, handleFinalSubmit, buffer, settings.merged);
|
|
420
|
-
cancelHandlerRef.current = useCallback(() => {
|
|
421
|
-
const pendingHistoryItems = [
|
|
422
|
-
...pendingSlashCommandHistoryItems,
|
|
423
|
-
...pendingOSAHistoryItems,
|
|
424
|
-
];
|
|
425
|
-
if (isToolExecuting(pendingHistoryItems)) {
|
|
426
|
-
buffer.setText(''); // Just clear the prompt
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
const lastUserMessage = userMessages.at(-1);
|
|
430
|
-
let textToSet = lastUserMessage || '';
|
|
431
|
-
const queuedText = getQueuedMessagesText();
|
|
432
|
-
if (queuedText) {
|
|
433
|
-
textToSet = textToSet ? `${textToSet}\n\n${queuedText}` : queuedText;
|
|
434
|
-
clearQueue();
|
|
435
|
-
}
|
|
436
|
-
if (textToSet) {
|
|
437
|
-
buffer.setText(textToSet);
|
|
438
|
-
}
|
|
439
|
-
}, [
|
|
440
|
-
buffer,
|
|
441
|
-
userMessages,
|
|
442
|
-
getQueuedMessagesText,
|
|
443
|
-
clearQueue,
|
|
444
|
-
pendingSlashCommandHistoryItems,
|
|
445
|
-
pendingOSAHistoryItems,
|
|
446
|
-
]);
|
|
447
|
-
const handleClearScreen = useCallback(() => {
|
|
448
|
-
historyManager.clearItems();
|
|
449
|
-
clearConsoleMessagesState();
|
|
450
|
-
console.clear();
|
|
451
|
-
refreshStatic();
|
|
452
|
-
}, [historyManager, clearConsoleMessagesState, refreshStatic]);
|
|
453
|
-
const { handleInput: vimHandleInput } = useVim(buffer, handleFinalSubmit);
|
|
454
|
-
// Note: isInputActive is calculated later after all dialog states are defined
|
|
455
|
-
const [controlsHeight, setControlsHeight] = useState(0);
|
|
456
|
-
useLayoutEffect(() => {
|
|
457
|
-
if (mainControlsRef.current) {
|
|
458
|
-
const fullFooterMeasurement = measureElement(mainControlsRef.current);
|
|
459
|
-
if (fullFooterMeasurement.height > 0) {
|
|
460
|
-
setControlsHeight(fullFooterMeasurement.height);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
}, [buffer, terminalWidth, terminalHeight]);
|
|
464
|
-
// Compute available terminal height based on controls measurement
|
|
465
|
-
const availableTerminalHeight = Math.max(0, terminalHeight - controlsHeight - staticExtraHeight - 2);
|
|
466
|
-
config.setShellExecutionConfig({
|
|
467
|
-
terminalWidth: Math.floor(terminalWidth * SHELL_WIDTH_FRACTION),
|
|
468
|
-
terminalHeight: Math.max(Math.floor(availableTerminalHeight - SHELL_HEIGHT_PADDING), 1),
|
|
469
|
-
pager: settings.merged.tools?.shell?.pager,
|
|
470
|
-
showColor: settings.merged.tools?.shell?.showColor,
|
|
471
|
-
});
|
|
472
|
-
const isFocused = useFocus();
|
|
473
|
-
useBracketedPaste();
|
|
474
|
-
// Context file names computation
|
|
475
|
-
const contextFileNames = useMemo(() => {
|
|
476
|
-
const fromSettings = settings.merged.context?.fileName;
|
|
477
|
-
return fromSettings
|
|
478
|
-
? Array.isArray(fromSettings)
|
|
479
|
-
? fromSettings
|
|
480
|
-
: [fromSettings]
|
|
481
|
-
: getAllOSAMdFilenames();
|
|
482
|
-
}, [settings.merged.context?.fileName]);
|
|
483
|
-
// Initial prompt handling
|
|
484
|
-
const initialPrompt = useMemo(() => config.getQuestion(), [config]);
|
|
485
|
-
const initialPromptSubmitted = useRef(false);
|
|
486
|
-
const OSAClient = config.getOSAClient();
|
|
487
|
-
useEffect(() => {
|
|
488
|
-
if (activePtyId) {
|
|
489
|
-
ShellExecutionService.resizePty(activePtyId, Math.floor(terminalWidth * SHELL_WIDTH_FRACTION), Math.max(Math.floor(availableTerminalHeight - SHELL_HEIGHT_PADDING), 1));
|
|
490
|
-
}
|
|
491
|
-
}, [terminalWidth, availableTerminalHeight, activePtyId]);
|
|
492
|
-
useEffect(() => {
|
|
493
|
-
if (initialPrompt &&
|
|
494
|
-
isConfigInitialized &&
|
|
495
|
-
!initialPromptSubmitted.current &&
|
|
496
|
-
!isAuthenticating &&
|
|
497
|
-
!isAuthDialogOpen &&
|
|
498
|
-
!isThemeDialogOpen &&
|
|
499
|
-
!isEditorDialogOpen &&
|
|
500
|
-
!showWelcomeBackDialog &&
|
|
501
|
-
!isVisionSwitchDialogOpen &&
|
|
502
|
-
welcomeBackChoice !== 'restart' &&
|
|
503
|
-
OSAClient?.isInitialized?.()) {
|
|
504
|
-
handleFinalSubmit(initialPrompt);
|
|
505
|
-
initialPromptSubmitted.current = true;
|
|
506
|
-
}
|
|
507
|
-
}, [
|
|
508
|
-
initialPrompt,
|
|
509
|
-
isConfigInitialized,
|
|
510
|
-
handleFinalSubmit,
|
|
511
|
-
isAuthenticating,
|
|
512
|
-
isAuthDialogOpen,
|
|
513
|
-
isThemeDialogOpen,
|
|
514
|
-
isEditorDialogOpen,
|
|
515
|
-
showWelcomeBackDialog,
|
|
516
|
-
isVisionSwitchDialogOpen,
|
|
517
|
-
welcomeBackChoice,
|
|
518
|
-
OSAClient,
|
|
519
|
-
]);
|
|
520
|
-
const [idePromptAnswered, setIdePromptAnswered] = useState(false);
|
|
521
|
-
const [currentIDE, setCurrentIDE] = useState(null);
|
|
522
|
-
// Ref to prevent duplicate IDE prompts from race conditions
|
|
523
|
-
const idePromptShownRef = useRef(false);
|
|
524
|
-
useEffect(() => {
|
|
525
|
-
const getIde = async () => {
|
|
526
|
-
const ideClient = await IdeClient.getInstance();
|
|
527
|
-
const currentIde = ideClient.getCurrentIde();
|
|
528
|
-
// Only set if not already answered to prevent re-triggering
|
|
529
|
-
if (!idePromptShownRef.current) {
|
|
530
|
-
setCurrentIDE(currentIde || null);
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
getIde();
|
|
534
|
-
}, []);
|
|
535
|
-
// Calculate if we should show IDE prompt, with race condition protection
|
|
536
|
-
const shouldShowIdePrompt = Boolean(!idePromptShownRef.current &&
|
|
537
|
-
currentIDE &&
|
|
538
|
-
!config.getIdeMode() &&
|
|
539
|
-
!settings.merged.ide?.hasSeenNudge &&
|
|
540
|
-
!idePromptAnswered);
|
|
541
|
-
// Mark as shown when the condition becomes true
|
|
542
|
-
useEffect(() => {
|
|
543
|
-
if (shouldShowIdePrompt) {
|
|
544
|
-
idePromptShownRef.current = true;
|
|
545
|
-
}
|
|
546
|
-
}, [shouldShowIdePrompt]);
|
|
547
|
-
const [showErrorDetails, setShowErrorDetails] = useState(false);
|
|
548
|
-
const [showToolDescriptions, setShowToolDescriptions] = useState(false);
|
|
549
|
-
const [ctrlCPressedOnce, setCtrlCPressedOnce] = useState(false);
|
|
550
|
-
const ctrlCTimerRef = useRef(null);
|
|
551
|
-
const [ctrlDPressedOnce, setCtrlDPressedOnce] = useState(false);
|
|
552
|
-
const ctrlDTimerRef = useRef(null);
|
|
553
|
-
const [constrainHeight, setConstrainHeight] = useState(true);
|
|
554
|
-
const [ideContextState, setIdeContextState] = useState();
|
|
555
|
-
const [showEscapePrompt, setShowEscapePrompt] = useState(false);
|
|
556
|
-
const [showIdeRestartPrompt, setShowIdeRestartPrompt] = useState(false);
|
|
557
|
-
const { isFolderTrustDialogOpen, handleFolderTrustSelect, isRestarting } = useFolderTrust(settings, setIsTrustedFolder);
|
|
558
|
-
const { needsRestart: ideNeedsRestart, restartReason: ideTrustRestartReason, } = useIdeTrustListener();
|
|
559
|
-
const isInitialMount = useRef(true);
|
|
560
|
-
useEffect(() => {
|
|
561
|
-
if (ideNeedsRestart) {
|
|
562
|
-
// IDE trust changed, force a restart.
|
|
563
|
-
setShowIdeRestartPrompt(true);
|
|
564
|
-
}
|
|
565
|
-
}, [ideNeedsRestart]);
|
|
566
|
-
/**
|
|
567
|
-
* anyDialogOpen: Tracks whether any dialog is currently visible.
|
|
568
|
-
* When a dialog is open, input should be disabled to prevent
|
|
569
|
-
* keystrokes from leaking to the main InputPrompt.
|
|
570
|
-
*/
|
|
571
|
-
const anyDialogOpen = showWelcomeBackDialog ||
|
|
572
|
-
showWorkspaceMigrationDialog ||
|
|
573
|
-
shouldShowIdePrompt ||
|
|
574
|
-
isFolderTrustDialogOpen ||
|
|
575
|
-
showIdeRestartPrompt ||
|
|
576
|
-
!!shellConfirmationRequest ||
|
|
577
|
-
!!confirmationRequest ||
|
|
578
|
-
confirmUpdateExtensionRequests.length > 0 ||
|
|
579
|
-
!!loopDetectionConfirmationRequest ||
|
|
580
|
-
!!quitConfirmationRequest ||
|
|
581
|
-
isThemeDialogOpen ||
|
|
582
|
-
isSettingsDialogOpen ||
|
|
583
|
-
isModelDialogOpen ||
|
|
584
|
-
isVisionSwitchDialogOpen ||
|
|
585
|
-
isPermissionsDialogOpen ||
|
|
586
|
-
isAuthDialogOpen ||
|
|
587
|
-
isAuthenticating ||
|
|
588
|
-
isEditorDialogOpen ||
|
|
589
|
-
isSubagentCreateDialogOpen ||
|
|
590
|
-
isAgentsManagerDialogOpen ||
|
|
591
|
-
isApprovalModeDialogOpen ||
|
|
592
|
-
!!proQuotaRequest;
|
|
593
|
-
/**
|
|
594
|
-
* Determines if the input prompt should be active and accept user input.
|
|
595
|
-
* Input is disabled during:
|
|
596
|
-
* - Initialization errors
|
|
597
|
-
* - Slash command processing
|
|
598
|
-
* - Tool confirmations (WaitingForConfirmation state)
|
|
599
|
-
* - Any future streaming states not explicitly allowed
|
|
600
|
-
* - Any dialog is open (to prevent keystroke leakage)
|
|
601
|
-
*/
|
|
602
|
-
const isInputActive = !initError &&
|
|
603
|
-
!isProcessing &&
|
|
604
|
-
(streamingState === StreamingState.Idle ||
|
|
605
|
-
streamingState === StreamingState.Responding) &&
|
|
606
|
-
!anyDialogOpen;
|
|
607
|
-
useEffect(() => {
|
|
608
|
-
if (isInitialMount.current) {
|
|
609
|
-
isInitialMount.current = false;
|
|
610
|
-
return;
|
|
611
|
-
}
|
|
612
|
-
const handler = setTimeout(() => {
|
|
613
|
-
refreshStatic();
|
|
614
|
-
}, 300);
|
|
615
|
-
return () => {
|
|
616
|
-
clearTimeout(handler);
|
|
617
|
-
};
|
|
618
|
-
}, [terminalWidth, refreshStatic]);
|
|
619
|
-
useEffect(() => {
|
|
620
|
-
const unsubscribe = ideContextStore.subscribe(setIdeContextState);
|
|
621
|
-
setIdeContextState(ideContextStore.get());
|
|
622
|
-
return unsubscribe;
|
|
623
|
-
}, []);
|
|
624
|
-
useEffect(() => {
|
|
625
|
-
const openDebugConsole = () => {
|
|
626
|
-
setShowErrorDetails(true);
|
|
627
|
-
setConstrainHeight(false);
|
|
628
|
-
};
|
|
629
|
-
appEvents.on(AppEvent.OpenDebugConsole, openDebugConsole);
|
|
630
|
-
const logErrorHandler = (errorMessage) => {
|
|
631
|
-
handleNewMessage({
|
|
632
|
-
type: 'error',
|
|
633
|
-
content: String(errorMessage),
|
|
634
|
-
count: 1,
|
|
635
|
-
});
|
|
636
|
-
};
|
|
637
|
-
appEvents.on(AppEvent.LogError, logErrorHandler);
|
|
638
|
-
return () => {
|
|
639
|
-
appEvents.off(AppEvent.OpenDebugConsole, openDebugConsole);
|
|
640
|
-
appEvents.off(AppEvent.LogError, logErrorHandler);
|
|
641
|
-
};
|
|
642
|
-
}, [handleNewMessage]);
|
|
643
|
-
const handleEscapePromptChange = useCallback((showPrompt) => {
|
|
644
|
-
setShowEscapePrompt(showPrompt);
|
|
645
|
-
}, []);
|
|
646
|
-
const handleIdePromptComplete = useCallback((result) => {
|
|
647
|
-
if (result.userSelection === 'yes') {
|
|
648
|
-
handleSlashCommand('/ide install');
|
|
649
|
-
settings.setValue(SettingScope.User, 'ide.hasSeenNudge', true);
|
|
650
|
-
}
|
|
651
|
-
else if (result.userSelection === 'dismiss') {
|
|
652
|
-
settings.setValue(SettingScope.User, 'ide.hasSeenNudge', true);
|
|
653
|
-
}
|
|
654
|
-
setIdePromptAnswered(true);
|
|
655
|
-
}, [handleSlashCommand, settings]);
|
|
656
|
-
const { elapsedTime, currentLoadingPhrase } = useLoadingIndicator(streamingState, settings.merged.ui?.customWittyPhrases);
|
|
657
|
-
useAttentionNotifications({
|
|
658
|
-
isFocused,
|
|
659
|
-
streamingState,
|
|
660
|
-
elapsedTime,
|
|
661
|
-
});
|
|
662
|
-
// Dialog close functionality
|
|
663
|
-
const { closeAnyOpenDialog } = useDialogClose({
|
|
664
|
-
isThemeDialogOpen,
|
|
665
|
-
handleThemeSelect,
|
|
666
|
-
isApprovalModeDialogOpen,
|
|
667
|
-
handleApprovalModeSelect,
|
|
668
|
-
isAuthDialogOpen,
|
|
669
|
-
handleAuthSelect,
|
|
670
|
-
pendingAuthType,
|
|
671
|
-
isEditorDialogOpen,
|
|
672
|
-
exitEditorDialog,
|
|
673
|
-
isSettingsDialogOpen,
|
|
674
|
-
closeSettingsDialog,
|
|
675
|
-
isFolderTrustDialogOpen,
|
|
676
|
-
showWelcomeBackDialog,
|
|
677
|
-
handleWelcomeBackClose,
|
|
678
|
-
quitConfirmationRequest,
|
|
679
|
-
});
|
|
680
|
-
const handleExit = useCallback((pressedOnce, setPressedOnce, timerRef) => {
|
|
681
|
-
// Fast double-press: Direct quit (preserve user habit)
|
|
682
|
-
if (pressedOnce) {
|
|
683
|
-
if (timerRef.current) {
|
|
684
|
-
clearTimeout(timerRef.current);
|
|
685
|
-
}
|
|
686
|
-
// Exit directly without showing confirmation dialog
|
|
687
|
-
handleSlashCommand('/quit');
|
|
688
|
-
return;
|
|
689
|
-
}
|
|
690
|
-
// First press: Prioritize cleanup tasks
|
|
691
|
-
// Special case: If quit-confirm dialog is open, Ctrl+C means "quit immediately"
|
|
692
|
-
if (quitConfirmationRequest) {
|
|
693
|
-
handleSlashCommand('/quit');
|
|
694
|
-
return;
|
|
695
|
-
}
|
|
696
|
-
// 1. Close other dialogs (highest priority)
|
|
697
|
-
/**
|
|
698
|
-
* For AuthDialog it is required to complete the authentication process,
|
|
699
|
-
* otherwise user cannot proceed to the next step.
|
|
700
|
-
* So a quit on AuthDialog should go with normal two press quit
|
|
701
|
-
* and without quit-confirm dialog.
|
|
702
|
-
*/
|
|
703
|
-
if (isAuthDialogOpen) {
|
|
704
|
-
setPressedOnce(true);
|
|
705
|
-
timerRef.current = setTimeout(() => {
|
|
706
|
-
setPressedOnce(false);
|
|
707
|
-
}, 500);
|
|
708
|
-
return;
|
|
709
|
-
}
|
|
710
|
-
// 2. Close other dialogs (highest priority)
|
|
711
|
-
if (closeAnyOpenDialog()) {
|
|
712
|
-
return; // Dialog closed, end processing
|
|
713
|
-
}
|
|
714
|
-
// 3. Cancel ongoing requests
|
|
715
|
-
if (streamingState === StreamingState.Responding) {
|
|
716
|
-
cancelOngoingRequest?.();
|
|
717
|
-
return; // Request cancelled, end processing
|
|
718
|
-
}
|
|
719
|
-
// 3. Clear input buffer (if has content)
|
|
720
|
-
if (buffer.text.length > 0) {
|
|
721
|
-
buffer.setText('');
|
|
722
|
-
return; // Input cleared, end processing
|
|
723
|
-
}
|
|
724
|
-
// All cleanup tasks completed, show quit confirmation dialog
|
|
725
|
-
handleSlashCommand('/quit-confirm');
|
|
726
|
-
}, [
|
|
727
|
-
isAuthDialogOpen,
|
|
728
|
-
handleSlashCommand,
|
|
729
|
-
closeAnyOpenDialog,
|
|
730
|
-
streamingState,
|
|
731
|
-
cancelOngoingRequest,
|
|
732
|
-
quitConfirmationRequest,
|
|
733
|
-
buffer,
|
|
734
|
-
]);
|
|
735
|
-
const handleGlobalKeypress = useCallback((key) => {
|
|
736
|
-
// Debug log keystrokes if enabled
|
|
737
|
-
if (settings.merged.general?.debugKeystrokeLogging) {
|
|
738
|
-
console.log('[DEBUG] Keystroke:', JSON.stringify(key));
|
|
739
|
-
}
|
|
740
|
-
if (keyMatchers[Command.QUIT](key)) {
|
|
741
|
-
if (isAuthenticating) {
|
|
742
|
-
return;
|
|
743
|
-
}
|
|
744
|
-
// On first press: set flag, start timer, and call handleExit for cleanup/quit-confirm
|
|
745
|
-
// On second press (within 500ms): handleExit sees flag and does fast quit
|
|
746
|
-
if (!ctrlCPressedOnce) {
|
|
747
|
-
setCtrlCPressedOnce(true);
|
|
748
|
-
ctrlCTimerRef.current = setTimeout(() => {
|
|
749
|
-
setCtrlCPressedOnce(false);
|
|
750
|
-
ctrlCTimerRef.current = null;
|
|
751
|
-
}, CTRL_EXIT_PROMPT_DURATION_MS);
|
|
752
|
-
}
|
|
753
|
-
handleExit(ctrlCPressedOnce, setCtrlCPressedOnce, ctrlCTimerRef);
|
|
754
|
-
return;
|
|
755
|
-
}
|
|
756
|
-
else if (keyMatchers[Command.EXIT](key)) {
|
|
757
|
-
if (buffer.text.length > 0) {
|
|
758
|
-
return;
|
|
759
|
-
}
|
|
760
|
-
handleExit(ctrlDPressedOnce, setCtrlDPressedOnce, ctrlDTimerRef);
|
|
761
|
-
return;
|
|
762
|
-
}
|
|
763
|
-
let enteringConstrainHeightMode = false;
|
|
764
|
-
if (!constrainHeight) {
|
|
765
|
-
enteringConstrainHeightMode = true;
|
|
766
|
-
setConstrainHeight(true);
|
|
767
|
-
}
|
|
768
|
-
if (keyMatchers[Command.SHOW_ERROR_DETAILS](key)) {
|
|
769
|
-
setShowErrorDetails((prev) => !prev);
|
|
770
|
-
}
|
|
771
|
-
else if (keyMatchers[Command.TOGGLE_TOOL_DESCRIPTIONS](key)) {
|
|
772
|
-
const newValue = !showToolDescriptions;
|
|
773
|
-
setShowToolDescriptions(newValue);
|
|
774
|
-
const mcpServers = config.getMcpServers();
|
|
775
|
-
if (Object.keys(mcpServers || {}).length > 0) {
|
|
776
|
-
handleSlashCommand(newValue ? '/mcp desc' : '/mcp nodesc');
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
else if (keyMatchers[Command.TOGGLE_IDE_CONTEXT_DETAIL](key) &&
|
|
780
|
-
config.getIdeMode() &&
|
|
781
|
-
ideContextState) {
|
|
782
|
-
handleSlashCommand('/ide status');
|
|
783
|
-
}
|
|
784
|
-
else if (keyMatchers[Command.SHOW_MORE_LINES](key) &&
|
|
785
|
-
!enteringConstrainHeightMode) {
|
|
786
|
-
setConstrainHeight(false);
|
|
787
|
-
}
|
|
788
|
-
else if (keyMatchers[Command.TOGGLE_SHELL_INPUT_FOCUS](key)) {
|
|
789
|
-
if (activePtyId || embeddedShellFocused) {
|
|
790
|
-
setEmbeddedShellFocused((prev) => !prev);
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}, [
|
|
794
|
-
constrainHeight,
|
|
795
|
-
setConstrainHeight,
|
|
796
|
-
setShowErrorDetails,
|
|
797
|
-
showToolDescriptions,
|
|
798
|
-
setShowToolDescriptions,
|
|
799
|
-
config,
|
|
800
|
-
ideContextState,
|
|
801
|
-
handleExit,
|
|
802
|
-
ctrlCPressedOnce,
|
|
803
|
-
setCtrlCPressedOnce,
|
|
804
|
-
ctrlCTimerRef,
|
|
805
|
-
buffer.text.length,
|
|
806
|
-
ctrlDPressedOnce,
|
|
807
|
-
setCtrlDPressedOnce,
|
|
808
|
-
ctrlDTimerRef,
|
|
809
|
-
handleSlashCommand,
|
|
810
|
-
activePtyId,
|
|
811
|
-
embeddedShellFocused,
|
|
812
|
-
settings.merged.general?.debugKeystrokeLogging,
|
|
813
|
-
isAuthenticating,
|
|
814
|
-
]);
|
|
815
|
-
useKeypress(handleGlobalKeypress, { isActive: true });
|
|
816
|
-
// Update terminal title with OSA CLI status and thoughts
|
|
817
|
-
useEffect(() => {
|
|
818
|
-
// Respect both showStatusInTitle and hideWindowTitle settings
|
|
819
|
-
if (!settings.merged.ui?.showStatusInTitle ||
|
|
820
|
-
settings.merged.ui?.hideWindowTitle)
|
|
821
|
-
return;
|
|
822
|
-
let title;
|
|
823
|
-
if (streamingState === StreamingState.Idle) {
|
|
824
|
-
title = originalTitleRef.current;
|
|
825
|
-
}
|
|
826
|
-
else {
|
|
827
|
-
const statusText = thought?.subject
|
|
828
|
-
?.replace(/[\r\n]+/g, ' ')
|
|
829
|
-
.substring(0, 80);
|
|
830
|
-
title = statusText || originalTitleRef.current;
|
|
831
|
-
}
|
|
832
|
-
// Pad the title to a fixed width to prevent taskbar icon resizing.
|
|
833
|
-
const paddedTitle = title.padEnd(80, ' ');
|
|
834
|
-
// Only update the title if it's different from the last value we set
|
|
835
|
-
if (lastTitleRef.current !== paddedTitle) {
|
|
836
|
-
lastTitleRef.current = paddedTitle;
|
|
837
|
-
stdout.write(`\x1b]2;${paddedTitle}\x07`);
|
|
838
|
-
}
|
|
839
|
-
// Note: We don't need to reset the window title on exit because OSA CLI is already doing that elsewhere
|
|
840
|
-
}, [
|
|
841
|
-
streamingState,
|
|
842
|
-
thought,
|
|
843
|
-
settings.merged.ui?.showStatusInTitle,
|
|
844
|
-
settings.merged.ui?.hideWindowTitle,
|
|
845
|
-
stdout,
|
|
846
|
-
]);
|
|
847
|
-
const filteredConsoleMessages = useMemo(() => {
|
|
848
|
-
if (config.getDebugMode()) {
|
|
849
|
-
return consoleMessages;
|
|
850
|
-
}
|
|
851
|
-
return consoleMessages.filter((msg) => msg.type !== 'debug');
|
|
852
|
-
}, [consoleMessages, config]);
|
|
853
|
-
// Computed values
|
|
854
|
-
const errorCount = useMemo(() => filteredConsoleMessages
|
|
855
|
-
.filter((msg) => msg.type === 'error')
|
|
856
|
-
.reduce((total, msg) => total + msg.count, 0), [filteredConsoleMessages]);
|
|
857
|
-
const nightly = props.version.includes('nightly');
|
|
858
|
-
const dialogsVisible = showWelcomeBackDialog ||
|
|
859
|
-
showWorkspaceMigrationDialog ||
|
|
860
|
-
shouldShowIdePrompt ||
|
|
861
|
-
isFolderTrustDialogOpen ||
|
|
862
|
-
!!shellConfirmationRequest ||
|
|
863
|
-
!!confirmationRequest ||
|
|
864
|
-
confirmUpdateExtensionRequests.length > 0 ||
|
|
865
|
-
!!loopDetectionConfirmationRequest ||
|
|
866
|
-
!!quitConfirmationRequest ||
|
|
867
|
-
isThemeDialogOpen ||
|
|
868
|
-
isSettingsDialogOpen ||
|
|
869
|
-
isModelDialogOpen ||
|
|
870
|
-
isVisionSwitchDialogOpen ||
|
|
871
|
-
isPermissionsDialogOpen ||
|
|
872
|
-
isAuthDialogOpen ||
|
|
873
|
-
isAuthenticating ||
|
|
874
|
-
isEditorDialogOpen ||
|
|
875
|
-
showIdeRestartPrompt ||
|
|
876
|
-
!!proQuotaRequest ||
|
|
877
|
-
isSubagentCreateDialogOpen ||
|
|
878
|
-
isAgentsManagerDialogOpen ||
|
|
879
|
-
isApprovalModeDialogOpen;
|
|
880
|
-
const pendingHistoryItems = useMemo(() => [...pendingSlashCommandHistoryItems, ...pendingOSAHistoryItems], [pendingSlashCommandHistoryItems, pendingOSAHistoryItems]);
|
|
881
|
-
const uiState = useMemo(() => ({
|
|
882
|
-
history: historyManager.history,
|
|
883
|
-
historyManager,
|
|
884
|
-
isThemeDialogOpen,
|
|
885
|
-
themeError,
|
|
886
|
-
isAuthenticating,
|
|
887
|
-
isConfigInitialized,
|
|
888
|
-
authError,
|
|
889
|
-
isAuthDialogOpen,
|
|
890
|
-
pendingAuthType,
|
|
891
|
-
// OSA OAuth state
|
|
892
|
-
OSAAuthState,
|
|
893
|
-
editorError,
|
|
894
|
-
isEditorDialogOpen,
|
|
895
|
-
corgiMode,
|
|
896
|
-
debugMessage,
|
|
897
|
-
quittingMessages,
|
|
898
|
-
isSettingsDialogOpen,
|
|
899
|
-
isModelDialogOpen,
|
|
900
|
-
isPermissionsDialogOpen,
|
|
901
|
-
isApprovalModeDialogOpen,
|
|
902
|
-
slashCommands,
|
|
903
|
-
pendingSlashCommandHistoryItems,
|
|
904
|
-
commandContext,
|
|
905
|
-
shellConfirmationRequest,
|
|
906
|
-
confirmationRequest,
|
|
907
|
-
confirmUpdateExtensionRequests,
|
|
908
|
-
loopDetectionConfirmationRequest,
|
|
909
|
-
quitConfirmationRequest,
|
|
910
|
-
OSAMdFileCount,
|
|
911
|
-
streamingState,
|
|
912
|
-
initError,
|
|
913
|
-
pendingOSAHistoryItems,
|
|
914
|
-
thought,
|
|
915
|
-
shellModeActive,
|
|
916
|
-
userMessages,
|
|
917
|
-
buffer,
|
|
918
|
-
inputWidth,
|
|
919
|
-
suggestionsWidth,
|
|
920
|
-
isInputActive,
|
|
921
|
-
shouldShowIdePrompt,
|
|
922
|
-
isFolderTrustDialogOpen: isFolderTrustDialogOpen ?? false,
|
|
923
|
-
isTrustedFolder,
|
|
924
|
-
constrainHeight,
|
|
925
|
-
showErrorDetails,
|
|
926
|
-
filteredConsoleMessages,
|
|
927
|
-
ideContextState,
|
|
928
|
-
showToolDescriptions,
|
|
929
|
-
ctrlCPressedOnce,
|
|
930
|
-
ctrlDPressedOnce,
|
|
931
|
-
showEscapePrompt,
|
|
932
|
-
isFocused,
|
|
933
|
-
elapsedTime,
|
|
934
|
-
currentLoadingPhrase,
|
|
935
|
-
historyRemountKey,
|
|
936
|
-
messageQueue,
|
|
937
|
-
showAutoAcceptIndicator,
|
|
938
|
-
showWorkspaceMigrationDialog,
|
|
939
|
-
workspaceExtensions,
|
|
940
|
-
currentModel,
|
|
941
|
-
systemPromptPreset,
|
|
942
|
-
userTier,
|
|
943
|
-
proQuotaRequest,
|
|
944
|
-
contextFileNames,
|
|
945
|
-
errorCount,
|
|
946
|
-
availableTerminalHeight,
|
|
947
|
-
mainAreaWidth,
|
|
948
|
-
staticAreaMaxItemHeight,
|
|
949
|
-
staticExtraHeight,
|
|
950
|
-
dialogsVisible,
|
|
951
|
-
pendingHistoryItems,
|
|
952
|
-
nightly,
|
|
953
|
-
branchName,
|
|
954
|
-
sessionStats,
|
|
955
|
-
terminalWidth,
|
|
956
|
-
terminalHeight,
|
|
957
|
-
mainControlsRef,
|
|
958
|
-
currentIDE,
|
|
959
|
-
updateInfo,
|
|
960
|
-
showIdeRestartPrompt,
|
|
961
|
-
ideTrustRestartReason,
|
|
962
|
-
isRestarting,
|
|
963
|
-
extensionsUpdateState,
|
|
964
|
-
activePtyId,
|
|
965
|
-
embeddedShellFocused,
|
|
966
|
-
// Vision switch dialog
|
|
967
|
-
isVisionSwitchDialogOpen,
|
|
968
|
-
// Welcome back dialog
|
|
969
|
-
showWelcomeBackDialog,
|
|
970
|
-
welcomeBackInfo,
|
|
971
|
-
welcomeBackChoice,
|
|
972
|
-
// Subagent dialogs
|
|
973
|
-
isSubagentCreateDialogOpen,
|
|
974
|
-
isAgentsManagerDialogOpen,
|
|
975
|
-
}), [
|
|
976
|
-
isThemeDialogOpen,
|
|
977
|
-
themeError,
|
|
978
|
-
isAuthenticating,
|
|
979
|
-
isConfigInitialized,
|
|
980
|
-
authError,
|
|
981
|
-
isAuthDialogOpen,
|
|
982
|
-
pendingAuthType,
|
|
983
|
-
// OSA OAuth state
|
|
984
|
-
OSAAuthState,
|
|
985
|
-
editorError,
|
|
986
|
-
isEditorDialogOpen,
|
|
987
|
-
corgiMode,
|
|
988
|
-
debugMessage,
|
|
989
|
-
quittingMessages,
|
|
990
|
-
isSettingsDialogOpen,
|
|
991
|
-
isModelDialogOpen,
|
|
992
|
-
isPermissionsDialogOpen,
|
|
993
|
-
isApprovalModeDialogOpen,
|
|
994
|
-
slashCommands,
|
|
995
|
-
pendingSlashCommandHistoryItems,
|
|
996
|
-
commandContext,
|
|
997
|
-
shellConfirmationRequest,
|
|
998
|
-
confirmationRequest,
|
|
999
|
-
confirmUpdateExtensionRequests,
|
|
1000
|
-
loopDetectionConfirmationRequest,
|
|
1001
|
-
quitConfirmationRequest,
|
|
1002
|
-
OSAMdFileCount,
|
|
1003
|
-
streamingState,
|
|
1004
|
-
initError,
|
|
1005
|
-
pendingOSAHistoryItems,
|
|
1006
|
-
thought,
|
|
1007
|
-
shellModeActive,
|
|
1008
|
-
userMessages,
|
|
1009
|
-
buffer,
|
|
1010
|
-
inputWidth,
|
|
1011
|
-
suggestionsWidth,
|
|
1012
|
-
isInputActive,
|
|
1013
|
-
shouldShowIdePrompt,
|
|
1014
|
-
isFolderTrustDialogOpen,
|
|
1015
|
-
isTrustedFolder,
|
|
1016
|
-
constrainHeight,
|
|
1017
|
-
showErrorDetails,
|
|
1018
|
-
filteredConsoleMessages,
|
|
1019
|
-
ideContextState,
|
|
1020
|
-
showToolDescriptions,
|
|
1021
|
-
ctrlCPressedOnce,
|
|
1022
|
-
ctrlDPressedOnce,
|
|
1023
|
-
showEscapePrompt,
|
|
1024
|
-
isFocused,
|
|
1025
|
-
elapsedTime,
|
|
1026
|
-
currentLoadingPhrase,
|
|
1027
|
-
historyRemountKey,
|
|
1028
|
-
messageQueue,
|
|
1029
|
-
showAutoAcceptIndicator,
|
|
1030
|
-
showWorkspaceMigrationDialog,
|
|
1031
|
-
workspaceExtensions,
|
|
1032
|
-
userTier,
|
|
1033
|
-
proQuotaRequest,
|
|
1034
|
-
contextFileNames,
|
|
1035
|
-
errorCount,
|
|
1036
|
-
availableTerminalHeight,
|
|
1037
|
-
mainAreaWidth,
|
|
1038
|
-
staticAreaMaxItemHeight,
|
|
1039
|
-
staticExtraHeight,
|
|
1040
|
-
dialogsVisible,
|
|
1041
|
-
pendingHistoryItems,
|
|
1042
|
-
nightly,
|
|
1043
|
-
branchName,
|
|
1044
|
-
sessionStats,
|
|
1045
|
-
terminalWidth,
|
|
1046
|
-
terminalHeight,
|
|
1047
|
-
mainControlsRef,
|
|
1048
|
-
currentIDE,
|
|
1049
|
-
updateInfo,
|
|
1050
|
-
showIdeRestartPrompt,
|
|
1051
|
-
ideTrustRestartReason,
|
|
1052
|
-
isRestarting,
|
|
1053
|
-
currentModel,
|
|
1054
|
-
systemPromptPreset,
|
|
1055
|
-
extensionsUpdateState,
|
|
1056
|
-
activePtyId,
|
|
1057
|
-
historyManager,
|
|
1058
|
-
embeddedShellFocused,
|
|
1059
|
-
// Vision switch dialog
|
|
1060
|
-
isVisionSwitchDialogOpen,
|
|
1061
|
-
// Welcome back dialog
|
|
1062
|
-
showWelcomeBackDialog,
|
|
1063
|
-
welcomeBackInfo,
|
|
1064
|
-
welcomeBackChoice,
|
|
1065
|
-
// Subagent dialogs
|
|
1066
|
-
isSubagentCreateDialogOpen,
|
|
1067
|
-
isAgentsManagerDialogOpen,
|
|
1068
|
-
]);
|
|
1069
|
-
const uiActions = useMemo(() => ({
|
|
1070
|
-
handleThemeSelect,
|
|
1071
|
-
handleThemeHighlight,
|
|
1072
|
-
handleApprovalModeSelect,
|
|
1073
|
-
handleAuthSelect,
|
|
1074
|
-
setAuthState,
|
|
1075
|
-
onAuthError,
|
|
1076
|
-
cancelAuthentication,
|
|
1077
|
-
handleEditorSelect,
|
|
1078
|
-
exitEditorDialog,
|
|
1079
|
-
closeSettingsDialog,
|
|
1080
|
-
closeModelDialog,
|
|
1081
|
-
closePermissionsDialog,
|
|
1082
|
-
setShellModeActive,
|
|
1083
|
-
vimHandleInput,
|
|
1084
|
-
handleIdePromptComplete,
|
|
1085
|
-
handleFolderTrustSelect,
|
|
1086
|
-
setConstrainHeight,
|
|
1087
|
-
onEscapePromptChange: handleEscapePromptChange,
|
|
1088
|
-
refreshStatic,
|
|
1089
|
-
handleFinalSubmit,
|
|
1090
|
-
handleClearScreen,
|
|
1091
|
-
onWorkspaceMigrationDialogOpen,
|
|
1092
|
-
onWorkspaceMigrationDialogClose,
|
|
1093
|
-
handleProQuotaChoice,
|
|
1094
|
-
// Vision switch dialog
|
|
1095
|
-
handleVisionSwitchSelect,
|
|
1096
|
-
// Welcome back dialog
|
|
1097
|
-
handleWelcomeBackSelection,
|
|
1098
|
-
handleWelcomeBackClose,
|
|
1099
|
-
// Subagent dialogs
|
|
1100
|
-
closeSubagentCreateDialog,
|
|
1101
|
-
closeAgentsManagerDialog,
|
|
1102
|
-
}), [
|
|
1103
|
-
handleThemeSelect,
|
|
1104
|
-
handleThemeHighlight,
|
|
1105
|
-
handleApprovalModeSelect,
|
|
1106
|
-
handleAuthSelect,
|
|
1107
|
-
setAuthState,
|
|
1108
|
-
onAuthError,
|
|
1109
|
-
cancelAuthentication,
|
|
1110
|
-
handleEditorSelect,
|
|
1111
|
-
exitEditorDialog,
|
|
1112
|
-
closeSettingsDialog,
|
|
1113
|
-
closeModelDialog,
|
|
1114
|
-
closePermissionsDialog,
|
|
1115
|
-
setShellModeActive,
|
|
1116
|
-
vimHandleInput,
|
|
1117
|
-
handleIdePromptComplete,
|
|
1118
|
-
handleFolderTrustSelect,
|
|
1119
|
-
setConstrainHeight,
|
|
1120
|
-
handleEscapePromptChange,
|
|
1121
|
-
refreshStatic,
|
|
1122
|
-
handleFinalSubmit,
|
|
1123
|
-
handleClearScreen,
|
|
1124
|
-
onWorkspaceMigrationDialogOpen,
|
|
1125
|
-
onWorkspaceMigrationDialogClose,
|
|
1126
|
-
handleProQuotaChoice,
|
|
1127
|
-
handleVisionSwitchSelect,
|
|
1128
|
-
handleWelcomeBackSelection,
|
|
1129
|
-
handleWelcomeBackClose,
|
|
1130
|
-
// Subagent dialogs
|
|
1131
|
-
closeSubagentCreateDialog,
|
|
1132
|
-
closeAgentsManagerDialog,
|
|
1133
|
-
]);
|
|
1134
|
-
return (_jsx(UIStateContext.Provider, { value: uiState, children: _jsx(UIActionsContext.Provider, { value: uiActions, children: _jsx(ConfigContext.Provider, { value: config, children: _jsx(AppContext.Provider, { value: {
|
|
1135
|
-
version: props.version,
|
|
1136
|
-
startupWarnings: props.startupWarnings || [],
|
|
1137
|
-
}, children: _jsx(OrchestrationProvider, { children: _jsx(ShellFocusContext.Provider, { value: isFocused, children: _jsx(App, {}) }) }) }) }) }) }));
|
|
1138
|
-
};
|
|
1139
|
-
//# sourceMappingURL=AppContainer.js.map
|