dexto 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/wrapper.js +1 -1
- package/dist/cli/auth/dexto-api-key.d.ts +34 -0
- package/dist/cli/auth/dexto-api-key.d.ts.map +1 -0
- package/dist/cli/auth/dexto-api-key.js +161 -0
- package/dist/cli/auth/index.d.ts +2 -1
- package/dist/cli/auth/index.d.ts.map +1 -1
- package/dist/cli/auth/index.js +2 -1
- package/dist/cli/auth/oauth.d.ts +10 -0
- package/dist/cli/auth/oauth.d.ts.map +1 -1
- package/dist/cli/auth/oauth.js +142 -39
- package/dist/cli/auth/service.d.ts +1 -0
- package/dist/cli/auth/service.d.ts.map +1 -1
- package/dist/cli/auth/service.js +1 -0
- package/dist/cli/commands/auth/login.d.ts.map +1 -1
- package/dist/cli/commands/auth/login.js +40 -105
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +157 -120
- package/dist/cli/utils/config-validation.js +3 -3
- package/dist/cli/utils/options.d.ts.map +1 -1
- package/dist/cli/utils/options.js +6 -0
- package/dist/cli/utils/scaffolding-utils.d.ts.map +1 -1
- package/dist/cli/utils/scaffolding-utils.js +38 -4
- package/dist/index-main.js +78 -11
- package/dist/index.js +12 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +18 -11
- package/dist/webui/assets/index-d6c-yJNn.js +2059 -0
- package/dist/webui/assets/index-yKdFLN1k.css +1 -0
- package/dist/webui/assets/react-vendor-l0sNRNKZ.js +1 -0
- package/dist/webui/assets/tanstack-BjCuxfF-.js +41 -0
- package/dist/webui/index.html +3 -4
- package/package.json +13 -23
- package/dist/cli/assets/sounds/SOURCES.md +0 -35
- package/dist/cli/assets/sounds/boot.wav +0 -0
- package/dist/cli/assets/sounds/chime.wav +0 -0
- package/dist/cli/assets/sounds/coin.wav +0 -0
- package/dist/cli/assets/sounds/confirm.wav +0 -0
- package/dist/cli/assets/sounds/levelup.wav +0 -0
- package/dist/cli/assets/sounds/ping.wav +0 -0
- package/dist/cli/assets/sounds/powerup.wav +0 -0
- package/dist/cli/assets/sounds/startup.wav +0 -0
- package/dist/cli/assets/sounds/success.wav +0 -0
- package/dist/cli/assets/sounds/treasure.wav +0 -0
- package/dist/cli/assets/sounds/win.wav +0 -0
- package/dist/cli/commands/interactive-commands/auth/index.d.ts +0 -12
- package/dist/cli/commands/interactive-commands/auth/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/auth/index.js +0 -20
- package/dist/cli/commands/interactive-commands/command-parser.d.ts +0 -56
- package/dist/cli/commands/interactive-commands/command-parser.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/command-parser.js +0 -173
- package/dist/cli/commands/interactive-commands/commands.d.ts +0 -52
- package/dist/cli/commands/interactive-commands/commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/commands.js +0 -142
- package/dist/cli/commands/interactive-commands/documentation-commands.d.ts +0 -15
- package/dist/cli/commands/interactive-commands/documentation-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/documentation-commands.js +0 -39
- package/dist/cli/commands/interactive-commands/exit-handler.d.ts +0 -12
- package/dist/cli/commands/interactive-commands/exit-handler.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/exit-handler.js +0 -20
- package/dist/cli/commands/interactive-commands/exit-stats.d.ts +0 -24
- package/dist/cli/commands/interactive-commands/exit-stats.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/exit-stats.js +0 -17
- package/dist/cli/commands/interactive-commands/export/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/export/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/export/index.js +0 -21
- package/dist/cli/commands/interactive-commands/general-commands.d.ts +0 -22
- package/dist/cli/commands/interactive-commands/general-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/general-commands.js +0 -508
- package/dist/cli/commands/interactive-commands/mcp/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/mcp/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/mcp/index.js +0 -18
- package/dist/cli/commands/interactive-commands/model/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/model/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/model/index.js +0 -19
- package/dist/cli/commands/interactive-commands/plugin/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/plugin/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/plugin/index.js +0 -18
- package/dist/cli/commands/interactive-commands/prompt-commands.d.ts +0 -25
- package/dist/cli/commands/interactive-commands/prompt-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/prompt-commands.js +0 -284
- package/dist/cli/commands/interactive-commands/session/index.d.ts +0 -16
- package/dist/cli/commands/interactive-commands/session/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/session/index.js +0 -15
- package/dist/cli/commands/interactive-commands/session/session-commands.d.ts +0 -32
- package/dist/cli/commands/interactive-commands/session/session-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/session/session-commands.js +0 -65
- package/dist/cli/commands/interactive-commands/system/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/system/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/system/index.js +0 -12
- package/dist/cli/commands/interactive-commands/system/system-commands.d.ts +0 -6
- package/dist/cli/commands/interactive-commands/system/system-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/system/system-commands.js +0 -188
- package/dist/cli/commands/interactive-commands/tool-commands.d.ts +0 -15
- package/dist/cli/commands/interactive-commands/tool-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/tool-commands.js +0 -24
- package/dist/cli/commands/interactive-commands/utils/arg-parser.d.ts +0 -57
- package/dist/cli/commands/interactive-commands/utils/arg-parser.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/arg-parser.js +0 -81
- package/dist/cli/commands/interactive-commands/utils/command-output.d.ts +0 -40
- package/dist/cli/commands/interactive-commands/utils/command-output.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/command-output.js +0 -56
- package/dist/cli/commands/interactive-commands/utils/format-output.d.ts +0 -14
- package/dist/cli/commands/interactive-commands/utils/format-output.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/format-output.js +0 -18
- package/dist/cli/ink-cli/InkCLIRefactored.d.ts +0 -52
- package/dist/cli/ink-cli/InkCLIRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/InkCLIRefactored.js +0 -231
- package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts +0 -44
- package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ApprovalPrompt.js +0 -323
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.d.ts +0 -18
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.js +0 -48
- package/dist/cli/ink-cli/components/CustomInput.d.ts +0 -17
- package/dist/cli/ink-cli/components/CustomInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/CustomInput.js +0 -51
- package/dist/cli/ink-cli/components/CustomTextInput.d.ts +0 -16
- package/dist/cli/ink-cli/components/CustomTextInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/CustomTextInput.js +0 -36
- package/dist/cli/ink-cli/components/EditableMultiLineInput.d.ts +0 -19
- package/dist/cli/ink-cli/components/EditableMultiLineInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/EditableMultiLineInput.js +0 -120
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts +0 -24
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ElicitationForm.js +0 -592
- package/dist/cli/ink-cli/components/ErrorBoundary.d.ts +0 -20
- package/dist/cli/ink-cli/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ErrorBoundary.js +0 -29
- package/dist/cli/ink-cli/components/Footer.d.ts +0 -22
- package/dist/cli/ink-cli/components/Footer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/Footer.js +0 -76
- package/dist/cli/ink-cli/components/HistorySearchBar.d.ts +0 -17
- package/dist/cli/ink-cli/components/HistorySearchBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/HistorySearchBar.js +0 -8
- package/dist/cli/ink-cli/components/MultiLineInput.d.ts +0 -12
- package/dist/cli/ink-cli/components/MultiLineInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/MultiLineInput.js +0 -27
- package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts +0 -26
- package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ResourceAutocomplete.js +0 -385
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts +0 -28
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.js +0 -412
- package/dist/cli/ink-cli/components/StatusBar.d.ts +0 -41
- package/dist/cli/ink-cli/components/StatusBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/StatusBar.js +0 -116
- package/dist/cli/ink-cli/components/TextBufferInput.d.ts +0 -52
- package/dist/cli/ink-cli/components/TextBufferInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/TextBufferInput.js +0 -490
- package/dist/cli/ink-cli/components/TodoPanel.d.ts +0 -26
- package/dist/cli/ink-cli/components/TodoPanel.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/TodoPanel.js +0 -62
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.d.ts +0 -29
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.js +0 -98
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts +0 -37
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/BaseSelector.js +0 -128
- package/dist/cli/ink-cli/components/base/index.d.ts +0 -6
- package/dist/cli/ink-cli/components/base/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/index.js +0 -5
- package/dist/cli/ink-cli/components/chat/ChatView.d.ts +0 -19
- package/dist/cli/ink-cli/components/chat/ChatView.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/ChatView.js +0 -11
- package/dist/cli/ink-cli/components/chat/Footer.d.ts +0 -9
- package/dist/cli/ink-cli/components/chat/Footer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/Footer.js +0 -8
- package/dist/cli/ink-cli/components/chat/Header.d.ts +0 -18
- package/dist/cli/ink-cli/components/chat/Header.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/Header.js +0 -16
- package/dist/cli/ink-cli/components/chat/MessageItem.d.ts +0 -21
- package/dist/cli/ink-cli/components/chat/MessageItem.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/MessageItem.js +0 -182
- package/dist/cli/ink-cli/components/chat/MessageList.d.ts +0 -16
- package/dist/cli/ink-cli/components/chat/MessageList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/MessageList.js +0 -20
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts +0 -16
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.js +0 -27
- package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts +0 -18
- package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/ToolIcon.js +0 -36
- package/dist/cli/ink-cli/components/chat/index.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/index.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.js +0 -15
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.js +0 -37
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.js +0 -29
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts +0 -45
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.js +0 -38
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts +0 -13
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.js +0 -12
- package/dist/cli/ink-cli/components/input/InputArea.d.ts +0 -46
- package/dist/cli/ink-cli/components/input/InputArea.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/input/InputArea.js +0 -6
- package/dist/cli/ink-cli/components/input/index.d.ts +0 -5
- package/dist/cli/ink-cli/components/input/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/input/index.js +0 -4
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts +0 -27
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.js +0 -182
- package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts +0 -29
- package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/StaticCLI.js +0 -114
- package/dist/cli/ink-cli/components/modes/index.d.ts +0 -10
- package/dist/cli/ink-cli/components/modes/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/index.js +0 -9
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.js +0 -92
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.d.ts +0 -13
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.js +0 -60
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.js +0 -241
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.js +0 -301
- package/dist/cli/ink-cli/components/overlays/ExportWizard.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/ExportWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ExportWizard.js +0 -308
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts +0 -23
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.js +0 -70
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.js +0 -81
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.d.ts +0 -31
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.js +0 -297
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.js +0 -59
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.js +0 -73
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.js +0 -51
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.js +0 -215
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.js +0 -80
- package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpSelector.js +0 -52
- package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts +0 -28
- package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpServerActions.js +0 -93
- package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpServerList.js +0 -116
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts +0 -28
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.js +0 -743
- package/dist/cli/ink-cli/components/overlays/PluginActions.d.ts +0 -27
- package/dist/cli/ink-cli/components/overlays/PluginActions.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginActions.js +0 -66
- package/dist/cli/ink-cli/components/overlays/PluginList.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/PluginList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginList.js +0 -70
- package/dist/cli/ink-cli/components/overlays/PluginManager.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/PluginManager.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginManager.js +0 -63
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.js +0 -52
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.js +0 -166
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts +0 -27
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.js +0 -119
- package/dist/cli/ink-cli/components/overlays/PromptList.d.ts +0 -33
- package/dist/cli/ink-cli/components/overlays/PromptList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptList.js +0 -143
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts +0 -23
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.js +0 -189
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.js +0 -63
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.js +0 -126
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.js +0 -42
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.js +0 -566
- package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/StreamSelector.js +0 -58
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.js +0 -697
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts +0 -25
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.js +0 -604
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts +0 -15
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.js +0 -14
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts +0 -42
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.js +0 -547
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts +0 -25
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.js +0 -29
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts +0 -17
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.js +0 -11
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.js +0 -10
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts +0 -30
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.js +0 -13
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts +0 -8
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.js +0 -7
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts +0 -85
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.js +0 -38
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.js +0 -65
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts +0 -30
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.js +0 -67
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/FileRenderer.js +0 -37
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.js +0 -26
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts +0 -20
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.js +0 -26
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.js +0 -15
- package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts +0 -61
- package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/diff-shared.js +0 -158
- package/dist/cli/ink-cli/components/renderers/index.d.ts +0 -28
- package/dist/cli/ink-cli/components/renderers/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/index.js +0 -36
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.d.ts +0 -7
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.js +0 -8
- package/dist/cli/ink-cli/components/shared/HintBar.d.ts +0 -6
- package/dist/cli/ink-cli/components/shared/HintBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/HintBar.js +0 -6
- package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts +0 -38
- package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/MarkdownText.js +0 -389
- package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts +0 -44
- package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/VirtualizedList.js +0 -300
- package/dist/cli/ink-cli/components/shared/text-buffer.d.ts +0 -185
- package/dist/cli/ink-cli/components/shared/text-buffer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/text-buffer.js +0 -1338
- package/dist/cli/ink-cli/constants/processingPhrases.d.ts +0 -10
- package/dist/cli/ink-cli/constants/processingPhrases.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/processingPhrases.js +0 -92
- package/dist/cli/ink-cli/constants/spinnerFrames.d.ts +0 -2
- package/dist/cli/ink-cli/constants/spinnerFrames.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/spinnerFrames.js +0 -1
- package/dist/cli/ink-cli/constants/tips.d.ts +0 -15
- package/dist/cli/ink-cli/constants/tips.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/tips.js +0 -58
- package/dist/cli/ink-cli/containers/InputContainer.d.ts +0 -62
- package/dist/cli/ink-cli/containers/InputContainer.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/InputContainer.js +0 -643
- package/dist/cli/ink-cli/containers/OverlayContainer.d.ts +0 -42
- package/dist/cli/ink-cli/containers/OverlayContainer.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/OverlayContainer.js +0 -1840
- package/dist/cli/ink-cli/containers/index.d.ts +0 -6
- package/dist/cli/ink-cli/containers/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/index.js +0 -5
- package/dist/cli/ink-cli/contexts/KeypressContext.d.ts +0 -36
- package/dist/cli/ink-cli/contexts/KeypressContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/KeypressContext.js +0 -461
- package/dist/cli/ink-cli/contexts/MouseContext.d.ts +0 -27
- package/dist/cli/ink-cli/contexts/MouseContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/MouseContext.js +0 -102
- package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts +0 -33
- package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/ScrollProvider.js +0 -170
- package/dist/cli/ink-cli/contexts/SoundContext.d.ts +0 -23
- package/dist/cli/ink-cli/contexts/SoundContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/SoundContext.js +0 -22
- package/dist/cli/ink-cli/contexts/index.d.ts +0 -8
- package/dist/cli/ink-cli/contexts/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/index.js +0 -7
- package/dist/cli/ink-cli/hooks/index.d.ts +0 -12
- package/dist/cli/ink-cli/hooks/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/index.js +0 -14
- package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts +0 -49
- package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useAgentEvents.js +0 -369
- package/dist/cli/ink-cli/hooks/useAnimationTick.d.ts +0 -11
- package/dist/cli/ink-cli/hooks/useAnimationTick.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useAnimationTick.js +0 -54
- package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts +0 -14
- package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useBatchedScroll.js +0 -25
- package/dist/cli/ink-cli/hooks/useCLIState.d.ts +0 -52
- package/dist/cli/ink-cli/hooks/useCLIState.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useCLIState.js +0 -224
- package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts +0 -24
- package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useElapsedTime.js +0 -69
- package/dist/cli/ink-cli/hooks/useGitBranch.d.ts +0 -13
- package/dist/cli/ink-cli/hooks/useGitBranch.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useGitBranch.js +0 -35
- package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts +0 -61
- package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useHistorySearch.js +0 -210
- package/dist/cli/ink-cli/hooks/useInputHistory.d.ts +0 -18
- package/dist/cli/ink-cli/hooks/useInputHistory.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useInputHistory.js +0 -26
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts +0 -136
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.js +0 -715
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts +0 -21
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.js +0 -80
- package/dist/cli/ink-cli/hooks/useKeypress.d.ts +0 -18
- package/dist/cli/ink-cli/hooks/useKeypress.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useKeypress.js +0 -26
- package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts +0 -30
- package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/usePhraseCycler.js +0 -68
- package/dist/cli/ink-cli/hooks/useStreaming.d.ts +0 -19
- package/dist/cli/ink-cli/hooks/useStreaming.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useStreaming.js +0 -26
- package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts +0 -14
- package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useTerminalSize.js +0 -31
- package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts +0 -46
- package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useTokenCounter.js +0 -122
- package/dist/cli/ink-cli/services/CommandService.d.ts +0 -58
- package/dist/cli/ink-cli/services/CommandService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/CommandService.js +0 -64
- package/dist/cli/ink-cli/services/InputService.d.ts +0 -40
- package/dist/cli/ink-cli/services/InputService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/InputService.js +0 -87
- package/dist/cli/ink-cli/services/MessageService.d.ts +0 -35
- package/dist/cli/ink-cli/services/MessageService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/MessageService.js +0 -49
- package/dist/cli/ink-cli/services/index.d.ts +0 -8
- package/dist/cli/ink-cli/services/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/index.js +0 -7
- package/dist/cli/ink-cli/services/processStream.d.ts +0 -75
- package/dist/cli/ink-cli/services/processStream.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/processStream.js +0 -951
- package/dist/cli/ink-cli/state/actions.d.ts +0 -124
- package/dist/cli/ink-cli/state/actions.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/actions.js +0 -8
- package/dist/cli/ink-cli/state/index.d.ts +0 -10
- package/dist/cli/ink-cli/state/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/index.js +0 -8
- package/dist/cli/ink-cli/state/initialState.d.ts +0 -12
- package/dist/cli/ink-cli/state/initialState.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/initialState.js +0 -58
- package/dist/cli/ink-cli/state/reducer.d.ts +0 -15
- package/dist/cli/ink-cli/state/reducer.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/reducer.js +0 -341
- package/dist/cli/ink-cli/state/streaming-state.d.ts +0 -27
- package/dist/cli/ink-cli/state/streaming-state.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/streaming-state.js +0 -39
- package/dist/cli/ink-cli/state/types.d.ts +0 -378
- package/dist/cli/ink-cli/state/types.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/types.js +0 -5
- package/dist/cli/ink-cli/utils/bracketedPaste.d.ts +0 -22
- package/dist/cli/ink-cli/utils/bracketedPaste.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/bracketedPaste.js +0 -27
- package/dist/cli/ink-cli/utils/clipboardUtils.d.ts +0 -49
- package/dist/cli/ink-cli/utils/clipboardUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/clipboardUtils.js +0 -356
- package/dist/cli/ink-cli/utils/commandOverlays.d.ts +0 -33
- package/dist/cli/ink-cli/utils/commandOverlays.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/commandOverlays.js +0 -85
- package/dist/cli/ink-cli/utils/debugLog.d.ts +0 -38
- package/dist/cli/ink-cli/utils/debugLog.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/debugLog.js +0 -66
- package/dist/cli/ink-cli/utils/elicitationSchema.d.ts +0 -11
- package/dist/cli/ink-cli/utils/elicitationSchema.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/elicitationSchema.js +0 -80
- package/dist/cli/ink-cli/utils/idGenerator.d.ts +0 -10
- package/dist/cli/ink-cli/utils/idGenerator.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/idGenerator.js +0 -12
- package/dist/cli/ink-cli/utils/index.d.ts +0 -9
- package/dist/cli/ink-cli/utils/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/index.js +0 -13
- package/dist/cli/ink-cli/utils/input.d.ts +0 -25
- package/dist/cli/ink-cli/utils/input.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/input.js +0 -56
- package/dist/cli/ink-cli/utils/inputParsing.d.ts +0 -31
- package/dist/cli/ink-cli/utils/inputParsing.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/inputParsing.js +0 -70
- package/dist/cli/ink-cli/utils/llm-provider-display.d.ts +0 -3
- package/dist/cli/ink-cli/utils/llm-provider-display.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/llm-provider-display.js +0 -22
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts +0 -125
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/messageFormatting.js +0 -485
- package/dist/cli/ink-cli/utils/mouse.d.ts +0 -61
- package/dist/cli/ink-cli/utils/mouse.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/mouse.js +0 -209
- package/dist/cli/ink-cli/utils/overlayPresentation.d.ts +0 -19
- package/dist/cli/ink-cli/utils/overlayPresentation.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/overlayPresentation.js +0 -33
- package/dist/cli/ink-cli/utils/overlaySizing.d.ts +0 -19
- package/dist/cli/ink-cli/utils/overlaySizing.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/overlaySizing.js +0 -11
- package/dist/cli/ink-cli/utils/soundNotification.d.ts +0 -77
- package/dist/cli/ink-cli/utils/soundNotification.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/soundNotification.js +0 -226
- package/dist/cli/ink-cli/utils/streamSplitter.d.ts +0 -44
- package/dist/cli/ink-cli/utils/streamSplitter.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/streamSplitter.js +0 -154
- package/dist/cli/ink-cli/utils/textUtils.d.ts +0 -63
- package/dist/cli/ink-cli/utils/textUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/textUtils.js +0 -248
- package/dist/cli/ink-cli/utils/toolUtils.d.ts +0 -20
- package/dist/cli/ink-cli/utils/toolUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/toolUtils.js +0 -25
- package/dist/webui/assets/index-C9JXwpvo.css +0 -1
- package/dist/webui/assets/index-CKhumsZA.js +0 -2059
- package/dist/webui/assets/react-vendor-gH-7aFTg.js +0 -17
- package/dist/webui/assets/tanstack-Br79RQ-n.js +0 -25
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* MarketplaceBrowser Component
|
|
4
|
-
* Clean, intuitive marketplace browser with two-level navigation
|
|
5
|
-
*/
|
|
6
|
-
import { useState, useEffect, forwardRef, useRef, useImperativeHandle, useMemo, } from 'react';
|
|
7
|
-
import { Box, Text } from 'ink';
|
|
8
|
-
import { listMarketplaces, listAllMarketplacePlugins, installPluginFromMarketplace, getUninstalledDefaults, addMarketplace, listInstalledPlugins, } from '@dexto/agent-management';
|
|
9
|
-
import { logger } from '@dexto/core';
|
|
10
|
-
import { BaseSelector } from '../base/BaseSelector.js';
|
|
11
|
-
/**
|
|
12
|
-
* Get source type icon
|
|
13
|
-
*/
|
|
14
|
-
function getSourceIcon(type) {
|
|
15
|
-
switch (type) {
|
|
16
|
-
case 'github':
|
|
17
|
-
return '🐙';
|
|
18
|
-
case 'git':
|
|
19
|
-
return '📦';
|
|
20
|
-
case 'local':
|
|
21
|
-
return '📁';
|
|
22
|
-
default:
|
|
23
|
-
return '📦';
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
const MarketplaceBrowser = forwardRef(function MarketplaceBrowser({ isVisible, onAction, onClose }, ref) {
|
|
27
|
-
const baseSelectorRef = useRef(null);
|
|
28
|
-
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
29
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
30
|
-
const [loadError, setLoadError] = useState(null);
|
|
31
|
-
const [view, setView] = useState('marketplaces');
|
|
32
|
-
const [marketplaces, setMarketplaces] = useState([]);
|
|
33
|
-
const [plugins, setPlugins] = useState([]);
|
|
34
|
-
const [selectedMarketplace, setSelectedMarketplace] = useState(null);
|
|
35
|
-
const [isInstalling, setIsInstalling] = useState(false);
|
|
36
|
-
const [uninstalledDefaults, setUninstalledDefaults] = useState([]);
|
|
37
|
-
const [pendingPlugin, setPendingPlugin] = useState(null);
|
|
38
|
-
const [installedPluginNames, setInstalledPluginNames] = useState(new Set());
|
|
39
|
-
// Forward handleInput to BaseSelector
|
|
40
|
-
useImperativeHandle(ref, () => ({
|
|
41
|
-
handleInput: (input, key) => {
|
|
42
|
-
return baseSelectorRef.current?.handleInput(input, key) ?? false;
|
|
43
|
-
},
|
|
44
|
-
}), []);
|
|
45
|
-
// Load data when visible
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (isVisible) {
|
|
48
|
-
loadMarketplaces();
|
|
49
|
-
}
|
|
50
|
-
}, [isVisible]);
|
|
51
|
-
// Load marketplaces
|
|
52
|
-
const loadMarketplaces = () => {
|
|
53
|
-
setIsLoading(true);
|
|
54
|
-
setLoadError(null);
|
|
55
|
-
setView('marketplaces');
|
|
56
|
-
setSelectedMarketplace(null);
|
|
57
|
-
setSelectedIndex(0);
|
|
58
|
-
try {
|
|
59
|
-
const mktplaces = listMarketplaces();
|
|
60
|
-
setMarketplaces(mktplaces);
|
|
61
|
-
const allPlugins = listAllMarketplacePlugins();
|
|
62
|
-
setPlugins(allPlugins);
|
|
63
|
-
const defaults = getUninstalledDefaults();
|
|
64
|
-
setUninstalledDefaults(defaults);
|
|
65
|
-
const installed = listInstalledPlugins();
|
|
66
|
-
setInstalledPluginNames(new Set(installed.map((p) => p.name.toLowerCase())));
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
setLoadError(`Failed to load: ${error instanceof Error ? error.message : String(error)}`);
|
|
70
|
-
setMarketplaces([]);
|
|
71
|
-
setPlugins([]);
|
|
72
|
-
setUninstalledDefaults([]);
|
|
73
|
-
setInstalledPluginNames(new Set());
|
|
74
|
-
}
|
|
75
|
-
finally {
|
|
76
|
-
setIsLoading(false);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
// Show plugins for a marketplace
|
|
80
|
-
const showMarketplacePlugins = (marketplaceName) => {
|
|
81
|
-
setSelectedMarketplace(marketplaceName);
|
|
82
|
-
setView('plugins');
|
|
83
|
-
setSelectedIndex(0);
|
|
84
|
-
};
|
|
85
|
-
// Go back to marketplace list
|
|
86
|
-
const goBackToMarketplaces = () => {
|
|
87
|
-
setView('marketplaces');
|
|
88
|
-
setSelectedMarketplace(null);
|
|
89
|
-
setSelectedIndex(0);
|
|
90
|
-
};
|
|
91
|
-
// Show scope selection for a plugin
|
|
92
|
-
const showScopeSelection = (plugin) => {
|
|
93
|
-
setPendingPlugin(plugin);
|
|
94
|
-
setView('scope-select');
|
|
95
|
-
setSelectedIndex(0);
|
|
96
|
-
};
|
|
97
|
-
// Go back to plugins from scope selection
|
|
98
|
-
const goBackToPlugins = () => {
|
|
99
|
-
setPendingPlugin(null);
|
|
100
|
-
setView('plugins');
|
|
101
|
-
setSelectedIndex(0);
|
|
102
|
-
};
|
|
103
|
-
// Build items based on current view
|
|
104
|
-
const items = useMemo(() => {
|
|
105
|
-
if (view === 'marketplaces') {
|
|
106
|
-
const list = [];
|
|
107
|
-
// Back option first
|
|
108
|
-
list.push({ type: 'back' });
|
|
109
|
-
// Uninstalled default marketplaces (setup prompts)
|
|
110
|
-
for (const def of uninstalledDefaults) {
|
|
111
|
-
list.push({
|
|
112
|
-
type: 'default-marketplace',
|
|
113
|
-
name: def.name,
|
|
114
|
-
sourceValue: def.source.value,
|
|
115
|
-
sourceType: def.source.type,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
// Installed marketplaces
|
|
119
|
-
for (const m of marketplaces) {
|
|
120
|
-
const pluginCount = plugins.filter((p) => p.marketplace === m.name).length;
|
|
121
|
-
list.push({
|
|
122
|
-
type: 'marketplace',
|
|
123
|
-
marketplace: m,
|
|
124
|
-
pluginCount,
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
// Add marketplace option
|
|
128
|
-
list.push({ type: 'add-new' });
|
|
129
|
-
return list;
|
|
130
|
-
}
|
|
131
|
-
else if (view === 'scope-select') {
|
|
132
|
-
// Scope selection view
|
|
133
|
-
const list = [{ type: 'back' }];
|
|
134
|
-
list.push({
|
|
135
|
-
type: 'scope',
|
|
136
|
-
scope: 'user',
|
|
137
|
-
label: 'Global (user)',
|
|
138
|
-
description: 'Available in all projects',
|
|
139
|
-
icon: '🌐',
|
|
140
|
-
});
|
|
141
|
-
list.push({
|
|
142
|
-
type: 'scope',
|
|
143
|
-
scope: 'project',
|
|
144
|
-
label: 'Project only',
|
|
145
|
-
description: 'Only in current project, can be committed to git',
|
|
146
|
-
icon: '📁',
|
|
147
|
-
});
|
|
148
|
-
return list;
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
// Plugins view
|
|
152
|
-
const filteredPlugins = selectedMarketplace
|
|
153
|
-
? plugins.filter((p) => p.marketplace === selectedMarketplace)
|
|
154
|
-
: plugins;
|
|
155
|
-
const list = [{ type: 'back' }];
|
|
156
|
-
for (const plugin of filteredPlugins) {
|
|
157
|
-
const isInstalled = installedPluginNames.has(plugin.name.toLowerCase());
|
|
158
|
-
list.push({
|
|
159
|
-
type: 'plugin',
|
|
160
|
-
plugin,
|
|
161
|
-
isInstalled,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
return list;
|
|
165
|
-
}
|
|
166
|
-
}, [
|
|
167
|
-
view,
|
|
168
|
-
marketplaces,
|
|
169
|
-
plugins,
|
|
170
|
-
selectedMarketplace,
|
|
171
|
-
uninstalledDefaults,
|
|
172
|
-
installedPluginNames,
|
|
173
|
-
]);
|
|
174
|
-
// Format item for display
|
|
175
|
-
const formatItem = (item, isSelected) => {
|
|
176
|
-
// Back option
|
|
177
|
-
if (item.type === 'back') {
|
|
178
|
-
const label = view === 'scope-select'
|
|
179
|
-
? 'Back to plugins'
|
|
180
|
-
: view === 'plugins'
|
|
181
|
-
? 'Back to marketplaces'
|
|
182
|
-
: 'Back to menu';
|
|
183
|
-
return (_jsxs(Box, { children: [_jsx(Text, { color: isSelected ? 'cyan' : 'gray', children: isSelected ? '▸ ' : ' ' }), _jsx(Text, { color: "gray", children: "\u2190 " }), _jsx(Text, { color: isSelected ? 'white' : 'gray', children: label })] }));
|
|
184
|
-
}
|
|
185
|
-
// Scope selection option
|
|
186
|
-
if (item.type === 'scope') {
|
|
187
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: isSelected ? 'cyan' : 'gray', children: isSelected ? '▸ ' : ' ' }), _jsxs(Text, { children: [item.icon, " "] }), _jsx(Text, { color: isSelected ? 'cyan' : 'white', bold: isSelected, children: item.label })] }), isSelected && (_jsx(Box, { marginLeft: 4, children: _jsx(Text, { color: "gray", dimColor: true, children: item.description }) }))] }));
|
|
188
|
-
}
|
|
189
|
-
// Add marketplace option
|
|
190
|
-
if (item.type === 'add-new') {
|
|
191
|
-
return (_jsxs(Box, { children: [_jsx(Text, { color: isSelected ? 'cyan' : 'gray', children: isSelected ? '▸ ' : ' ' }), _jsx(Text, { color: isSelected ? 'green' : 'gray', children: "+ " }), _jsx(Text, { color: isSelected ? 'green' : 'gray', children: "Add custom marketplace" })] }));
|
|
192
|
-
}
|
|
193
|
-
// Default (uninstalled) marketplace
|
|
194
|
-
if (item.type === 'default-marketplace') {
|
|
195
|
-
const icon = getSourceIcon(item.sourceType);
|
|
196
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: isSelected ? 'cyan' : 'gray', children: isSelected ? '▸ ' : ' ' }), _jsxs(Text, { children: [icon, " "] }), _jsx(Text, { color: isSelected ? 'cyan' : 'white', bold: isSelected, children: item.name }), _jsx(Text, { color: "yellow", children: " (not installed)" })] }), isSelected && (_jsx(Box, { marginLeft: 4, children: _jsx(Text, { color: "gray", dimColor: true, children: item.sourceValue }) }))] }));
|
|
197
|
-
}
|
|
198
|
-
// Installed marketplace
|
|
199
|
-
if (item.type === 'marketplace') {
|
|
200
|
-
const m = item.marketplace;
|
|
201
|
-
const icon = getSourceIcon(m.source.type);
|
|
202
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: isSelected ? 'cyan' : 'gray', children: isSelected ? '▸ ' : ' ' }), _jsxs(Text, { children: [icon, " "] }), _jsx(Text, { color: isSelected ? 'cyan' : 'white', bold: isSelected, children: m.name }), _jsxs(Text, { color: "gray", dimColor: true, children: [' ', "(", item.pluginCount, " plugins)"] })] }), isSelected && (_jsx(Box, { marginLeft: 4, children: _jsx(Text, { color: "gray", dimColor: true, children: m.source.value }) }))] }));
|
|
203
|
-
}
|
|
204
|
-
// Plugin item
|
|
205
|
-
const p = item.plugin;
|
|
206
|
-
const statusBadge = item.isInstalled ? _jsx(Text, { color: "green", children: " \u2713" }) : null;
|
|
207
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: isSelected ? 'cyan' : 'gray', children: isSelected ? '▸ ' : ' ' }), _jsx(Text, { color: isSelected ? 'white' : 'gray', children: "\uD83D\uDCE6 " }), _jsx(Text, { color: isSelected ? 'cyan' : 'white', bold: isSelected, children: p.name }), p.version && (_jsxs(Text, { color: "gray", dimColor: true, children: ["@", p.version] })), p.category && (_jsxs(Text, { color: "magenta", dimColor: true, children: [' ', "[", p.category, "]"] })), statusBadge] }), isSelected && p.description && (_jsx(Box, { marginLeft: 4, children: _jsx(Text, { color: "gray", children: p.description }) })), isSelected && item.isInstalled && (_jsx(Box, { marginLeft: 4, children: _jsx(Text, { color: "gray", dimColor: true, children: "Already installed" }) }))] }));
|
|
208
|
-
};
|
|
209
|
-
// Handle selection
|
|
210
|
-
const handleSelect = async (item) => {
|
|
211
|
-
if (item.type === 'back') {
|
|
212
|
-
if (view === 'scope-select') {
|
|
213
|
-
goBackToPlugins();
|
|
214
|
-
}
|
|
215
|
-
else if (view === 'plugins') {
|
|
216
|
-
goBackToMarketplaces();
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
onClose();
|
|
220
|
-
}
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
if (item.type === 'add-new') {
|
|
224
|
-
onAction({ type: 'add-marketplace' });
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
if (item.type === 'default-marketplace' && !isInstalling) {
|
|
228
|
-
setIsInstalling(true);
|
|
229
|
-
try {
|
|
230
|
-
await addMarketplace(item.sourceValue, { name: item.name });
|
|
231
|
-
onAction({ type: 'marketplace-added', marketplaceName: item.name });
|
|
232
|
-
loadMarketplaces();
|
|
233
|
-
}
|
|
234
|
-
catch (error) {
|
|
235
|
-
logger.error(`Failed to add marketplace ${item.name}: ${error instanceof Error ? error.message : String(error)}`);
|
|
236
|
-
}
|
|
237
|
-
finally {
|
|
238
|
-
setIsInstalling(false);
|
|
239
|
-
}
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
if (item.type === 'marketplace') {
|
|
243
|
-
showMarketplacePlugins(item.marketplace.name);
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
|
-
// Show scope selection for plugin
|
|
247
|
-
if (item.type === 'plugin' && !item.isInstalled) {
|
|
248
|
-
showScopeSelection(item.plugin);
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
// Install plugin with selected scope
|
|
252
|
-
if (item.type === 'scope' && pendingPlugin && !isInstalling) {
|
|
253
|
-
setIsInstalling(true);
|
|
254
|
-
try {
|
|
255
|
-
const result = await installPluginFromMarketplace(`${pendingPlugin.name}@${pendingPlugin.marketplace}`, { scope: item.scope });
|
|
256
|
-
setInstalledPluginNames((prev) => {
|
|
257
|
-
const next = new Set(prev);
|
|
258
|
-
next.add(result.pluginName.toLowerCase());
|
|
259
|
-
return next;
|
|
260
|
-
});
|
|
261
|
-
onAction({
|
|
262
|
-
type: 'plugin-installed',
|
|
263
|
-
pluginName: result.pluginName,
|
|
264
|
-
marketplace: result.marketplace,
|
|
265
|
-
});
|
|
266
|
-
// Go back to plugins view after successful install
|
|
267
|
-
goBackToPlugins();
|
|
268
|
-
}
|
|
269
|
-
catch (error) {
|
|
270
|
-
logger.error(`Failed to install ${pendingPlugin.name}: ${error instanceof Error ? error.message : String(error)}`);
|
|
271
|
-
}
|
|
272
|
-
finally {
|
|
273
|
-
setIsInstalling(false);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
// Get title based on view
|
|
278
|
-
const getTitle = () => {
|
|
279
|
-
if (view === 'scope-select' && pendingPlugin) {
|
|
280
|
-
return `Install ${pendingPlugin.name} › Choose Scope`;
|
|
281
|
-
}
|
|
282
|
-
if (view === 'plugins' && selectedMarketplace) {
|
|
283
|
-
return `${selectedMarketplace} › Plugins`;
|
|
284
|
-
}
|
|
285
|
-
return 'Marketplace';
|
|
286
|
-
};
|
|
287
|
-
// Get empty message
|
|
288
|
-
const getEmptyMessage = () => {
|
|
289
|
-
if (loadError)
|
|
290
|
-
return loadError;
|
|
291
|
-
if (view === 'plugins')
|
|
292
|
-
return 'No plugins found in this marketplace';
|
|
293
|
-
return 'No marketplaces. Add one to browse plugins.';
|
|
294
|
-
};
|
|
295
|
-
return (_jsx(BaseSelector, { ref: baseSelectorRef, items: items, isVisible: isVisible, isLoading: isLoading || isInstalling, selectedIndex: selectedIndex, onSelectIndex: setSelectedIndex, onSelect: handleSelect, onClose: onClose, formatItem: formatItem, title: getTitle(), borderColor: "green", emptyMessage: getEmptyMessage(), loadingMessage: isInstalling ? 'Installing...' : 'Loading...' }));
|
|
296
|
-
});
|
|
297
|
-
export default MarketplaceBrowser;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* McpAddChoice Component
|
|
3
|
-
* Asks user whether to add from registry or custom
|
|
4
|
-
* Shown when "Add new server" is selected from McpServerList
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import type { Key } from '../../hooks/useInputOrchestrator.js';
|
|
8
|
-
export type McpAddChoiceType = 'registry' | 'custom' | 'back';
|
|
9
|
-
interface McpAddChoiceProps {
|
|
10
|
-
isVisible: boolean;
|
|
11
|
-
onSelect: (choice: McpAddChoiceType) => void;
|
|
12
|
-
onClose: () => void;
|
|
13
|
-
}
|
|
14
|
-
export interface McpAddChoiceHandle {
|
|
15
|
-
handleInput: (input: string, key: Key) => boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* MCP Add Choice - registry vs custom
|
|
19
|
-
*/
|
|
20
|
-
declare const McpAddChoice: React.ForwardRefExoticComponent<McpAddChoiceProps & React.RefAttributes<McpAddChoiceHandle>>;
|
|
21
|
-
export default McpAddChoice;
|
|
22
|
-
//# sourceMappingURL=McpAddChoice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McpAddChoice.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/overlays/McpAddChoice.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAuE,MAAM,OAAO,CAAC;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAG/D,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE9D,UAAU,iBAAiB;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAkCD;;GAEG;AACH,QAAA,MAAM,YAAY,8FAyDhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* McpAddChoice Component
|
|
4
|
-
* Asks user whether to add from registry or custom
|
|
5
|
-
* Shown when "Add new server" is selected from McpServerList
|
|
6
|
-
*/
|
|
7
|
-
import { useState, useEffect, forwardRef, useRef, useImperativeHandle } from 'react';
|
|
8
|
-
import { Box, Text } from 'ink';
|
|
9
|
-
import { BaseSelector } from '../base/BaseSelector.js';
|
|
10
|
-
const CHOICES = [
|
|
11
|
-
{
|
|
12
|
-
id: 'registry',
|
|
13
|
-
type: 'registry',
|
|
14
|
-
label: 'Explore registry',
|
|
15
|
-
description: 'Browse available MCP server presets',
|
|
16
|
-
icon: '📦',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: 'custom',
|
|
20
|
-
type: 'custom',
|
|
21
|
-
label: 'Add custom server',
|
|
22
|
-
description: 'Configure your own MCP server',
|
|
23
|
-
icon: '⚙️',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: 'back',
|
|
27
|
-
type: 'back',
|
|
28
|
-
label: 'Back',
|
|
29
|
-
description: 'Return to server list',
|
|
30
|
-
icon: '←',
|
|
31
|
-
},
|
|
32
|
-
];
|
|
33
|
-
/**
|
|
34
|
-
* MCP Add Choice - registry vs custom
|
|
35
|
-
*/
|
|
36
|
-
const McpAddChoice = forwardRef(function McpAddChoice({ isVisible, onSelect, onClose }, ref) {
|
|
37
|
-
const baseSelectorRef = useRef(null);
|
|
38
|
-
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
39
|
-
// Forward handleInput to BaseSelector
|
|
40
|
-
useImperativeHandle(ref, () => ({
|
|
41
|
-
handleInput: (input, key) => {
|
|
42
|
-
return baseSelectorRef.current?.handleInput(input, key) ?? false;
|
|
43
|
-
},
|
|
44
|
-
}), []);
|
|
45
|
-
// Reset selection when becoming visible
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (isVisible) {
|
|
48
|
-
setSelectedIndex(0);
|
|
49
|
-
}
|
|
50
|
-
}, [isVisible]);
|
|
51
|
-
// Format item for display
|
|
52
|
-
const formatItem = (item, isSelected) => (_jsxs(Box, { children: [_jsxs(Text, { children: [item.icon, " "] }), _jsx(Text, { color: isSelected ? 'cyan' : 'gray', bold: isSelected, children: item.label }), _jsxs(Text, { color: isSelected ? 'white' : 'gray', children: [" - ", item.description] })] }));
|
|
53
|
-
// Handle selection
|
|
54
|
-
const handleSelect = (item) => {
|
|
55
|
-
onSelect(item.type);
|
|
56
|
-
};
|
|
57
|
-
return (_jsx(BaseSelector, { ref: baseSelectorRef, items: CHOICES, isVisible: isVisible, isLoading: false, selectedIndex: selectedIndex, onSelectIndex: setSelectedIndex, onSelect: handleSelect, onClose: onClose, formatItem: formatItem, title: "Add MCP Server", borderColor: "green", emptyMessage: "No options available" }));
|
|
58
|
-
});
|
|
59
|
-
export default McpAddChoice;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* McpAddSelector Component
|
|
3
|
-
* Shows registry presets for adding MCP servers
|
|
4
|
-
* (Custom server options are handled separately via McpSelector "add custom")
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import type { Key } from '../../hooks/useInputOrchestrator.js';
|
|
8
|
-
import { type ServerRegistryEntry } from '@dexto/registry';
|
|
9
|
-
export type McpAddResult = {
|
|
10
|
-
type: 'preset';
|
|
11
|
-
entry: ServerRegistryEntry;
|
|
12
|
-
};
|
|
13
|
-
interface McpAddSelectorProps {
|
|
14
|
-
isVisible: boolean;
|
|
15
|
-
onSelect: (result: McpAddResult) => void;
|
|
16
|
-
onClose: () => void;
|
|
17
|
-
}
|
|
18
|
-
export interface McpAddSelectorHandle {
|
|
19
|
-
handleInput: (input: string, key: Key) => boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* MCP add selector - shows registry presets only
|
|
23
|
-
*/
|
|
24
|
-
declare const McpAddSelector: React.ForwardRefExoticComponent<McpAddSelectorProps & React.RefAttributes<McpAddSelectorHandle>>;
|
|
25
|
-
export default McpAddSelector;
|
|
26
|
-
//# sourceMappingURL=McpAddSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McpAddSelector.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/overlays/McpAddSelector.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAuE,MAAM,OAAO,CAAC;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3E,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAE1E,UAAU,mBAAmB;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACjC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAUD;;GAEG;AACH,QAAA,MAAM,cAAc,kGAqGnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* McpAddSelector Component
|
|
4
|
-
* Shows registry presets for adding MCP servers
|
|
5
|
-
* (Custom server options are handled separately via McpSelector "add custom")
|
|
6
|
-
*/
|
|
7
|
-
import { useState, useEffect, forwardRef, useRef, useImperativeHandle } from 'react';
|
|
8
|
-
import { Text } from 'ink';
|
|
9
|
-
import { serverRegistry } from '@dexto/registry';
|
|
10
|
-
import { BaseSelector } from '../base/BaseSelector.js';
|
|
11
|
-
/**
|
|
12
|
-
* MCP add selector - shows registry presets only
|
|
13
|
-
*/
|
|
14
|
-
const McpAddSelector = forwardRef(function McpAddSelector({ isVisible, onSelect, onClose }, ref) {
|
|
15
|
-
const baseSelectorRef = useRef(null);
|
|
16
|
-
// Forward handleInput to BaseSelector
|
|
17
|
-
useImperativeHandle(ref, () => ({
|
|
18
|
-
handleInput: (input, key) => {
|
|
19
|
-
return baseSelectorRef.current?.handleInput(input, key) ?? false;
|
|
20
|
-
},
|
|
21
|
-
}), []);
|
|
22
|
-
const [options, setOptions] = useState([]);
|
|
23
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
24
|
-
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
25
|
-
// Fetch registry entries
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (!isVisible)
|
|
28
|
-
return;
|
|
29
|
-
let cancelled = false;
|
|
30
|
-
setIsLoading(true);
|
|
31
|
-
const fetchEntries = async () => {
|
|
32
|
-
try {
|
|
33
|
-
const entries = await serverRegistry.getEntries();
|
|
34
|
-
if (cancelled)
|
|
35
|
-
return;
|
|
36
|
-
// Only show presets that are not already installed
|
|
37
|
-
const availablePresets = entries.filter((e) => !e.isInstalled);
|
|
38
|
-
const optionList = availablePresets.map((entry) => ({
|
|
39
|
-
id: entry.id,
|
|
40
|
-
label: entry.name,
|
|
41
|
-
description: entry.description,
|
|
42
|
-
icon: entry.icon || '📦',
|
|
43
|
-
entry,
|
|
44
|
-
}));
|
|
45
|
-
setOptions(optionList);
|
|
46
|
-
setSelectedIndex(0);
|
|
47
|
-
}
|
|
48
|
-
catch {
|
|
49
|
-
// On error, options remain empty - BaseSelector will show emptyMessage
|
|
50
|
-
if (!cancelled) {
|
|
51
|
-
setOptions([]);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
finally {
|
|
55
|
-
if (!cancelled) {
|
|
56
|
-
setIsLoading(false);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
void fetchEntries();
|
|
61
|
-
return () => {
|
|
62
|
-
cancelled = true;
|
|
63
|
-
};
|
|
64
|
-
}, [isVisible]);
|
|
65
|
-
// Format option for display
|
|
66
|
-
const formatItem = (option, isSelected) => (_jsxs(_Fragment, { children: [_jsxs(Text, { children: [option.icon, " "] }), _jsx(Text, { color: isSelected ? 'cyan' : 'gray', bold: isSelected, children: option.label }), _jsxs(Text, { color: isSelected ? 'white' : 'gray', children: [' ', "- ", option.description.slice(0, 40), option.description.length > 40 ? '...' : ''] })] }));
|
|
67
|
-
// Handle selection
|
|
68
|
-
const handleSelect = (option) => {
|
|
69
|
-
onSelect({ type: 'preset', entry: option.entry });
|
|
70
|
-
};
|
|
71
|
-
return (_jsx(BaseSelector, { ref: baseSelectorRef, items: options, isVisible: isVisible, isLoading: isLoading, selectedIndex: selectedIndex, onSelectIndex: setSelectedIndex, onSelect: handleSelect, onClose: onClose, formatItem: formatItem, title: "Add MCP Server (Presets)", borderColor: "green", loadingMessage: "Loading server presets...", emptyMessage: "No server presets available" }));
|
|
72
|
-
});
|
|
73
|
-
export default McpAddSelector;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* McpCustomTypeSelector Component
|
|
3
|
-
* Shows server type options (stdio/http/sse) for custom MCP server
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { Key } from '../../hooks/useInputOrchestrator.js';
|
|
7
|
-
import type { McpServerType } from '@dexto/core';
|
|
8
|
-
interface McpCustomTypeSelectorProps {
|
|
9
|
-
isVisible: boolean;
|
|
10
|
-
onSelect: (serverType: McpServerType) => void;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
}
|
|
13
|
-
export interface McpCustomTypeSelectorHandle {
|
|
14
|
-
handleInput: (input: string, key: Key) => boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* MCP custom type selector - picks server transport type
|
|
18
|
-
*/
|
|
19
|
-
declare const McpCustomTypeSelector: React.ForwardRefExoticComponent<McpCustomTypeSelectorProps & React.RefAttributes<McpCustomTypeSelectorHandle>>;
|
|
20
|
-
export default McpCustomTypeSelector;
|
|
21
|
-
//# sourceMappingURL=McpCustomTypeSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McpCustomTypeSelector.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/overlays/McpCustomTypeSelector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAuE,MAAM,OAAO,CAAC;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,UAAU,0BAA0B;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IACxC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AA8BD;;GAEG;AACH,QAAA,MAAM,qBAAqB,gHAqD1B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* McpCustomTypeSelector Component
|
|
4
|
-
* Shows server type options (stdio/http/sse) for custom MCP server
|
|
5
|
-
*/
|
|
6
|
-
import { useState, useEffect, forwardRef, useRef, useImperativeHandle } from 'react';
|
|
7
|
-
import { Text } from 'ink';
|
|
8
|
-
import { BaseSelector } from '../base/BaseSelector.js';
|
|
9
|
-
const SERVER_TYPE_OPTIONS = [
|
|
10
|
-
{
|
|
11
|
-
type: 'stdio',
|
|
12
|
-
label: 'STDIO',
|
|
13
|
-
description: 'Local process (npx, uvx, node, python)',
|
|
14
|
-
icon: '▶️',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
type: 'http',
|
|
18
|
-
label: 'HTTP',
|
|
19
|
-
description: 'Remote HTTP server',
|
|
20
|
-
icon: '🌐',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
type: 'sse',
|
|
24
|
-
label: 'SSE',
|
|
25
|
-
description: 'Server-Sent Events endpoint',
|
|
26
|
-
icon: '📡',
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
/**
|
|
30
|
-
* MCP custom type selector - picks server transport type
|
|
31
|
-
*/
|
|
32
|
-
const McpCustomTypeSelector = forwardRef(function McpCustomTypeSelector({ isVisible, onSelect, onClose }, ref) {
|
|
33
|
-
const baseSelectorRef = useRef(null);
|
|
34
|
-
useImperativeHandle(ref, () => ({
|
|
35
|
-
handleInput: (input, key) => {
|
|
36
|
-
return baseSelectorRef.current?.handleInput(input, key) ?? false;
|
|
37
|
-
},
|
|
38
|
-
}), []);
|
|
39
|
-
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
if (isVisible) {
|
|
42
|
-
setSelectedIndex(0);
|
|
43
|
-
}
|
|
44
|
-
}, [isVisible]);
|
|
45
|
-
const formatItem = (option, isSelected) => (_jsxs(_Fragment, { children: [_jsxs(Text, { children: [option.icon, " "] }), _jsx(Text, { color: isSelected ? 'cyan' : 'gray', bold: isSelected, children: option.label }), _jsxs(Text, { color: isSelected ? 'white' : 'gray', children: [" - ", option.description] })] }));
|
|
46
|
-
const handleSelect = (option) => {
|
|
47
|
-
onSelect(option.type);
|
|
48
|
-
};
|
|
49
|
-
return (_jsx(BaseSelector, { ref: baseSelectorRef, items: SERVER_TYPE_OPTIONS, isVisible: isVisible, isLoading: false, selectedIndex: selectedIndex, onSelectIndex: setSelectedIndex, onSelect: handleSelect, onClose: onClose, formatItem: formatItem, title: "Select Server Type", borderColor: "yellowBright", emptyMessage: "No options available" }));
|
|
50
|
-
});
|
|
51
|
-
export default McpCustomTypeSelector;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* McpCustomWizard Component
|
|
3
|
-
* Multi-step wizard for collecting custom MCP server configuration
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { Key } from '../../hooks/useInputOrchestrator.js';
|
|
7
|
-
import type { McpServerType } from '@dexto/core';
|
|
8
|
-
export interface McpCustomConfig {
|
|
9
|
-
serverType: McpServerType;
|
|
10
|
-
name: string;
|
|
11
|
-
command?: string;
|
|
12
|
-
args?: string[];
|
|
13
|
-
url?: string;
|
|
14
|
-
}
|
|
15
|
-
interface McpCustomWizardProps {
|
|
16
|
-
isVisible: boolean;
|
|
17
|
-
serverType: McpServerType;
|
|
18
|
-
onComplete: (config: McpCustomConfig) => void;
|
|
19
|
-
onClose: () => void;
|
|
20
|
-
}
|
|
21
|
-
export interface McpCustomWizardHandle {
|
|
22
|
-
handleInput: (input: string, key: Key) => boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Multi-step wizard for custom MCP server configuration
|
|
26
|
-
*/
|
|
27
|
-
declare const McpCustomWizard: React.ForwardRefExoticComponent<McpCustomWizardProps & React.RefAttributes<McpCustomWizardHandle>>;
|
|
28
|
-
export default McpCustomWizard;
|
|
29
|
-
//# sourceMappingURL=McpCustomWizard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McpCustomWizard.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/overlays/McpCustomWizard.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA4E,MAAM,OAAO,CAAC;AAEjG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,aAAa,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AA8FD,UAAU,oBAAoB;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,aAAa,CAAC;IAC1B,UAAU,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAED;;GAEG;AACH,QAAA,MAAM,eAAe,oGAuLpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|