dexto 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/wrapper.js +1 -1
- package/dist/cli/auth/dexto-api-key.d.ts +34 -0
- package/dist/cli/auth/dexto-api-key.d.ts.map +1 -0
- package/dist/cli/auth/dexto-api-key.js +161 -0
- package/dist/cli/auth/index.d.ts +2 -1
- package/dist/cli/auth/index.d.ts.map +1 -1
- package/dist/cli/auth/index.js +2 -1
- package/dist/cli/auth/oauth.d.ts +10 -0
- package/dist/cli/auth/oauth.d.ts.map +1 -1
- package/dist/cli/auth/oauth.js +142 -39
- package/dist/cli/auth/service.d.ts +1 -0
- package/dist/cli/auth/service.d.ts.map +1 -1
- package/dist/cli/auth/service.js +1 -0
- package/dist/cli/commands/auth/login.d.ts.map +1 -1
- package/dist/cli/commands/auth/login.js +40 -105
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +157 -120
- package/dist/cli/utils/config-validation.js +3 -3
- package/dist/cli/utils/options.d.ts.map +1 -1
- package/dist/cli/utils/options.js +6 -0
- package/dist/cli/utils/scaffolding-utils.d.ts.map +1 -1
- package/dist/cli/utils/scaffolding-utils.js +38 -4
- package/dist/index-main.js +78 -11
- package/dist/index.js +12 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +18 -11
- package/dist/webui/assets/index-d6c-yJNn.js +2059 -0
- package/dist/webui/assets/index-yKdFLN1k.css +1 -0
- package/dist/webui/assets/react-vendor-l0sNRNKZ.js +1 -0
- package/dist/webui/assets/tanstack-BjCuxfF-.js +41 -0
- package/dist/webui/index.html +3 -4
- package/package.json +13 -23
- package/dist/cli/assets/sounds/SOURCES.md +0 -35
- package/dist/cli/assets/sounds/boot.wav +0 -0
- package/dist/cli/assets/sounds/chime.wav +0 -0
- package/dist/cli/assets/sounds/coin.wav +0 -0
- package/dist/cli/assets/sounds/confirm.wav +0 -0
- package/dist/cli/assets/sounds/levelup.wav +0 -0
- package/dist/cli/assets/sounds/ping.wav +0 -0
- package/dist/cli/assets/sounds/powerup.wav +0 -0
- package/dist/cli/assets/sounds/startup.wav +0 -0
- package/dist/cli/assets/sounds/success.wav +0 -0
- package/dist/cli/assets/sounds/treasure.wav +0 -0
- package/dist/cli/assets/sounds/win.wav +0 -0
- package/dist/cli/commands/interactive-commands/auth/index.d.ts +0 -12
- package/dist/cli/commands/interactive-commands/auth/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/auth/index.js +0 -20
- package/dist/cli/commands/interactive-commands/command-parser.d.ts +0 -56
- package/dist/cli/commands/interactive-commands/command-parser.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/command-parser.js +0 -173
- package/dist/cli/commands/interactive-commands/commands.d.ts +0 -52
- package/dist/cli/commands/interactive-commands/commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/commands.js +0 -142
- package/dist/cli/commands/interactive-commands/documentation-commands.d.ts +0 -15
- package/dist/cli/commands/interactive-commands/documentation-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/documentation-commands.js +0 -39
- package/dist/cli/commands/interactive-commands/exit-handler.d.ts +0 -12
- package/dist/cli/commands/interactive-commands/exit-handler.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/exit-handler.js +0 -20
- package/dist/cli/commands/interactive-commands/exit-stats.d.ts +0 -24
- package/dist/cli/commands/interactive-commands/exit-stats.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/exit-stats.js +0 -17
- package/dist/cli/commands/interactive-commands/export/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/export/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/export/index.js +0 -21
- package/dist/cli/commands/interactive-commands/general-commands.d.ts +0 -22
- package/dist/cli/commands/interactive-commands/general-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/general-commands.js +0 -508
- package/dist/cli/commands/interactive-commands/mcp/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/mcp/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/mcp/index.js +0 -18
- package/dist/cli/commands/interactive-commands/model/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/model/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/model/index.js +0 -19
- package/dist/cli/commands/interactive-commands/plugin/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/plugin/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/plugin/index.js +0 -18
- package/dist/cli/commands/interactive-commands/prompt-commands.d.ts +0 -25
- package/dist/cli/commands/interactive-commands/prompt-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/prompt-commands.js +0 -284
- package/dist/cli/commands/interactive-commands/session/index.d.ts +0 -16
- package/dist/cli/commands/interactive-commands/session/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/session/index.js +0 -15
- package/dist/cli/commands/interactive-commands/session/session-commands.d.ts +0 -32
- package/dist/cli/commands/interactive-commands/session/session-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/session/session-commands.js +0 -65
- package/dist/cli/commands/interactive-commands/system/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/system/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/system/index.js +0 -12
- package/dist/cli/commands/interactive-commands/system/system-commands.d.ts +0 -6
- package/dist/cli/commands/interactive-commands/system/system-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/system/system-commands.js +0 -188
- package/dist/cli/commands/interactive-commands/tool-commands.d.ts +0 -15
- package/dist/cli/commands/interactive-commands/tool-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/tool-commands.js +0 -24
- package/dist/cli/commands/interactive-commands/utils/arg-parser.d.ts +0 -57
- package/dist/cli/commands/interactive-commands/utils/arg-parser.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/arg-parser.js +0 -81
- package/dist/cli/commands/interactive-commands/utils/command-output.d.ts +0 -40
- package/dist/cli/commands/interactive-commands/utils/command-output.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/command-output.js +0 -56
- package/dist/cli/commands/interactive-commands/utils/format-output.d.ts +0 -14
- package/dist/cli/commands/interactive-commands/utils/format-output.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/format-output.js +0 -18
- package/dist/cli/ink-cli/InkCLIRefactored.d.ts +0 -52
- package/dist/cli/ink-cli/InkCLIRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/InkCLIRefactored.js +0 -231
- package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts +0 -44
- package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ApprovalPrompt.js +0 -323
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.d.ts +0 -18
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.js +0 -48
- package/dist/cli/ink-cli/components/CustomInput.d.ts +0 -17
- package/dist/cli/ink-cli/components/CustomInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/CustomInput.js +0 -51
- package/dist/cli/ink-cli/components/CustomTextInput.d.ts +0 -16
- package/dist/cli/ink-cli/components/CustomTextInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/CustomTextInput.js +0 -36
- package/dist/cli/ink-cli/components/EditableMultiLineInput.d.ts +0 -19
- package/dist/cli/ink-cli/components/EditableMultiLineInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/EditableMultiLineInput.js +0 -120
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts +0 -24
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ElicitationForm.js +0 -592
- package/dist/cli/ink-cli/components/ErrorBoundary.d.ts +0 -20
- package/dist/cli/ink-cli/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ErrorBoundary.js +0 -29
- package/dist/cli/ink-cli/components/Footer.d.ts +0 -22
- package/dist/cli/ink-cli/components/Footer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/Footer.js +0 -76
- package/dist/cli/ink-cli/components/HistorySearchBar.d.ts +0 -17
- package/dist/cli/ink-cli/components/HistorySearchBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/HistorySearchBar.js +0 -8
- package/dist/cli/ink-cli/components/MultiLineInput.d.ts +0 -12
- package/dist/cli/ink-cli/components/MultiLineInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/MultiLineInput.js +0 -27
- package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts +0 -26
- package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ResourceAutocomplete.js +0 -385
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts +0 -28
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.js +0 -412
- package/dist/cli/ink-cli/components/StatusBar.d.ts +0 -41
- package/dist/cli/ink-cli/components/StatusBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/StatusBar.js +0 -116
- package/dist/cli/ink-cli/components/TextBufferInput.d.ts +0 -52
- package/dist/cli/ink-cli/components/TextBufferInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/TextBufferInput.js +0 -490
- package/dist/cli/ink-cli/components/TodoPanel.d.ts +0 -26
- package/dist/cli/ink-cli/components/TodoPanel.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/TodoPanel.js +0 -62
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.d.ts +0 -29
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.js +0 -98
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts +0 -37
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/BaseSelector.js +0 -128
- package/dist/cli/ink-cli/components/base/index.d.ts +0 -6
- package/dist/cli/ink-cli/components/base/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/index.js +0 -5
- package/dist/cli/ink-cli/components/chat/ChatView.d.ts +0 -19
- package/dist/cli/ink-cli/components/chat/ChatView.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/ChatView.js +0 -11
- package/dist/cli/ink-cli/components/chat/Footer.d.ts +0 -9
- package/dist/cli/ink-cli/components/chat/Footer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/Footer.js +0 -8
- package/dist/cli/ink-cli/components/chat/Header.d.ts +0 -18
- package/dist/cli/ink-cli/components/chat/Header.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/Header.js +0 -16
- package/dist/cli/ink-cli/components/chat/MessageItem.d.ts +0 -21
- package/dist/cli/ink-cli/components/chat/MessageItem.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/MessageItem.js +0 -182
- package/dist/cli/ink-cli/components/chat/MessageList.d.ts +0 -16
- package/dist/cli/ink-cli/components/chat/MessageList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/MessageList.js +0 -20
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts +0 -16
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.js +0 -27
- package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts +0 -18
- package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/ToolIcon.js +0 -36
- package/dist/cli/ink-cli/components/chat/index.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/index.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.js +0 -15
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.js +0 -37
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.js +0 -29
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts +0 -45
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.js +0 -38
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts +0 -13
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.js +0 -12
- package/dist/cli/ink-cli/components/input/InputArea.d.ts +0 -46
- package/dist/cli/ink-cli/components/input/InputArea.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/input/InputArea.js +0 -6
- package/dist/cli/ink-cli/components/input/index.d.ts +0 -5
- package/dist/cli/ink-cli/components/input/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/input/index.js +0 -4
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts +0 -27
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.js +0 -182
- package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts +0 -29
- package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/StaticCLI.js +0 -114
- package/dist/cli/ink-cli/components/modes/index.d.ts +0 -10
- package/dist/cli/ink-cli/components/modes/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/index.js +0 -9
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.js +0 -92
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.d.ts +0 -13
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.js +0 -60
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.js +0 -241
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.js +0 -301
- package/dist/cli/ink-cli/components/overlays/ExportWizard.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/ExportWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ExportWizard.js +0 -308
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts +0 -23
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.js +0 -70
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.js +0 -81
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.d.ts +0 -31
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.js +0 -297
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.js +0 -59
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.js +0 -73
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.js +0 -51
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.js +0 -215
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.js +0 -80
- package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpSelector.js +0 -52
- package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts +0 -28
- package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpServerActions.js +0 -93
- package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpServerList.js +0 -116
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts +0 -28
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.js +0 -743
- package/dist/cli/ink-cli/components/overlays/PluginActions.d.ts +0 -27
- package/dist/cli/ink-cli/components/overlays/PluginActions.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginActions.js +0 -66
- package/dist/cli/ink-cli/components/overlays/PluginList.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/PluginList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginList.js +0 -70
- package/dist/cli/ink-cli/components/overlays/PluginManager.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/PluginManager.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginManager.js +0 -63
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.js +0 -52
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.js +0 -166
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts +0 -27
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.js +0 -119
- package/dist/cli/ink-cli/components/overlays/PromptList.d.ts +0 -33
- package/dist/cli/ink-cli/components/overlays/PromptList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptList.js +0 -143
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts +0 -23
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.js +0 -189
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.js +0 -63
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.js +0 -126
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.js +0 -42
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.js +0 -566
- package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/StreamSelector.js +0 -58
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.js +0 -697
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts +0 -25
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.js +0 -604
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts +0 -15
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.js +0 -14
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts +0 -42
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.js +0 -547
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts +0 -25
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.js +0 -29
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts +0 -17
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.js +0 -11
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.js +0 -10
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts +0 -30
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.js +0 -13
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts +0 -8
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.js +0 -7
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts +0 -85
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.js +0 -38
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.js +0 -65
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts +0 -30
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.js +0 -67
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/FileRenderer.js +0 -37
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.js +0 -26
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts +0 -20
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.js +0 -26
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.js +0 -15
- package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts +0 -61
- package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/diff-shared.js +0 -158
- package/dist/cli/ink-cli/components/renderers/index.d.ts +0 -28
- package/dist/cli/ink-cli/components/renderers/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/index.js +0 -36
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.d.ts +0 -7
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.js +0 -8
- package/dist/cli/ink-cli/components/shared/HintBar.d.ts +0 -6
- package/dist/cli/ink-cli/components/shared/HintBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/HintBar.js +0 -6
- package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts +0 -38
- package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/MarkdownText.js +0 -389
- package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts +0 -44
- package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/VirtualizedList.js +0 -300
- package/dist/cli/ink-cli/components/shared/text-buffer.d.ts +0 -185
- package/dist/cli/ink-cli/components/shared/text-buffer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/text-buffer.js +0 -1338
- package/dist/cli/ink-cli/constants/processingPhrases.d.ts +0 -10
- package/dist/cli/ink-cli/constants/processingPhrases.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/processingPhrases.js +0 -92
- package/dist/cli/ink-cli/constants/spinnerFrames.d.ts +0 -2
- package/dist/cli/ink-cli/constants/spinnerFrames.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/spinnerFrames.js +0 -1
- package/dist/cli/ink-cli/constants/tips.d.ts +0 -15
- package/dist/cli/ink-cli/constants/tips.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/tips.js +0 -58
- package/dist/cli/ink-cli/containers/InputContainer.d.ts +0 -62
- package/dist/cli/ink-cli/containers/InputContainer.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/InputContainer.js +0 -643
- package/dist/cli/ink-cli/containers/OverlayContainer.d.ts +0 -42
- package/dist/cli/ink-cli/containers/OverlayContainer.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/OverlayContainer.js +0 -1840
- package/dist/cli/ink-cli/containers/index.d.ts +0 -6
- package/dist/cli/ink-cli/containers/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/index.js +0 -5
- package/dist/cli/ink-cli/contexts/KeypressContext.d.ts +0 -36
- package/dist/cli/ink-cli/contexts/KeypressContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/KeypressContext.js +0 -461
- package/dist/cli/ink-cli/contexts/MouseContext.d.ts +0 -27
- package/dist/cli/ink-cli/contexts/MouseContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/MouseContext.js +0 -102
- package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts +0 -33
- package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/ScrollProvider.js +0 -170
- package/dist/cli/ink-cli/contexts/SoundContext.d.ts +0 -23
- package/dist/cli/ink-cli/contexts/SoundContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/SoundContext.js +0 -22
- package/dist/cli/ink-cli/contexts/index.d.ts +0 -8
- package/dist/cli/ink-cli/contexts/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/index.js +0 -7
- package/dist/cli/ink-cli/hooks/index.d.ts +0 -12
- package/dist/cli/ink-cli/hooks/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/index.js +0 -14
- package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts +0 -49
- package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useAgentEvents.js +0 -369
- package/dist/cli/ink-cli/hooks/useAnimationTick.d.ts +0 -11
- package/dist/cli/ink-cli/hooks/useAnimationTick.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useAnimationTick.js +0 -54
- package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts +0 -14
- package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useBatchedScroll.js +0 -25
- package/dist/cli/ink-cli/hooks/useCLIState.d.ts +0 -52
- package/dist/cli/ink-cli/hooks/useCLIState.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useCLIState.js +0 -224
- package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts +0 -24
- package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useElapsedTime.js +0 -69
- package/dist/cli/ink-cli/hooks/useGitBranch.d.ts +0 -13
- package/dist/cli/ink-cli/hooks/useGitBranch.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useGitBranch.js +0 -35
- package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts +0 -61
- package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useHistorySearch.js +0 -210
- package/dist/cli/ink-cli/hooks/useInputHistory.d.ts +0 -18
- package/dist/cli/ink-cli/hooks/useInputHistory.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useInputHistory.js +0 -26
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts +0 -136
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.js +0 -715
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts +0 -21
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.js +0 -80
- package/dist/cli/ink-cli/hooks/useKeypress.d.ts +0 -18
- package/dist/cli/ink-cli/hooks/useKeypress.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useKeypress.js +0 -26
- package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts +0 -30
- package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/usePhraseCycler.js +0 -68
- package/dist/cli/ink-cli/hooks/useStreaming.d.ts +0 -19
- package/dist/cli/ink-cli/hooks/useStreaming.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useStreaming.js +0 -26
- package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts +0 -14
- package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useTerminalSize.js +0 -31
- package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts +0 -46
- package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useTokenCounter.js +0 -122
- package/dist/cli/ink-cli/services/CommandService.d.ts +0 -58
- package/dist/cli/ink-cli/services/CommandService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/CommandService.js +0 -64
- package/dist/cli/ink-cli/services/InputService.d.ts +0 -40
- package/dist/cli/ink-cli/services/InputService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/InputService.js +0 -87
- package/dist/cli/ink-cli/services/MessageService.d.ts +0 -35
- package/dist/cli/ink-cli/services/MessageService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/MessageService.js +0 -49
- package/dist/cli/ink-cli/services/index.d.ts +0 -8
- package/dist/cli/ink-cli/services/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/index.js +0 -7
- package/dist/cli/ink-cli/services/processStream.d.ts +0 -75
- package/dist/cli/ink-cli/services/processStream.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/processStream.js +0 -951
- package/dist/cli/ink-cli/state/actions.d.ts +0 -124
- package/dist/cli/ink-cli/state/actions.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/actions.js +0 -8
- package/dist/cli/ink-cli/state/index.d.ts +0 -10
- package/dist/cli/ink-cli/state/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/index.js +0 -8
- package/dist/cli/ink-cli/state/initialState.d.ts +0 -12
- package/dist/cli/ink-cli/state/initialState.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/initialState.js +0 -58
- package/dist/cli/ink-cli/state/reducer.d.ts +0 -15
- package/dist/cli/ink-cli/state/reducer.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/reducer.js +0 -341
- package/dist/cli/ink-cli/state/streaming-state.d.ts +0 -27
- package/dist/cli/ink-cli/state/streaming-state.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/streaming-state.js +0 -39
- package/dist/cli/ink-cli/state/types.d.ts +0 -378
- package/dist/cli/ink-cli/state/types.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/types.js +0 -5
- package/dist/cli/ink-cli/utils/bracketedPaste.d.ts +0 -22
- package/dist/cli/ink-cli/utils/bracketedPaste.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/bracketedPaste.js +0 -27
- package/dist/cli/ink-cli/utils/clipboardUtils.d.ts +0 -49
- package/dist/cli/ink-cli/utils/clipboardUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/clipboardUtils.js +0 -356
- package/dist/cli/ink-cli/utils/commandOverlays.d.ts +0 -33
- package/dist/cli/ink-cli/utils/commandOverlays.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/commandOverlays.js +0 -85
- package/dist/cli/ink-cli/utils/debugLog.d.ts +0 -38
- package/dist/cli/ink-cli/utils/debugLog.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/debugLog.js +0 -66
- package/dist/cli/ink-cli/utils/elicitationSchema.d.ts +0 -11
- package/dist/cli/ink-cli/utils/elicitationSchema.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/elicitationSchema.js +0 -80
- package/dist/cli/ink-cli/utils/idGenerator.d.ts +0 -10
- package/dist/cli/ink-cli/utils/idGenerator.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/idGenerator.js +0 -12
- package/dist/cli/ink-cli/utils/index.d.ts +0 -9
- package/dist/cli/ink-cli/utils/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/index.js +0 -13
- package/dist/cli/ink-cli/utils/input.d.ts +0 -25
- package/dist/cli/ink-cli/utils/input.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/input.js +0 -56
- package/dist/cli/ink-cli/utils/inputParsing.d.ts +0 -31
- package/dist/cli/ink-cli/utils/inputParsing.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/inputParsing.js +0 -70
- package/dist/cli/ink-cli/utils/llm-provider-display.d.ts +0 -3
- package/dist/cli/ink-cli/utils/llm-provider-display.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/llm-provider-display.js +0 -22
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts +0 -125
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/messageFormatting.js +0 -485
- package/dist/cli/ink-cli/utils/mouse.d.ts +0 -61
- package/dist/cli/ink-cli/utils/mouse.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/mouse.js +0 -209
- package/dist/cli/ink-cli/utils/overlayPresentation.d.ts +0 -19
- package/dist/cli/ink-cli/utils/overlayPresentation.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/overlayPresentation.js +0 -33
- package/dist/cli/ink-cli/utils/overlaySizing.d.ts +0 -19
- package/dist/cli/ink-cli/utils/overlaySizing.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/overlaySizing.js +0 -11
- package/dist/cli/ink-cli/utils/soundNotification.d.ts +0 -77
- package/dist/cli/ink-cli/utils/soundNotification.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/soundNotification.js +0 -226
- package/dist/cli/ink-cli/utils/streamSplitter.d.ts +0 -44
- package/dist/cli/ink-cli/utils/streamSplitter.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/streamSplitter.js +0 -154
- package/dist/cli/ink-cli/utils/textUtils.d.ts +0 -63
- package/dist/cli/ink-cli/utils/textUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/textUtils.js +0 -248
- package/dist/cli/ink-cli/utils/toolUtils.d.ts +0 -20
- package/dist/cli/ink-cli/utils/toolUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/toolUtils.js +0 -25
- package/dist/webui/assets/index-C9JXwpvo.css +0 -1
- package/dist/webui/assets/index-CKhumsZA.js +0 -2059
- package/dist/webui/assets/react-vendor-gH-7aFTg.js +0 -17
- package/dist/webui/assets/tanstack-Br79RQ-n.js +0 -25
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Prompt Commands Module
|
|
3
|
-
*
|
|
4
|
-
* This module defines prompt management slash commands for the Dexto CLI interface.
|
|
5
|
-
* These commands provide functionality for viewing and managing system prompts.
|
|
6
|
-
*
|
|
7
|
-
* Available Prompt Commands:
|
|
8
|
-
* - /sysprompt - Display the current system prompt
|
|
9
|
-
* - /prompts - List all available prompts (MCP + internal)
|
|
10
|
-
* - /<prompt-name> [args] - Direct prompt execution (auto-generated for each prompt)
|
|
11
|
-
*/
|
|
12
|
-
import { formatForInkCli } from './utils/format-output.js';
|
|
13
|
-
import { createSendMessageMarker } from '../../ink-cli/services/index.js';
|
|
14
|
-
// Avoid depending on core types to keep CLI typecheck independent of build
|
|
15
|
-
/**
|
|
16
|
-
* Prompt management commands
|
|
17
|
-
*/
|
|
18
|
-
export const promptCommands = [
|
|
19
|
-
{
|
|
20
|
-
name: 'sysprompt',
|
|
21
|
-
description: 'Display the current system prompt',
|
|
22
|
-
usage: '/sysprompt',
|
|
23
|
-
category: 'Prompt Management',
|
|
24
|
-
handler: async (_args, agent, _ctx) => {
|
|
25
|
-
try {
|
|
26
|
-
const systemPrompt = await agent.getSystemPrompt();
|
|
27
|
-
// Return styled output for ink-cli
|
|
28
|
-
const styledOutput = {
|
|
29
|
-
styledType: 'sysprompt',
|
|
30
|
-
styledData: { content: systemPrompt },
|
|
31
|
-
fallbackText: `System Prompt:\n${systemPrompt}`,
|
|
32
|
-
};
|
|
33
|
-
return styledOutput;
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
const errorMsg = `Failed to get system prompt: ${error instanceof Error ? error.message : String(error)}`;
|
|
37
|
-
agent.logger.error(errorMsg);
|
|
38
|
-
return formatForInkCli(`❌ ${errorMsg}`);
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'prompts',
|
|
44
|
-
description: 'Browse, add, and delete prompts',
|
|
45
|
-
usage: '/prompts',
|
|
46
|
-
category: 'Prompt Management',
|
|
47
|
-
handler: async (_args, agent, _ctx) => {
|
|
48
|
-
try {
|
|
49
|
-
const prompts = await agent.listPrompts();
|
|
50
|
-
const promptNames = Object.keys(prompts || {});
|
|
51
|
-
if (promptNames.length === 0) {
|
|
52
|
-
const output = '\n⚠️ No prompts available';
|
|
53
|
-
return formatForInkCli(output);
|
|
54
|
-
}
|
|
55
|
-
// Build output string
|
|
56
|
-
const outputLines = ['\n📝 Available Prompts:\n'];
|
|
57
|
-
// Group by source
|
|
58
|
-
const mcpPrompts = [];
|
|
59
|
-
const configPrompts = [];
|
|
60
|
-
const customPrompts = [];
|
|
61
|
-
for (const [name, info] of Object.entries(prompts)) {
|
|
62
|
-
if (info.source === 'mcp') {
|
|
63
|
-
mcpPrompts.push(name);
|
|
64
|
-
}
|
|
65
|
-
else if (info.source === 'config') {
|
|
66
|
-
configPrompts.push(name);
|
|
67
|
-
}
|
|
68
|
-
else if (info.source === 'custom') {
|
|
69
|
-
customPrompts.push(name);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
if (mcpPrompts.length > 0) {
|
|
73
|
-
outputLines.push('🔗 MCP Prompts:');
|
|
74
|
-
mcpPrompts.forEach((name) => {
|
|
75
|
-
const info = prompts[name];
|
|
76
|
-
if (info) {
|
|
77
|
-
const displayName = info.displayName || name;
|
|
78
|
-
const title = info.title && info.title !== displayName ? ` (${info.title})` : '';
|
|
79
|
-
const desc = info.description ? ` - ${info.description}` : '';
|
|
80
|
-
const args = info.arguments && info.arguments.length > 0
|
|
81
|
-
? ` [args: ${info.arguments
|
|
82
|
-
.map((a) => `${a.name}${a.required ? '*' : ''}`)
|
|
83
|
-
.join(', ')}]`
|
|
84
|
-
: '';
|
|
85
|
-
outputLines.push(` ${displayName}${title}${desc}${args}`);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
outputLines.push('');
|
|
89
|
-
}
|
|
90
|
-
if (configPrompts.length > 0) {
|
|
91
|
-
outputLines.push('📋 Config Prompts:');
|
|
92
|
-
configPrompts.forEach((name) => {
|
|
93
|
-
const info = prompts[name];
|
|
94
|
-
if (info) {
|
|
95
|
-
const displayName = info.displayName || name;
|
|
96
|
-
const title = info.title && info.title !== displayName ? ` (${info.title})` : '';
|
|
97
|
-
const desc = info.description ? ` - ${info.description}` : '';
|
|
98
|
-
outputLines.push(` ${displayName}${title}${desc}`);
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
outputLines.push('');
|
|
102
|
-
}
|
|
103
|
-
if (customPrompts.length > 0) {
|
|
104
|
-
outputLines.push('✨ Custom Prompts:');
|
|
105
|
-
customPrompts.forEach((name) => {
|
|
106
|
-
const info = prompts[name];
|
|
107
|
-
if (info) {
|
|
108
|
-
const displayName = info.displayName || name;
|
|
109
|
-
const title = info.title && info.title !== displayName ? ` (${info.title})` : '';
|
|
110
|
-
const desc = info.description ? ` - ${info.description}` : '';
|
|
111
|
-
outputLines.push(` ${displayName}${title}${desc}`);
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
outputLines.push('');
|
|
115
|
-
}
|
|
116
|
-
outputLines.push(`Total: ${promptNames.length} prompts`);
|
|
117
|
-
const output = outputLines.join('\n');
|
|
118
|
-
return formatForInkCli(output);
|
|
119
|
-
}
|
|
120
|
-
catch (error) {
|
|
121
|
-
const errorMsg = `Error listing prompts: ${error instanceof Error ? error.message : String(error)}`;
|
|
122
|
-
return formatForInkCli(`❌ ${errorMsg}`);
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
// Note: /use command removed - use /<prompt-name> directly instead
|
|
127
|
-
// Prompts are automatically registered as slash commands (see getDynamicPromptCommands)
|
|
128
|
-
];
|
|
129
|
-
/**
|
|
130
|
-
* Create a dynamic command definition from a prompt
|
|
131
|
-
* @param promptInfo The prompt metadata with pre-computed commandName
|
|
132
|
-
*/
|
|
133
|
-
function createPromptCommand(promptInfo) {
|
|
134
|
-
// Use pre-computed commandName (collision-resolved by PromptManager)
|
|
135
|
-
// Fall back to displayName or name for backwards compatibility
|
|
136
|
-
const commandName = promptInfo.commandName || promptInfo.displayName || promptInfo.name;
|
|
137
|
-
// Keep internal name for prompt resolution (e.g., "config:review" or "mcp:server1:review")
|
|
138
|
-
const internalName = promptInfo.name;
|
|
139
|
-
// Base name for display purposes (without source prefix)
|
|
140
|
-
const baseName = promptInfo.displayName || promptInfo.name;
|
|
141
|
-
return {
|
|
142
|
-
name: commandName,
|
|
143
|
-
description: promptInfo.description || `Execute ${baseName} prompt`,
|
|
144
|
-
usage: `/${commandName} [context]`,
|
|
145
|
-
category: 'Dynamic Prompts',
|
|
146
|
-
handler: async (args, agent, ctx) => {
|
|
147
|
-
try {
|
|
148
|
-
const { argMap, context: contextString } = splitPromptArguments(args);
|
|
149
|
-
// Use resolvePrompt instead of getPrompt + flattenPromptResult (matches WebUI approach)
|
|
150
|
-
const resolveOptions = {};
|
|
151
|
-
if (Object.keys(argMap).length > 0) {
|
|
152
|
-
resolveOptions.args = argMap;
|
|
153
|
-
}
|
|
154
|
-
if (contextString) {
|
|
155
|
-
resolveOptions.context = contextString;
|
|
156
|
-
}
|
|
157
|
-
// Use internal name for resolution (includes prefix like "config:")
|
|
158
|
-
const result = await agent.resolvePrompt(internalName, resolveOptions);
|
|
159
|
-
// Apply per-prompt overrides (Phase 2 Claude Code compatibility)
|
|
160
|
-
// These overrides persist for the session until explicitly cleared
|
|
161
|
-
if (ctx.sessionId) {
|
|
162
|
-
// Apply model override if specified
|
|
163
|
-
if (result.model) {
|
|
164
|
-
try {
|
|
165
|
-
await agent.switchLLM({ model: result.model }, ctx.sessionId);
|
|
166
|
-
}
|
|
167
|
-
catch (modelError) {
|
|
168
|
-
agent.logger.warn('Failed to switch model for prompt override', {
|
|
169
|
-
model: result.model,
|
|
170
|
-
error: modelError instanceof Error
|
|
171
|
-
? modelError.message
|
|
172
|
-
: String(modelError),
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
// Apply auto-approve tools if specified
|
|
177
|
-
// These tools will skip confirmation prompts during skill execution
|
|
178
|
-
if (result.allowedTools && result.allowedTools.length > 0) {
|
|
179
|
-
try {
|
|
180
|
-
agent.toolManager.setSessionAutoApproveTools(ctx.sessionId, result.allowedTools);
|
|
181
|
-
}
|
|
182
|
-
catch (toolError) {
|
|
183
|
-
agent.logger.warn('Failed to set auto-approve tools for prompt', {
|
|
184
|
-
tools: result.allowedTools,
|
|
185
|
-
error: toolError instanceof Error
|
|
186
|
-
? toolError.message
|
|
187
|
-
: String(toolError),
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
// Fork skills: route through LLM to call invoke_skill
|
|
193
|
-
// This ensures approval flow and context management work naturally through
|
|
194
|
-
// processStream, rather than bypassing it with direct tool execution.
|
|
195
|
-
if (result.context === 'fork') {
|
|
196
|
-
const skillName = internalName;
|
|
197
|
-
const taskContext = contextString || '';
|
|
198
|
-
// Build instruction message for the LLM
|
|
199
|
-
// The <skill-invocation> tags help the LLM recognize this is a structured request
|
|
200
|
-
const instructionText = `<skill-invocation>
|
|
201
|
-
Execute the fork skill: ${commandName}
|
|
202
|
-
${taskContext ? `Task context: ${taskContext}` : ''}
|
|
203
|
-
|
|
204
|
-
Call the invoke_skill tool immediately with:
|
|
205
|
-
- skill: "${skillName}"
|
|
206
|
-
${taskContext ? `- taskContext: "${taskContext}"` : ''}
|
|
207
|
-
</skill-invocation>`;
|
|
208
|
-
return createSendMessageMarker(instructionText);
|
|
209
|
-
}
|
|
210
|
-
// Inline skills: wrap content in <skill-invocation> for clean history display
|
|
211
|
-
// Convert resource URIs to @resource mentions so agent.run() can expand them
|
|
212
|
-
let finalText = result.text;
|
|
213
|
-
if (result.resources.length > 0) {
|
|
214
|
-
// Append resource references as @<uri> format
|
|
215
|
-
const resourceRefs = result.resources.map((uri) => `@<${uri}>`).join(' ');
|
|
216
|
-
finalText = finalText ? `${finalText}\n\n${resourceRefs}` : resourceRefs;
|
|
217
|
-
}
|
|
218
|
-
if (finalText.trim()) {
|
|
219
|
-
// Wrap in <skill-invocation> tags for clean display in history
|
|
220
|
-
// The tags help formatSkillInvocationMessage() detect and format these
|
|
221
|
-
const taskContext = contextString || '';
|
|
222
|
-
const wrappedText = `<skill-invocation>
|
|
223
|
-
Execute the inline skill: ${commandName}
|
|
224
|
-
${taskContext ? `Task context: ${taskContext}` : ''}
|
|
225
|
-
|
|
226
|
-
skill: "${internalName}"
|
|
227
|
-
</skill-invocation>
|
|
228
|
-
|
|
229
|
-
${finalText.trim()}`;
|
|
230
|
-
return createSendMessageMarker(wrappedText);
|
|
231
|
-
}
|
|
232
|
-
else {
|
|
233
|
-
const warningMsg = `⚠️ Prompt '${commandName}' returned no content`;
|
|
234
|
-
return formatForInkCli(warningMsg);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
catch (error) {
|
|
238
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
239
|
-
agent.logger.error(`Failed to execute prompt command '${commandName}': ${errorMessage}`);
|
|
240
|
-
const errorMsg = `❌ Error executing prompt '${commandName}': ${errorMessage}`;
|
|
241
|
-
return formatForInkCli(errorMsg);
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Get all dynamic prompt commands based on available prompts.
|
|
248
|
-
* Uses pre-computed commandName from PromptManager for collision handling.
|
|
249
|
-
* Filters out prompts with `userInvocable: false` as these are not intended
|
|
250
|
-
* for direct user invocation via slash commands.
|
|
251
|
-
*/
|
|
252
|
-
export async function getDynamicPromptCommands(agent) {
|
|
253
|
-
try {
|
|
254
|
-
const prompts = await agent.listPrompts();
|
|
255
|
-
// Filter out prompts that are not user-invocable (userInvocable: false)
|
|
256
|
-
// These prompts are intended for LLM auto-invocation only, not CLI slash commands
|
|
257
|
-
const promptEntries = Object.entries(prompts).filter(([, info]) => info.userInvocable !== false);
|
|
258
|
-
// Create commands using pre-computed commandName (collision-resolved by PromptManager)
|
|
259
|
-
return promptEntries.map(([, info]) => createPromptCommand(info));
|
|
260
|
-
}
|
|
261
|
-
catch (error) {
|
|
262
|
-
agent.logger.error(`Failed to get dynamic prompt commands: ${error instanceof Error ? error.message : String(error)}`);
|
|
263
|
-
return [];
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
function splitPromptArguments(args) {
|
|
267
|
-
const map = {};
|
|
268
|
-
const contextParts = [];
|
|
269
|
-
for (const arg of args) {
|
|
270
|
-
const equalsIndex = arg.indexOf('=');
|
|
271
|
-
if (equalsIndex > 0) {
|
|
272
|
-
const key = arg.slice(0, equalsIndex).trim();
|
|
273
|
-
const value = arg.slice(equalsIndex + 1);
|
|
274
|
-
if (key.length > 0) {
|
|
275
|
-
map[key] = value;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
else if (arg.trim().length > 0) {
|
|
279
|
-
contextParts.push(arg);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
const context = contextParts.length > 0 ? contextParts.join(' ') : undefined;
|
|
283
|
-
return { argMap: map, context };
|
|
284
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session Commands Module (Interactive CLI)
|
|
3
|
-
*
|
|
4
|
-
* This module provides session-related commands for the interactive CLI.
|
|
5
|
-
* These commands use interactive overlays/selectors rather than subcommands.
|
|
6
|
-
*
|
|
7
|
-
* Exports:
|
|
8
|
-
* - searchCommand: Opens interactive search overlay
|
|
9
|
-
* - resumeCommand: Shows interactive session selector
|
|
10
|
-
* - renameCommand: Rename the current session
|
|
11
|
-
*
|
|
12
|
-
* Note: For non-interactive session subcommands (list, history, delete),
|
|
13
|
-
* see src/cli/commands/session-commands.ts
|
|
14
|
-
*/
|
|
15
|
-
export { searchCommand, resumeCommand, renameCommand } from './session-commands.js';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/interactive-commands/session/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session Commands Module (Interactive CLI)
|
|
3
|
-
*
|
|
4
|
-
* This module provides session-related commands for the interactive CLI.
|
|
5
|
-
* These commands use interactive overlays/selectors rather than subcommands.
|
|
6
|
-
*
|
|
7
|
-
* Exports:
|
|
8
|
-
* - searchCommand: Opens interactive search overlay
|
|
9
|
-
* - resumeCommand: Shows interactive session selector
|
|
10
|
-
* - renameCommand: Rename the current session
|
|
11
|
-
*
|
|
12
|
-
* Note: For non-interactive session subcommands (list, history, delete),
|
|
13
|
-
* see src/cli/commands/session-commands.ts
|
|
14
|
-
*/
|
|
15
|
-
export { searchCommand, resumeCommand, renameCommand } from './session-commands.js';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session Management Commands (Interactive CLI)
|
|
3
|
-
*
|
|
4
|
-
* This module contains session-related commands for the interactive CLI.
|
|
5
|
-
* Session management in interactive mode uses overlays/selectors rather than subcommands.
|
|
6
|
-
*
|
|
7
|
-
* Commands:
|
|
8
|
-
* - resume: Shows interactive session selector
|
|
9
|
-
* - search: Opens interactive search overlay
|
|
10
|
-
* - rename: Rename the current session
|
|
11
|
-
*
|
|
12
|
-
* Note: For non-interactive session subcommands (list, history, delete),
|
|
13
|
-
* see src/cli/commands/session-commands.ts
|
|
14
|
-
*/
|
|
15
|
-
import type { CommandDefinition } from '../command-parser.js';
|
|
16
|
-
/**
|
|
17
|
-
* Resume command - shows interactive session selector
|
|
18
|
-
* Note: In interactive CLI, this always shows the selector (args ignored)
|
|
19
|
-
* Tip: To start the interactive CLI directly in a session, use `dexto --resume <sessionId>`.
|
|
20
|
-
*/
|
|
21
|
-
export declare const resumeCommand: CommandDefinition;
|
|
22
|
-
/**
|
|
23
|
-
* Standalone search command - opens interactive search overlay
|
|
24
|
-
*/
|
|
25
|
-
export declare const searchCommand: CommandDefinition;
|
|
26
|
-
/**
|
|
27
|
-
* Rename command - rename the current session
|
|
28
|
-
* In interactive CLI, this shows the rename overlay.
|
|
29
|
-
* The overlay is triggered via commandOverlays.ts registry.
|
|
30
|
-
*/
|
|
31
|
-
export declare const renameCommand: CommandDefinition;
|
|
32
|
-
//# sourceMappingURL=session-commands.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-commands.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/interactive-commands/session/session-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,sBAAsB,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,iBAqB3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,iBAc3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,iBAa3B,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session Management Commands (Interactive CLI)
|
|
3
|
-
*
|
|
4
|
-
* This module contains session-related commands for the interactive CLI.
|
|
5
|
-
* Session management in interactive mode uses overlays/selectors rather than subcommands.
|
|
6
|
-
*
|
|
7
|
-
* Commands:
|
|
8
|
-
* - resume: Shows interactive session selector
|
|
9
|
-
* - search: Opens interactive search overlay
|
|
10
|
-
* - rename: Rename the current session
|
|
11
|
-
*
|
|
12
|
-
* Note: For non-interactive session subcommands (list, history, delete),
|
|
13
|
-
* see src/cli/commands/session-commands.ts
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Resume command - shows interactive session selector
|
|
17
|
-
* Note: In interactive CLI, this always shows the selector (args ignored)
|
|
18
|
-
* Tip: To start the interactive CLI directly in a session, use `dexto --resume <sessionId>`.
|
|
19
|
-
*/
|
|
20
|
-
export const resumeCommand = {
|
|
21
|
-
name: 'resume',
|
|
22
|
-
description: 'Switch to a different session (interactive selector)',
|
|
23
|
-
usage: '/resume',
|
|
24
|
-
category: 'General',
|
|
25
|
-
aliases: ['r'],
|
|
26
|
-
handler: async (_args, _agent, _ctx) => {
|
|
27
|
-
// In interactive CLI, /resume always triggers the interactive selector
|
|
28
|
-
// The selector is shown via detectInteractiveSelector in inputParsing.ts
|
|
29
|
-
// This handler should not be called in ink-cli (selector shows instead)
|
|
30
|
-
const helpText = [
|
|
31
|
-
'📋 Resume Session',
|
|
32
|
-
'\nType /resume to show the session selector\n',
|
|
33
|
-
].join('\n');
|
|
34
|
-
return helpText;
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Standalone search command - opens interactive search overlay
|
|
39
|
-
*/
|
|
40
|
-
export const searchCommand = {
|
|
41
|
-
name: 'search',
|
|
42
|
-
description: 'Search messages across all sessions',
|
|
43
|
-
usage: '/search',
|
|
44
|
-
category: 'General',
|
|
45
|
-
aliases: ['find'],
|
|
46
|
-
handler: async (_args, _agent, _ctx) => {
|
|
47
|
-
// Interactive overlay handles everything - just return success
|
|
48
|
-
return true;
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Rename command - rename the current session
|
|
53
|
-
* In interactive CLI, this shows the rename overlay.
|
|
54
|
-
* The overlay is triggered via commandOverlays.ts registry.
|
|
55
|
-
*/
|
|
56
|
-
export const renameCommand = {
|
|
57
|
-
name: 'rename',
|
|
58
|
-
description: 'Rename the current session',
|
|
59
|
-
usage: '/rename',
|
|
60
|
-
category: 'General',
|
|
61
|
-
handler: async (_args, _agent, _ctx) => {
|
|
62
|
-
// Interactive overlay handles everything - just return success
|
|
63
|
-
return true;
|
|
64
|
-
},
|
|
65
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* System Commands Module Index
|
|
3
|
-
*
|
|
4
|
-
* This module exports all system-level CLI commands for the Dexto interactive interface.
|
|
5
|
-
* System commands provide functionality for configuration, logging, and statistics.
|
|
6
|
-
*
|
|
7
|
-
* Available commands:
|
|
8
|
-
* - /log - Set or view log level
|
|
9
|
-
* - /config - Show current configuration
|
|
10
|
-
* - /stats - Show system statistics
|
|
11
|
-
*/
|
|
12
|
-
export { systemCommands } from './system-commands.js';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/interactive-commands/system/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* System Commands Module Index
|
|
3
|
-
*
|
|
4
|
-
* This module exports all system-level CLI commands for the Dexto interactive interface.
|
|
5
|
-
* System commands provide functionality for configuration, logging, and statistics.
|
|
6
|
-
*
|
|
7
|
-
* Available commands:
|
|
8
|
-
* - /log - Set or view log level
|
|
9
|
-
* - /config - Show current configuration
|
|
10
|
-
* - /stats - Show system statistics
|
|
11
|
-
*/
|
|
12
|
-
export { systemCommands } from './system-commands.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-commands.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/interactive-commands/system/system-commands.ts"],"names":[],"mappings":"AAaA,OAAO,EAEH,KAAK,iBAAiB,EAGzB,MAAM,sBAAsB,CAAC;AAmB9B;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,iBAAiB,EAuN7C,CAAC"}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { overlayOnlyHandler, } from '../command-parser.js';
|
|
2
|
-
import { formatForInkCli } from '../utils/format-output.js';
|
|
3
|
-
import { CommandOutputHelper } from '../utils/command-output.js';
|
|
4
|
-
const validLevels = [
|
|
5
|
-
'error',
|
|
6
|
-
'warn',
|
|
7
|
-
'info',
|
|
8
|
-
'debug',
|
|
9
|
-
'silly',
|
|
10
|
-
];
|
|
11
|
-
const validLevelSet = new Set(validLevels);
|
|
12
|
-
const isLogLevel = (value) => validLevelSet.has(value);
|
|
13
|
-
/**
|
|
14
|
-
* System commands for configuration and monitoring
|
|
15
|
-
*/
|
|
16
|
-
export const systemCommands = [
|
|
17
|
-
{
|
|
18
|
-
name: 'log',
|
|
19
|
-
description: 'View or change log level interactively',
|
|
20
|
-
usage: '/log [level]',
|
|
21
|
-
category: 'System',
|
|
22
|
-
aliases: [],
|
|
23
|
-
handler: async (args, agent, ctx) => {
|
|
24
|
-
try {
|
|
25
|
-
const level = args[0];
|
|
26
|
-
if (!level) {
|
|
27
|
-
const currentLevel = agent.logger.getLevel();
|
|
28
|
-
const logFile = agent.logger.getLogFilePath();
|
|
29
|
-
const styledData = {
|
|
30
|
-
currentLevel,
|
|
31
|
-
logFile,
|
|
32
|
-
availableLevels: [...validLevels],
|
|
33
|
-
};
|
|
34
|
-
const fallbackLines = [
|
|
35
|
-
'Logging Configuration:',
|
|
36
|
-
` Current level: ${currentLevel}`,
|
|
37
|
-
logFile ? ` Log file: ${logFile}` : '',
|
|
38
|
-
` Available levels: ${validLevels.join(', ')}`,
|
|
39
|
-
' Use /log <level> to change level',
|
|
40
|
-
].filter(Boolean);
|
|
41
|
-
return CommandOutputHelper.styled('log-config', styledData, fallbackLines.join('\n'));
|
|
42
|
-
}
|
|
43
|
-
if (isLogLevel(level)) {
|
|
44
|
-
await agent.setLogLevel(level, ctx.sessionId ? { sessionId: ctx.sessionId } : undefined);
|
|
45
|
-
return formatForInkCli(`✅ Log level set to ${level}`);
|
|
46
|
-
}
|
|
47
|
-
const errorMsg = `❌ Invalid log level: ${level}\nValid levels: ${validLevels.join(', ')}`;
|
|
48
|
-
return formatForInkCli(errorMsg);
|
|
49
|
-
}
|
|
50
|
-
catch (error) {
|
|
51
|
-
const errorMsg = `Failed to update log level: ${error instanceof Error ? error.message : String(error)}`;
|
|
52
|
-
agent.logger.error(errorMsg);
|
|
53
|
-
return formatForInkCli(`❌ ${errorMsg}`);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'config',
|
|
59
|
-
description: 'Show current configuration',
|
|
60
|
-
usage: '/config',
|
|
61
|
-
category: 'System',
|
|
62
|
-
handler: async (_args, agent, ctx) => {
|
|
63
|
-
try {
|
|
64
|
-
const config = agent.getEffectiveConfig();
|
|
65
|
-
const servers = Object.keys(config.mcpServers || {});
|
|
66
|
-
const hooksEnabled = agent.services.hookManager.getHookNames();
|
|
67
|
-
const configFilePath = ctx.configFilePath ?? null;
|
|
68
|
-
// Build styled data
|
|
69
|
-
const styledData = {
|
|
70
|
-
configFilePath,
|
|
71
|
-
provider: config.llm.provider,
|
|
72
|
-
model: config.llm.model,
|
|
73
|
-
maxTokens: config.llm.maxOutputTokens ?? null,
|
|
74
|
-
temperature: config.llm.temperature ?? null,
|
|
75
|
-
permissionsMode: config.permissions.mode,
|
|
76
|
-
maxSessions: config.sessions?.maxSessions?.toString() || 'Default',
|
|
77
|
-
sessionTTL: config.sessions?.sessionTTL
|
|
78
|
-
? `${config.sessions.sessionTTL / 1000}s`
|
|
79
|
-
: 'Default',
|
|
80
|
-
mcpServers: servers,
|
|
81
|
-
promptsCount: config.prompts?.length || 0,
|
|
82
|
-
hooksEnabled,
|
|
83
|
-
};
|
|
84
|
-
// Build fallback text (no console.log - interferes with Ink rendering)
|
|
85
|
-
const fallbackLines = [
|
|
86
|
-
'Configuration:',
|
|
87
|
-
configFilePath ? ` Config: ${configFilePath}` : '',
|
|
88
|
-
` LLM: ${config.llm.provider} / ${config.llm.model}`,
|
|
89
|
-
` Permissions: ${styledData.permissionsMode}`,
|
|
90
|
-
` Sessions: max=${styledData.maxSessions}, ttl=${styledData.sessionTTL}`,
|
|
91
|
-
` MCP Servers: ${servers.length > 0 ? servers.join(', ') : 'none'}`,
|
|
92
|
-
` Prompts: ${styledData.promptsCount}`,
|
|
93
|
-
` Hooks: ${hooksEnabled.length > 0 ? hooksEnabled.join(', ') : 'none'}`,
|
|
94
|
-
].filter(Boolean);
|
|
95
|
-
return CommandOutputHelper.styled('config', styledData, fallbackLines.join('\n'));
|
|
96
|
-
}
|
|
97
|
-
catch (error) {
|
|
98
|
-
const errorMsg = `Failed to get configuration: ${error instanceof Error ? error.message : String(error)}`;
|
|
99
|
-
agent.logger.error(errorMsg);
|
|
100
|
-
return formatForInkCli(`❌ ${errorMsg}`);
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: 'stats',
|
|
106
|
-
description: 'Show system statistics',
|
|
107
|
-
usage: '/stats',
|
|
108
|
-
category: 'System',
|
|
109
|
-
handler: async (_args, agent, ctx) => {
|
|
110
|
-
try {
|
|
111
|
-
// Session stats
|
|
112
|
-
const sessionStats = await agent.sessionManager.getSessionStats();
|
|
113
|
-
// MCP stats
|
|
114
|
-
const connectedServers = agent.getMcpClients().size;
|
|
115
|
-
const failedConnections = Object.keys(agent.getMcpFailedConnections()).length;
|
|
116
|
-
// Tools
|
|
117
|
-
let toolCount = 0;
|
|
118
|
-
try {
|
|
119
|
-
const tools = await agent.getAllMcpTools();
|
|
120
|
-
toolCount = Object.keys(tools).length;
|
|
121
|
-
}
|
|
122
|
-
catch {
|
|
123
|
-
// Ignore - toolCount stays 0
|
|
124
|
-
}
|
|
125
|
-
// Get token usage from current session metadata
|
|
126
|
-
let tokenUsage;
|
|
127
|
-
let estimatedCost;
|
|
128
|
-
if (ctx.sessionId) {
|
|
129
|
-
const sessionMetadata = await agent.sessionManager.getSessionMetadata(ctx.sessionId);
|
|
130
|
-
if (sessionMetadata?.tokenUsage) {
|
|
131
|
-
tokenUsage = sessionMetadata.tokenUsage;
|
|
132
|
-
}
|
|
133
|
-
estimatedCost = sessionMetadata?.estimatedCost;
|
|
134
|
-
}
|
|
135
|
-
// Build styled data
|
|
136
|
-
const styledData = {
|
|
137
|
-
sessions: {
|
|
138
|
-
total: sessionStats.totalSessions,
|
|
139
|
-
inMemory: sessionStats.inMemorySessions,
|
|
140
|
-
maxAllowed: sessionStats.maxSessions,
|
|
141
|
-
},
|
|
142
|
-
mcp: {
|
|
143
|
-
connected: connectedServers,
|
|
144
|
-
failed: failedConnections,
|
|
145
|
-
toolCount,
|
|
146
|
-
},
|
|
147
|
-
...(tokenUsage && { tokenUsage }),
|
|
148
|
-
...(estimatedCost !== undefined && { estimatedCost }),
|
|
149
|
-
};
|
|
150
|
-
// Build fallback text
|
|
151
|
-
const fallbackLines = [
|
|
152
|
-
'System Statistics:',
|
|
153
|
-
` Sessions: ${sessionStats.totalSessions} total, ${sessionStats.inMemorySessions} in memory`,
|
|
154
|
-
` MCP: ${connectedServers} connected, ${toolCount} tools`,
|
|
155
|
-
];
|
|
156
|
-
if (failedConnections > 0) {
|
|
157
|
-
fallbackLines.push(` Failed connections: ${failedConnections}`);
|
|
158
|
-
}
|
|
159
|
-
if (tokenUsage) {
|
|
160
|
-
fallbackLines.push(` Tokens: ${tokenUsage.totalTokens} total (${tokenUsage.inputTokens} in, ${tokenUsage.outputTokens} out)`);
|
|
161
|
-
}
|
|
162
|
-
return CommandOutputHelper.styled('stats', styledData, fallbackLines.join('\n'));
|
|
163
|
-
}
|
|
164
|
-
catch (error) {
|
|
165
|
-
const errorMsg = `Failed to get statistics: ${error instanceof Error ? error.message : String(error)}`;
|
|
166
|
-
agent.logger.error(errorMsg);
|
|
167
|
-
return formatForInkCli(`❌ ${errorMsg}`);
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: 'stream',
|
|
173
|
-
description: 'Toggle streaming mode for LLM responses',
|
|
174
|
-
usage: '/stream',
|
|
175
|
-
category: 'System',
|
|
176
|
-
handler: async (_args, _agent, _ctx) => {
|
|
177
|
-
// Overlay is handled via commandOverlays.ts mapping
|
|
178
|
-
return true;
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'sounds',
|
|
183
|
-
description: 'Configure sound notifications',
|
|
184
|
-
usage: '/sounds',
|
|
185
|
-
category: 'System',
|
|
186
|
-
handler: overlayOnlyHandler,
|
|
187
|
-
},
|
|
188
|
-
];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tool Commands Module
|
|
3
|
-
*
|
|
4
|
-
* This module defines tool management slash commands for the Dexto CLI interface.
|
|
5
|
-
* These commands provide functionality for listing and managing MCP tools.
|
|
6
|
-
*
|
|
7
|
-
* Available Tool Commands:
|
|
8
|
-
* - /tools - Interactive tool browser
|
|
9
|
-
*/
|
|
10
|
-
import type { CommandDefinition } from './command-parser.js';
|
|
11
|
-
/**
|
|
12
|
-
* Tool management commands
|
|
13
|
-
*/
|
|
14
|
-
export declare const toolCommands: CommandDefinition[];
|
|
15
|
-
//# sourceMappingURL=tool-commands.d.ts.map
|