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
package/dist/webui/index.html
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
if (theme === 'dark') document.documentElement.classList.add('dark');
|
|
19
19
|
})();
|
|
20
20
|
</script>
|
|
21
|
-
<script type="module" crossorigin src="/assets/index-
|
|
21
|
+
<script type="module" crossorigin src="/assets/index-BZvrpxyh.js"></script>
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/react-vendor-gH-7aFTg.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/tanstack-Br79RQ-n.js">
|
|
24
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
24
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BPlk2Wbt.css">
|
|
25
25
|
</head>
|
|
26
26
|
<body>
|
|
27
27
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dexto",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dexto": "./dist/index.js"
|
|
@@ -20,40 +20,30 @@
|
|
|
20
20
|
"better-sqlite3": "^11.10.0",
|
|
21
21
|
"boxen": "^7.1.1",
|
|
22
22
|
"chalk": "^5.6.0",
|
|
23
|
-
"cli-highlight": "^2.1.11",
|
|
24
23
|
"commander": "^11.1.0",
|
|
25
|
-
"diff": "^8.0.2",
|
|
26
24
|
"dotenv": "^16.4.7",
|
|
27
25
|
"fs-extra": "^11.3.0",
|
|
28
|
-
"hono": "^4.
|
|
29
|
-
"ink": "npm:@jrichman/ink@6.4.6",
|
|
30
|
-
"ink-spinner": "^5.0.0",
|
|
31
|
-
"ink-text-input": "^6.0.0",
|
|
26
|
+
"hono": "^4.11.10",
|
|
32
27
|
"ioredis": "^5.7.0",
|
|
33
28
|
"open": "^10.2.0",
|
|
34
29
|
"pg": "^8.15.4",
|
|
35
30
|
"posthog-node": "^4.2.1",
|
|
36
|
-
"react": "19.1.1",
|
|
37
|
-
"react-dom": "19.1.1",
|
|
38
|
-
"string-width": "^8.1.0",
|
|
39
|
-
"strip-ansi": "^7.1.2",
|
|
40
31
|
"tsx": "^4.19.2",
|
|
41
|
-
"wrap-ansi": "^9.0.2",
|
|
42
32
|
"ws": "^8.18.1",
|
|
43
33
|
"yaml": "^2.7.1",
|
|
44
34
|
"zod": "^3.25.0",
|
|
45
|
-
"@dexto/agent-config": "1.6.
|
|
46
|
-
"@dexto/agent-management": "1.6.
|
|
47
|
-
"@dexto/analytics": "1.6.
|
|
48
|
-
"@dexto/core": "1.6.
|
|
49
|
-
"@dexto/image-local": "1.6.
|
|
50
|
-
"@dexto/image-logger-agent": "1.6.
|
|
51
|
-
"@dexto/registry": "1.6.
|
|
52
|
-
"@dexto/server": "1.6.
|
|
53
|
-
"@dexto/storage": "1.6.
|
|
35
|
+
"@dexto/agent-config": "1.6.2",
|
|
36
|
+
"@dexto/agent-management": "1.6.2",
|
|
37
|
+
"@dexto/analytics": "1.6.2",
|
|
38
|
+
"@dexto/core": "1.6.2",
|
|
39
|
+
"@dexto/image-local": "1.6.2",
|
|
40
|
+
"@dexto/image-logger-agent": "1.6.2",
|
|
41
|
+
"@dexto/registry": "1.6.2",
|
|
42
|
+
"@dexto/server": "1.6.2",
|
|
43
|
+
"@dexto/storage": "1.6.2",
|
|
44
|
+
"@dexto/tui": "1.6.2"
|
|
54
45
|
},
|
|
55
46
|
"devDependencies": {
|
|
56
|
-
"@types/react": "^19.0.0",
|
|
57
47
|
"@types/ws": "^8.5.11",
|
|
58
48
|
"type-fest": "^4.26.1"
|
|
59
49
|
},
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Sound sources / licensing
|
|
2
|
-
|
|
3
|
-
This folder contains built-in sounds shipped with the Dexto CLI.
|
|
4
|
-
|
|
5
|
-
Note: Some defaults are provided by the OS (e.g., macOS system sounds) and are not included here.
|
|
6
|
-
|
|
7
|
-
## Third-party sources
|
|
8
|
-
|
|
9
|
-
### `coin.wav`
|
|
10
|
-
|
|
11
|
-
- Source: “Coins 1” by AceOfSpadesProduc100 (Freesound sound ID `341695`)
|
|
12
|
-
- License: Creative Commons Attribution 4.0 (CC BY 4.0)
|
|
13
|
-
- URL: https://freesound.org/s/341695/
|
|
14
|
-
- Changes: none
|
|
15
|
-
|
|
16
|
-
### `startup.wav`
|
|
17
|
-
|
|
18
|
-
- Source: “Game Boy Classic - Startup Sound” by toumas (Freesound sound ID `610484`)
|
|
19
|
-
- License: Creative Commons 0 (CC0)
|
|
20
|
-
- URL: https://freesound.org/s/610484/
|
|
21
|
-
- Changes: trimmed/processed for CLI use
|
|
22
|
-
|
|
23
|
-
### `boot.wav`, `ping.wav`, `win.wav`
|
|
24
|
-
|
|
25
|
-
- Source pack: “Game Audio - UI SFX” by GameAudio (Freesound pack ID `13940`)
|
|
26
|
-
- License: Creative Commons 0 (CC0)
|
|
27
|
-
- Pack URL: https://freesound.org/people/GameAudio/packs/13940/
|
|
28
|
-
- Original sound IDs:
|
|
29
|
-
- `boot.wav`: `220207`
|
|
30
|
-
- `ping.wav`: `220212`
|
|
31
|
-
- `win.wav`: `220184`
|
|
32
|
-
|
|
33
|
-
## First-party
|
|
34
|
-
|
|
35
|
-
Other sounds in this folder were created for Dexto.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auth Commands Module
|
|
3
|
-
*
|
|
4
|
-
* Authentication commands for interactive CLI.
|
|
5
|
-
*/
|
|
6
|
-
import type { CommandDefinition } from '../command-parser.js';
|
|
7
|
-
/**
|
|
8
|
-
* Login command - triggers OAuth flow for Dexto authentication
|
|
9
|
-
* Only available when DEXTO_FEATURE_AUTH=true
|
|
10
|
-
*/
|
|
11
|
-
export declare const loginCommand: CommandDefinition;
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/interactive-commands/auth/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,iBAS1B,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auth Commands Module
|
|
3
|
-
*
|
|
4
|
-
* Authentication commands for interactive CLI.
|
|
5
|
-
*/
|
|
6
|
-
import { handleLoginCommand } from '../../auth/login.js';
|
|
7
|
-
/**
|
|
8
|
-
* Login command - triggers OAuth flow for Dexto authentication
|
|
9
|
-
* Only available when DEXTO_FEATURE_AUTH=true
|
|
10
|
-
*/
|
|
11
|
-
export const loginCommand = {
|
|
12
|
-
name: 'login',
|
|
13
|
-
description: 'Login to Dexto',
|
|
14
|
-
usage: '/login',
|
|
15
|
-
category: 'General',
|
|
16
|
-
handler: async () => {
|
|
17
|
-
await handleLoginCommand({ interactive: true });
|
|
18
|
-
return true;
|
|
19
|
-
},
|
|
20
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { DextoAgent } from '@dexto/core';
|
|
2
|
-
import type { StyledOutput, SendMessageMarker } from '../../ink-cli/services/CommandService.js';
|
|
3
|
-
export interface CommandResult {
|
|
4
|
-
type: 'command' | 'prompt';
|
|
5
|
-
command?: string;
|
|
6
|
-
args?: string[];
|
|
7
|
-
rawInput: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Command handler return type:
|
|
11
|
-
* - boolean: Command handled (true) or not found (false)
|
|
12
|
-
* - string: Output text to display
|
|
13
|
-
* - StyledOutput: Styled output with structured data for rich rendering
|
|
14
|
-
* - SendMessageMarker: Send text through normal streaming flow (for prompt commands)
|
|
15
|
-
*/
|
|
16
|
-
export type CommandHandlerResult = boolean | string | StyledOutput | SendMessageMarker;
|
|
17
|
-
/**
|
|
18
|
-
* Context passed to command handlers
|
|
19
|
-
*/
|
|
20
|
-
export interface CommandContext {
|
|
21
|
-
/** Current session ID, or null if no active session */
|
|
22
|
-
sessionId: string | null;
|
|
23
|
-
/** Source config file path for persistence and display (if available) */
|
|
24
|
-
configFilePath: string | null;
|
|
25
|
-
}
|
|
26
|
-
export interface CommandDefinition {
|
|
27
|
-
name: string;
|
|
28
|
-
description: string;
|
|
29
|
-
usage: string;
|
|
30
|
-
category?: string;
|
|
31
|
-
aliases?: string[];
|
|
32
|
-
subcommands?: CommandDefinition[];
|
|
33
|
-
handler: (args: string[], agent: DextoAgent, ctx: CommandContext) => Promise<CommandHandlerResult>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* No-op handler for overlay-only commands.
|
|
37
|
-
* Used by commands in ALWAYS_OVERLAY that are handled entirely by the overlay system.
|
|
38
|
-
*/
|
|
39
|
-
export declare const overlayOnlyHandler: () => Promise<CommandHandlerResult>;
|
|
40
|
-
/**
|
|
41
|
-
* Parses user input to determine if it's a slash command, shell command, or regular prompt
|
|
42
|
-
*/
|
|
43
|
-
export declare function parseInput(input: string): CommandResult;
|
|
44
|
-
/**
|
|
45
|
-
* Finds command suggestions based on partial input
|
|
46
|
-
*/
|
|
47
|
-
export declare function getCommandSuggestions(partial: string, commands: CommandDefinition[]): string[];
|
|
48
|
-
/**
|
|
49
|
-
* Formats help text for a command
|
|
50
|
-
*/
|
|
51
|
-
export declare function formatCommandHelp(cmd: CommandDefinition, detailed?: boolean): string;
|
|
52
|
-
/**
|
|
53
|
-
* Displays a formatted list of all available commands
|
|
54
|
-
*/
|
|
55
|
-
export declare function displayAllCommands(commands: CommandDefinition[]): void;
|
|
56
|
-
//# sourceMappingURL=command-parser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-parser.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/interactive-commands/command-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAEhG,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,uDAAuD;IACvD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,yEAAyE;IACzE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAClC,OAAO,EAAE,CACL,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,cAAc,KAClB,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACtC;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAAa,OAAO,CAAC,oBAAoB,CAAS,CAAC;AA4ClF;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAiCvD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,GAAG,MAAM,EAAE,CAoB9F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,iBAAiB,EAAE,QAAQ,GAAE,OAAe,GAAG,MAAM,CAmB3F;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAwDtE"}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import chalk from 'chalk';
|
|
2
|
-
/**
|
|
3
|
-
* No-op handler for overlay-only commands.
|
|
4
|
-
* Used by commands in ALWAYS_OVERLAY that are handled entirely by the overlay system.
|
|
5
|
-
*/
|
|
6
|
-
export const overlayOnlyHandler = async () => true;
|
|
7
|
-
/**
|
|
8
|
-
* Parse arguments respecting quotes and escape sequences
|
|
9
|
-
*/
|
|
10
|
-
function parseQuotedArguments(input) {
|
|
11
|
-
const args = [];
|
|
12
|
-
let current = '';
|
|
13
|
-
let inQuotes = false;
|
|
14
|
-
let quoteChar = '';
|
|
15
|
-
let i = 0;
|
|
16
|
-
while (i < input.length) {
|
|
17
|
-
const char = input[i];
|
|
18
|
-
const nextChar = input[i + 1];
|
|
19
|
-
if (!inQuotes && (char === '"' || char === "'")) {
|
|
20
|
-
inQuotes = true;
|
|
21
|
-
quoteChar = char;
|
|
22
|
-
}
|
|
23
|
-
else if (inQuotes && char === quoteChar) {
|
|
24
|
-
inQuotes = false;
|
|
25
|
-
quoteChar = '';
|
|
26
|
-
}
|
|
27
|
-
else if (!inQuotes && char === ' ') {
|
|
28
|
-
if (current) {
|
|
29
|
-
args.push(current);
|
|
30
|
-
current = '';
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
else if (char === '\\' && nextChar) {
|
|
34
|
-
// Handle escape sequences
|
|
35
|
-
current += nextChar;
|
|
36
|
-
i++; // Skip next character
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
current += char;
|
|
40
|
-
}
|
|
41
|
-
i++;
|
|
42
|
-
}
|
|
43
|
-
if (current) {
|
|
44
|
-
args.push(current);
|
|
45
|
-
}
|
|
46
|
-
return args.filter((arg) => arg.length > 0);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Parses user input to determine if it's a slash command, shell command, or regular prompt
|
|
50
|
-
*/
|
|
51
|
-
export function parseInput(input) {
|
|
52
|
-
const trimmed = input.trim();
|
|
53
|
-
// Check if it's a shell command (! prefix)
|
|
54
|
-
if (trimmed.startsWith('!')) {
|
|
55
|
-
const shellCommand = trimmed.slice(1).trim();
|
|
56
|
-
return {
|
|
57
|
-
type: 'command',
|
|
58
|
-
command: 'shell',
|
|
59
|
-
args: [shellCommand],
|
|
60
|
-
rawInput: trimmed,
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
// Check if it's a slash command
|
|
64
|
-
if (trimmed.startsWith('/')) {
|
|
65
|
-
const args = parseQuotedArguments(trimmed.slice(1));
|
|
66
|
-
const command = args[0] || '';
|
|
67
|
-
const commandArgs = args.slice(1);
|
|
68
|
-
return {
|
|
69
|
-
type: 'command',
|
|
70
|
-
command,
|
|
71
|
-
args: commandArgs,
|
|
72
|
-
rawInput: trimmed,
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
// Regular user prompt
|
|
76
|
-
return {
|
|
77
|
-
type: 'prompt',
|
|
78
|
-
rawInput: input,
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Finds command suggestions based on partial input
|
|
83
|
-
*/
|
|
84
|
-
export function getCommandSuggestions(partial, commands) {
|
|
85
|
-
const suggestions = [];
|
|
86
|
-
for (const cmd of commands) {
|
|
87
|
-
// Check main command name
|
|
88
|
-
if (cmd.name.startsWith(partial)) {
|
|
89
|
-
suggestions.push(cmd.name);
|
|
90
|
-
}
|
|
91
|
-
// Check aliases
|
|
92
|
-
if (cmd.aliases) {
|
|
93
|
-
for (const alias of cmd.aliases) {
|
|
94
|
-
if (alias.startsWith(partial)) {
|
|
95
|
-
suggestions.push(alias);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return suggestions.sort();
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Formats help text for a command
|
|
104
|
-
*/
|
|
105
|
-
export function formatCommandHelp(cmd, detailed = false) {
|
|
106
|
-
let help = chalk.cyan(`/${cmd.name}`) + ' - ' + cmd.description;
|
|
107
|
-
if (detailed) {
|
|
108
|
-
help += '\n' + chalk.gray(`Usage: ${cmd.usage}`);
|
|
109
|
-
if (cmd.aliases && cmd.aliases.length > 0) {
|
|
110
|
-
help += '\n' + chalk.gray(`Aliases: ${cmd.aliases.map((a) => `/${a}`).join(', ')}`);
|
|
111
|
-
}
|
|
112
|
-
if (cmd.subcommands && cmd.subcommands.length > 0) {
|
|
113
|
-
help += '\n' + chalk.gray('Subcommands:');
|
|
114
|
-
for (const sub of cmd.subcommands) {
|
|
115
|
-
help += '\n ' + chalk.cyan(`/${cmd.name} ${sub.name}`) + ' - ' + sub.description;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return help;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Displays a formatted list of all available commands
|
|
123
|
-
*/
|
|
124
|
-
export function displayAllCommands(commands) {
|
|
125
|
-
console.log(chalk.bold.green('\n📋 Available Commands:\n'));
|
|
126
|
-
// Define category order for consistent display
|
|
127
|
-
const categoryOrder = [
|
|
128
|
-
'General',
|
|
129
|
-
'Session Management',
|
|
130
|
-
'Model Management',
|
|
131
|
-
'MCP Management',
|
|
132
|
-
'Plugin Management',
|
|
133
|
-
'Tool Management',
|
|
134
|
-
'Prompt Management',
|
|
135
|
-
'System',
|
|
136
|
-
];
|
|
137
|
-
const categories = {};
|
|
138
|
-
// Initialize categories
|
|
139
|
-
for (const category of categoryOrder) {
|
|
140
|
-
categories[category] = [];
|
|
141
|
-
}
|
|
142
|
-
// Categorize commands using metadata
|
|
143
|
-
for (const cmd of commands) {
|
|
144
|
-
const category = cmd.category || 'General';
|
|
145
|
-
if (!categories[category]) {
|
|
146
|
-
categories[category] = [];
|
|
147
|
-
}
|
|
148
|
-
categories[category].push(cmd);
|
|
149
|
-
}
|
|
150
|
-
// Display by category in order
|
|
151
|
-
for (const category of categoryOrder) {
|
|
152
|
-
const cmds = categories[category];
|
|
153
|
-
if (cmds && cmds.length > 0) {
|
|
154
|
-
console.log(chalk.bold.rgb(255, 165, 0)(`${category}:`));
|
|
155
|
-
for (const cmd of cmds) {
|
|
156
|
-
console.log(' ' + formatCommandHelp(cmd));
|
|
157
|
-
}
|
|
158
|
-
console.log();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
// Display any uncategorized commands (fallback)
|
|
162
|
-
for (const [category, cmds] of Object.entries(categories)) {
|
|
163
|
-
if (!categoryOrder.includes(category) && cmds.length > 0) {
|
|
164
|
-
console.log(chalk.bold.rgb(255, 165, 0)(`${category}:`));
|
|
165
|
-
for (const cmd of cmds) {
|
|
166
|
-
console.log(' ' + formatCommandHelp(cmd));
|
|
167
|
-
}
|
|
168
|
-
console.log();
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
console.log(chalk.gray('💡 Tip: Use /help <command> for detailed help on any command'));
|
|
172
|
-
console.log(chalk.gray('💡 Tip: Type your message normally (without /) to chat with the AI\n'));
|
|
173
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Commands Module (Modular Version)
|
|
3
|
-
*
|
|
4
|
-
* This module aggregates all CLI commands from extracted modular components.
|
|
5
|
-
* It maintains the same external interface as the original monolithic commands.ts
|
|
6
|
-
* while using the new modular structure internally.
|
|
7
|
-
*
|
|
8
|
-
* The commands are organized into logical modules:
|
|
9
|
-
* - General Commands: Basic CLI functionality (help, exit, clear)
|
|
10
|
-
* - Conversation Commands: Session management, history, and search
|
|
11
|
-
* - Model Commands: Model switching and configuration
|
|
12
|
-
* - MCP Commands: MCP server management
|
|
13
|
-
* - Plugin Commands: Claude Code plugin management
|
|
14
|
-
* - System Commands: Configuration, logging, and statistics
|
|
15
|
-
* - Tool Commands: Tool listing and management
|
|
16
|
-
* - Prompt Commands: System prompt management
|
|
17
|
-
* - Documentation Commands: Help and documentation access
|
|
18
|
-
*
|
|
19
|
-
* This file serves as the integration layer that combines all modular commands
|
|
20
|
-
* into a single CLI_COMMANDS array for the command execution system.
|
|
21
|
-
*/
|
|
22
|
-
import type { DextoAgent } from '@dexto/core';
|
|
23
|
-
import type { CommandDefinition, CommandHandlerResult } from './command-parser.js';
|
|
24
|
-
/**
|
|
25
|
-
* Complete list of all available CLI commands.
|
|
26
|
-
* This array combines commands from all extracted modules to maintain
|
|
27
|
-
* the same interface as the original monolithic implementation.
|
|
28
|
-
*
|
|
29
|
-
* Commands are organized by category:
|
|
30
|
-
* - General: help, exit, clear
|
|
31
|
-
* - Session Management: session, history, search
|
|
32
|
-
* - Model Management: model
|
|
33
|
-
* - MCP Management: mcp
|
|
34
|
-
* - Tool Management: tools
|
|
35
|
-
* - Prompt Management: prompt
|
|
36
|
-
* - System: log, config, stats
|
|
37
|
-
* - Documentation: docs
|
|
38
|
-
*/
|
|
39
|
-
export declare const CLI_COMMANDS: CommandDefinition[];
|
|
40
|
-
/**
|
|
41
|
-
* Execute a slash command
|
|
42
|
-
*
|
|
43
|
-
* @param sessionId - Session ID to use for agent.run() calls
|
|
44
|
-
* @returns CommandHandlerResult - boolean, string, or StyledOutput
|
|
45
|
-
*/
|
|
46
|
-
export declare function executeCommand(command: string, args: string[], agent: DextoAgent, sessionId?: string, configFilePath?: string | null): Promise<CommandHandlerResult>;
|
|
47
|
-
/**
|
|
48
|
-
* Get all available command definitions
|
|
49
|
-
* This is used by external systems that need to inspect available commands
|
|
50
|
-
*/
|
|
51
|
-
export declare function getAllCommands(): CommandDefinition[];
|
|
52
|
-
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/interactive-commands/commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAgBnF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,EAAE,iBAAiB,EAAO,CAAC;AA6CpD;;;;;GAKG;AACH,wBAAsB,cAAc,CAChC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,UAAU,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAyD/B;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,iBAAiB,EAAE,CAEpD"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Commands Module (Modular Version)
|
|
3
|
-
*
|
|
4
|
-
* This module aggregates all CLI commands from extracted modular components.
|
|
5
|
-
* It maintains the same external interface as the original monolithic commands.ts
|
|
6
|
-
* while using the new modular structure internally.
|
|
7
|
-
*
|
|
8
|
-
* The commands are organized into logical modules:
|
|
9
|
-
* - General Commands: Basic CLI functionality (help, exit, clear)
|
|
10
|
-
* - Conversation Commands: Session management, history, and search
|
|
11
|
-
* - Model Commands: Model switching and configuration
|
|
12
|
-
* - MCP Commands: MCP server management
|
|
13
|
-
* - Plugin Commands: Claude Code plugin management
|
|
14
|
-
* - System Commands: Configuration, logging, and statistics
|
|
15
|
-
* - Tool Commands: Tool listing and management
|
|
16
|
-
* - Prompt Commands: System prompt management
|
|
17
|
-
* - Documentation Commands: Help and documentation access
|
|
18
|
-
*
|
|
19
|
-
* This file serves as the integration layer that combines all modular commands
|
|
20
|
-
* into a single CLI_COMMANDS array for the command execution system.
|
|
21
|
-
*/
|
|
22
|
-
import { isDextoAuthEnabled } from '@dexto/agent-management';
|
|
23
|
-
// Import modular command definitions
|
|
24
|
-
import { generalCommands, createHelpCommand } from './general-commands.js';
|
|
25
|
-
import { searchCommand, resumeCommand, renameCommand } from './session/index.js';
|
|
26
|
-
import { exportCommand } from './export/index.js';
|
|
27
|
-
import { modelCommands } from './model/index.js';
|
|
28
|
-
import { mcpCommands } from './mcp/index.js';
|
|
29
|
-
import { pluginCommands } from './plugin/index.js';
|
|
30
|
-
import { systemCommands } from './system/index.js';
|
|
31
|
-
import { toolCommands } from './tool-commands.js';
|
|
32
|
-
import { promptCommands } from './prompt-commands.js';
|
|
33
|
-
import { documentationCommands } from './documentation-commands.js';
|
|
34
|
-
import { loginCommand } from './auth/index.js';
|
|
35
|
-
/**
|
|
36
|
-
* Complete list of all available CLI commands.
|
|
37
|
-
* This array combines commands from all extracted modules to maintain
|
|
38
|
-
* the same interface as the original monolithic implementation.
|
|
39
|
-
*
|
|
40
|
-
* Commands are organized by category:
|
|
41
|
-
* - General: help, exit, clear
|
|
42
|
-
* - Session Management: session, history, search
|
|
43
|
-
* - Model Management: model
|
|
44
|
-
* - MCP Management: mcp
|
|
45
|
-
* - Tool Management: tools
|
|
46
|
-
* - Prompt Management: prompt
|
|
47
|
-
* - System: log, config, stats
|
|
48
|
-
* - Documentation: docs
|
|
49
|
-
*/
|
|
50
|
-
export const CLI_COMMANDS = [];
|
|
51
|
-
// Build the commands array with proper help command that can access all commands
|
|
52
|
-
// All commands here use interactive overlays - no text-based subcommands
|
|
53
|
-
const baseCommands = [
|
|
54
|
-
// General commands (without help)
|
|
55
|
-
...generalCommands,
|
|
56
|
-
// Session management
|
|
57
|
-
searchCommand, // /search - opens search overlay
|
|
58
|
-
resumeCommand, // /resume - opens session selector overlay
|
|
59
|
-
renameCommand, // /rename <title> - rename current session
|
|
60
|
-
exportCommand, // /export - opens export wizard overlay
|
|
61
|
-
// Model management
|
|
62
|
-
modelCommands, // /model - opens model selector overlay
|
|
63
|
-
// MCP server management
|
|
64
|
-
mcpCommands, // /mcp - opens MCP server list overlay
|
|
65
|
-
// Plugin management
|
|
66
|
-
pluginCommands, // /plugin - manage Claude Code compatible plugins
|
|
67
|
-
// Tool management commands
|
|
68
|
-
...toolCommands,
|
|
69
|
-
// Prompt management commands
|
|
70
|
-
...promptCommands,
|
|
71
|
-
// System commands
|
|
72
|
-
...systemCommands,
|
|
73
|
-
// Documentation commands
|
|
74
|
-
...documentationCommands,
|
|
75
|
-
// Auth commands (feature-flagged)
|
|
76
|
-
...(isDextoAuthEnabled() ? [loginCommand] : []),
|
|
77
|
-
];
|
|
78
|
-
// Add help command that can see all commands
|
|
79
|
-
CLI_COMMANDS.push(createHelpCommand(() => CLI_COMMANDS));
|
|
80
|
-
// Add all other commands
|
|
81
|
-
CLI_COMMANDS.push(...baseCommands);
|
|
82
|
-
/**
|
|
83
|
-
* Execute a slash command
|
|
84
|
-
*
|
|
85
|
-
* @param sessionId - Session ID to use for agent.run() calls
|
|
86
|
-
* @returns CommandHandlerResult - boolean, string, or StyledOutput
|
|
87
|
-
*/
|
|
88
|
-
export async function executeCommand(command, args, agent, sessionId, configFilePath) {
|
|
89
|
-
// Create command context with sessionId
|
|
90
|
-
const ctx = { sessionId: sessionId ?? null, configFilePath: configFilePath ?? null };
|
|
91
|
-
// Find the command (including aliases)
|
|
92
|
-
const cmd = CLI_COMMANDS.find((c) => c.name === command || (c.aliases && c.aliases.includes(command)));
|
|
93
|
-
if (cmd) {
|
|
94
|
-
try {
|
|
95
|
-
// Execute the handler with context
|
|
96
|
-
const result = await cmd.handler(args, agent, ctx);
|
|
97
|
-
// If handler returns a string, it's formatted output for ink-cli
|
|
98
|
-
// If it returns boolean, it's the old behavior (handled or not)
|
|
99
|
-
return result;
|
|
100
|
-
}
|
|
101
|
-
catch (error) {
|
|
102
|
-
const errorMsg = `❌ Error executing command /${command}:\n${error instanceof Error ? error.message : String(error)}`;
|
|
103
|
-
agent.logger.error(`Error executing command /${command}: ${error instanceof Error ? error.message : String(error)}`);
|
|
104
|
-
return errorMsg; // Return for ink-cli
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
// Command not found in static commands - check if it's a dynamic prompt command
|
|
108
|
-
// Dynamic commands use displayName (e.g., "quick-start" instead of "config:quick-start")
|
|
109
|
-
try {
|
|
110
|
-
// Import prompt command creation dynamically to avoid circular dependencies
|
|
111
|
-
const { getDynamicPromptCommands } = await import('./prompt-commands.js');
|
|
112
|
-
const dynamicCommands = await getDynamicPromptCommands(agent);
|
|
113
|
-
// Commands are registered by displayName, so search by command name directly
|
|
114
|
-
const promptCmd = dynamicCommands.find((c) => c.name === command);
|
|
115
|
-
if (promptCmd) {
|
|
116
|
-
try {
|
|
117
|
-
const result = await promptCmd.handler(args, agent, ctx);
|
|
118
|
-
// Return the result directly - can be string, boolean, StyledOutput, or SendMessageMarker
|
|
119
|
-
return result;
|
|
120
|
-
}
|
|
121
|
-
catch (error) {
|
|
122
|
-
const errorMsg = `❌ Error executing prompt /${command}:\n${error instanceof Error ? error.message : String(error)}`;
|
|
123
|
-
agent.logger.error(`Error executing prompt /${command}: ${error instanceof Error ? error.message : String(error)}`);
|
|
124
|
-
return errorMsg;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
catch (error) {
|
|
129
|
-
// If loading dynamic commands fails, continue to unknown command error
|
|
130
|
-
agent.logger.debug(`Failed to check dynamic commands for ${command}: ${error instanceof Error ? error.message : String(error)}`);
|
|
131
|
-
}
|
|
132
|
-
// Command not found and not a prompt
|
|
133
|
-
const errorMsg = `❌ Unknown command: /${command}\nType / to see available commands, /prompts to add new ones`;
|
|
134
|
-
return errorMsg; // Return for ink-cli
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Get all available command definitions
|
|
138
|
-
* This is used by external systems that need to inspect available commands
|
|
139
|
-
*/
|
|
140
|
-
export function getAllCommands() {
|
|
141
|
-
return CLI_COMMANDS;
|
|
142
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Documentation Commands Module
|
|
3
|
-
*
|
|
4
|
-
* This module defines documentation-related slash commands for the Dexto CLI interface.
|
|
5
|
-
* These commands provide functionality for accessing documentation and help resources.
|
|
6
|
-
*
|
|
7
|
-
* Available Documentation Commands:
|
|
8
|
-
* - /docs, /doc - Open Dexto documentation in browser
|
|
9
|
-
*/
|
|
10
|
-
import type { CommandDefinition } from './command-parser.js';
|
|
11
|
-
/**
|
|
12
|
-
* Documentation commands
|
|
13
|
-
*/
|
|
14
|
-
export declare const documentationCommands: CommandDefinition[];
|
|
15
|
-
//# sourceMappingURL=documentation-commands.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documentation-commands.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/interactive-commands/documentation-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,qBAAqB,CAAC;AAG7E;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAkCpD,CAAC"}
|