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
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import open from 'open';
|
|
5
|
-
import { getDefaultModelForProvider, LLM_PROVIDERS, LLM_REGISTRY,
|
|
6
|
-
import {
|
|
7
|
-
import { createInitialPreferences, saveGlobalPreferences, loadGlobalPreferences, getGlobalPreferencesPath, updateGlobalPreferences, setActiveModel, isDextoAuthEnabled, loadCustomModels, saveCustomModel, deleteCustomModel, } from '@dexto/agent-management';
|
|
5
|
+
import { acceptsAnyModel, getDefaultModelForProvider, getCuratedModelsForProvider, getReasoningProfile, getSupportedModels, LLM_PROVIDERS, LLM_REGISTRY, logger, isValidProviderModel, supportsCustomModels, requiresApiKey, resolveApiKeyForProvider, } from '@dexto/core';
|
|
6
|
+
import { createInitialPreferences, saveGlobalPreferences, loadGlobalPreferences, getGlobalPreferencesPath, updateGlobalPreferences, setActiveModel, isDextoAuthEnabled, loadCustomModels, saveCustomModel, deleteCustomModel, globalPreferencesExist, } from '@dexto/agent-management';
|
|
8
7
|
import { interactiveApiKeySetup, hasApiKeyConfigured } from '../utils/api-key-setup.js';
|
|
9
8
|
import { selectProvider, getProviderDisplayName, getProviderEnvVar, providerRequiresBaseURL, getDefaultModel, } from '../utils/provider-setup.js';
|
|
10
9
|
import { setupLocalModels, setupOllamaModels, hasSelectedModel, getModelFromResult, } from '../utils/local-model-setup.js';
|
|
@@ -14,7 +13,6 @@ import { handleBrowserLogin } from './auth/login.js';
|
|
|
14
13
|
import { loadAuth, getDextoApiClient } from '../auth/index.js';
|
|
15
14
|
import { DEXTO_CREDITS_URL } from '../auth/constants.js';
|
|
16
15
|
import * as p from '@clack/prompts';
|
|
17
|
-
import { logger } from '@dexto/core';
|
|
18
16
|
import { capture } from '../../analytics/index.js';
|
|
19
17
|
// Zod schema for setup command validation
|
|
20
18
|
const SetupCommandSchema = z
|
|
@@ -60,6 +58,37 @@ const SetupCommandSchema = z
|
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
});
|
|
61
|
+
const REASONING_VARIANT_HINTS = {
|
|
62
|
+
disabled: 'Disable reasoning (fastest)',
|
|
63
|
+
none: 'Disable reasoning (fastest)',
|
|
64
|
+
enabled: 'Enable provider default reasoning',
|
|
65
|
+
minimal: 'Minimal reasoning',
|
|
66
|
+
low: 'Light reasoning, faster responses',
|
|
67
|
+
medium: 'Balanced reasoning',
|
|
68
|
+
high: 'Thorough reasoning',
|
|
69
|
+
max: 'Maximum reasoning within provider limits',
|
|
70
|
+
xhigh: 'Extra high reasoning',
|
|
71
|
+
};
|
|
72
|
+
function toReasoningVariantLabel(variant, defaultVariant) {
|
|
73
|
+
const normalized = variant.toLowerCase();
|
|
74
|
+
const withKnownCasing = normalized === 'xhigh'
|
|
75
|
+
? 'XHigh'
|
|
76
|
+
: normalized === 'none'
|
|
77
|
+
? 'None'
|
|
78
|
+
: normalized === 'disabled'
|
|
79
|
+
? 'Disabled'
|
|
80
|
+
: normalized === 'enabled'
|
|
81
|
+
? 'Enabled'
|
|
82
|
+
: normalized.charAt(0).toUpperCase() + normalized.slice(1);
|
|
83
|
+
return variant === defaultVariant ? `${withKnownCasing} (Recommended)` : withKnownCasing;
|
|
84
|
+
}
|
|
85
|
+
function getReasoningVariantSelectOptions(variants, defaultVariant) {
|
|
86
|
+
return variants.map((variant) => ({
|
|
87
|
+
value: variant,
|
|
88
|
+
label: toReasoningVariantLabel(variant, defaultVariant),
|
|
89
|
+
hint: REASONING_VARIANT_HINTS[variant] ?? 'Model/provider-native reasoning variant',
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
63
92
|
/**
|
|
64
93
|
* Get the steps to display for the current provider and model.
|
|
65
94
|
* - Local/Ollama providers skip the API Key step.
|
|
@@ -67,14 +96,16 @@ const SetupCommandSchema = z
|
|
|
67
96
|
*/
|
|
68
97
|
function getWizardSteps(provider, model) {
|
|
69
98
|
const isLocalProvider = provider === 'local' || provider === 'ollama';
|
|
70
|
-
const showReasoningStep =
|
|
99
|
+
const showReasoningStep = provider !== undefined &&
|
|
100
|
+
model !== undefined &&
|
|
101
|
+
getReasoningProfile(provider, model).capable;
|
|
71
102
|
if (isLocalProvider) {
|
|
72
103
|
const steps = [
|
|
73
104
|
{ key: 'provider', label: 'Provider' },
|
|
74
105
|
{ key: 'model', label: 'Model' },
|
|
75
106
|
];
|
|
76
107
|
if (showReasoningStep) {
|
|
77
|
-
steps.push({ key: '
|
|
108
|
+
steps.push({ key: 'reasoning', label: 'Reasoning' });
|
|
78
109
|
}
|
|
79
110
|
steps.push({ key: 'mode', label: 'Mode' });
|
|
80
111
|
return steps;
|
|
@@ -84,7 +115,7 @@ function getWizardSteps(provider, model) {
|
|
|
84
115
|
{ key: 'model', label: 'Model' },
|
|
85
116
|
];
|
|
86
117
|
if (showReasoningStep) {
|
|
87
|
-
steps.push({ key: '
|
|
118
|
+
steps.push({ key: 'reasoning', label: 'Reasoning' });
|
|
88
119
|
}
|
|
89
120
|
steps.push({ key: 'apiKey', label: 'API Key' });
|
|
90
121
|
steps.push({ key: 'mode', label: 'Mode' });
|
|
@@ -459,17 +490,17 @@ async function handleDextoProviderSetup(options = {}) {
|
|
|
459
490
|
// Claude models (Anthropic via Dexto gateway)
|
|
460
491
|
{
|
|
461
492
|
value: 'anthropic/claude-haiku-4.5',
|
|
462
|
-
label: 'Claude 4.5
|
|
493
|
+
label: 'Claude Haiku 4.5',
|
|
463
494
|
hint: 'Fast & affordable (recommended)',
|
|
464
495
|
},
|
|
465
496
|
{
|
|
466
497
|
value: 'anthropic/claude-sonnet-4.5',
|
|
467
|
-
label: 'Claude 4.5
|
|
498
|
+
label: 'Claude Sonnet 4.5',
|
|
468
499
|
hint: 'Balanced performance and cost',
|
|
469
500
|
},
|
|
470
501
|
{
|
|
471
502
|
value: 'anthropic/claude-opus-4.5',
|
|
472
|
-
label: 'Claude 4.5
|
|
503
|
+
label: 'Claude Opus 4.5',
|
|
473
504
|
hint: 'Most capable Claude model',
|
|
474
505
|
},
|
|
475
506
|
// OpenAI models (via Dexto gateway)
|
|
@@ -600,8 +631,8 @@ async function handleInteractiveSetup(_options) {
|
|
|
600
631
|
case 'model':
|
|
601
632
|
state = await wizardStepModel(state);
|
|
602
633
|
break;
|
|
603
|
-
case '
|
|
604
|
-
state = await
|
|
634
|
+
case 'reasoning':
|
|
635
|
+
state = await wizardStepReasoning(state);
|
|
605
636
|
break;
|
|
606
637
|
case 'apiKey':
|
|
607
638
|
state = await wizardStepApiKey(state);
|
|
@@ -693,8 +724,7 @@ async function wizardStepModel(state) {
|
|
|
693
724
|
return { ...state, step: 'provider', model: undefined };
|
|
694
725
|
}
|
|
695
726
|
const model = getModelFromResult(localResult);
|
|
696
|
-
|
|
697
|
-
const nextStep = isReasoningCapableModel(model) ? 'reasoningEffort' : 'mode';
|
|
727
|
+
const nextStep = getReasoningProfile(provider, model).capable ? 'reasoning' : 'mode';
|
|
698
728
|
return { ...state, step: nextStep, model };
|
|
699
729
|
}
|
|
700
730
|
if (provider === 'ollama') {
|
|
@@ -704,8 +734,7 @@ async function wizardStepModel(state) {
|
|
|
704
734
|
return { ...state, step: 'provider', model: undefined };
|
|
705
735
|
}
|
|
706
736
|
const model = getModelFromResult(ollamaResult);
|
|
707
|
-
|
|
708
|
-
const nextStep = isReasoningCapableModel(model) ? 'reasoningEffort' : 'mode';
|
|
737
|
+
const nextStep = getReasoningProfile(provider, model).capable ? 'reasoning' : 'mode';
|
|
709
738
|
return { ...state, step: nextStep, model };
|
|
710
739
|
}
|
|
711
740
|
// Handle baseURL for providers that need it
|
|
@@ -724,52 +753,43 @@ async function wizardStepModel(state) {
|
|
|
724
753
|
return { ...state, step: 'provider', model: undefined, baseURL: undefined };
|
|
725
754
|
}
|
|
726
755
|
const model = selection.model;
|
|
727
|
-
|
|
728
|
-
const nextStep = isReasoningCapableModel(model) ? 'reasoningEffort' : 'apiKey';
|
|
756
|
+
const nextStep = getReasoningProfile(provider, model).capable ? 'reasoning' : 'apiKey';
|
|
729
757
|
return { ...state, step: nextStep, model, baseURL };
|
|
730
758
|
}
|
|
731
759
|
/**
|
|
732
|
-
* Wizard Step: Reasoning
|
|
760
|
+
* Wizard Step: Reasoning Variant Selection (native provider/model values)
|
|
733
761
|
*/
|
|
734
|
-
async function
|
|
762
|
+
async function wizardStepReasoning(state) {
|
|
735
763
|
const provider = state.provider;
|
|
736
764
|
const model = state.model;
|
|
737
765
|
const isLocalProvider = provider === 'local' || provider === 'ollama';
|
|
738
|
-
showStepProgress('
|
|
766
|
+
showStepProgress('reasoning', provider, model);
|
|
767
|
+
const support = getReasoningProfile(provider, model);
|
|
768
|
+
const initialValue = support.defaultVariant ?? support.supportedVariants[0];
|
|
739
769
|
const result = await p.select({
|
|
740
|
-
message: 'Select reasoning
|
|
770
|
+
message: 'Select reasoning variant',
|
|
741
771
|
options: [
|
|
742
|
-
|
|
743
|
-
value: 'medium',
|
|
744
|
-
label: 'Medium (Recommended)',
|
|
745
|
-
hint: 'Balanced reasoning for most tasks',
|
|
746
|
-
},
|
|
747
|
-
{ value: 'low', label: 'Low', hint: 'Light reasoning, fast responses' },
|
|
748
|
-
{
|
|
749
|
-
value: 'minimal',
|
|
750
|
-
label: 'Minimal',
|
|
751
|
-
hint: 'Barely any reasoning, very fast',
|
|
752
|
-
},
|
|
753
|
-
{ value: 'high', label: 'High', hint: 'More thorough reasoning' },
|
|
754
|
-
{
|
|
755
|
-
value: 'xhigh',
|
|
756
|
-
label: 'Extra High',
|
|
757
|
-
hint: 'Maximum reasoning, slower responses',
|
|
758
|
-
},
|
|
759
|
-
{ value: 'none', label: 'None', hint: 'Disable reasoning' },
|
|
772
|
+
...getReasoningVariantSelectOptions(support.supportedVariants, support.defaultVariant),
|
|
760
773
|
{ value: '_back', label: chalk.gray('← Back'), hint: 'Change model' },
|
|
761
774
|
],
|
|
775
|
+
...(initialValue ? { initialValue } : {}),
|
|
762
776
|
});
|
|
763
777
|
if (p.isCancel(result)) {
|
|
764
778
|
// Treat prompt cancellation as "back" to avoid accidentally exiting the setup wizard.
|
|
765
|
-
return { ...state, step: 'model',
|
|
779
|
+
return { ...state, step: 'model', reasoningPreset: undefined };
|
|
766
780
|
}
|
|
767
781
|
if (result === '_back') {
|
|
768
|
-
return { ...state, step: 'model',
|
|
782
|
+
return { ...state, step: 'model', reasoningPreset: undefined };
|
|
769
783
|
}
|
|
770
784
|
// Determine next step based on provider type
|
|
771
785
|
const nextStep = isLocalProvider ? 'mode' : 'apiKey';
|
|
772
|
-
|
|
786
|
+
const shouldPersistOverride = result !== support.defaultVariant;
|
|
787
|
+
return {
|
|
788
|
+
...state,
|
|
789
|
+
step: nextStep,
|
|
790
|
+
// Keep preferences minimal: selecting the profile default variant results in no override.
|
|
791
|
+
reasoningPreset: shouldPersistOverride ? result : undefined,
|
|
792
|
+
};
|
|
773
793
|
}
|
|
774
794
|
/**
|
|
775
795
|
* Wizard Step: API Key Configuration
|
|
@@ -786,8 +806,8 @@ async function wizardStepApiKey(state) {
|
|
|
786
806
|
model,
|
|
787
807
|
});
|
|
788
808
|
if (result.cancelled) {
|
|
789
|
-
// Go back to reasoning
|
|
790
|
-
const prevStep =
|
|
809
|
+
// Go back to reasoning variant if model supports it, otherwise model selection
|
|
810
|
+
const prevStep = getReasoningProfile(provider, model).capable ? 'reasoning' : 'model';
|
|
791
811
|
return { ...state, step: prevStep, apiKeySkipped: undefined };
|
|
792
812
|
}
|
|
793
813
|
const apiKeySkipped = result.skipped || !result.success;
|
|
@@ -808,21 +828,33 @@ async function wizardStepMode(state) {
|
|
|
808
828
|
const provider = state.provider;
|
|
809
829
|
const model = state.model;
|
|
810
830
|
const isLocalProvider = provider === 'local' || provider === 'ollama';
|
|
811
|
-
const hasReasoningStep =
|
|
831
|
+
const hasReasoningStep = getReasoningProfile(provider, model).capable;
|
|
812
832
|
showStepProgress('mode', provider, model);
|
|
813
833
|
const mode = await selectDefaultModeWithBack();
|
|
814
834
|
if (mode === '_back') {
|
|
815
|
-
// Go back to previous step
|
|
835
|
+
// Go back to the previous *interactive* step. Some steps (like apiKey) may be
|
|
836
|
+
// auto-skipped when not required or already configured, so "back" from mode
|
|
837
|
+
// should avoid bouncing the user back to the same screen.
|
|
816
838
|
if (isLocalProvider) {
|
|
817
|
-
// Local: reasoning effort -> model
|
|
818
839
|
return {
|
|
819
840
|
...state,
|
|
820
|
-
step: hasReasoningStep ? '
|
|
841
|
+
step: hasReasoningStep ? 'reasoning' : 'model',
|
|
821
842
|
defaultMode: undefined,
|
|
822
843
|
};
|
|
823
844
|
}
|
|
824
|
-
|
|
825
|
-
|
|
845
|
+
const canShowApiKeyStep = requiresApiKey(provider) && !hasApiKeyConfigured(provider);
|
|
846
|
+
let prevStep = 'model';
|
|
847
|
+
if (canShowApiKeyStep) {
|
|
848
|
+
prevStep = 'apiKey';
|
|
849
|
+
}
|
|
850
|
+
else if (hasReasoningStep) {
|
|
851
|
+
prevStep = 'reasoning';
|
|
852
|
+
}
|
|
853
|
+
return {
|
|
854
|
+
...state,
|
|
855
|
+
step: prevStep,
|
|
856
|
+
defaultMode: undefined,
|
|
857
|
+
};
|
|
826
858
|
}
|
|
827
859
|
return { ...state, step: 'complete', defaultMode: mode };
|
|
828
860
|
}
|
|
@@ -873,7 +905,7 @@ async function selectModelWithBack(provider) {
|
|
|
873
905
|
},
|
|
874
906
|
],
|
|
875
907
|
});
|
|
876
|
-
if (p.isCancel(result)) {
|
|
908
|
+
if (p.isCancel(result) || result === '_back') {
|
|
877
909
|
return '_back';
|
|
878
910
|
}
|
|
879
911
|
return { model: result };
|
|
@@ -925,7 +957,7 @@ async function selectModelWithBack(provider) {
|
|
|
925
957
|
},
|
|
926
958
|
],
|
|
927
959
|
});
|
|
928
|
-
if (p.isCancel(result)) {
|
|
960
|
+
if (p.isCancel(result) || result === '_back') {
|
|
929
961
|
return '_back';
|
|
930
962
|
}
|
|
931
963
|
return { model: result };
|
|
@@ -1026,7 +1058,7 @@ async function runCustomModelWizard(initialModel, providerOverride) {
|
|
|
1026
1058
|
...(values.maxInputTokens ? { maxInputTokens: values.maxInputTokens } : {}),
|
|
1027
1059
|
...(values.apiKey ? { apiKey: values.apiKey } : {}),
|
|
1028
1060
|
...(values.filePath ? { filePath: values.filePath } : {}),
|
|
1029
|
-
...(values.
|
|
1061
|
+
...(values.reasoningPreset ? { reasoning: { variant: values.reasoningPreset } } : {}),
|
|
1030
1062
|
};
|
|
1031
1063
|
await saveCustomModel(model);
|
|
1032
1064
|
if (initialModel && initialModel.name !== model.name) {
|
|
@@ -1161,26 +1193,20 @@ async function promptCustomModelValues(initialModel, providerOverride) {
|
|
|
1161
1193
|
const filePathValue = typeof filePathInput === 'string' ? filePathInput.trim() : '';
|
|
1162
1194
|
filePath = filePathValue || undefined;
|
|
1163
1195
|
}
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
return undefined;
|
|
1176
|
-
},
|
|
1177
|
-
});
|
|
1178
|
-
if (p.isCancel(reasoningEffort)) {
|
|
1179
|
-
return null;
|
|
1196
|
+
let reasoningPreset;
|
|
1197
|
+
const reasoningSupport = getReasoningProfile(provider, trimmedName);
|
|
1198
|
+
if (reasoningSupport.capable) {
|
|
1199
|
+
const preset = await selectReasoningVariant(provider, trimmedName);
|
|
1200
|
+
if (preset === null) {
|
|
1201
|
+
return null;
|
|
1202
|
+
}
|
|
1203
|
+
// Keep the custom model config minimal: only store an override when not default.
|
|
1204
|
+
if (preset !== reasoningSupport.defaultVariant) {
|
|
1205
|
+
reasoningPreset = preset;
|
|
1206
|
+
}
|
|
1180
1207
|
}
|
|
1181
1208
|
const trimmedDisplayName = typeof displayName === 'string' ? displayName.trim() : '';
|
|
1182
1209
|
const trimmedApiKey = typeof apiKey === 'string' ? apiKey.trim() : '';
|
|
1183
|
-
const trimmedReasoningEffort = typeof reasoningEffort === 'string' ? reasoningEffort.trim().toLowerCase() : '';
|
|
1184
1210
|
const trimmedMaxInputTokens = typeof maxInputTokensInput === 'string' ? maxInputTokensInput.trim() : '';
|
|
1185
1211
|
return {
|
|
1186
1212
|
name: trimmedName,
|
|
@@ -1190,9 +1216,7 @@ async function promptCustomModelValues(initialModel, providerOverride) {
|
|
|
1190
1216
|
...(trimmedMaxInputTokens ? { maxInputTokens: Number(trimmedMaxInputTokens) } : {}),
|
|
1191
1217
|
...(trimmedApiKey ? { apiKey: trimmedApiKey } : {}),
|
|
1192
1218
|
...(filePath ? { filePath } : {}),
|
|
1193
|
-
...(
|
|
1194
|
-
? { reasoningEffort: trimmedReasoningEffort }
|
|
1195
|
-
: {}),
|
|
1219
|
+
...(reasoningPreset ? { reasoningPreset } : {}),
|
|
1196
1220
|
};
|
|
1197
1221
|
}
|
|
1198
1222
|
async function selectDefaultModeWithBack() {
|
|
@@ -1250,8 +1274,8 @@ async function saveWizardPreferences(state) {
|
|
|
1250
1274
|
if (state.baseURL) {
|
|
1251
1275
|
preferencesOptions.baseURL = state.baseURL;
|
|
1252
1276
|
}
|
|
1253
|
-
if (state.
|
|
1254
|
-
preferencesOptions.
|
|
1277
|
+
if (state.reasoningPreset) {
|
|
1278
|
+
preferencesOptions.reasoning = { variant: state.reasoningPreset };
|
|
1255
1279
|
}
|
|
1256
1280
|
const preferences = createInitialPreferences(preferencesOptions);
|
|
1257
1281
|
await saveGlobalPreferences(preferences);
|
|
@@ -1316,6 +1340,16 @@ async function showSettingsMenu() {
|
|
|
1316
1340
|
catch {
|
|
1317
1341
|
currentPrefs = null;
|
|
1318
1342
|
}
|
|
1343
|
+
if (!currentPrefs && !globalPreferencesExist()) {
|
|
1344
|
+
p.log.warn('No preferences found yet. Run setup to create them.');
|
|
1345
|
+
await handleInteractiveSetup({
|
|
1346
|
+
interactive: true,
|
|
1347
|
+
force: false,
|
|
1348
|
+
quickStart: false,
|
|
1349
|
+
defaultAgent: 'coding-agent',
|
|
1350
|
+
});
|
|
1351
|
+
return;
|
|
1352
|
+
}
|
|
1319
1353
|
// Show current configuration
|
|
1320
1354
|
if (currentPrefs) {
|
|
1321
1355
|
const currentConfig = [
|
|
@@ -1325,8 +1359,13 @@ async function showSettingsMenu() {
|
|
|
1325
1359
|
...(currentPrefs.llm.baseURL
|
|
1326
1360
|
? [`Base URL: ${chalk.cyan(currentPrefs.llm.baseURL)}`]
|
|
1327
1361
|
: []),
|
|
1328
|
-
...(currentPrefs.llm.
|
|
1329
|
-
? [
|
|
1362
|
+
...(currentPrefs.llm.reasoning
|
|
1363
|
+
? [
|
|
1364
|
+
`Reasoning Variant: ${chalk.cyan(currentPrefs.llm.reasoning.variant)}` +
|
|
1365
|
+
(currentPrefs.llm.reasoning.budgetTokens != null
|
|
1366
|
+
? ` (budgetTokens=${chalk.cyan(String(currentPrefs.llm.reasoning.budgetTokens))})`
|
|
1367
|
+
: ''),
|
|
1368
|
+
]
|
|
1330
1369
|
: []),
|
|
1331
1370
|
].join('\n');
|
|
1332
1371
|
p.note(currentConfig, 'Current Configuration');
|
|
@@ -1471,11 +1510,16 @@ async function changeModel(currentProvider) {
|
|
|
1471
1510
|
provider,
|
|
1472
1511
|
model,
|
|
1473
1512
|
};
|
|
1474
|
-
// Ask for reasoning
|
|
1475
|
-
if (
|
|
1476
|
-
const
|
|
1477
|
-
if (
|
|
1478
|
-
|
|
1513
|
+
// Ask for reasoning variant if applicable
|
|
1514
|
+
if (getReasoningProfile(provider, model).capable) {
|
|
1515
|
+
const reasoningPreset = await selectReasoningVariant(provider, model);
|
|
1516
|
+
if (reasoningPreset === null) {
|
|
1517
|
+
p.log.warn('Model change cancelled');
|
|
1518
|
+
return;
|
|
1519
|
+
}
|
|
1520
|
+
const defaultReasoningVariant = getReasoningProfile(provider, model).defaultVariant;
|
|
1521
|
+
if (reasoningPreset !== defaultReasoningVariant) {
|
|
1522
|
+
llmUpdate.reasoning = { variant: reasoningPreset };
|
|
1479
1523
|
}
|
|
1480
1524
|
}
|
|
1481
1525
|
await updateGlobalPreferences({ llm: llmUpdate });
|
|
@@ -1494,11 +1538,16 @@ async function changeModel(currentProvider) {
|
|
|
1494
1538
|
provider,
|
|
1495
1539
|
model,
|
|
1496
1540
|
};
|
|
1497
|
-
// Ask for reasoning
|
|
1498
|
-
if (
|
|
1499
|
-
const
|
|
1500
|
-
if (
|
|
1501
|
-
|
|
1541
|
+
// Ask for reasoning variant if applicable
|
|
1542
|
+
if (getReasoningProfile(provider, model).capable) {
|
|
1543
|
+
const reasoningPreset = await selectReasoningVariant(provider, model);
|
|
1544
|
+
if (reasoningPreset === null) {
|
|
1545
|
+
p.log.warn('Model change cancelled');
|
|
1546
|
+
return;
|
|
1547
|
+
}
|
|
1548
|
+
const defaultReasoningVariant = getReasoningProfile(provider, model).defaultVariant;
|
|
1549
|
+
if (reasoningPreset !== defaultReasoningVariant) {
|
|
1550
|
+
llmUpdate.reasoning = { variant: reasoningPreset };
|
|
1502
1551
|
}
|
|
1503
1552
|
}
|
|
1504
1553
|
await updateGlobalPreferences({ llm: llmUpdate });
|
|
@@ -1538,11 +1587,16 @@ async function changeModel(currentProvider) {
|
|
|
1538
1587
|
if (needsApiKey) {
|
|
1539
1588
|
llmUpdate.apiKey = `$${apiKeyVar}`;
|
|
1540
1589
|
}
|
|
1541
|
-
// Ask for reasoning
|
|
1542
|
-
if (
|
|
1543
|
-
const
|
|
1544
|
-
if (
|
|
1545
|
-
|
|
1590
|
+
// Ask for reasoning variant if applicable
|
|
1591
|
+
if (getReasoningProfile(provider, model).capable) {
|
|
1592
|
+
const reasoningPreset = await selectReasoningVariant(provider, model);
|
|
1593
|
+
if (reasoningPreset === null) {
|
|
1594
|
+
p.log.warn('Model change cancelled');
|
|
1595
|
+
return;
|
|
1596
|
+
}
|
|
1597
|
+
const defaultReasoningVariant = getReasoningProfile(provider, model).defaultVariant;
|
|
1598
|
+
if (reasoningPreset !== defaultReasoningVariant) {
|
|
1599
|
+
llmUpdate.reasoning = { variant: reasoningPreset };
|
|
1546
1600
|
}
|
|
1547
1601
|
}
|
|
1548
1602
|
await updateGlobalPreferences({ llm: llmUpdate });
|
|
@@ -1685,37 +1739,20 @@ async function selectDefaultMode() {
|
|
|
1685
1739
|
return mode;
|
|
1686
1740
|
}
|
|
1687
1741
|
/**
|
|
1688
|
-
* Select reasoning
|
|
1689
|
-
* Used in settings menu when changing to a reasoning-capable model
|
|
1742
|
+
* Select reasoning variant for models where we expose reasoning tuning.
|
|
1690
1743
|
*/
|
|
1691
|
-
async function
|
|
1692
|
-
const
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
hint: 'Balanced reasoning for most tasks',
|
|
1699
|
-
},
|
|
1700
|
-
{ value: 'low', label: 'Low', hint: 'Light reasoning, fast responses' },
|
|
1701
|
-
{
|
|
1702
|
-
value: 'minimal',
|
|
1703
|
-
label: 'Minimal',
|
|
1704
|
-
hint: 'Barely any reasoning, very fast',
|
|
1705
|
-
},
|
|
1706
|
-
{ value: 'high', label: 'High', hint: 'More thorough reasoning' },
|
|
1707
|
-
{
|
|
1708
|
-
value: 'xhigh',
|
|
1709
|
-
label: 'Extra High',
|
|
1710
|
-
hint: 'Maximum reasoning, slower responses',
|
|
1711
|
-
},
|
|
1712
|
-
{ value: 'none', label: 'None', hint: 'Disable reasoning' },
|
|
1713
|
-
],
|
|
1744
|
+
async function selectReasoningVariant(provider, model) {
|
|
1745
|
+
const support = getReasoningProfile(provider, model);
|
|
1746
|
+
const initialValue = support.defaultVariant ?? support.supportedVariants[0];
|
|
1747
|
+
const variant = await p.select({
|
|
1748
|
+
message: 'Select reasoning variant',
|
|
1749
|
+
options: getReasoningVariantSelectOptions(support.supportedVariants, support.defaultVariant),
|
|
1750
|
+
...(initialValue ? { initialValue } : {}),
|
|
1714
1751
|
});
|
|
1715
|
-
if (p.isCancel(
|
|
1752
|
+
if (p.isCancel(variant)) {
|
|
1716
1753
|
return null;
|
|
1717
1754
|
}
|
|
1718
|
-
return
|
|
1755
|
+
return variant;
|
|
1719
1756
|
}
|
|
1720
1757
|
/**
|
|
1721
1758
|
* Select model interactively
|
|
@@ -49,11 +49,11 @@ export async function validateAgentConfig(config, interactive = false, options)
|
|
|
49
49
|
return await handleOtherErrors(errors, options);
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* Perform a
|
|
52
|
+
* Perform a lightweight credential preflight for startup UX.
|
|
53
53
|
*
|
|
54
54
|
* Notes:
|
|
55
|
-
* - This
|
|
56
|
-
* -
|
|
55
|
+
* - This is a presence check only; it does not validate live provider auth.
|
|
56
|
+
* - Runtime auth can still fail (e.g. Vertex/Bedrock credentials that are present but invalid).
|
|
57
57
|
*/
|
|
58
58
|
function preflightCredentials(config) {
|
|
59
59
|
const issues = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/options.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/options.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CA4GlD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAoB3D"}
|
|
@@ -35,6 +35,11 @@ export function validateCliOptions(opts) {
|
|
|
35
35
|
.optional()
|
|
36
36
|
.default(false)
|
|
37
37
|
.describe('Automatically approve all tool executions when true'),
|
|
38
|
+
bypassPermissions: z
|
|
39
|
+
.boolean()
|
|
40
|
+
.optional()
|
|
41
|
+
.default(false)
|
|
42
|
+
.describe('Start the interactive CLI in bypass permissions mode (auto-approve approval prompts)'),
|
|
38
43
|
elicitation: z
|
|
39
44
|
.boolean()
|
|
40
45
|
.optional()
|
|
@@ -87,6 +92,7 @@ export function validateCliOptions(opts) {
|
|
|
87
92
|
model: opts.model,
|
|
88
93
|
interactive: opts.interactive,
|
|
89
94
|
autoApprove: opts.autoApprove,
|
|
95
|
+
bypassPermissions: opts.bypassPermissions,
|
|
90
96
|
elicitation: opts.elicitation,
|
|
91
97
|
});
|
|
92
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffolding-utils.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/scaffolding-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scaffolding-utils.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/scaffolding-utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AA8CpC,wBAAgB,kBAAkB,IAAI,MAAM,CAM3C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAOrE;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAYvE;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAK5F;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMpE;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACtC,WAAW,GAAE,MAA2B,EACxC,aAAa,GAAE,MAAiD,GACjE,OAAO,CAAC,MAAM,CAAC,CAmBjB;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CACxC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,GACtC,OAAO,CAAC,MAAM,CAAC,CAiBjB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErE;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACjC,WAAW,EAAE,MAAM,EACnB,iBAAiB,GAAE,MAAM,EAAO,GACjC,OAAO,CAAC,IAAI,CAAC,CAIf;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACjC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,GAClC,OAAO,CAAC,IAAI,CAAC,CAiCf;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkB7F;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC/E;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BjF;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACrC,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE;IACF,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,EACD,cAAc,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,IAAI,CAAC,CAef;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAClC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,OAAO,CAAC,IAAI,CAAC,CAMf;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpE"}
|
|
@@ -1,14 +1,48 @@
|
|
|
1
1
|
import fs from 'fs-extra';
|
|
2
2
|
import path from 'path';
|
|
3
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
3
5
|
import chalk from 'chalk';
|
|
4
|
-
import {
|
|
6
|
+
import { getDextoPackageRoot } from '@dexto/agent-management';
|
|
5
7
|
import { executeWithTimeout } from './execute.js';
|
|
6
8
|
import { textOrExit } from './prompt-helpers.js';
|
|
7
9
|
import { getPackageManager, getPackageManagerInstallCommand } from './package-mgmt.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
function readVersionFromPackageJson(packageJsonPath) {
|
|
11
|
+
if (!existsSync(packageJsonPath)) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
try {
|
|
15
|
+
const content = readFileSync(packageJsonPath, 'utf-8');
|
|
16
|
+
const pkg = JSON.parse(content);
|
|
17
|
+
if (typeof pkg.version === 'string' && pkg.version.length > 0) {
|
|
18
|
+
return pkg.version;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
// Ignore parse/read errors and fall back.
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
function resolveCliPackageVersion() {
|
|
27
|
+
const scriptDir = path.dirname(fileURLToPath(import.meta.url));
|
|
28
|
+
const localPackageJsonPath = path.resolve(scriptDir, '../../../package.json');
|
|
29
|
+
const localVersion = readVersionFromPackageJson(localPackageJsonPath);
|
|
30
|
+
if (localVersion) {
|
|
31
|
+
return localVersion;
|
|
32
|
+
}
|
|
33
|
+
const packageRoot = getDextoPackageRoot();
|
|
34
|
+
if (packageRoot) {
|
|
35
|
+
const packageJsonPath = path.join(packageRoot, 'package.json');
|
|
36
|
+
const packageVersion = readVersionFromPackageJson(packageJsonPath);
|
|
37
|
+
if (packageVersion) {
|
|
38
|
+
return packageVersion;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return process.env.DEXTO_CLI_VERSION;
|
|
42
|
+
}
|
|
43
|
+
const cliPackageVersion = resolveCliPackageVersion();
|
|
10
44
|
export function getDextoCliVersion() {
|
|
11
|
-
const version = process.env.DEXTO_CLI_VERSION ??
|
|
45
|
+
const version = process.env.DEXTO_CLI_VERSION ?? cliPackageVersion;
|
|
12
46
|
if (!version) {
|
|
13
47
|
throw new Error('Could not determine dexto CLI version');
|
|
14
48
|
}
|