dexto 1.6.1 → 1.6.2
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 +113 -36
- 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/index-main.js +36 -2
- package/dist/webui/assets/index-BPlk2Wbt.css +1 -0
- package/dist/webui/assets/index-BZvrpxyh.js +2059 -0
- package/dist/webui/index.html +2 -2
- package/package.json +12 -22
- 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
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider configuration registry for the CustomModelWizard.
|
|
3
|
-
* Each provider has its own config with display name, description, steps, and model builder.
|
|
4
|
-
*/
|
|
5
|
-
import type { CustomModelProvider } from '@dexto/agent-management';
|
|
6
|
-
import type { ProviderConfig } from './types.js';
|
|
7
|
-
/**
|
|
8
|
-
* Provider configuration registry.
|
|
9
|
-
* Keys are CustomModelProvider values.
|
|
10
|
-
*/
|
|
11
|
-
export declare const PROVIDER_CONFIGS: Record<CustomModelProvider, ProviderConfig>;
|
|
12
|
-
/**
|
|
13
|
-
* Get provider config by provider type.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getProviderConfig(provider: CustomModelProvider): ProviderConfig;
|
|
16
|
-
/**
|
|
17
|
-
* Get display label for provider selection menu.
|
|
18
|
-
* Format: "DisplayName (description)"
|
|
19
|
-
*/
|
|
20
|
-
export declare function getProviderLabel(provider: CustomModelProvider): string;
|
|
21
|
-
/**
|
|
22
|
-
* Get all available provider types.
|
|
23
|
-
* Filters out 'dexto-nova' when the feature flag is disabled.
|
|
24
|
-
*/
|
|
25
|
-
export declare function getAvailableProviders(): CustomModelProvider[];
|
|
26
|
-
/**
|
|
27
|
-
* Maps a provider-selection menu index to the selected provider, using the same
|
|
28
|
-
* provider ordering as the UI.
|
|
29
|
-
*
|
|
30
|
-
* This avoids subtle bugs when the displayed ordering differs from the base
|
|
31
|
-
* CUSTOM_MODEL_PROVIDERS array (e.g. feature-flagged reordering).
|
|
32
|
-
*/
|
|
33
|
-
export declare function getProviderByMenuIndex(index: number): CustomModelProvider | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Check if a provider has async validation.
|
|
36
|
-
*/
|
|
37
|
-
export declare function hasAsyncValidation(provider: CustomModelProvider): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Run async validation for a provider's field if applicable.
|
|
40
|
-
*/
|
|
41
|
-
export declare function runAsyncValidation(provider: CustomModelProvider, field: string, value: string): Promise<string | null>;
|
|
42
|
-
//# sourceMappingURL=provider-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider-config.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAe,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAQhF,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AA4D7D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,mBAAmB,EAAE,cAAc,CAgcxE,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,cAAc,CAE/E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM,CAGtE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,mBAAmB,EAAE,CAW7D;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAIrF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAEzE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACpC,QAAQ,EAAE,mBAAmB,EAC7B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAMxB"}
|
|
@@ -1,547 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider configuration registry for the CustomModelWizard.
|
|
3
|
-
* Each provider has its own config with display name, description, steps, and model builder.
|
|
4
|
-
*/
|
|
5
|
-
import { CUSTOM_MODEL_PROVIDERS, isDextoAuthEnabled } from '@dexto/agent-management';
|
|
6
|
-
import { lookupOpenRouterModel, refreshOpenRouterModelCache, getLocalModelById, isReasoningCapableModel, } from '@dexto/core';
|
|
7
|
-
import { validators } from './types.js';
|
|
8
|
-
import * as fs from 'fs';
|
|
9
|
-
import * as os from 'os';
|
|
10
|
-
import * as path from 'path';
|
|
11
|
-
/**
|
|
12
|
-
* Common API key step - reused across providers that support API keys.
|
|
13
|
-
*/
|
|
14
|
-
const API_KEY_STEP = {
|
|
15
|
-
field: 'apiKey',
|
|
16
|
-
label: 'API Key (optional)',
|
|
17
|
-
placeholder: 'Enter API key for authentication',
|
|
18
|
-
required: false,
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Common max input tokens step - reused across providers that support it.
|
|
22
|
-
*/
|
|
23
|
-
const MAX_INPUT_TOKENS_STEP = {
|
|
24
|
-
field: 'maxInputTokens',
|
|
25
|
-
label: 'Max Input Tokens (optional)',
|
|
26
|
-
placeholder: 'e.g., 128000 (leave blank for default)',
|
|
27
|
-
required: false,
|
|
28
|
-
validate: validators.positiveNumber,
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Common display name step.
|
|
32
|
-
*/
|
|
33
|
-
const DISPLAY_NAME_STEP = {
|
|
34
|
-
field: 'displayName',
|
|
35
|
-
label: 'Display Name (optional)',
|
|
36
|
-
placeholder: 'e.g., My Custom Model',
|
|
37
|
-
required: false,
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Common reasoning effort step - for OpenAI reasoning models (o1, o3, codex, gpt-5.x).
|
|
41
|
-
* Only shown when the model name indicates reasoning capability.
|
|
42
|
-
*/
|
|
43
|
-
const REASONING_EFFORT_STEP = {
|
|
44
|
-
field: 'reasoningEffort',
|
|
45
|
-
label: 'Reasoning Effort (optional)',
|
|
46
|
-
placeholder: 'none | minimal | low | medium | high | xhigh (blank for auto)',
|
|
47
|
-
required: false,
|
|
48
|
-
validate: (value) => {
|
|
49
|
-
if (!value?.trim())
|
|
50
|
-
return null;
|
|
51
|
-
const validValues = ['none', 'minimal', 'low', 'medium', 'high', 'xhigh'];
|
|
52
|
-
if (!validValues.includes(value.toLowerCase())) {
|
|
53
|
-
return `Invalid reasoning effort. Use: ${validValues.join(', ')}`;
|
|
54
|
-
}
|
|
55
|
-
return null;
|
|
56
|
-
},
|
|
57
|
-
condition: (values) => {
|
|
58
|
-
const modelName = values.name || '';
|
|
59
|
-
return isReasoningCapableModel(modelName);
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Provider configuration registry.
|
|
64
|
-
* Keys are CustomModelProvider values.
|
|
65
|
-
*/
|
|
66
|
-
export const PROVIDER_CONFIGS = {
|
|
67
|
-
'openai-compatible': {
|
|
68
|
-
displayName: 'OpenAI-Compatible',
|
|
69
|
-
description: 'Custom or self-hosted endpoints (vLLM, LM Studio)',
|
|
70
|
-
steps: [
|
|
71
|
-
{
|
|
72
|
-
field: 'name',
|
|
73
|
-
label: 'Model Name',
|
|
74
|
-
placeholder: 'e.g., llama-3-70b, mixtral-8x7b',
|
|
75
|
-
required: true,
|
|
76
|
-
validate: validators.required('Model name'),
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
field: 'baseURL',
|
|
80
|
-
label: 'API Base URL',
|
|
81
|
-
placeholder: 'e.g., http://localhost:11434/v1',
|
|
82
|
-
required: true,
|
|
83
|
-
validate: validators.url,
|
|
84
|
-
},
|
|
85
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., My Local Llama 3' },
|
|
86
|
-
MAX_INPUT_TOKENS_STEP,
|
|
87
|
-
REASONING_EFFORT_STEP,
|
|
88
|
-
API_KEY_STEP,
|
|
89
|
-
],
|
|
90
|
-
buildModel: (values, provider) => {
|
|
91
|
-
const model = {
|
|
92
|
-
name: values.name || '',
|
|
93
|
-
provider,
|
|
94
|
-
};
|
|
95
|
-
if (values.baseURL) {
|
|
96
|
-
model.baseURL = values.baseURL;
|
|
97
|
-
}
|
|
98
|
-
if (values.displayName?.trim()) {
|
|
99
|
-
model.displayName = values.displayName.trim();
|
|
100
|
-
}
|
|
101
|
-
if (values.maxInputTokens?.trim()) {
|
|
102
|
-
model.maxInputTokens = parseInt(values.maxInputTokens, 10);
|
|
103
|
-
}
|
|
104
|
-
if (values.reasoningEffort?.trim()) {
|
|
105
|
-
model.reasoningEffort =
|
|
106
|
-
values.reasoningEffort.toLowerCase();
|
|
107
|
-
}
|
|
108
|
-
return model;
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
openrouter: {
|
|
112
|
-
displayName: 'OpenRouter',
|
|
113
|
-
description: '100+ cloud models via unified API',
|
|
114
|
-
steps: [
|
|
115
|
-
{
|
|
116
|
-
field: 'name',
|
|
117
|
-
label: 'OpenRouter Model ID',
|
|
118
|
-
placeholder: 'e.g., anthropic/claude-3.5-sonnet, openai/gpt-4o',
|
|
119
|
-
required: true,
|
|
120
|
-
validate: validators.slashFormat,
|
|
121
|
-
},
|
|
122
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., Claude 3.5 Sonnet' },
|
|
123
|
-
MAX_INPUT_TOKENS_STEP,
|
|
124
|
-
REASONING_EFFORT_STEP,
|
|
125
|
-
{
|
|
126
|
-
...API_KEY_STEP,
|
|
127
|
-
placeholder: 'Saved as OPENROUTER_API_KEY if not set, otherwise per-model',
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
buildModel: (values, provider) => {
|
|
131
|
-
const model = {
|
|
132
|
-
name: values.name || '',
|
|
133
|
-
provider,
|
|
134
|
-
};
|
|
135
|
-
if (values.displayName?.trim()) {
|
|
136
|
-
model.displayName = values.displayName.trim();
|
|
137
|
-
}
|
|
138
|
-
if (values.maxInputTokens?.trim()) {
|
|
139
|
-
model.maxInputTokens = parseInt(values.maxInputTokens, 10);
|
|
140
|
-
}
|
|
141
|
-
if (values.reasoningEffort?.trim()) {
|
|
142
|
-
model.reasoningEffort =
|
|
143
|
-
values.reasoningEffort.toLowerCase();
|
|
144
|
-
}
|
|
145
|
-
return model;
|
|
146
|
-
},
|
|
147
|
-
asyncValidation: {
|
|
148
|
-
field: 'name',
|
|
149
|
-
validate: async (modelId) => {
|
|
150
|
-
let status = lookupOpenRouterModel(modelId);
|
|
151
|
-
// If cache is stale/empty, try to refresh
|
|
152
|
-
if (status === 'unknown') {
|
|
153
|
-
try {
|
|
154
|
-
await refreshOpenRouterModelCache();
|
|
155
|
-
status = lookupOpenRouterModel(modelId);
|
|
156
|
-
}
|
|
157
|
-
catch {
|
|
158
|
-
// Network failed - allow the model (graceful degradation)
|
|
159
|
-
return null;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
if (status === 'invalid') {
|
|
163
|
-
return `Model '${modelId}' not found in OpenRouter. Check the model ID at https://openrouter.ai/models`;
|
|
164
|
-
}
|
|
165
|
-
return null;
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
glama: {
|
|
170
|
-
displayName: 'Glama',
|
|
171
|
-
description: 'OpenAI-compatible gateway',
|
|
172
|
-
steps: [
|
|
173
|
-
{
|
|
174
|
-
field: 'name',
|
|
175
|
-
label: 'Glama Model ID',
|
|
176
|
-
placeholder: 'e.g., openai/gpt-4o, anthropic/claude-3-sonnet',
|
|
177
|
-
required: true,
|
|
178
|
-
validate: validators.slashFormat,
|
|
179
|
-
},
|
|
180
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., GPT-4o via Glama' },
|
|
181
|
-
REASONING_EFFORT_STEP,
|
|
182
|
-
{
|
|
183
|
-
...API_KEY_STEP,
|
|
184
|
-
placeholder: 'Saved as GLAMA_API_KEY if not set, otherwise per-model',
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
buildModel: (values, provider) => {
|
|
188
|
-
const model = {
|
|
189
|
-
name: values.name || '',
|
|
190
|
-
provider,
|
|
191
|
-
};
|
|
192
|
-
if (values.displayName?.trim()) {
|
|
193
|
-
model.displayName = values.displayName.trim();
|
|
194
|
-
}
|
|
195
|
-
if (values.reasoningEffort?.trim()) {
|
|
196
|
-
model.reasoningEffort =
|
|
197
|
-
values.reasoningEffort.toLowerCase();
|
|
198
|
-
}
|
|
199
|
-
return model;
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
litellm: {
|
|
203
|
-
displayName: 'LiteLLM',
|
|
204
|
-
description: 'Unified proxy for 100+ providers',
|
|
205
|
-
steps: [
|
|
206
|
-
{
|
|
207
|
-
field: 'name',
|
|
208
|
-
label: 'Model Name',
|
|
209
|
-
placeholder: 'e.g., gpt-4, claude-3-sonnet, bedrock/anthropic.claude-v2',
|
|
210
|
-
required: true,
|
|
211
|
-
validate: validators.required('Model name'),
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
field: 'baseURL',
|
|
215
|
-
label: 'LiteLLM Proxy URL',
|
|
216
|
-
placeholder: 'e.g., http://localhost:4000',
|
|
217
|
-
required: true,
|
|
218
|
-
validate: validators.url,
|
|
219
|
-
},
|
|
220
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., My LiteLLM GPT-4' },
|
|
221
|
-
MAX_INPUT_TOKENS_STEP,
|
|
222
|
-
REASONING_EFFORT_STEP,
|
|
223
|
-
{
|
|
224
|
-
...API_KEY_STEP,
|
|
225
|
-
placeholder: 'Saved as LITELLM_API_KEY if not set, otherwise per-model',
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
buildModel: (values, provider) => {
|
|
229
|
-
const model = {
|
|
230
|
-
name: values.name || '',
|
|
231
|
-
provider,
|
|
232
|
-
};
|
|
233
|
-
if (values.baseURL) {
|
|
234
|
-
model.baseURL = values.baseURL;
|
|
235
|
-
}
|
|
236
|
-
if (values.displayName?.trim()) {
|
|
237
|
-
model.displayName = values.displayName.trim();
|
|
238
|
-
}
|
|
239
|
-
if (values.maxInputTokens?.trim()) {
|
|
240
|
-
model.maxInputTokens = parseInt(values.maxInputTokens, 10);
|
|
241
|
-
}
|
|
242
|
-
if (values.reasoningEffort?.trim()) {
|
|
243
|
-
model.reasoningEffort =
|
|
244
|
-
values.reasoningEffort.toLowerCase();
|
|
245
|
-
}
|
|
246
|
-
return model;
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
bedrock: {
|
|
250
|
-
displayName: 'AWS Bedrock',
|
|
251
|
-
description: 'Custom model IDs via AWS credentials',
|
|
252
|
-
steps: [
|
|
253
|
-
{
|
|
254
|
-
field: 'name',
|
|
255
|
-
label: 'Bedrock Model ID',
|
|
256
|
-
placeholder: 'e.g., anthropic.claude-3-haiku-20240307-v1:0',
|
|
257
|
-
required: true,
|
|
258
|
-
validate: validators.required('Model ID'),
|
|
259
|
-
},
|
|
260
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., Claude 3 Haiku' },
|
|
261
|
-
{
|
|
262
|
-
...MAX_INPUT_TOKENS_STEP,
|
|
263
|
-
placeholder: 'e.g., 200000 (leave blank for default)',
|
|
264
|
-
},
|
|
265
|
-
// NO apiKey step - Bedrock uses AWS credentials from environment
|
|
266
|
-
],
|
|
267
|
-
buildModel: (values, provider) => {
|
|
268
|
-
const model = {
|
|
269
|
-
name: values.name || '',
|
|
270
|
-
provider,
|
|
271
|
-
};
|
|
272
|
-
if (values.displayName?.trim()) {
|
|
273
|
-
model.displayName = values.displayName.trim();
|
|
274
|
-
}
|
|
275
|
-
if (values.maxInputTokens?.trim()) {
|
|
276
|
-
model.maxInputTokens = parseInt(values.maxInputTokens, 10);
|
|
277
|
-
}
|
|
278
|
-
return model;
|
|
279
|
-
},
|
|
280
|
-
setupInfo: {
|
|
281
|
-
title: 'AWS Bedrock Setup',
|
|
282
|
-
description: 'Bedrock uses AWS credentials from your environment. Ensure AWS_REGION and either AWS_BEARER_TOKEN_BEDROCK or IAM credentials are set.',
|
|
283
|
-
docsUrl: 'https://docs.dexto.ai/docs/guides/supported-llm-providers#amazon-bedrock',
|
|
284
|
-
},
|
|
285
|
-
},
|
|
286
|
-
ollama: {
|
|
287
|
-
displayName: 'Ollama',
|
|
288
|
-
description: 'Local Ollama server models',
|
|
289
|
-
steps: [
|
|
290
|
-
{
|
|
291
|
-
field: 'name',
|
|
292
|
-
label: 'Model Name',
|
|
293
|
-
placeholder: 'e.g., llama3.3:70b, qwen3n:e2b',
|
|
294
|
-
required: true,
|
|
295
|
-
validate: validators.required('Model name'),
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
field: 'baseURL',
|
|
299
|
-
label: 'Ollama Server URL (optional)',
|
|
300
|
-
placeholder: 'Default: http://localhost:11434',
|
|
301
|
-
required: false,
|
|
302
|
-
validate: (value) => {
|
|
303
|
-
if (!value?.trim())
|
|
304
|
-
return null;
|
|
305
|
-
return validators.url(value);
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., Llama 3.3 70B' },
|
|
309
|
-
MAX_INPUT_TOKENS_STEP,
|
|
310
|
-
],
|
|
311
|
-
buildModel: (values, provider) => {
|
|
312
|
-
const model = {
|
|
313
|
-
name: values.name || '',
|
|
314
|
-
provider,
|
|
315
|
-
};
|
|
316
|
-
if (values.baseURL?.trim()) {
|
|
317
|
-
model.baseURL = values.baseURL.trim();
|
|
318
|
-
}
|
|
319
|
-
if (values.displayName?.trim()) {
|
|
320
|
-
model.displayName = values.displayName.trim();
|
|
321
|
-
}
|
|
322
|
-
if (values.maxInputTokens?.trim()) {
|
|
323
|
-
model.maxInputTokens = parseInt(values.maxInputTokens, 10);
|
|
324
|
-
}
|
|
325
|
-
return model;
|
|
326
|
-
},
|
|
327
|
-
setupInfo: {
|
|
328
|
-
title: 'Ollama Setup',
|
|
329
|
-
description: 'Add custom Ollama models by name. Ensure Ollama is running (default: http://localhost:11434). Pull models with: ollama pull <model>',
|
|
330
|
-
docsUrl: 'https://docs.dexto.ai/docs/guides/supported-llm-providers#ollama',
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
local: {
|
|
334
|
-
displayName: 'Local (node-llama)',
|
|
335
|
-
description: 'Custom GGUF models via node-llama-cpp',
|
|
336
|
-
steps: [
|
|
337
|
-
{
|
|
338
|
-
field: 'name',
|
|
339
|
-
label: 'Model ID or Path',
|
|
340
|
-
placeholder: 'e.g., llama-3.3-8b-q4 or /path/to/model.gguf',
|
|
341
|
-
required: true,
|
|
342
|
-
validate: validators.required('Model ID or path'),
|
|
343
|
-
},
|
|
344
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., My Custom Llama' },
|
|
345
|
-
// Note: No MAX_INPUT_TOKENS_STEP - node-llama-cpp auto-detects context size
|
|
346
|
-
],
|
|
347
|
-
buildModel: (values, provider) => {
|
|
348
|
-
const model = {
|
|
349
|
-
name: values.name || '',
|
|
350
|
-
provider,
|
|
351
|
-
};
|
|
352
|
-
if (values.displayName?.trim()) {
|
|
353
|
-
model.displayName = values.displayName.trim();
|
|
354
|
-
}
|
|
355
|
-
return model;
|
|
356
|
-
},
|
|
357
|
-
asyncValidation: {
|
|
358
|
-
field: 'name',
|
|
359
|
-
validate: async (value) => {
|
|
360
|
-
const trimmed = value.trim();
|
|
361
|
-
// Check if it looks like a file path (contains path separator or ends with .gguf)
|
|
362
|
-
const isFilePath = trimmed.includes(path.sep) ||
|
|
363
|
-
trimmed.startsWith('/') ||
|
|
364
|
-
trimmed.startsWith('~') ||
|
|
365
|
-
trimmed.toLowerCase().endsWith('.gguf');
|
|
366
|
-
if (isFilePath) {
|
|
367
|
-
// Validate as file path
|
|
368
|
-
if (!trimmed.toLowerCase().endsWith('.gguf')) {
|
|
369
|
-
return 'File path must end with .gguf';
|
|
370
|
-
}
|
|
371
|
-
// Expand ~ to home directory (use os.homedir() for cross-platform support)
|
|
372
|
-
const expandedPath = trimmed.startsWith('~')
|
|
373
|
-
? trimmed.replace('~', os.homedir())
|
|
374
|
-
: trimmed;
|
|
375
|
-
if (!fs.existsSync(expandedPath)) {
|
|
376
|
-
return `File not found: ${trimmed}`;
|
|
377
|
-
}
|
|
378
|
-
return null; // Valid file path
|
|
379
|
-
}
|
|
380
|
-
// Otherwise, validate as model ID from registry
|
|
381
|
-
const modelInfo = getLocalModelById(trimmed);
|
|
382
|
-
if (!modelInfo) {
|
|
383
|
-
return `Model ID '${trimmed}' not found in registry. Use a full file path to a .gguf file, or one of the registry IDs (e.g., llama-3.3-8b-q4, qwen-2.5-coder-7b-q4)`;
|
|
384
|
-
}
|
|
385
|
-
return null; // Valid registry ID
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
setupInfo: {
|
|
389
|
-
title: 'Local Models Setup',
|
|
390
|
-
description: 'Add custom GGUF models by ID (from registry) or absolute file path. Ensure node-llama-cpp is installed and GPU acceleration is configured.',
|
|
391
|
-
docsUrl: 'https://docs.dexto.ai/docs/guides/supported-llm-providers#local-models',
|
|
392
|
-
},
|
|
393
|
-
},
|
|
394
|
-
vertex: {
|
|
395
|
-
displayName: 'Google Vertex AI',
|
|
396
|
-
description: 'Custom Vertex model IDs',
|
|
397
|
-
steps: [
|
|
398
|
-
{
|
|
399
|
-
field: 'name',
|
|
400
|
-
label: 'Vertex Model ID',
|
|
401
|
-
placeholder: 'e.g., gemini-2.0-flash-exp, claude-4-5-sonnet@20250929',
|
|
402
|
-
required: true,
|
|
403
|
-
validate: validators.required('Model ID'),
|
|
404
|
-
},
|
|
405
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., Gemini 2.0 Flash Exp' },
|
|
406
|
-
{
|
|
407
|
-
...MAX_INPUT_TOKENS_STEP,
|
|
408
|
-
placeholder: 'e.g., 1048576 (leave blank for default)',
|
|
409
|
-
},
|
|
410
|
-
],
|
|
411
|
-
buildModel: (values, provider) => {
|
|
412
|
-
const model = {
|
|
413
|
-
name: values.name || '',
|
|
414
|
-
provider,
|
|
415
|
-
};
|
|
416
|
-
if (values.displayName?.trim()) {
|
|
417
|
-
model.displayName = values.displayName.trim();
|
|
418
|
-
}
|
|
419
|
-
if (values.maxInputTokens?.trim()) {
|
|
420
|
-
model.maxInputTokens = parseInt(values.maxInputTokens, 10);
|
|
421
|
-
}
|
|
422
|
-
return model;
|
|
423
|
-
},
|
|
424
|
-
setupInfo: {
|
|
425
|
-
title: 'Google Vertex AI Setup',
|
|
426
|
-
description: 'Vertex AI uses Google Cloud Application Default Credentials (ADC). Set GOOGLE_VERTEX_PROJECT and optionally GOOGLE_VERTEX_LOCATION. Run: gcloud auth application-default login',
|
|
427
|
-
docsUrl: 'https://docs.dexto.ai/docs/guides/supported-llm-providers#google-vertex-ai',
|
|
428
|
-
},
|
|
429
|
-
},
|
|
430
|
-
'dexto-nova': {
|
|
431
|
-
displayName: 'Dexto Nova',
|
|
432
|
-
description: 'Access 100+ models with Nova credits',
|
|
433
|
-
steps: [
|
|
434
|
-
{
|
|
435
|
-
field: 'name',
|
|
436
|
-
label: 'Model ID (OpenRouter format)',
|
|
437
|
-
placeholder: 'e.g., anthropic/claude-sonnet-4.5, openai/gpt-5.2',
|
|
438
|
-
required: true,
|
|
439
|
-
validate: validators.slashFormat,
|
|
440
|
-
},
|
|
441
|
-
{ ...DISPLAY_NAME_STEP, placeholder: 'e.g., Claude 4.5 Sonnet via Dexto' },
|
|
442
|
-
REASONING_EFFORT_STEP,
|
|
443
|
-
// No API key step - Dexto uses OAuth login (DEXTO_API_KEY from auth.json)
|
|
444
|
-
],
|
|
445
|
-
buildModel: (values, provider) => {
|
|
446
|
-
const model = {
|
|
447
|
-
name: values.name || '',
|
|
448
|
-
provider,
|
|
449
|
-
};
|
|
450
|
-
if (values.displayName?.trim()) {
|
|
451
|
-
model.displayName = values.displayName.trim();
|
|
452
|
-
}
|
|
453
|
-
if (values.maxInputTokens?.trim()) {
|
|
454
|
-
model.maxInputTokens = parseInt(values.maxInputTokens, 10);
|
|
455
|
-
}
|
|
456
|
-
if (values.reasoningEffort?.trim()) {
|
|
457
|
-
model.reasoningEffort =
|
|
458
|
-
values.reasoningEffort.toLowerCase();
|
|
459
|
-
}
|
|
460
|
-
return model;
|
|
461
|
-
},
|
|
462
|
-
asyncValidation: {
|
|
463
|
-
field: 'name',
|
|
464
|
-
validate: async (modelId) => {
|
|
465
|
-
// Reuse OpenRouter validation since Dexto Nova uses OpenRouter model IDs
|
|
466
|
-
let status = lookupOpenRouterModel(modelId);
|
|
467
|
-
// If cache is stale/empty, try to refresh
|
|
468
|
-
if (status === 'unknown') {
|
|
469
|
-
try {
|
|
470
|
-
await refreshOpenRouterModelCache();
|
|
471
|
-
status = lookupOpenRouterModel(modelId);
|
|
472
|
-
}
|
|
473
|
-
catch {
|
|
474
|
-
// Network failed - allow the model (graceful degradation)
|
|
475
|
-
return null;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
if (status === 'invalid') {
|
|
479
|
-
return `Model '${modelId}' not found. Dexto Nova uses OpenRouter model IDs - check https://openrouter.ai/models`;
|
|
480
|
-
}
|
|
481
|
-
return null;
|
|
482
|
-
},
|
|
483
|
-
},
|
|
484
|
-
setupInfo: {
|
|
485
|
-
title: 'Dexto Nova Setup',
|
|
486
|
-
description: 'Add OpenRouter-format models that use your Dexto Nova credits. Requires login: run `dexto login` first.',
|
|
487
|
-
docsUrl: 'https://openrouter.ai/models',
|
|
488
|
-
},
|
|
489
|
-
},
|
|
490
|
-
};
|
|
491
|
-
/**
|
|
492
|
-
* Get provider config by provider type.
|
|
493
|
-
*/
|
|
494
|
-
export function getProviderConfig(provider) {
|
|
495
|
-
return PROVIDER_CONFIGS[provider];
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* Get display label for provider selection menu.
|
|
499
|
-
* Format: "DisplayName (description)"
|
|
500
|
-
*/
|
|
501
|
-
export function getProviderLabel(provider) {
|
|
502
|
-
const config = PROVIDER_CONFIGS[provider];
|
|
503
|
-
return `${config.displayName} (${config.description})`;
|
|
504
|
-
}
|
|
505
|
-
/**
|
|
506
|
-
* Get all available provider types.
|
|
507
|
-
* Filters out 'dexto-nova' when the feature flag is disabled.
|
|
508
|
-
*/
|
|
509
|
-
export function getAvailableProviders() {
|
|
510
|
-
const dextoEnabled = isDextoAuthEnabled();
|
|
511
|
-
const providers = CUSTOM_MODEL_PROVIDERS.filter((provider) => provider !== 'dexto-nova' || dextoEnabled);
|
|
512
|
-
if (!dextoEnabled) {
|
|
513
|
-
return providers;
|
|
514
|
-
}
|
|
515
|
-
// When enabled, put Dexto Nova first for better UX.
|
|
516
|
-
const withoutDexto = providers.filter((p) => p !== 'dexto-nova');
|
|
517
|
-
return ['dexto-nova', ...withoutDexto];
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* Maps a provider-selection menu index to the selected provider, using the same
|
|
521
|
-
* provider ordering as the UI.
|
|
522
|
-
*
|
|
523
|
-
* This avoids subtle bugs when the displayed ordering differs from the base
|
|
524
|
-
* CUSTOM_MODEL_PROVIDERS array (e.g. feature-flagged reordering).
|
|
525
|
-
*/
|
|
526
|
-
export function getProviderByMenuIndex(index) {
|
|
527
|
-
const providers = getAvailableProviders();
|
|
528
|
-
if (index < 0 || index >= providers.length)
|
|
529
|
-
return undefined;
|
|
530
|
-
return providers[index];
|
|
531
|
-
}
|
|
532
|
-
/**
|
|
533
|
-
* Check if a provider has async validation.
|
|
534
|
-
*/
|
|
535
|
-
export function hasAsyncValidation(provider) {
|
|
536
|
-
return !!PROVIDER_CONFIGS[provider].asyncValidation;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Run async validation for a provider's field if applicable.
|
|
540
|
-
*/
|
|
541
|
-
export async function runAsyncValidation(provider, field, value) {
|
|
542
|
-
const config = PROVIDER_CONFIGS[provider];
|
|
543
|
-
if (config.asyncValidation && config.asyncValidation.field === field) {
|
|
544
|
-
return config.asyncValidation.validate(value);
|
|
545
|
-
}
|
|
546
|
-
return null;
|
|
547
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ApiKeyStep Component
|
|
3
|
-
* Renders API key status and help text for providers that support API keys.
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { CustomModelProvider } from '@dexto/agent-management';
|
|
7
|
-
interface ApiKeyStepProps {
|
|
8
|
-
/** The provider type */
|
|
9
|
-
provider: CustomModelProvider;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Displays API key status for the current provider.
|
|
13
|
-
* Shows whether the key is already configured or needs to be set.
|
|
14
|
-
*/
|
|
15
|
-
export declare function ApiKeyStep({ provider }: ApiKeyStepProps): React.ReactElement;
|
|
16
|
-
/**
|
|
17
|
-
* Get the env var name for a provider's API key.
|
|
18
|
-
*/
|
|
19
|
-
export declare function getProviderEnvVar(provider: CustomModelProvider): string;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a provider has an API key configured.
|
|
22
|
-
*/
|
|
23
|
-
export declare function hasApiKeyConfigured(provider: CustomModelProvider): boolean;
|
|
24
|
-
export default ApiKeyStep;
|
|
25
|
-
//# sourceMappingURL=ApiKeyStep.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiKeyStep.d.ts","sourceRoot":"","sources":["../../../../../../../src/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,UAAU,eAAe;IACrB,wBAAwB;IACxB,QAAQ,EAAE,mBAAmB,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CAQ5E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM,CAGvE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAG1E;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from 'ink';
|
|
3
|
-
import { getProviderKeyStatus } from '@dexto/agent-management';
|
|
4
|
-
/**
|
|
5
|
-
* Displays API key status for the current provider.
|
|
6
|
-
* Shows whether the key is already configured or needs to be set.
|
|
7
|
-
*/
|
|
8
|
-
export function ApiKeyStep({ provider }) {
|
|
9
|
-
const keyStatus = getProviderKeyStatus(provider);
|
|
10
|
-
if (keyStatus.hasApiKey) {
|
|
11
|
-
return _jsxs(Text, { color: "green", children: ["\u2713 ", keyStatus.envVar, " already set, press Enter to skip"] });
|
|
12
|
-
}
|
|
13
|
-
return _jsxs(Text, { color: "yellowBright", children: ["No ", keyStatus.envVar, " configured"] });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get the env var name for a provider's API key.
|
|
17
|
-
*/
|
|
18
|
-
export function getProviderEnvVar(provider) {
|
|
19
|
-
const keyStatus = getProviderKeyStatus(provider);
|
|
20
|
-
return keyStatus.envVar;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Check if a provider has an API key configured.
|
|
24
|
-
*/
|
|
25
|
-
export function hasApiKeyConfigured(provider) {
|
|
26
|
-
const keyStatus = getProviderKeyStatus(provider);
|
|
27
|
-
return keyStatus.hasApiKey;
|
|
28
|
-
}
|
|
29
|
-
export default ApiKeyStep;
|
package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProviderSelector Component
|
|
3
|
-
* Renders the provider selection screen with navigation.
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
interface ProviderSelectorProps {
|
|
7
|
-
/** Currently highlighted provider index */
|
|
8
|
-
selectedIndex: number;
|
|
9
|
-
/** Whether we're editing an existing model */
|
|
10
|
-
isEditing: boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders a list of available providers with the current selection highlighted.
|
|
14
|
-
*/
|
|
15
|
-
export declare function ProviderSelector({ selectedIndex, isEditing, }: ProviderSelectorProps): React.ReactElement;
|
|
16
|
-
export default ProviderSelector;
|
|
17
|
-
//# sourceMappingURL=ProviderSelector.d.ts.map
|
package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderSelector.d.ts","sourceRoot":"","sources":["../../../../../../../src/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,qBAAqB;IAC3B,2CAA2C;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,SAAS,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC7B,aAAa,EACb,SAAS,GACZ,EAAE,qBAAqB,GAAG,KAAK,CAAC,YAAY,CAsC5C;AAED,eAAe,gBAAgB,CAAC"}
|