osagent 0.1.41 → 0.1.42
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 +387763 -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,340 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 OSAgent OC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import * as osActual from 'node:os';
|
|
7
|
-
import { FatalConfigError, ideContextStore } from 'osagent-core';
|
|
8
|
-
import { describe, it, expect, vi, beforeEach, afterEach, } from 'vitest';
|
|
9
|
-
import * as fs from 'node:fs';
|
|
10
|
-
import stripJsonComments from 'strip-json-comments';
|
|
11
|
-
import * as path from 'node:path';
|
|
12
|
-
import { loadTrustedFolders, getTrustedFoldersPath, TrustLevel, isWorkspaceTrusted, resetTrustedFoldersForTesting, } from './trustedFolders.js';
|
|
13
|
-
vi.mock('os', async (importOriginal) => {
|
|
14
|
-
const actualOs = await importOriginal();
|
|
15
|
-
return {
|
|
16
|
-
...actualOs,
|
|
17
|
-
homedir: vi.fn(() => '/mock/home/user'),
|
|
18
|
-
platform: vi.fn(() => 'linux'),
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
vi.mock('fs', async (importOriginal) => {
|
|
22
|
-
const actualFs = await importOriginal();
|
|
23
|
-
return {
|
|
24
|
-
...actualFs,
|
|
25
|
-
existsSync: vi.fn(),
|
|
26
|
-
readFileSync: vi.fn(),
|
|
27
|
-
writeFileSync: vi.fn(),
|
|
28
|
-
mkdirSync: vi.fn(),
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
vi.mock('strip-json-comments', () => ({
|
|
32
|
-
default: vi.fn((content) => content),
|
|
33
|
-
}));
|
|
34
|
-
describe('Trusted Folders Loading', () => {
|
|
35
|
-
let mockFsExistsSync;
|
|
36
|
-
let mockStripJsonComments;
|
|
37
|
-
let mockFsWriteFileSync;
|
|
38
|
-
beforeEach(() => {
|
|
39
|
-
resetTrustedFoldersForTesting();
|
|
40
|
-
vi.resetAllMocks();
|
|
41
|
-
mockFsExistsSync = vi.mocked(fs.existsSync);
|
|
42
|
-
mockStripJsonComments = vi.mocked(stripJsonComments);
|
|
43
|
-
mockFsWriteFileSync = vi.mocked(fs.writeFileSync);
|
|
44
|
-
vi.mocked(osActual.homedir).mockReturnValue('/mock/home/user');
|
|
45
|
-
mockStripJsonComments.mockImplementation((jsonString) => jsonString);
|
|
46
|
-
mockFsExistsSync.mockReturnValue(false);
|
|
47
|
-
fs.readFileSync.mockReturnValue('{}');
|
|
48
|
-
});
|
|
49
|
-
afterEach(() => {
|
|
50
|
-
vi.restoreAllMocks();
|
|
51
|
-
});
|
|
52
|
-
it('should load empty rules if no files exist', () => {
|
|
53
|
-
const { rules, errors } = loadTrustedFolders();
|
|
54
|
-
expect(rules).toEqual([]);
|
|
55
|
-
expect(errors).toEqual([]);
|
|
56
|
-
});
|
|
57
|
-
describe('isPathTrusted', () => {
|
|
58
|
-
function setup({ config = {} } = {}) {
|
|
59
|
-
mockFsExistsSync.mockImplementation((p) => p === getTrustedFoldersPath());
|
|
60
|
-
fs.readFileSync.mockImplementation((p) => {
|
|
61
|
-
if (p === getTrustedFoldersPath())
|
|
62
|
-
return JSON.stringify(config);
|
|
63
|
-
return '{}';
|
|
64
|
-
});
|
|
65
|
-
const folders = loadTrustedFolders();
|
|
66
|
-
return { folders };
|
|
67
|
-
}
|
|
68
|
-
it('provides a method to determine if a path is trusted', () => {
|
|
69
|
-
const { folders } = setup({
|
|
70
|
-
config: {
|
|
71
|
-
'./myfolder': TrustLevel.TRUST_FOLDER,
|
|
72
|
-
'/trustedparent/trustme': TrustLevel.TRUST_PARENT,
|
|
73
|
-
'/user/folder': TrustLevel.TRUST_FOLDER,
|
|
74
|
-
'/secret': TrustLevel.DO_NOT_TRUST,
|
|
75
|
-
'/secret/publickeys': TrustLevel.TRUST_FOLDER,
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
expect(folders.isPathTrusted('/secret')).toBe(false);
|
|
79
|
-
expect(folders.isPathTrusted('/user/folder')).toBe(true);
|
|
80
|
-
expect(folders.isPathTrusted('/secret/publickeys/public.pem')).toBe(true);
|
|
81
|
-
expect(folders.isPathTrusted('/user/folder/harhar')).toBe(true);
|
|
82
|
-
expect(folders.isPathTrusted('myfolder/somefile.jpg')).toBe(true);
|
|
83
|
-
expect(folders.isPathTrusted('/trustedparent/someotherfolder')).toBe(true);
|
|
84
|
-
expect(folders.isPathTrusted('/trustedparent/trustme')).toBe(true);
|
|
85
|
-
// No explicit rule covers this file
|
|
86
|
-
expect(folders.isPathTrusted('/secret/bankaccounts.json')).toBe(undefined);
|
|
87
|
-
expect(folders.isPathTrusted('/secret/mine/privatekey.pem')).toBe(undefined);
|
|
88
|
-
expect(folders.isPathTrusted('/user/someotherfolder')).toBe(undefined);
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
it('should load user rules if only user file exists', () => {
|
|
92
|
-
const userPath = getTrustedFoldersPath();
|
|
93
|
-
mockFsExistsSync.mockImplementation((p) => p === userPath);
|
|
94
|
-
const userContent = {
|
|
95
|
-
'/user/folder': TrustLevel.TRUST_FOLDER,
|
|
96
|
-
};
|
|
97
|
-
fs.readFileSync.mockImplementation((p) => {
|
|
98
|
-
if (p === userPath)
|
|
99
|
-
return JSON.stringify(userContent);
|
|
100
|
-
return '{}';
|
|
101
|
-
});
|
|
102
|
-
const { rules, errors } = loadTrustedFolders();
|
|
103
|
-
expect(rules).toEqual([
|
|
104
|
-
{ path: '/user/folder', trustLevel: TrustLevel.TRUST_FOLDER },
|
|
105
|
-
]);
|
|
106
|
-
expect(errors).toEqual([]);
|
|
107
|
-
});
|
|
108
|
-
it('should handle JSON parsing errors gracefully', () => {
|
|
109
|
-
const userPath = getTrustedFoldersPath();
|
|
110
|
-
mockFsExistsSync.mockImplementation((p) => p === userPath);
|
|
111
|
-
fs.readFileSync.mockImplementation((p) => {
|
|
112
|
-
if (p === userPath)
|
|
113
|
-
return 'invalid json';
|
|
114
|
-
return '{}';
|
|
115
|
-
});
|
|
116
|
-
const { rules, errors } = loadTrustedFolders();
|
|
117
|
-
expect(rules).toEqual([]);
|
|
118
|
-
expect(errors.length).toBe(1);
|
|
119
|
-
expect(errors[0].path).toBe(userPath);
|
|
120
|
-
expect(errors[0].message).toContain('Unexpected token');
|
|
121
|
-
});
|
|
122
|
-
it('should use OSA_CLI_TRUSTED_FOLDERS_PATH env var if set', () => {
|
|
123
|
-
const customPath = '/custom/path/to/trusted_folders.json';
|
|
124
|
-
process.env['OSA_CLI_TRUSTED_FOLDERS_PATH'] = customPath;
|
|
125
|
-
mockFsExistsSync.mockImplementation((p) => p === customPath);
|
|
126
|
-
const userContent = {
|
|
127
|
-
'/user/folder/from/env': TrustLevel.TRUST_FOLDER,
|
|
128
|
-
};
|
|
129
|
-
fs.readFileSync.mockImplementation((p) => {
|
|
130
|
-
if (p === customPath)
|
|
131
|
-
return JSON.stringify(userContent);
|
|
132
|
-
return '{}';
|
|
133
|
-
});
|
|
134
|
-
const { rules, errors } = loadTrustedFolders();
|
|
135
|
-
expect(rules).toEqual([
|
|
136
|
-
{
|
|
137
|
-
path: '/user/folder/from/env',
|
|
138
|
-
trustLevel: TrustLevel.TRUST_FOLDER,
|
|
139
|
-
},
|
|
140
|
-
]);
|
|
141
|
-
expect(errors).toEqual([]);
|
|
142
|
-
delete process.env['OSA_CLI_TRUSTED_FOLDERS_PATH'];
|
|
143
|
-
});
|
|
144
|
-
it('setValue should update the user config and save it', () => {
|
|
145
|
-
const loadedFolders = loadTrustedFolders();
|
|
146
|
-
loadedFolders.setValue('/new/path', TrustLevel.TRUST_FOLDER);
|
|
147
|
-
expect(loadedFolders.user.config['/new/path']).toBe(TrustLevel.TRUST_FOLDER);
|
|
148
|
-
expect(mockFsWriteFileSync).toHaveBeenCalledWith(getTrustedFoldersPath(), JSON.stringify({ '/new/path': TrustLevel.TRUST_FOLDER }, null, 2), { encoding: 'utf-8', mode: 0o600 });
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
describe('isWorkspaceTrusted', () => {
|
|
152
|
-
let mockCwd;
|
|
153
|
-
const mockRules = {};
|
|
154
|
-
const mockSettings = {
|
|
155
|
-
security: {
|
|
156
|
-
folderTrust: {
|
|
157
|
-
enabled: true,
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
};
|
|
161
|
-
beforeEach(() => {
|
|
162
|
-
resetTrustedFoldersForTesting();
|
|
163
|
-
vi.spyOn(process, 'cwd').mockImplementation(() => mockCwd);
|
|
164
|
-
vi.spyOn(fs, 'readFileSync').mockImplementation((p) => {
|
|
165
|
-
if (p === getTrustedFoldersPath()) {
|
|
166
|
-
return JSON.stringify(mockRules);
|
|
167
|
-
}
|
|
168
|
-
return '{}';
|
|
169
|
-
});
|
|
170
|
-
vi.spyOn(fs, 'existsSync').mockImplementation((p) => p === getTrustedFoldersPath());
|
|
171
|
-
});
|
|
172
|
-
afterEach(() => {
|
|
173
|
-
vi.restoreAllMocks();
|
|
174
|
-
// Clear the object
|
|
175
|
-
Object.keys(mockRules).forEach((key) => delete mockRules[key]);
|
|
176
|
-
});
|
|
177
|
-
it('should throw a fatal error if the config is malformed', () => {
|
|
178
|
-
mockCwd = '/home/user/projectA';
|
|
179
|
-
// This mock needs to be specific to this test to override the one in beforeEach
|
|
180
|
-
vi.spyOn(fs, 'readFileSync').mockImplementation((p) => {
|
|
181
|
-
if (p === getTrustedFoldersPath()) {
|
|
182
|
-
return '{"foo": "bar",}'; // Malformed JSON with trailing comma
|
|
183
|
-
}
|
|
184
|
-
return '{}';
|
|
185
|
-
});
|
|
186
|
-
expect(() => isWorkspaceTrusted(mockSettings)).toThrow(FatalConfigError);
|
|
187
|
-
expect(() => isWorkspaceTrusted(mockSettings)).toThrow(/Please fix the configuration file/);
|
|
188
|
-
});
|
|
189
|
-
it('should throw a fatal error if the config is not a JSON object', () => {
|
|
190
|
-
mockCwd = '/home/user/projectA';
|
|
191
|
-
vi.spyOn(fs, 'readFileSync').mockImplementation((p) => {
|
|
192
|
-
if (p === getTrustedFoldersPath()) {
|
|
193
|
-
return 'null';
|
|
194
|
-
}
|
|
195
|
-
return '{}';
|
|
196
|
-
});
|
|
197
|
-
expect(() => isWorkspaceTrusted(mockSettings)).toThrow(FatalConfigError);
|
|
198
|
-
expect(() => isWorkspaceTrusted(mockSettings)).toThrow(/not a valid JSON object/);
|
|
199
|
-
});
|
|
200
|
-
it('should return true for a directly trusted folder', () => {
|
|
201
|
-
mockCwd = '/home/user/projectA';
|
|
202
|
-
mockRules['/home/user/projectA'] = TrustLevel.TRUST_FOLDER;
|
|
203
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
204
|
-
isTrusted: true,
|
|
205
|
-
source: 'file',
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
it('should return true for a child of a trusted folder', () => {
|
|
209
|
-
mockCwd = '/home/user/projectA/src';
|
|
210
|
-
mockRules['/home/user/projectA'] = TrustLevel.TRUST_FOLDER;
|
|
211
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
212
|
-
isTrusted: true,
|
|
213
|
-
source: 'file',
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
it('should return true for a child of a trusted parent folder', () => {
|
|
217
|
-
mockCwd = '/home/user/projectB';
|
|
218
|
-
mockRules['/home/user/projectB/somefile.txt'] = TrustLevel.TRUST_PARENT;
|
|
219
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
220
|
-
isTrusted: true,
|
|
221
|
-
source: 'file',
|
|
222
|
-
});
|
|
223
|
-
});
|
|
224
|
-
it('should return false for a directly untrusted folder', () => {
|
|
225
|
-
mockCwd = '/home/user/untrusted';
|
|
226
|
-
mockRules['/home/user/untrusted'] = TrustLevel.DO_NOT_TRUST;
|
|
227
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
228
|
-
isTrusted: false,
|
|
229
|
-
source: 'file',
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
it('should return undefined for a child of an untrusted folder', () => {
|
|
233
|
-
mockCwd = '/home/user/untrusted/src';
|
|
234
|
-
mockRules['/home/user/untrusted'] = TrustLevel.DO_NOT_TRUST;
|
|
235
|
-
expect(isWorkspaceTrusted(mockSettings).isTrusted).toBeUndefined();
|
|
236
|
-
});
|
|
237
|
-
it('should return undefined when no rules match', () => {
|
|
238
|
-
mockCwd = '/home/user/other';
|
|
239
|
-
mockRules['/home/user/projectA'] = TrustLevel.TRUST_FOLDER;
|
|
240
|
-
mockRules['/home/user/untrusted'] = TrustLevel.DO_NOT_TRUST;
|
|
241
|
-
expect(isWorkspaceTrusted(mockSettings).isTrusted).toBeUndefined();
|
|
242
|
-
});
|
|
243
|
-
it('should prioritize trust over distrust', () => {
|
|
244
|
-
mockCwd = '/home/user/projectA/untrusted';
|
|
245
|
-
mockRules['/home/user/projectA'] = TrustLevel.TRUST_FOLDER;
|
|
246
|
-
mockRules['/home/user/projectA/untrusted'] = TrustLevel.DO_NOT_TRUST;
|
|
247
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
248
|
-
isTrusted: true,
|
|
249
|
-
source: 'file',
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
it('should handle path normalization', () => {
|
|
253
|
-
mockCwd = '/home/user/projectA';
|
|
254
|
-
mockRules[`/home/user/../user/${path.basename('/home/user/projectA')}`] =
|
|
255
|
-
TrustLevel.TRUST_FOLDER;
|
|
256
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
257
|
-
isTrusted: true,
|
|
258
|
-
source: 'file',
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
describe('isWorkspaceTrusted with IDE override', () => {
|
|
263
|
-
afterEach(() => {
|
|
264
|
-
vi.clearAllMocks();
|
|
265
|
-
ideContextStore.clear();
|
|
266
|
-
resetTrustedFoldersForTesting();
|
|
267
|
-
});
|
|
268
|
-
const mockSettings = {
|
|
269
|
-
security: {
|
|
270
|
-
folderTrust: {
|
|
271
|
-
enabled: true,
|
|
272
|
-
},
|
|
273
|
-
},
|
|
274
|
-
};
|
|
275
|
-
it('should return true when ideTrust is true, ignoring config', () => {
|
|
276
|
-
ideContextStore.set({ workspaceState: { isTrusted: true } });
|
|
277
|
-
// Even if config says don't trust, ideTrust should win.
|
|
278
|
-
vi.spyOn(fs, 'readFileSync').mockReturnValue(JSON.stringify({ [process.cwd()]: TrustLevel.DO_NOT_TRUST }));
|
|
279
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
280
|
-
isTrusted: true,
|
|
281
|
-
source: 'ide',
|
|
282
|
-
});
|
|
283
|
-
});
|
|
284
|
-
it('should return false when ideTrust is false, ignoring config', () => {
|
|
285
|
-
ideContextStore.set({ workspaceState: { isTrusted: false } });
|
|
286
|
-
// Even if config says trust, ideTrust should win.
|
|
287
|
-
vi.spyOn(fs, 'readFileSync').mockReturnValue(JSON.stringify({ [process.cwd()]: TrustLevel.TRUST_FOLDER }));
|
|
288
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
289
|
-
isTrusted: false,
|
|
290
|
-
source: 'ide',
|
|
291
|
-
});
|
|
292
|
-
});
|
|
293
|
-
it('should fall back to config when ideTrust is undefined', () => {
|
|
294
|
-
vi.spyOn(fs, 'existsSync').mockReturnValue(true);
|
|
295
|
-
vi.spyOn(fs, 'readFileSync').mockReturnValue(JSON.stringify({ [process.cwd()]: TrustLevel.TRUST_FOLDER }));
|
|
296
|
-
expect(isWorkspaceTrusted(mockSettings)).toEqual({
|
|
297
|
-
isTrusted: true,
|
|
298
|
-
source: 'file',
|
|
299
|
-
});
|
|
300
|
-
});
|
|
301
|
-
it('should always return true if folderTrust setting is disabled', () => {
|
|
302
|
-
const settings = {
|
|
303
|
-
security: {
|
|
304
|
-
folderTrust: {
|
|
305
|
-
enabled: false,
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
};
|
|
309
|
-
ideContextStore.set({ workspaceState: { isTrusted: false } });
|
|
310
|
-
expect(isWorkspaceTrusted(settings)).toEqual({
|
|
311
|
-
isTrusted: true,
|
|
312
|
-
source: undefined,
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
});
|
|
316
|
-
describe('Trusted Folders Caching', () => {
|
|
317
|
-
beforeEach(() => {
|
|
318
|
-
resetTrustedFoldersForTesting();
|
|
319
|
-
vi.mocked(fs.existsSync).mockReturnValue(true);
|
|
320
|
-
vi.mocked(fs.readFileSync).mockReturnValue('{}');
|
|
321
|
-
});
|
|
322
|
-
afterEach(() => {
|
|
323
|
-
vi.restoreAllMocks();
|
|
324
|
-
});
|
|
325
|
-
it('should cache the loaded folders object', () => {
|
|
326
|
-
const readSpy = vi.spyOn(fs, 'readFileSync');
|
|
327
|
-
// First call should read the file
|
|
328
|
-
loadTrustedFolders();
|
|
329
|
-
expect(readSpy).toHaveBeenCalledTimes(1);
|
|
330
|
-
// Second call should use the cache
|
|
331
|
-
loadTrustedFolders();
|
|
332
|
-
expect(readSpy).toHaveBeenCalledTimes(1);
|
|
333
|
-
// Resetting should clear the cache
|
|
334
|
-
resetTrustedFoldersForTesting();
|
|
335
|
-
// Third call should read the file again
|
|
336
|
-
loadTrustedFolders();
|
|
337
|
-
expect(readSpy).toHaveBeenCalledTimes(2);
|
|
338
|
-
});
|
|
339
|
-
});
|
|
340
|
-
//# sourceMappingURL=trustedFolders.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trustedFolders.test.js","sourceRoot":"","sources":["../../../src/config/trustedFolders.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EACL,QAAQ,EACR,EAAE,EACF,MAAM,EACN,EAAE,EACF,UAAU,EACV,SAAS,GAGV,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACV,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAG7B,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IACrC,MAAM,QAAQ,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|
|
7
|
-
import type { Settings } from './settings.js';
|
|
8
|
-
/**
|
|
9
|
-
* CLI arguments related to web search configuration
|
|
10
|
-
*/
|
|
11
|
-
export interface WebSearchCliArgs {
|
|
12
|
-
tavilyApiKey?: string;
|
|
13
|
-
OSAgentApiKey?: string;
|
|
14
|
-
OSAgentSearchEngineId?: string;
|
|
15
|
-
webSearchDefault?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Web search configuration structure
|
|
19
|
-
*/
|
|
20
|
-
export interface WebSearchConfig {
|
|
21
|
-
provider: WebSearchProviderConfig[];
|
|
22
|
-
default: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Build webSearch configuration from multiple sources with priority:
|
|
26
|
-
* 1. settings.json (new format) - highest priority
|
|
27
|
-
* 2. Command line args + environment variables
|
|
28
|
-
* 3. Legacy tavilyApiKey (backward compatibility)
|
|
29
|
-
*
|
|
30
|
-
* @param argv - Command line arguments
|
|
31
|
-
* @param settings - User settings from settings.json
|
|
32
|
-
* @param authType - Authentication type (e.g., 'OSA-oauth')
|
|
33
|
-
* @returns WebSearch configuration or undefined if no providers available
|
|
34
|
-
*/
|
|
35
|
-
export declare function buildWebSearchConfig(argv: WebSearchCliArgs, settings: Settings, authType?: string): WebSearchConfig | undefined;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 OSA
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { AuthType } from 'osagent-core';
|
|
7
|
-
/**
|
|
8
|
-
* Build webSearch configuration from multiple sources with priority:
|
|
9
|
-
* 1. settings.json (new format) - highest priority
|
|
10
|
-
* 2. Command line args + environment variables
|
|
11
|
-
* 3. Legacy tavilyApiKey (backward compatibility)
|
|
12
|
-
*
|
|
13
|
-
* @param argv - Command line arguments
|
|
14
|
-
* @param settings - User settings from settings.json
|
|
15
|
-
* @param authType - Authentication type (e.g., 'OSA-oauth')
|
|
16
|
-
* @returns WebSearch configuration or undefined if no providers available
|
|
17
|
-
*/
|
|
18
|
-
export function buildWebSearchConfig(argv, settings, authType) {
|
|
19
|
-
const isOSAOAuth = authType === AuthType.OSA_OAUTH;
|
|
20
|
-
// Step 1: Collect providers from settings or command line/env
|
|
21
|
-
let providers = [];
|
|
22
|
-
let userDefault;
|
|
23
|
-
if (settings.webSearch) {
|
|
24
|
-
// Use providers from settings.json
|
|
25
|
-
providers = [...settings.webSearch.provider];
|
|
26
|
-
userDefault = settings.webSearch.default;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
// Build providers from command line args and environment variables
|
|
30
|
-
const tavilyKey = argv.tavilyApiKey ||
|
|
31
|
-
settings.advanced?.tavilyApiKey ||
|
|
32
|
-
process.env['TAVILY_API_KEY'];
|
|
33
|
-
if (tavilyKey) {
|
|
34
|
-
providers.push({
|
|
35
|
-
type: 'tavily',
|
|
36
|
-
apiKey: tavilyKey,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
const OSAgentKey = argv.OSAgentApiKey || process.env['OSAgent_API_KEY'];
|
|
40
|
-
const OSAgentEngineId = argv.OSAgentSearchEngineId || process.env['OSAgent_SEARCH_ENGINE_ID'];
|
|
41
|
-
if (OSAgentKey && OSAgentEngineId) {
|
|
42
|
-
providers.push({
|
|
43
|
-
type: 'OSAgent',
|
|
44
|
-
apiKey: OSAgentKey,
|
|
45
|
-
searchEngineId: OSAgentEngineId,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
// Step 2: Ensure dashscope is available for OSA-oauth users
|
|
50
|
-
if (isOSAOAuth) {
|
|
51
|
-
const hasDashscope = providers.some((p) => p.type === 'dashscope');
|
|
52
|
-
if (!hasDashscope) {
|
|
53
|
-
providers.push({ type: 'dashscope' });
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
// Step 3: If no providers available, return undefined
|
|
57
|
-
if (providers.length === 0) {
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
60
|
-
// Step 4: Determine default provider
|
|
61
|
-
// Priority: user explicit config > CLI arg > first available provider (tavily > OSAgent > dashscope)
|
|
62
|
-
const providerPriority = [
|
|
63
|
-
'tavily',
|
|
64
|
-
'OSAgent',
|
|
65
|
-
'dashscope',
|
|
66
|
-
];
|
|
67
|
-
// Determine default provider based on availability
|
|
68
|
-
let defaultProvider = userDefault || argv.webSearchDefault;
|
|
69
|
-
if (!defaultProvider) {
|
|
70
|
-
// Find first available provider by priority order
|
|
71
|
-
for (const providerType of providerPriority) {
|
|
72
|
-
if (providers.some((p) => p.type === providerType)) {
|
|
73
|
-
defaultProvider = providerType;
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
// Fallback to first available provider if none found in priority list
|
|
78
|
-
if (!defaultProvider) {
|
|
79
|
-
defaultProvider = providers[0]?.type || 'dashscope';
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
provider: providers,
|
|
84
|
-
default: defaultProvider,
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=webSearch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webSearch.js","sourceRoot":"","sources":["../../../src/config/webSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAsBxC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAsB,EACtB,QAAkB,EAClB,QAAiB;IAEjB,MAAM,UAAU,GAAG,QAAQ,KAAK,QAAQ,CAAC,SAAS,CAAC;IAEnD,8DAA8D;IAC9D,IAAI,SAAS,GAA8B,EAAE,CAAC;IAC9C,IAAI,WAA+B,CAAC;IAEpC,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;QACvB,mCAAmC;QACnC,SAAS,GAAG,CAAC,GAAG,Q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C;QAClE,QAAQ;QACR,SAAS;QACT,WAAW;KACZ,CAAC;IAEF,mDAAmD;IACnD,IAAI,eAAe,GAAG,WAAW,IAAI,IAAI,CAAC,gBAAgB,CAAC;IAC3D,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,kDAAkD;QAClD,KAAK,MAAM,YAAY,IAAI,gBAAgB,EAAE,CAAC;YAC5C,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,EAAE,CAAC;gBACnD,eAAe,GAAG,YAAY,CAAC;gBAC/B,MAAM;YACR,CAAC;QACH,CAAC;QACD,sEAAsE;QACtE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,WAAW,CAAC;QACtD,CAAC;IACH,CAAC;IAED,OAAO;QACL,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,eAAe;KACzB,CAAC;AACJ,CAAC"}
|
package/dist/src/core/auth.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 OSAgent OC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { type AuthType, type Config } from 'osagent-core';
|
|
7
|
-
/**
|
|
8
|
-
* Handles the initial authentication flow.
|
|
9
|
-
* @param config The application config.
|
|
10
|
-
* @param authType The selected auth type.
|
|
11
|
-
* @returns An error message if authentication fails, otherwise null.
|
|
12
|
-
*/
|
|
13
|
-
export declare function performInitialAuth(config: Config, authType: AuthType | undefined): Promise<string | null>;
|
package/dist/src/core/auth.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 OSAgent OC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { getErrorMessage, logAuth, AuthEvent, } from 'osagent-core';
|
|
7
|
-
/**
|
|
8
|
-
* Handles the initial authentication flow.
|
|
9
|
-
* @param config The application config.
|
|
10
|
-
* @param authType The selected auth type.
|
|
11
|
-
* @returns An error message if authentication fails, otherwise null.
|
|
12
|
-
*/
|
|
13
|
-
export async function performInitialAuth(config, authType) {
|
|
14
|
-
if (!authType) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
try {
|
|
18
|
-
await config.refreshAuth(authType, true);
|
|
19
|
-
// The console.log is intentionally left out here.
|
|
20
|
-
// We can add a dedicated startup message later if needed.
|
|
21
|
-
// Log authentication success
|
|
22
|
-
const authEvent = new AuthEvent(authType, 'auto', 'success');
|
|
23
|
-
logAuth(config, authEvent);
|
|
24
|
-
}
|
|
25
|
-
catch (e) {
|
|
26
|
-
const errorMessage = `Failed to login. Message: ${getErrorMessage(e)}`;
|
|
27
|
-
// Log authentication failure
|
|
28
|
-
const authEvent = new AuthEvent(authType, 'auto', 'error', errorMessage);
|
|
29
|
-
logAuth(config, authEvent);
|
|
30
|
-
return errorMessage;
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/core/auth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,eAAe,EACf,OAAO,EACP,SAAS,GACV,MAAM,cAAc,CAAC;AAEtB;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAAc,EACd,QAA8B;IAE9B,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACzC,kDAAkD;QAClD,0DAA0D;QAE1D,6BAA6B;QAC7B,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QAC7D,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,YAAY,GAAG,6BAA6B,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;QAEvE,6BAA6B;QAC7B,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACzE,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAE3B,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 OSAgent OC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { type Config } from 'osagent-core';
|
|
7
|
-
import { type LoadedSettings } from '../config/settings.js';
|
|
8
|
-
export interface InitializationResult {
|
|
9
|
-
authError: string | null;
|
|
10
|
-
themeError: string | null;
|
|
11
|
-
shouldOpenAuthDialog: boolean;
|
|
12
|
-
OSAMdFileCount: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Orchestrates the application's startup initialization.
|
|
16
|
-
* This runs BEFORE the React UI is rendered.
|
|
17
|
-
* @param config The application config.
|
|
18
|
-
* @param settings The loaded application settings.
|
|
19
|
-
* @returns The results of the initialization.
|
|
20
|
-
*/
|
|
21
|
-
export declare function initializeApp(config: Config, settings: LoadedSettings): Promise<InitializationResult>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 OSAgent OC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { IdeClient, IdeConnectionEvent, IdeConnectionType, logIdeConnection, } from 'osagent-core';
|
|
7
|
-
import { SettingScope } from '../config/settings.js';
|
|
8
|
-
import { performInitialAuth } from './auth.js';
|
|
9
|
-
import { validateTheme } from './theme.js';
|
|
10
|
-
import { initializeI18n } from '../i18n/index.js';
|
|
11
|
-
/**
|
|
12
|
-
* Orchestrates the application's startup initialization.
|
|
13
|
-
* This runs BEFORE the React UI is rendered.
|
|
14
|
-
* @param config The application config.
|
|
15
|
-
* @param settings The loaded application settings.
|
|
16
|
-
* @returns The results of the initialization.
|
|
17
|
-
*/
|
|
18
|
-
export async function initializeApp(config, settings) {
|
|
19
|
-
// Initialize i18n system
|
|
20
|
-
const languageSetting = process.env['OSA_CODE_LANG'] ||
|
|
21
|
-
settings.merged.general?.language ||
|
|
22
|
-
'auto';
|
|
23
|
-
await initializeI18n(languageSetting);
|
|
24
|
-
const authType = settings.merged.security?.auth?.selectedType;
|
|
25
|
-
const authError = await performInitialAuth(config, authType);
|
|
26
|
-
// Fallback to user select when initial authentication fails
|
|
27
|
-
if (authError) {
|
|
28
|
-
settings.setValue(SettingScope.User, 'security.auth.selectedType', undefined);
|
|
29
|
-
}
|
|
30
|
-
const themeError = validateTheme(settings);
|
|
31
|
-
const shouldOpenAuthDialog = settings.merged.security?.auth?.selectedType === undefined || !!authError;
|
|
32
|
-
if (config.getIdeMode()) {
|
|
33
|
-
const ideClient = await IdeClient.getInstance();
|
|
34
|
-
await ideClient.connect();
|
|
35
|
-
logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.START));
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
authError,
|
|
39
|
-
themeError,
|
|
40
|
-
shouldOpenAuthDialog,
|
|
41
|
-
OSAMdFileCount: config.getOSAMdFileCount(),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=initializer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initializ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MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;QAC1B,gBAAgB,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO;QACL,SAAS;QACT,UAAU;QACV,oBAAoB;QACpB,cAAc,EAAE,MAAM,CAAC,iBAAiB,EAAE;KAC3C,CAAC;AACJ,CAAC"}
|
package/dist/src/core/theme.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 OSAgent OC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { type LoadedSettings } from '../config/settings.js';
|
|
7
|
-
/**
|
|
8
|
-
* Validates the configured theme.
|
|
9
|
-
* @param settings The loaded application settings.
|
|
10
|
-
* @returns An error message if the theme is not found, otherwise null.
|
|
11
|
-
*/
|
|
12
|
-
export declare function validateTheme(settings: LoadedSettings): string | null;
|
package/dist/src/core/theme.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 OSAgent OC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { themeManager } from '../ui/themes/theme-manager.js';
|
|
7
|
-
import {} from '../config/settings.js';
|
|
8
|
-
import { t } from '../i18n/index.js';
|
|
9
|
-
/**
|
|
10
|
-
* Validates the configured theme.
|
|
11
|
-
* @param settings The loaded application settings.
|
|
12
|
-
* @returns An error message if the theme is not found, otherwise null.
|
|
13
|
-
*/
|
|
14
|
-
export function validateTheme(settings) {
|
|
15
|
-
const effectiveTheme = settings.merged.ui?.theme;
|
|
16
|
-
if (effectiveTheme && !themeManager.findThemeByName(effectiveTheme)) {
|
|
17
|
-
return t('Theme "{{themeName}}" not found.', {
|
|
18
|
-
themeName: effectiveTheme,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=theme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/core/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAuB,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AAErC;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,QAAwB;IACpD,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC;IACjD,IAAI,cAAc,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,CAAC;QACpE,OAAO,CAAC,CAAC,kCAAkC,EAAE;YAC3C,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;IACL,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|