@dexto/tui 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/LICENSE +44 -0
- package/dist/InkCLIRefactored.cjs +319 -0
- package/dist/InkCLIRefactored.d.ts +55 -0
- package/dist/InkCLIRefactored.d.ts.map +1 -0
- package/dist/InkCLIRefactored.js +289 -0
- package/dist/assets/sounds/SOURCES.md +35 -0
- package/dist/assets/sounds/boot.wav +0 -0
- package/dist/assets/sounds/chime.wav +0 -0
- package/dist/assets/sounds/coin.wav +0 -0
- package/dist/assets/sounds/confirm.wav +0 -0
- package/dist/assets/sounds/levelup.wav +0 -0
- package/dist/assets/sounds/ping.wav +0 -0
- package/dist/assets/sounds/powerup.wav +0 -0
- package/dist/assets/sounds/startup.wav +0 -0
- package/dist/assets/sounds/success.wav +0 -0
- package/dist/assets/sounds/treasure.wav +0 -0
- package/dist/assets/sounds/win.wav +0 -0
- package/dist/components/ApprovalPrompt.cjs +353 -0
- package/dist/components/ApprovalPrompt.d.ts +44 -0
- package/dist/components/ApprovalPrompt.d.ts.map +1 -0
- package/dist/components/ApprovalPrompt.js +336 -0
- package/dist/components/BackgroundTasksPanel.cjs +117 -0
- package/dist/components/BackgroundTasksPanel.d.ts +18 -0
- package/dist/components/BackgroundTasksPanel.d.ts.map +1 -0
- package/dist/components/BackgroundTasksPanel.js +93 -0
- package/dist/components/CustomInput.cjs +77 -0
- package/dist/components/CustomInput.d.ts +17 -0
- package/dist/components/CustomInput.d.ts.map +1 -0
- package/dist/components/CustomInput.js +57 -0
- package/dist/components/CustomTextInput.cjs +76 -0
- package/dist/components/CustomTextInput.d.ts +16 -0
- package/dist/components/CustomTextInput.d.ts.map +1 -0
- package/dist/components/CustomTextInput.js +46 -0
- package/dist/components/EditableMultiLineInput.cjs +151 -0
- package/dist/components/EditableMultiLineInput.d.ts +19 -0
- package/dist/components/EditableMultiLineInput.d.ts.map +1 -0
- package/dist/components/EditableMultiLineInput.js +131 -0
- package/dist/components/ElicitationForm.cjs +622 -0
- package/dist/components/ElicitationForm.d.ts +24 -0
- package/dist/components/ElicitationForm.d.ts.map +1 -0
- package/dist/components/ElicitationForm.js +588 -0
- package/dist/components/ErrorBoundary.cjs +66 -0
- package/dist/components/ErrorBoundary.d.ts +20 -0
- package/dist/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ErrorBoundary.js +32 -0
- package/dist/components/Footer.cjs +165 -0
- package/dist/components/Footer.d.ts +23 -0
- package/dist/components/Footer.d.ts.map +1 -0
- package/dist/components/Footer.js +131 -0
- package/dist/components/HistorySearchBar.cjs +40 -0
- package/dist/components/HistorySearchBar.d.ts +17 -0
- package/dist/components/HistorySearchBar.d.ts.map +1 -0
- package/dist/components/HistorySearchBar.js +16 -0
- package/dist/components/MultiLineInput.cjs +56 -0
- package/dist/components/MultiLineInput.d.ts +12 -0
- package/dist/components/MultiLineInput.d.ts.map +1 -0
- package/dist/components/MultiLineInput.js +36 -0
- package/dist/components/ResourceAutocomplete.cjs +344 -0
- package/dist/components/ResourceAutocomplete.d.ts +26 -0
- package/dist/components/ResourceAutocomplete.d.ts.map +1 -0
- package/dist/components/ResourceAutocomplete.js +322 -0
- package/dist/components/SlashCommandAutocomplete.cjs +389 -0
- package/dist/components/SlashCommandAutocomplete.d.ts +28 -0
- package/dist/components/SlashCommandAutocomplete.d.ts.map +1 -0
- package/dist/components/SlashCommandAutocomplete.js +363 -0
- package/dist/components/StatusBar.cjs +142 -0
- package/dist/components/StatusBar.d.ts +41 -0
- package/dist/components/StatusBar.d.ts.map +1 -0
- package/dist/components/StatusBar.js +118 -0
- package/dist/components/TextBufferInput.cjs +531 -0
- package/dist/components/TextBufferInput.d.ts +54 -0
- package/dist/components/TextBufferInput.d.ts.map +1 -0
- package/dist/components/TextBufferInput.js +507 -0
- package/dist/components/TodoPanel.cjs +129 -0
- package/dist/components/TodoPanel.d.ts +26 -0
- package/dist/components/TodoPanel.d.ts.map +1 -0
- package/dist/components/TodoPanel.js +105 -0
- package/dist/components/base/BaseAutocomplete.cjs +153 -0
- package/dist/components/base/BaseAutocomplete.d.ts +29 -0
- package/dist/components/base/BaseAutocomplete.d.ts.map +1 -0
- package/dist/components/base/BaseAutocomplete.js +129 -0
- package/dist/components/base/BaseSelector.cjs +167 -0
- package/dist/components/base/BaseSelector.d.ts +37 -0
- package/dist/components/base/BaseSelector.d.ts.map +1 -0
- package/dist/components/base/BaseSelector.js +151 -0
- package/dist/components/base/index.cjs +31 -0
- package/dist/components/base/index.d.ts +6 -0
- package/dist/components/base/index.d.ts.map +1 -0
- package/dist/components/base/index.js +6 -0
- package/dist/components/chat/ChatView.cjs +51 -0
- package/dist/components/chat/ChatView.d.ts +19 -0
- package/dist/components/chat/ChatView.d.ts.map +1 -0
- package/dist/components/chat/ChatView.js +27 -0
- package/dist/components/chat/Footer.cjs +32 -0
- package/dist/components/chat/Footer.d.ts +9 -0
- package/dist/components/chat/Footer.d.ts.map +1 -0
- package/dist/components/chat/Footer.js +8 -0
- package/dist/components/chat/Header.cjs +86 -0
- package/dist/components/chat/Header.d.ts +18 -0
- package/dist/components/chat/Header.d.ts.map +1 -0
- package/dist/components/chat/Header.js +62 -0
- package/dist/components/chat/MessageItem.cjs +269 -0
- package/dist/components/chat/MessageItem.d.ts +23 -0
- package/dist/components/chat/MessageItem.d.ts.map +1 -0
- package/dist/components/chat/MessageItem.js +247 -0
- package/dist/components/chat/MessageList.cjs +46 -0
- package/dist/components/chat/MessageList.d.ts +16 -0
- package/dist/components/chat/MessageList.d.ts.map +1 -0
- package/dist/components/chat/MessageList.js +22 -0
- package/dist/components/chat/QueuedMessagesDisplay.cjs +59 -0
- package/dist/components/chat/QueuedMessagesDisplay.d.ts +16 -0
- package/dist/components/chat/QueuedMessagesDisplay.d.ts.map +1 -0
- package/dist/components/chat/QueuedMessagesDisplay.js +35 -0
- package/dist/components/chat/ToolIcon.cjs +60 -0
- package/dist/components/chat/ToolIcon.d.ts +18 -0
- package/dist/components/chat/ToolIcon.d.ts.map +1 -0
- package/dist/components/chat/ToolIcon.js +36 -0
- package/dist/components/chat/index.cjs +43 -0
- package/dist/components/chat/index.d.ts +10 -0
- package/dist/components/chat/index.d.ts.map +1 -0
- package/dist/components/chat/index.js +14 -0
- package/dist/components/chat/styled-boxes/ConfigBox.cjs +56 -0
- package/dist/components/chat/styled-boxes/ConfigBox.d.ts +10 -0
- package/dist/components/chat/styled-boxes/ConfigBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/ConfigBox.js +32 -0
- package/dist/components/chat/styled-boxes/HelpBox.cjs +53 -0
- package/dist/components/chat/styled-boxes/HelpBox.d.ts +10 -0
- package/dist/components/chat/styled-boxes/HelpBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/HelpBox.js +29 -0
- package/dist/components/chat/styled-boxes/LogConfigBox.cjs +54 -0
- package/dist/components/chat/styled-boxes/LogConfigBox.d.ts +10 -0
- package/dist/components/chat/styled-boxes/LogConfigBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/LogConfigBox.js +30 -0
- package/dist/components/chat/styled-boxes/SessionHistoryBox.cjs +81 -0
- package/dist/components/chat/styled-boxes/SessionHistoryBox.d.ts +10 -0
- package/dist/components/chat/styled-boxes/SessionHistoryBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/SessionHistoryBox.js +57 -0
- package/dist/components/chat/styled-boxes/SessionListBox.cjs +58 -0
- package/dist/components/chat/styled-boxes/SessionListBox.d.ts +10 -0
- package/dist/components/chat/styled-boxes/SessionListBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/SessionListBox.js +34 -0
- package/dist/components/chat/styled-boxes/ShortcutsBox.cjs +39 -0
- package/dist/components/chat/styled-boxes/ShortcutsBox.d.ts +10 -0
- package/dist/components/chat/styled-boxes/ShortcutsBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/ShortcutsBox.js +15 -0
- package/dist/components/chat/styled-boxes/StatsBox.cjs +123 -0
- package/dist/components/chat/styled-boxes/StatsBox.d.ts +10 -0
- package/dist/components/chat/styled-boxes/StatsBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/StatsBox.js +99 -0
- package/dist/components/chat/styled-boxes/StyledBox.cjs +88 -0
- package/dist/components/chat/styled-boxes/StyledBox.d.ts +45 -0
- package/dist/components/chat/styled-boxes/StyledBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/StyledBox.js +61 -0
- package/dist/components/chat/styled-boxes/SyspromptBox.cjs +33 -0
- package/dist/components/chat/styled-boxes/SyspromptBox.d.ts +10 -0
- package/dist/components/chat/styled-boxes/SyspromptBox.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/SyspromptBox.js +9 -0
- package/dist/components/chat/styled-boxes/index.cjs +58 -0
- package/dist/components/chat/styled-boxes/index.d.ts +13 -0
- package/dist/components/chat/styled-boxes/index.d.ts.map +1 -0
- package/dist/components/chat/styled-boxes/index.js +23 -0
- package/dist/components/input/InputArea.cjs +74 -0
- package/dist/components/input/InputArea.d.ts +48 -0
- package/dist/components/input/InputArea.d.ts.map +1 -0
- package/dist/components/input/InputArea.js +50 -0
- package/dist/components/input/index.cjs +28 -0
- package/dist/components/input/index.d.ts +5 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +4 -0
- package/dist/components/modes/AlternateBufferCLI.cjs +360 -0
- package/dist/components/modes/AlternateBufferCLI.d.ts +28 -0
- package/dist/components/modes/AlternateBufferCLI.d.ts.map +1 -0
- package/dist/components/modes/AlternateBufferCLI.js +339 -0
- package/dist/components/modes/StaticCLI.cjs +303 -0
- package/dist/components/modes/StaticCLI.d.ts +30 -0
- package/dist/components/modes/StaticCLI.d.ts.map +1 -0
- package/dist/components/modes/StaticCLI.js +279 -0
- package/dist/components/modes/index.cjs +31 -0
- package/dist/components/modes/index.d.ts +10 -0
- package/dist/components/modes/index.d.ts.map +1 -0
- package/dist/components/modes/index.js +6 -0
- package/dist/components/overlays/ApiKeyInput.cjs +131 -0
- package/dist/components/overlays/ApiKeyInput.d.ts +26 -0
- package/dist/components/overlays/ApiKeyInput.d.ts.map +1 -0
- package/dist/components/overlays/ApiKeyInput.js +115 -0
- package/dist/components/overlays/CommandOutputOverlay.cjs +103 -0
- package/dist/components/overlays/CommandOutputOverlay.d.ts +13 -0
- package/dist/components/overlays/CommandOutputOverlay.d.ts.map +1 -0
- package/dist/components/overlays/CommandOutputOverlay.js +69 -0
- package/dist/components/overlays/ContextStatsOverlay.cjs +354 -0
- package/dist/components/overlays/ContextStatsOverlay.d.ts +26 -0
- package/dist/components/overlays/ContextStatsOverlay.d.ts.map +1 -0
- package/dist/components/overlays/ContextStatsOverlay.js +334 -0
- package/dist/components/overlays/CustomModelWizard.cjs +362 -0
- package/dist/components/overlays/CustomModelWizard.d.ts +29 -0
- package/dist/components/overlays/CustomModelWizard.d.ts.map +1 -0
- package/dist/components/overlays/CustomModelWizard.js +356 -0
- package/dist/components/overlays/ExportWizard.cjs +382 -0
- package/dist/components/overlays/ExportWizard.d.ts +22 -0
- package/dist/components/overlays/ExportWizard.d.ts.map +1 -0
- package/dist/components/overlays/ExportWizard.js +352 -0
- package/dist/components/overlays/LogLevelSelector.cjs +120 -0
- package/dist/components/overlays/LogLevelSelector.d.ts +23 -0
- package/dist/components/overlays/LogLevelSelector.d.ts.map +1 -0
- package/dist/components/overlays/LogLevelSelector.js +100 -0
- package/dist/components/overlays/LoginOverlay.cjs +211 -0
- package/dist/components/overlays/LoginOverlay.d.ts +22 -0
- package/dist/components/overlays/LoginOverlay.d.ts.map +1 -0
- package/dist/components/overlays/LoginOverlay.js +194 -0
- package/dist/components/overlays/LogoutOverlay.cjs +138 -0
- package/dist/components/overlays/LogoutOverlay.d.ts +20 -0
- package/dist/components/overlays/LogoutOverlay.d.ts.map +1 -0
- package/dist/components/overlays/LogoutOverlay.js +130 -0
- package/dist/components/overlays/MarketplaceAddPrompt.cjs +119 -0
- package/dist/components/overlays/MarketplaceAddPrompt.d.ts +20 -0
- package/dist/components/overlays/MarketplaceAddPrompt.d.ts.map +1 -0
- package/dist/components/overlays/MarketplaceAddPrompt.js +99 -0
- package/dist/components/overlays/MarketplaceBrowser.cjs +364 -0
- package/dist/components/overlays/MarketplaceBrowser.d.ts +31 -0
- package/dist/components/overlays/MarketplaceBrowser.d.ts.map +1 -0
- package/dist/components/overlays/MarketplaceBrowser.js +358 -0
- package/dist/components/overlays/McpAddChoice.cjs +100 -0
- package/dist/components/overlays/McpAddChoice.d.ts +22 -0
- package/dist/components/overlays/McpAddChoice.d.ts.map +1 -0
- package/dist/components/overlays/McpAddChoice.js +80 -0
- package/dist/components/overlays/McpAddSelector.cjs +113 -0
- package/dist/components/overlays/McpAddSelector.d.ts +26 -0
- package/dist/components/overlays/McpAddSelector.d.ts.map +1 -0
- package/dist/components/overlays/McpAddSelector.js +93 -0
- package/dist/components/overlays/McpCustomTypeSelector.cjs +99 -0
- package/dist/components/overlays/McpCustomTypeSelector.d.ts +21 -0
- package/dist/components/overlays/McpCustomTypeSelector.d.ts.map +1 -0
- package/dist/components/overlays/McpCustomTypeSelector.js +79 -0
- package/dist/components/overlays/McpCustomWizard.cjs +258 -0
- package/dist/components/overlays/McpCustomWizard.d.ts +29 -0
- package/dist/components/overlays/McpCustomWizard.d.ts.map +1 -0
- package/dist/components/overlays/McpCustomWizard.js +238 -0
- package/dist/components/overlays/McpRemoveSelector.cjs +127 -0
- package/dist/components/overlays/McpRemoveSelector.d.ts +22 -0
- package/dist/components/overlays/McpRemoveSelector.d.ts.map +1 -0
- package/dist/components/overlays/McpRemoveSelector.js +107 -0
- package/dist/components/overlays/McpSelector.cjs +94 -0
- package/dist/components/overlays/McpSelector.d.ts +21 -0
- package/dist/components/overlays/McpSelector.d.ts.map +1 -0
- package/dist/components/overlays/McpSelector.js +74 -0
- package/dist/components/overlays/McpServerActions.cjs +124 -0
- package/dist/components/overlays/McpServerActions.d.ts +28 -0
- package/dist/components/overlays/McpServerActions.d.ts.map +1 -0
- package/dist/components/overlays/McpServerActions.js +111 -0
- package/dist/components/overlays/McpServerList.cjs +152 -0
- package/dist/components/overlays/McpServerList.d.ts +29 -0
- package/dist/components/overlays/McpServerList.d.ts.map +1 -0
- package/dist/components/overlays/McpServerList.js +139 -0
- package/dist/components/overlays/ModelSelectorRefactored.cjs +869 -0
- package/dist/components/overlays/ModelSelectorRefactored.d.ts +27 -0
- package/dist/components/overlays/ModelSelectorRefactored.d.ts.map +1 -0
- package/dist/components/overlays/ModelSelectorRefactored.js +870 -0
- package/dist/components/overlays/PluginActions.cjs +108 -0
- package/dist/components/overlays/PluginActions.d.ts +27 -0
- package/dist/components/overlays/PluginActions.d.ts.map +1 -0
- package/dist/components/overlays/PluginActions.js +95 -0
- package/dist/components/overlays/PluginList.cjs +115 -0
- package/dist/components/overlays/PluginList.d.ts +21 -0
- package/dist/components/overlays/PluginList.d.ts.map +1 -0
- package/dist/components/overlays/PluginList.js +102 -0
- package/dist/components/overlays/PluginManager.cjs +106 -0
- package/dist/components/overlays/PluginManager.d.ts +21 -0
- package/dist/components/overlays/PluginManager.d.ts.map +1 -0
- package/dist/components/overlays/PluginManager.js +86 -0
- package/dist/components/overlays/PromptAddChoice.cjs +92 -0
- package/dist/components/overlays/PromptAddChoice.d.ts +22 -0
- package/dist/components/overlays/PromptAddChoice.d.ts.map +1 -0
- package/dist/components/overlays/PromptAddChoice.js +72 -0
- package/dist/components/overlays/PromptAddWizard.cjs +215 -0
- package/dist/components/overlays/PromptAddWizard.d.ts +29 -0
- package/dist/components/overlays/PromptAddWizard.d.ts.map +1 -0
- package/dist/components/overlays/PromptAddWizard.js +195 -0
- package/dist/components/overlays/PromptDeleteSelector.cjs +148 -0
- package/dist/components/overlays/PromptDeleteSelector.d.ts +27 -0
- package/dist/components/overlays/PromptDeleteSelector.d.ts.map +1 -0
- package/dist/components/overlays/PromptDeleteSelector.js +135 -0
- package/dist/components/overlays/PromptList.cjs +169 -0
- package/dist/components/overlays/PromptList.d.ts +33 -0
- package/dist/components/overlays/PromptList.d.ts.map +1 -0
- package/dist/components/overlays/PromptList.js +157 -0
- package/dist/components/overlays/ReasoningOverlay.cjs +305 -0
- package/dist/components/overlays/ReasoningOverlay.d.ts +28 -0
- package/dist/components/overlays/ReasoningOverlay.d.ts.map +1 -0
- package/dist/components/overlays/ReasoningOverlay.js +278 -0
- package/dist/components/overlays/SearchOverlay.cjs +249 -0
- package/dist/components/overlays/SearchOverlay.d.ts +23 -0
- package/dist/components/overlays/SearchOverlay.d.ts.map +1 -0
- package/dist/components/overlays/SearchOverlay.js +236 -0
- package/dist/components/overlays/SessionRenameOverlay.cjs +101 -0
- package/dist/components/overlays/SessionRenameOverlay.d.ts +21 -0
- package/dist/components/overlays/SessionRenameOverlay.d.ts.map +1 -0
- package/dist/components/overlays/SessionRenameOverlay.js +81 -0
- package/dist/components/overlays/SessionSelectorRefactored.cjs +153 -0
- package/dist/components/overlays/SessionSelectorRefactored.d.ts +26 -0
- package/dist/components/overlays/SessionSelectorRefactored.d.ts.map +1 -0
- package/dist/components/overlays/SessionSelectorRefactored.js +133 -0
- package/dist/components/overlays/SessionSubcommandSelector.cjs +84 -0
- package/dist/components/overlays/SessionSubcommandSelector.d.ts +21 -0
- package/dist/components/overlays/SessionSubcommandSelector.d.ts.map +1 -0
- package/dist/components/overlays/SessionSubcommandSelector.js +64 -0
- package/dist/components/overlays/SoundsSelector.cjs +632 -0
- package/dist/components/overlays/SoundsSelector.d.ts +21 -0
- package/dist/components/overlays/SoundsSelector.d.ts.map +1 -0
- package/dist/components/overlays/SoundsSelector.js +619 -0
- package/dist/components/overlays/StreamSelector.cjs +104 -0
- package/dist/components/overlays/StreamSelector.d.ts +20 -0
- package/dist/components/overlays/StreamSelector.d.ts.map +1 -0
- package/dist/components/overlays/StreamSelector.js +84 -0
- package/dist/components/overlays/ToolBrowser.cjs +854 -0
- package/dist/components/overlays/ToolBrowser.d.ts +26 -0
- package/dist/components/overlays/ToolBrowser.d.ts.map +1 -0
- package/dist/components/overlays/ToolBrowser.js +831 -0
- package/dist/components/overlays/custom-model-wizard/LocalModelWizard.cjs +784 -0
- package/dist/components/overlays/custom-model-wizard/LocalModelWizard.d.ts +25 -0
- package/dist/components/overlays/custom-model-wizard/LocalModelWizard.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/LocalModelWizard.js +768 -0
- package/dist/components/overlays/custom-model-wizard/index.cjs +26 -0
- package/dist/components/overlays/custom-model-wizard/index.d.ts +15 -0
- package/dist/components/overlays/custom-model-wizard/index.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/index.js +3 -0
- package/dist/components/overlays/custom-model-wizard/provider-config.cjs +549 -0
- package/dist/components/overlays/custom-model-wizard/provider-config.d.ts +42 -0
- package/dist/components/overlays/custom-model-wizard/provider-config.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/provider-config.js +516 -0
- package/dist/components/overlays/custom-model-wizard/provider-config.test.cjs +31 -0
- package/dist/components/overlays/custom-model-wizard/provider-config.test.d.ts +2 -0
- package/dist/components/overlays/custom-model-wizard/provider-config.test.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/provider-config.test.js +30 -0
- package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.cjs +59 -0
- package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts +25 -0
- package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.js +33 -0
- package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.cjs +64 -0
- package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts +17 -0
- package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.js +40 -0
- package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.cjs +48 -0
- package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts +20 -0
- package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.js +24 -0
- package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.cjs +58 -0
- package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts +30 -0
- package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.js +34 -0
- package/dist/components/overlays/custom-model-wizard/shared/index.cjs +41 -0
- package/dist/components/overlays/custom-model-wizard/shared/index.d.ts +8 -0
- package/dist/components/overlays/custom-model-wizard/shared/index.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/shared/index.js +12 -0
- package/dist/components/overlays/custom-model-wizard/types.cjs +53 -0
- package/dist/components/overlays/custom-model-wizard/types.d.ts +85 -0
- package/dist/components/overlays/custom-model-wizard/types.d.ts.map +1 -0
- package/dist/components/overlays/custom-model-wizard/types.js +29 -0
- package/dist/components/renderers/DiffRenderer.cjs +145 -0
- package/dist/components/renderers/DiffRenderer.d.ts +21 -0
- package/dist/components/renderers/DiffRenderer.d.ts.map +1 -0
- package/dist/components/renderers/DiffRenderer.js +118 -0
- package/dist/components/renderers/FilePreviewRenderer.cjs +146 -0
- package/dist/components/renderers/FilePreviewRenderer.d.ts +30 -0
- package/dist/components/renderers/FilePreviewRenderer.d.ts.map +1 -0
- package/dist/components/renderers/FilePreviewRenderer.js +119 -0
- package/dist/components/renderers/FileRenderer.cjs +95 -0
- package/dist/components/renderers/FileRenderer.d.ts +21 -0
- package/dist/components/renderers/FileRenderer.d.ts.map +1 -0
- package/dist/components/renderers/FileRenderer.js +71 -0
- package/dist/components/renderers/GenericRenderer.cjs +63 -0
- package/dist/components/renderers/GenericRenderer.d.ts +21 -0
- package/dist/components/renderers/GenericRenderer.d.ts.map +1 -0
- package/dist/components/renderers/GenericRenderer.js +39 -0
- package/dist/components/renderers/SearchRenderer.cjs +77 -0
- package/dist/components/renderers/SearchRenderer.d.ts +20 -0
- package/dist/components/renderers/SearchRenderer.d.ts.map +1 -0
- package/dist/components/renderers/SearchRenderer.js +43 -0
- package/dist/components/renderers/ShellRenderer.cjs +61 -0
- package/dist/components/renderers/ShellRenderer.d.ts +21 -0
- package/dist/components/renderers/ShellRenderer.d.ts.map +1 -0
- package/dist/components/renderers/ShellRenderer.js +37 -0
- package/dist/components/renderers/diff-shared.cjs +172 -0
- package/dist/components/renderers/diff-shared.d.ts +61 -0
- package/dist/components/renderers/diff-shared.d.ts.map +1 -0
- package/dist/components/renderers/diff-shared.js +142 -0
- package/dist/components/renderers/index.cjs +75 -0
- package/dist/components/renderers/index.d.ts +28 -0
- package/dist/components/renderers/index.d.ts.map +1 -0
- package/dist/components/renderers/index.js +44 -0
- package/dist/components/shared/FocusOverlayFrame.cjs +39 -0
- package/dist/components/shared/FocusOverlayFrame.d.ts +7 -0
- package/dist/components/shared/FocusOverlayFrame.d.ts.map +1 -0
- package/dist/components/shared/FocusOverlayFrame.js +15 -0
- package/dist/components/shared/HintBar.cjs +33 -0
- package/dist/components/shared/HintBar.d.ts +6 -0
- package/dist/components/shared/HintBar.d.ts.map +1 -0
- package/dist/components/shared/HintBar.js +9 -0
- package/dist/components/shared/MarkdownText.cjs +409 -0
- package/dist/components/shared/MarkdownText.d.ts +38 -0
- package/dist/components/shared/MarkdownText.d.ts.map +1 -0
- package/dist/components/shared/MarkdownText.js +373 -0
- package/dist/components/shared/VirtualizedList.cjs +365 -0
- package/dist/components/shared/VirtualizedList.d.ts +44 -0
- package/dist/components/shared/VirtualizedList.d.ts.map +1 -0
- package/dist/components/shared/VirtualizedList.js +349 -0
- package/dist/components/shared/text-buffer.cjs +1220 -0
- package/dist/components/shared/text-buffer.d.ts +185 -0
- package/dist/components/shared/text-buffer.d.ts.map +1 -0
- package/dist/components/shared/text-buffer.js +1194 -0
- package/dist/constants/processingPhrases.cjs +114 -0
- package/dist/constants/processingPhrases.d.ts +10 -0
- package/dist/constants/processingPhrases.d.ts.map +1 -0
- package/dist/constants/processingPhrases.js +89 -0
- package/dist/constants/spinnerFrames.cjs +28 -0
- package/dist/constants/spinnerFrames.d.ts +2 -0
- package/dist/constants/spinnerFrames.d.ts.map +1 -0
- package/dist/constants/spinnerFrames.js +4 -0
- package/dist/constants/tips.cjs +76 -0
- package/dist/constants/tips.d.ts +15 -0
- package/dist/constants/tips.d.ts.map +1 -0
- package/dist/constants/tips.js +51 -0
- package/dist/containers/InputContainer.cjs +706 -0
- package/dist/containers/InputContainer.d.ts +62 -0
- package/dist/containers/InputContainer.d.ts.map +1 -0
- package/dist/containers/InputContainer.js +672 -0
- package/dist/containers/OverlayContainer.cjs +2372 -0
- package/dist/containers/OverlayContainer.d.ts +42 -0
- package/dist/containers/OverlayContainer.d.ts.map +1 -0
- package/dist/containers/OverlayContainer.js +2356 -0
- package/dist/containers/index.cjs +31 -0
- package/dist/containers/index.d.ts +6 -0
- package/dist/containers/index.d.ts.map +1 -0
- package/dist/containers/index.js +6 -0
- package/dist/contexts/KeypressContext.cjs +436 -0
- package/dist/contexts/KeypressContext.d.ts +36 -0
- package/dist/contexts/KeypressContext.d.ts.map +1 -0
- package/dist/contexts/KeypressContext.js +408 -0
- package/dist/contexts/MouseContext.cjs +122 -0
- package/dist/contexts/MouseContext.d.ts +27 -0
- package/dist/contexts/MouseContext.d.ts.map +1 -0
- package/dist/contexts/MouseContext.js +101 -0
- package/dist/contexts/ScrollProvider.cjs +180 -0
- package/dist/contexts/ScrollProvider.d.ts +33 -0
- package/dist/contexts/ScrollProvider.d.ts.map +1 -0
- package/dist/contexts/ScrollProvider.js +163 -0
- package/dist/contexts/SoundContext.cjs +38 -0
- package/dist/contexts/SoundContext.d.ts +23 -0
- package/dist/contexts/SoundContext.d.ts.map +1 -0
- package/dist/contexts/SoundContext.js +13 -0
- package/dist/contexts/index.cjs +47 -0
- package/dist/contexts/index.d.ts +8 -0
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/contexts/index.js +25 -0
- package/dist/hooks/index.cjs +54 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +28 -0
- package/dist/hooks/useAgentEvents.cjs +382 -0
- package/dist/hooks/useAgentEvents.d.ts +49 -0
- package/dist/hooks/useAgentEvents.d.ts.map +1 -0
- package/dist/hooks/useAgentEvents.js +360 -0
- package/dist/hooks/useAnimationTick.cjs +71 -0
- package/dist/hooks/useAnimationTick.d.ts +11 -0
- package/dist/hooks/useAnimationTick.d.ts.map +1 -0
- package/dist/hooks/useAnimationTick.js +47 -0
- package/dist/hooks/useBatchedScroll.cjs +44 -0
- package/dist/hooks/useBatchedScroll.d.ts +14 -0
- package/dist/hooks/useBatchedScroll.d.ts.map +1 -0
- package/dist/hooks/useBatchedScroll.js +20 -0
- package/dist/hooks/useCLIState.cjs +222 -0
- package/dist/hooks/useCLIState.d.ts +53 -0
- package/dist/hooks/useCLIState.d.ts.map +1 -0
- package/dist/hooks/useCLIState.js +201 -0
- package/dist/hooks/useElapsedTime.cjs +79 -0
- package/dist/hooks/useElapsedTime.d.ts +24 -0
- package/dist/hooks/useElapsedTime.d.ts.map +1 -0
- package/dist/hooks/useElapsedTime.js +55 -0
- package/dist/hooks/useGitBranch.cjs +47 -0
- package/dist/hooks/useGitBranch.d.ts +13 -0
- package/dist/hooks/useGitBranch.d.ts.map +1 -0
- package/dist/hooks/useGitBranch.js +23 -0
- package/dist/hooks/useHistorySearch.cjs +219 -0
- package/dist/hooks/useHistorySearch.d.ts +61 -0
- package/dist/hooks/useHistorySearch.d.ts.map +1 -0
- package/dist/hooks/useHistorySearch.js +195 -0
- package/dist/hooks/useInputHistory.cjs +47 -0
- package/dist/hooks/useInputHistory.d.ts +18 -0
- package/dist/hooks/useInputHistory.d.ts.map +1 -0
- package/dist/hooks/useInputHistory.js +23 -0
- package/dist/hooks/useInputOrchestrator.cjs +663 -0
- package/dist/hooks/useInputOrchestrator.d.ts +136 -0
- package/dist/hooks/useInputOrchestrator.d.ts.map +1 -0
- package/dist/hooks/useInputOrchestrator.js +635 -0
- package/dist/hooks/useKeyboardShortcuts.cjs +87 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +21 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/hooks/useKeyboardShortcuts.js +63 -0
- package/dist/hooks/useKeypress.cjs +41 -0
- package/dist/hooks/useKeypress.d.ts +18 -0
- package/dist/hooks/useKeypress.d.ts.map +1 -0
- package/dist/hooks/useKeypress.js +17 -0
- package/dist/hooks/usePhraseCycler.cjs +74 -0
- package/dist/hooks/usePhraseCycler.d.ts +30 -0
- package/dist/hooks/usePhraseCycler.d.ts.map +1 -0
- package/dist/hooks/usePhraseCycler.js +50 -0
- package/dist/hooks/useStreaming.cjs +43 -0
- package/dist/hooks/useStreaming.d.ts +19 -0
- package/dist/hooks/useStreaming.d.ts.map +1 -0
- package/dist/hooks/useStreaming.js +24 -0
- package/dist/hooks/useTerminalSize.cjs +48 -0
- package/dist/hooks/useTerminalSize.d.ts +14 -0
- package/dist/hooks/useTerminalSize.d.ts.map +1 -0
- package/dist/hooks/useTerminalSize.js +24 -0
- package/dist/hooks/useTokenCounter.cjs +105 -0
- package/dist/hooks/useTokenCounter.d.ts +46 -0
- package/dist/hooks/useTokenCounter.d.ts.map +1 -0
- package/dist/hooks/useTokenCounter.js +81 -0
- package/dist/host/index.cjs +144 -0
- package/dist/host/index.d.ts +108 -0
- package/dist/host/index.d.ts.map +1 -0
- package/dist/host/index.js +104 -0
- package/dist/index.cjs +33 -0
- package/dist/index.d.cts +195 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/interactive-commands/auth/index.cjs +44 -0
- package/dist/interactive-commands/auth/index.d.ts +13 -0
- package/dist/interactive-commands/auth/index.d.ts.map +1 -0
- package/dist/interactive-commands/auth/index.js +19 -0
- package/dist/interactive-commands/command-parser.cjs +184 -0
- package/dist/interactive-commands/command-parser.d.ts +56 -0
- package/dist/interactive-commands/command-parser.d.ts.map +1 -0
- package/dist/interactive-commands/command-parser.js +146 -0
- package/dist/interactive-commands/commands.cjs +135 -0
- package/dist/interactive-commands/commands.d.ts +52 -0
- package/dist/interactive-commands/commands.d.ts.map +1 -0
- package/dist/interactive-commands/commands.js +99 -0
- package/dist/interactive-commands/documentation-commands.cjs +61 -0
- package/dist/interactive-commands/documentation-commands.d.ts +15 -0
- package/dist/interactive-commands/documentation-commands.d.ts.map +1 -0
- package/dist/interactive-commands/documentation-commands.js +27 -0
- package/dist/interactive-commands/exit-handler.cjs +40 -0
- package/dist/interactive-commands/exit-handler.d.ts +12 -0
- package/dist/interactive-commands/exit-handler.d.ts.map +1 -0
- package/dist/interactive-commands/exit-handler.js +15 -0
- package/dist/interactive-commands/exit-stats.cjs +41 -0
- package/dist/interactive-commands/exit-stats.d.ts +24 -0
- package/dist/interactive-commands/exit-stats.d.ts.map +1 -0
- package/dist/interactive-commands/exit-stats.js +15 -0
- package/dist/interactive-commands/export/index.cjs +36 -0
- package/dist/interactive-commands/export/index.d.ts +13 -0
- package/dist/interactive-commands/export/index.d.ts.map +1 -0
- package/dist/interactive-commands/export/index.js +12 -0
- package/dist/interactive-commands/general-commands.cjs +478 -0
- package/dist/interactive-commands/general-commands.d.ts +22 -0
- package/dist/interactive-commands/general-commands.d.ts.map +1 -0
- package/dist/interactive-commands/general-commands.js +443 -0
- package/dist/interactive-commands/mcp/index.cjs +35 -0
- package/dist/interactive-commands/mcp/index.d.ts +13 -0
- package/dist/interactive-commands/mcp/index.d.ts.map +1 -0
- package/dist/interactive-commands/mcp/index.js +11 -0
- package/dist/interactive-commands/model/index.cjs +36 -0
- package/dist/interactive-commands/model/index.d.ts +13 -0
- package/dist/interactive-commands/model/index.d.ts.map +1 -0
- package/dist/interactive-commands/model/index.js +12 -0
- package/dist/interactive-commands/plugin/index.cjs +35 -0
- package/dist/interactive-commands/plugin/index.d.ts +13 -0
- package/dist/interactive-commands/plugin/index.d.ts.map +1 -0
- package/dist/interactive-commands/plugin/index.js +11 -0
- package/dist/interactive-commands/prompt-commands.cjs +269 -0
- package/dist/interactive-commands/prompt-commands.d.ts +25 -0
- package/dist/interactive-commands/prompt-commands.d.ts.map +1 -0
- package/dist/interactive-commands/prompt-commands.js +244 -0
- package/dist/interactive-commands/session/index.cjs +32 -0
- package/dist/interactive-commands/session/index.d.ts +16 -0
- package/dist/interactive-commands/session/index.d.ts.map +1 -0
- package/dist/interactive-commands/session/index.js +6 -0
- package/dist/interactive-commands/session/session-commands.cjs +64 -0
- package/dist/interactive-commands/session/session-commands.d.ts +32 -0
- package/dist/interactive-commands/session/session-commands.d.ts.map +1 -0
- package/dist/interactive-commands/session/session-commands.js +38 -0
- package/dist/interactive-commands/system/index.cjs +28 -0
- package/dist/interactive-commands/system/index.d.ts +13 -0
- package/dist/interactive-commands/system/index.d.ts.map +1 -0
- package/dist/interactive-commands/system/index.js +4 -0
- package/dist/interactive-commands/system/system-commands.cjs +217 -0
- package/dist/interactive-commands/system/system-commands.d.ts +6 -0
- package/dist/interactive-commands/system/system-commands.d.ts.map +1 -0
- package/dist/interactive-commands/system/system-commands.js +195 -0
- package/dist/interactive-commands/tool-commands.cjs +38 -0
- package/dist/interactive-commands/tool-commands.d.ts +15 -0
- package/dist/interactive-commands/tool-commands.d.ts.map +1 -0
- package/dist/interactive-commands/tool-commands.js +14 -0
- package/dist/interactive-commands/utils/arg-parser.cjs +59 -0
- package/dist/interactive-commands/utils/arg-parser.d.ts +57 -0
- package/dist/interactive-commands/utils/arg-parser.d.ts.map +1 -0
- package/dist/interactive-commands/utils/arg-parser.js +34 -0
- package/dist/interactive-commands/utils/command-output.cjs +75 -0
- package/dist/interactive-commands/utils/command-output.d.ts +40 -0
- package/dist/interactive-commands/utils/command-output.d.ts.map +1 -0
- package/dist/interactive-commands/utils/command-output.js +51 -0
- package/dist/interactive-commands/utils/format-output.cjs +36 -0
- package/dist/interactive-commands/utils/format-output.d.ts +14 -0
- package/dist/interactive-commands/utils/format-output.d.ts.map +1 -0
- package/dist/interactive-commands/utils/format-output.js +11 -0
- package/dist/services/CommandService.cjs +68 -0
- package/dist/services/CommandService.d.ts +58 -0
- package/dist/services/CommandService.d.ts.map +1 -0
- package/dist/services/CommandService.js +41 -0
- package/dist/services/InputService.cjs +97 -0
- package/dist/services/InputService.d.ts +40 -0
- package/dist/services/InputService.d.ts.map +1 -0
- package/dist/services/InputService.js +78 -0
- package/dist/services/MessageService.cjs +69 -0
- package/dist/services/MessageService.d.ts +35 -0
- package/dist/services/MessageService.d.ts.map +1 -0
- package/dist/services/MessageService.js +51 -0
- package/dist/services/index.cjs +39 -0
- package/dist/services/index.d.ts +8 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +16 -0
- package/dist/services/processStream.cjs +877 -0
- package/dist/services/processStream.d.ts +79 -0
- package/dist/services/processStream.d.ts.map +1 -0
- package/dist/services/processStream.js +843 -0
- package/dist/services/processStream.test.cjs +255 -0
- package/dist/services/processStream.test.d.ts +2 -0
- package/dist/services/processStream.test.d.ts.map +1 -0
- package/dist/services/processStream.test.js +254 -0
- package/dist/state/actions.cjs +16 -0
- package/dist/state/actions.d.ts +124 -0
- package/dist/state/actions.d.ts.map +1 -0
- package/dist/state/actions.js +0 -0
- package/dist/state/index.cjs +28 -0
- package/dist/state/index.d.ts +10 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +4 -0
- package/dist/state/initialState.cjs +78 -0
- package/dist/state/initialState.d.ts +12 -0
- package/dist/state/initialState.d.ts.map +1 -0
- package/dist/state/initialState.js +54 -0
- package/dist/state/reducer.cjs +340 -0
- package/dist/state/reducer.d.ts +15 -0
- package/dist/state/reducer.d.ts.map +1 -0
- package/dist/state/reducer.js +316 -0
- package/dist/state/streaming-state.cjs +52 -0
- package/dist/state/streaming-state.d.ts +27 -0
- package/dist/state/streaming-state.d.ts.map +1 -0
- package/dist/state/streaming-state.js +25 -0
- package/dist/state/types.cjs +16 -0
- package/dist/state/types.d.ts +388 -0
- package/dist/state/types.d.ts.map +1 -0
- package/dist/state/types.js +0 -0
- package/dist/utils/bracketedPaste.cjs +37 -0
- package/dist/utils/bracketedPaste.d.ts +22 -0
- package/dist/utils/bracketedPaste.d.ts.map +1 -0
- package/dist/utils/bracketedPaste.js +12 -0
- package/dist/utils/clipboardUtils.cjs +297 -0
- package/dist/utils/clipboardUtils.d.ts +49 -0
- package/dist/utils/clipboardUtils.d.ts.map +1 -0
- package/dist/utils/clipboardUtils.js +261 -0
- package/dist/utils/commandOverlays.cjs +69 -0
- package/dist/utils/commandOverlays.d.ts +22 -0
- package/dist/utils/commandOverlays.d.ts.map +1 -0
- package/dist/utils/commandOverlays.js +44 -0
- package/dist/utils/debugLog.cjs +63 -0
- package/dist/utils/debugLog.d.ts +38 -0
- package/dist/utils/debugLog.d.ts.map +1 -0
- package/dist/utils/debugLog.js +39 -0
- package/dist/utils/elicitationSchema.cjs +85 -0
- package/dist/utils/elicitationSchema.d.ts +11 -0
- package/dist/utils/elicitationSchema.d.ts.map +1 -0
- package/dist/utils/elicitationSchema.js +61 -0
- package/dist/utils/elicitationSchema.test.cjs +78 -0
- package/dist/utils/elicitationSchema.test.d.ts +2 -0
- package/dist/utils/elicitationSchema.test.d.ts.map +1 -0
- package/dist/utils/elicitationSchema.test.js +77 -0
- package/dist/utils/idGenerator.cjs +31 -0
- package/dist/utils/idGenerator.d.ts +10 -0
- package/dist/utils/idGenerator.d.ts.map +1 -0
- package/dist/utils/idGenerator.js +7 -0
- package/dist/utils/index.cjs +62 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +39 -0
- package/dist/utils/input.cjs +72 -0
- package/dist/utils/input.d.ts +25 -0
- package/dist/utils/input.d.ts.map +1 -0
- package/dist/utils/input.js +39 -0
- package/dist/utils/inputParsing.cjs +76 -0
- package/dist/utils/inputParsing.d.ts +31 -0
- package/dist/utils/inputParsing.d.ts.map +1 -0
- package/dist/utils/inputParsing.js +48 -0
- package/dist/utils/llm-provider-display.cjs +49 -0
- package/dist/utils/llm-provider-display.d.ts +3 -0
- package/dist/utils/llm-provider-display.d.ts.map +1 -0
- package/dist/utils/llm-provider-display.js +25 -0
- package/dist/utils/messageFormatting.cjs +447 -0
- package/dist/utils/messageFormatting.d.ts +131 -0
- package/dist/utils/messageFormatting.d.ts.map +1 -0
- package/dist/utils/messageFormatting.js +393 -0
- package/dist/utils/messageFormatting.test.cjs +16 -0
- package/dist/utils/messageFormatting.test.d.ts +2 -0
- package/dist/utils/messageFormatting.test.d.ts.map +1 -0
- package/dist/utils/messageFormatting.test.js +15 -0
- package/dist/utils/mouse.cjs +196 -0
- package/dist/utils/mouse.d.ts +61 -0
- package/dist/utils/mouse.d.ts.map +1 -0
- package/dist/utils/mouse.js +172 -0
- package/dist/utils/overlayPresentation.cjs +48 -0
- package/dist/utils/overlayPresentation.d.ts +19 -0
- package/dist/utils/overlayPresentation.d.ts.map +1 -0
- package/dist/utils/overlayPresentation.js +22 -0
- package/dist/utils/overlaySizing.cjs +39 -0
- package/dist/utils/overlaySizing.d.ts +19 -0
- package/dist/utils/overlaySizing.d.ts.map +1 -0
- package/dist/utils/overlaySizing.js +15 -0
- package/dist/utils/soundNotification.cjs +217 -0
- package/dist/utils/soundNotification.d.ts +77 -0
- package/dist/utils/soundNotification.d.ts.map +1 -0
- package/dist/utils/soundNotification.js +188 -0
- package/dist/utils/soundNotification.test.cjs +126 -0
- package/dist/utils/soundNotification.test.d.ts +2 -0
- package/dist/utils/soundNotification.test.d.ts.map +1 -0
- package/dist/utils/soundNotification.test.js +125 -0
- package/dist/utils/streamSplitter.cjs +126 -0
- package/dist/utils/streamSplitter.d.ts +44 -0
- package/dist/utils/streamSplitter.d.ts.map +1 -0
- package/dist/utils/streamSplitter.js +100 -0
- package/dist/utils/textUtils.cjs +223 -0
- package/dist/utils/textUtils.d.ts +63 -0
- package/dist/utils/textUtils.d.ts.map +1 -0
- package/dist/utils/textUtils.js +174 -0
- package/dist/utils/toolUtils.cjs +40 -0
- package/dist/utils/toolUtils.d.ts +20 -0
- package/dist/utils/toolUtils.d.ts.map +1 -0
- package/dist/utils/toolUtils.js +14 -0
- package/package.json +51 -0
|
@@ -0,0 +1,32 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-commands.d.ts","sourceRoot":"","sources":["../../../src/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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const resumeCommand = {
|
|
2
|
+
name: "resume",
|
|
3
|
+
description: "Switch to a different session (interactive selector)",
|
|
4
|
+
usage: "/resume",
|
|
5
|
+
category: "General",
|
|
6
|
+
aliases: ["r"],
|
|
7
|
+
handler: async (_args, _agent, _ctx) => {
|
|
8
|
+
const helpText = [
|
|
9
|
+
"\u{1F4CB} Resume Session",
|
|
10
|
+
"\nType /resume to show the session selector\n"
|
|
11
|
+
].join("\n");
|
|
12
|
+
return helpText;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const searchCommand = {
|
|
16
|
+
name: "search",
|
|
17
|
+
description: "Search messages across all sessions",
|
|
18
|
+
usage: "/search",
|
|
19
|
+
category: "General",
|
|
20
|
+
aliases: ["find"],
|
|
21
|
+
handler: async (_args, _agent, _ctx) => {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const renameCommand = {
|
|
26
|
+
name: "rename",
|
|
27
|
+
description: "Rename the current session",
|
|
28
|
+
usage: "/rename",
|
|
29
|
+
category: "General",
|
|
30
|
+
handler: async (_args, _agent, _ctx) => {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
renameCommand,
|
|
36
|
+
resumeCommand,
|
|
37
|
+
searchCommand
|
|
38
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var system_exports = {};
|
|
20
|
+
__export(system_exports, {
|
|
21
|
+
systemCommands: () => import_system_commands.systemCommands
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(system_exports);
|
|
24
|
+
var import_system_commands = require("./system-commands.js");
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
systemCommands
|
|
28
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interactive-commands/system/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var system_commands_exports = {};
|
|
20
|
+
__export(system_commands_exports, {
|
|
21
|
+
systemCommands: () => systemCommands
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(system_commands_exports);
|
|
24
|
+
var import_command_parser = require("../command-parser.js");
|
|
25
|
+
var import_format_output = require("../utils/format-output.js");
|
|
26
|
+
var import_command_output = require("../utils/command-output.js");
|
|
27
|
+
const validLevels = [
|
|
28
|
+
"error",
|
|
29
|
+
"warn",
|
|
30
|
+
"info",
|
|
31
|
+
"debug",
|
|
32
|
+
"silly"
|
|
33
|
+
];
|
|
34
|
+
const validLevelSet = new Set(validLevels);
|
|
35
|
+
const isLogLevel = (value) => validLevelSet.has(value);
|
|
36
|
+
const systemCommands = [
|
|
37
|
+
{
|
|
38
|
+
name: "log",
|
|
39
|
+
description: "View or change log level interactively",
|
|
40
|
+
usage: "/log [level]",
|
|
41
|
+
category: "System",
|
|
42
|
+
aliases: [],
|
|
43
|
+
handler: async (args, agent, ctx) => {
|
|
44
|
+
try {
|
|
45
|
+
const level = args[0];
|
|
46
|
+
if (!level) {
|
|
47
|
+
const currentLevel = agent.logger.getLevel();
|
|
48
|
+
const logFile = agent.logger.getLogFilePath();
|
|
49
|
+
const styledData = {
|
|
50
|
+
currentLevel,
|
|
51
|
+
logFile,
|
|
52
|
+
availableLevels: [...validLevels]
|
|
53
|
+
};
|
|
54
|
+
const fallbackLines = [
|
|
55
|
+
"Logging Configuration:",
|
|
56
|
+
` Current level: ${currentLevel}`,
|
|
57
|
+
logFile ? ` Log file: ${logFile}` : "",
|
|
58
|
+
` Available levels: ${validLevels.join(", ")}`,
|
|
59
|
+
" Use /log <level> to change level"
|
|
60
|
+
].filter(Boolean);
|
|
61
|
+
return import_command_output.CommandOutputHelper.styled(
|
|
62
|
+
"log-config",
|
|
63
|
+
styledData,
|
|
64
|
+
fallbackLines.join("\n")
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
if (isLogLevel(level)) {
|
|
68
|
+
await agent.setLogLevel(
|
|
69
|
+
level,
|
|
70
|
+
ctx.sessionId ? { sessionId: ctx.sessionId } : void 0
|
|
71
|
+
);
|
|
72
|
+
return (0, import_format_output.formatForInkCli)(`\u2705 Log level set to ${level}`);
|
|
73
|
+
}
|
|
74
|
+
const errorMsg = `\u274C Invalid log level: ${level}
|
|
75
|
+
Valid levels: ${validLevels.join(
|
|
76
|
+
", "
|
|
77
|
+
)}`;
|
|
78
|
+
return (0, import_format_output.formatForInkCli)(errorMsg);
|
|
79
|
+
} catch (error) {
|
|
80
|
+
const errorMsg = `Failed to update log level: ${error instanceof Error ? error.message : String(error)}`;
|
|
81
|
+
agent.logger.error(errorMsg);
|
|
82
|
+
return (0, import_format_output.formatForInkCli)(`\u274C ${errorMsg}`);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "config",
|
|
88
|
+
description: "Show current configuration",
|
|
89
|
+
usage: "/config",
|
|
90
|
+
category: "System",
|
|
91
|
+
handler: async (_args, agent, ctx) => {
|
|
92
|
+
try {
|
|
93
|
+
const config = agent.getEffectiveConfig();
|
|
94
|
+
const servers = Object.keys(config.mcpServers || {});
|
|
95
|
+
const hooksEnabled = agent.services.hookManager.getHookNames();
|
|
96
|
+
const configFilePath = ctx.configFilePath ?? null;
|
|
97
|
+
const styledData = {
|
|
98
|
+
configFilePath,
|
|
99
|
+
provider: config.llm.provider,
|
|
100
|
+
model: config.llm.model,
|
|
101
|
+
maxTokens: config.llm.maxOutputTokens ?? null,
|
|
102
|
+
temperature: config.llm.temperature ?? null,
|
|
103
|
+
permissionsMode: config.permissions.mode,
|
|
104
|
+
maxSessions: config.sessions?.maxSessions?.toString() || "Default",
|
|
105
|
+
sessionTTL: config.sessions?.sessionTTL ? `${config.sessions.sessionTTL / 1e3}s` : "Default",
|
|
106
|
+
mcpServers: servers,
|
|
107
|
+
promptsCount: config.prompts?.length || 0,
|
|
108
|
+
hooksEnabled
|
|
109
|
+
};
|
|
110
|
+
const fallbackLines = [
|
|
111
|
+
"Configuration:",
|
|
112
|
+
configFilePath ? ` Config: ${configFilePath}` : "",
|
|
113
|
+
` LLM: ${config.llm.provider} / ${config.llm.model}`,
|
|
114
|
+
` Permissions: ${styledData.permissionsMode}`,
|
|
115
|
+
` Sessions: max=${styledData.maxSessions}, ttl=${styledData.sessionTTL}`,
|
|
116
|
+
` MCP Servers: ${servers.length > 0 ? servers.join(", ") : "none"}`,
|
|
117
|
+
` Prompts: ${styledData.promptsCount}`,
|
|
118
|
+
` Hooks: ${hooksEnabled.length > 0 ? hooksEnabled.join(", ") : "none"}`
|
|
119
|
+
].filter(Boolean);
|
|
120
|
+
return import_command_output.CommandOutputHelper.styled("config", styledData, fallbackLines.join("\n"));
|
|
121
|
+
} catch (error) {
|
|
122
|
+
const errorMsg = `Failed to get configuration: ${error instanceof Error ? error.message : String(error)}`;
|
|
123
|
+
agent.logger.error(errorMsg);
|
|
124
|
+
return (0, import_format_output.formatForInkCli)(`\u274C ${errorMsg}`);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "stats",
|
|
130
|
+
description: "Show system statistics",
|
|
131
|
+
usage: "/stats",
|
|
132
|
+
category: "System",
|
|
133
|
+
handler: async (_args, agent, ctx) => {
|
|
134
|
+
try {
|
|
135
|
+
const sessionStats = await agent.sessionManager.getSessionStats();
|
|
136
|
+
const connectedServers = agent.getMcpClients().size;
|
|
137
|
+
const failedConnections = Object.keys(agent.getMcpFailedConnections()).length;
|
|
138
|
+
let toolCount = 0;
|
|
139
|
+
try {
|
|
140
|
+
const tools = await agent.getAllMcpTools();
|
|
141
|
+
toolCount = Object.keys(tools).length;
|
|
142
|
+
} catch {
|
|
143
|
+
}
|
|
144
|
+
let tokenUsage;
|
|
145
|
+
let estimatedCost;
|
|
146
|
+
if (ctx.sessionId) {
|
|
147
|
+
const sessionMetadata = await agent.sessionManager.getSessionMetadata(
|
|
148
|
+
ctx.sessionId
|
|
149
|
+
);
|
|
150
|
+
if (sessionMetadata?.tokenUsage) {
|
|
151
|
+
tokenUsage = sessionMetadata.tokenUsage;
|
|
152
|
+
}
|
|
153
|
+
estimatedCost = sessionMetadata?.estimatedCost;
|
|
154
|
+
}
|
|
155
|
+
const styledData = {
|
|
156
|
+
sessions: {
|
|
157
|
+
total: sessionStats.totalSessions,
|
|
158
|
+
inMemory: sessionStats.inMemorySessions,
|
|
159
|
+
maxAllowed: sessionStats.maxSessions
|
|
160
|
+
},
|
|
161
|
+
mcp: {
|
|
162
|
+
connected: connectedServers,
|
|
163
|
+
failed: failedConnections,
|
|
164
|
+
toolCount
|
|
165
|
+
},
|
|
166
|
+
...tokenUsage && { tokenUsage },
|
|
167
|
+
...estimatedCost !== void 0 && { estimatedCost }
|
|
168
|
+
};
|
|
169
|
+
const fallbackLines = [
|
|
170
|
+
"System Statistics:",
|
|
171
|
+
` Sessions: ${sessionStats.totalSessions} total, ${sessionStats.inMemorySessions} in memory`,
|
|
172
|
+
` MCP: ${connectedServers} connected, ${toolCount} tools`
|
|
173
|
+
];
|
|
174
|
+
if (failedConnections > 0) {
|
|
175
|
+
fallbackLines.push(` Failed connections: ${failedConnections}`);
|
|
176
|
+
}
|
|
177
|
+
if (tokenUsage) {
|
|
178
|
+
fallbackLines.push(
|
|
179
|
+
` Tokens: ${tokenUsage.totalTokens} total (${tokenUsage.inputTokens} in, ${tokenUsage.outputTokens} out)`
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
return import_command_output.CommandOutputHelper.styled("stats", styledData, fallbackLines.join("\n"));
|
|
183
|
+
} catch (error) {
|
|
184
|
+
const errorMsg = `Failed to get statistics: ${error instanceof Error ? error.message : String(error)}`;
|
|
185
|
+
agent.logger.error(errorMsg);
|
|
186
|
+
return (0, import_format_output.formatForInkCli)(`\u274C ${errorMsg}`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: "stream",
|
|
192
|
+
description: "Toggle streaming mode for LLM responses",
|
|
193
|
+
usage: "/stream",
|
|
194
|
+
category: "System",
|
|
195
|
+
handler: async (_args, _agent, _ctx) => {
|
|
196
|
+
return true;
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "reasoning",
|
|
201
|
+
description: "Configure reasoning display and budget tokens",
|
|
202
|
+
usage: "/reasoning",
|
|
203
|
+
category: "Model",
|
|
204
|
+
handler: import_command_parser.overlayOnlyHandler
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "sounds",
|
|
208
|
+
description: "Configure sound notifications",
|
|
209
|
+
usage: "/sounds",
|
|
210
|
+
category: "System",
|
|
211
|
+
handler: import_command_parser.overlayOnlyHandler
|
|
212
|
+
}
|
|
213
|
+
];
|
|
214
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
215
|
+
0 && (module.exports = {
|
|
216
|
+
systemCommands
|
|
217
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-commands.d.ts","sourceRoot":"","sources":["../../../src/interactive-commands/system/system-commands.ts"],"names":[],"mappings":"AAeA,OAAO,EAEH,KAAK,iBAAiB,EAGzB,MAAM,sBAAsB,CAAC;AAe9B;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,iBAAiB,EA8N7C,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import {
|
|
2
|
+
overlayOnlyHandler
|
|
3
|
+
} from "../command-parser.js";
|
|
4
|
+
import { formatForInkCli } from "../utils/format-output.js";
|
|
5
|
+
import { CommandOutputHelper } from "../utils/command-output.js";
|
|
6
|
+
const validLevels = [
|
|
7
|
+
"error",
|
|
8
|
+
"warn",
|
|
9
|
+
"info",
|
|
10
|
+
"debug",
|
|
11
|
+
"silly"
|
|
12
|
+
];
|
|
13
|
+
const validLevelSet = new Set(validLevels);
|
|
14
|
+
const isLogLevel = (value) => validLevelSet.has(value);
|
|
15
|
+
const systemCommands = [
|
|
16
|
+
{
|
|
17
|
+
name: "log",
|
|
18
|
+
description: "View or change log level interactively",
|
|
19
|
+
usage: "/log [level]",
|
|
20
|
+
category: "System",
|
|
21
|
+
aliases: [],
|
|
22
|
+
handler: async (args, agent, ctx) => {
|
|
23
|
+
try {
|
|
24
|
+
const level = args[0];
|
|
25
|
+
if (!level) {
|
|
26
|
+
const currentLevel = agent.logger.getLevel();
|
|
27
|
+
const logFile = agent.logger.getLogFilePath();
|
|
28
|
+
const styledData = {
|
|
29
|
+
currentLevel,
|
|
30
|
+
logFile,
|
|
31
|
+
availableLevels: [...validLevels]
|
|
32
|
+
};
|
|
33
|
+
const fallbackLines = [
|
|
34
|
+
"Logging Configuration:",
|
|
35
|
+
` Current level: ${currentLevel}`,
|
|
36
|
+
logFile ? ` Log file: ${logFile}` : "",
|
|
37
|
+
` Available levels: ${validLevels.join(", ")}`,
|
|
38
|
+
" Use /log <level> to change level"
|
|
39
|
+
].filter(Boolean);
|
|
40
|
+
return CommandOutputHelper.styled(
|
|
41
|
+
"log-config",
|
|
42
|
+
styledData,
|
|
43
|
+
fallbackLines.join("\n")
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
if (isLogLevel(level)) {
|
|
47
|
+
await agent.setLogLevel(
|
|
48
|
+
level,
|
|
49
|
+
ctx.sessionId ? { sessionId: ctx.sessionId } : void 0
|
|
50
|
+
);
|
|
51
|
+
return formatForInkCli(`\u2705 Log level set to ${level}`);
|
|
52
|
+
}
|
|
53
|
+
const errorMsg = `\u274C Invalid log level: ${level}
|
|
54
|
+
Valid levels: ${validLevels.join(
|
|
55
|
+
", "
|
|
56
|
+
)}`;
|
|
57
|
+
return formatForInkCli(errorMsg);
|
|
58
|
+
} catch (error) {
|
|
59
|
+
const errorMsg = `Failed to update log level: ${error instanceof Error ? error.message : String(error)}`;
|
|
60
|
+
agent.logger.error(errorMsg);
|
|
61
|
+
return formatForInkCli(`\u274C ${errorMsg}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "config",
|
|
67
|
+
description: "Show current configuration",
|
|
68
|
+
usage: "/config",
|
|
69
|
+
category: "System",
|
|
70
|
+
handler: async (_args, agent, ctx) => {
|
|
71
|
+
try {
|
|
72
|
+
const config = agent.getEffectiveConfig();
|
|
73
|
+
const servers = Object.keys(config.mcpServers || {});
|
|
74
|
+
const hooksEnabled = agent.services.hookManager.getHookNames();
|
|
75
|
+
const configFilePath = ctx.configFilePath ?? null;
|
|
76
|
+
const styledData = {
|
|
77
|
+
configFilePath,
|
|
78
|
+
provider: config.llm.provider,
|
|
79
|
+
model: config.llm.model,
|
|
80
|
+
maxTokens: config.llm.maxOutputTokens ?? null,
|
|
81
|
+
temperature: config.llm.temperature ?? null,
|
|
82
|
+
permissionsMode: config.permissions.mode,
|
|
83
|
+
maxSessions: config.sessions?.maxSessions?.toString() || "Default",
|
|
84
|
+
sessionTTL: config.sessions?.sessionTTL ? `${config.sessions.sessionTTL / 1e3}s` : "Default",
|
|
85
|
+
mcpServers: servers,
|
|
86
|
+
promptsCount: config.prompts?.length || 0,
|
|
87
|
+
hooksEnabled
|
|
88
|
+
};
|
|
89
|
+
const fallbackLines = [
|
|
90
|
+
"Configuration:",
|
|
91
|
+
configFilePath ? ` Config: ${configFilePath}` : "",
|
|
92
|
+
` LLM: ${config.llm.provider} / ${config.llm.model}`,
|
|
93
|
+
` Permissions: ${styledData.permissionsMode}`,
|
|
94
|
+
` Sessions: max=${styledData.maxSessions}, ttl=${styledData.sessionTTL}`,
|
|
95
|
+
` MCP Servers: ${servers.length > 0 ? servers.join(", ") : "none"}`,
|
|
96
|
+
` Prompts: ${styledData.promptsCount}`,
|
|
97
|
+
` Hooks: ${hooksEnabled.length > 0 ? hooksEnabled.join(", ") : "none"}`
|
|
98
|
+
].filter(Boolean);
|
|
99
|
+
return CommandOutputHelper.styled("config", styledData, fallbackLines.join("\n"));
|
|
100
|
+
} catch (error) {
|
|
101
|
+
const errorMsg = `Failed to get configuration: ${error instanceof Error ? error.message : String(error)}`;
|
|
102
|
+
agent.logger.error(errorMsg);
|
|
103
|
+
return formatForInkCli(`\u274C ${errorMsg}`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "stats",
|
|
109
|
+
description: "Show system statistics",
|
|
110
|
+
usage: "/stats",
|
|
111
|
+
category: "System",
|
|
112
|
+
handler: async (_args, agent, ctx) => {
|
|
113
|
+
try {
|
|
114
|
+
const sessionStats = await agent.sessionManager.getSessionStats();
|
|
115
|
+
const connectedServers = agent.getMcpClients().size;
|
|
116
|
+
const failedConnections = Object.keys(agent.getMcpFailedConnections()).length;
|
|
117
|
+
let toolCount = 0;
|
|
118
|
+
try {
|
|
119
|
+
const tools = await agent.getAllMcpTools();
|
|
120
|
+
toolCount = Object.keys(tools).length;
|
|
121
|
+
} catch {
|
|
122
|
+
}
|
|
123
|
+
let tokenUsage;
|
|
124
|
+
let estimatedCost;
|
|
125
|
+
if (ctx.sessionId) {
|
|
126
|
+
const sessionMetadata = await agent.sessionManager.getSessionMetadata(
|
|
127
|
+
ctx.sessionId
|
|
128
|
+
);
|
|
129
|
+
if (sessionMetadata?.tokenUsage) {
|
|
130
|
+
tokenUsage = sessionMetadata.tokenUsage;
|
|
131
|
+
}
|
|
132
|
+
estimatedCost = sessionMetadata?.estimatedCost;
|
|
133
|
+
}
|
|
134
|
+
const styledData = {
|
|
135
|
+
sessions: {
|
|
136
|
+
total: sessionStats.totalSessions,
|
|
137
|
+
inMemory: sessionStats.inMemorySessions,
|
|
138
|
+
maxAllowed: sessionStats.maxSessions
|
|
139
|
+
},
|
|
140
|
+
mcp: {
|
|
141
|
+
connected: connectedServers,
|
|
142
|
+
failed: failedConnections,
|
|
143
|
+
toolCount
|
|
144
|
+
},
|
|
145
|
+
...tokenUsage && { tokenUsage },
|
|
146
|
+
...estimatedCost !== void 0 && { estimatedCost }
|
|
147
|
+
};
|
|
148
|
+
const fallbackLines = [
|
|
149
|
+
"System Statistics:",
|
|
150
|
+
` Sessions: ${sessionStats.totalSessions} total, ${sessionStats.inMemorySessions} in memory`,
|
|
151
|
+
` MCP: ${connectedServers} connected, ${toolCount} tools`
|
|
152
|
+
];
|
|
153
|
+
if (failedConnections > 0) {
|
|
154
|
+
fallbackLines.push(` Failed connections: ${failedConnections}`);
|
|
155
|
+
}
|
|
156
|
+
if (tokenUsage) {
|
|
157
|
+
fallbackLines.push(
|
|
158
|
+
` Tokens: ${tokenUsage.totalTokens} total (${tokenUsage.inputTokens} in, ${tokenUsage.outputTokens} out)`
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
return CommandOutputHelper.styled("stats", styledData, fallbackLines.join("\n"));
|
|
162
|
+
} catch (error) {
|
|
163
|
+
const errorMsg = `Failed to get statistics: ${error instanceof Error ? error.message : String(error)}`;
|
|
164
|
+
agent.logger.error(errorMsg);
|
|
165
|
+
return formatForInkCli(`\u274C ${errorMsg}`);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "stream",
|
|
171
|
+
description: "Toggle streaming mode for LLM responses",
|
|
172
|
+
usage: "/stream",
|
|
173
|
+
category: "System",
|
|
174
|
+
handler: async (_args, _agent, _ctx) => {
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "reasoning",
|
|
180
|
+
description: "Configure reasoning display and budget tokens",
|
|
181
|
+
usage: "/reasoning",
|
|
182
|
+
category: "Model",
|
|
183
|
+
handler: overlayOnlyHandler
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "sounds",
|
|
187
|
+
description: "Configure sound notifications",
|
|
188
|
+
usage: "/sounds",
|
|
189
|
+
category: "System",
|
|
190
|
+
handler: overlayOnlyHandler
|
|
191
|
+
}
|
|
192
|
+
];
|
|
193
|
+
export {
|
|
194
|
+
systemCommands
|
|
195
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var tool_commands_exports = {};
|
|
20
|
+
__export(tool_commands_exports, {
|
|
21
|
+
toolCommands: () => toolCommands
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(tool_commands_exports);
|
|
24
|
+
const toolCommands = [
|
|
25
|
+
{
|
|
26
|
+
name: "tools",
|
|
27
|
+
description: "Browse available tools interactively",
|
|
28
|
+
usage: "/tools",
|
|
29
|
+
category: "Tool Management",
|
|
30
|
+
handler: async (_args, _agent, _ctx) => {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
toolCommands
|
|
38
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-commands.d.ts","sourceRoot":"","sources":["../../src/interactive-commands/tool-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,qBAAqB,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,iBAAiB,EAe3C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const toolCommands = [
|
|
2
|
+
{
|
|
3
|
+
name: "tools",
|
|
4
|
+
description: "Browse available tools interactively",
|
|
5
|
+
usage: "/tools",
|
|
6
|
+
category: "Tool Management",
|
|
7
|
+
handler: async (_args, _agent, _ctx) => {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
export {
|
|
13
|
+
toolCommands
|
|
14
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var arg_parser_exports = {};
|
|
20
|
+
__export(arg_parser_exports, {
|
|
21
|
+
parseOptions: () => parseOptions,
|
|
22
|
+
reconstructArgs: () => reconstructArgs
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(arg_parser_exports);
|
|
25
|
+
function parseOptions(args) {
|
|
26
|
+
const parsedArgs = [];
|
|
27
|
+
const options = {};
|
|
28
|
+
const flags = /* @__PURE__ */ new Set();
|
|
29
|
+
for (const arg of args) {
|
|
30
|
+
if (arg.startsWith("--")) {
|
|
31
|
+
if (arg.includes("=")) {
|
|
32
|
+
const [key, ...valueParts] = arg.slice(2).split("=");
|
|
33
|
+
if (key) {
|
|
34
|
+
options[key] = valueParts.join("=");
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
flags.add(arg.slice(2));
|
|
38
|
+
}
|
|
39
|
+
} else {
|
|
40
|
+
parsedArgs.push(arg);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return { parsedArgs, options, flags };
|
|
44
|
+
}
|
|
45
|
+
function reconstructArgs(parsed) {
|
|
46
|
+
const result = [...parsed.parsedArgs];
|
|
47
|
+
for (const [key, value] of Object.entries(parsed.options)) {
|
|
48
|
+
result.push(`--${key}=${value}`);
|
|
49
|
+
}
|
|
50
|
+
for (const flag of parsed.flags) {
|
|
51
|
+
result.push(`--${flag}`);
|
|
52
|
+
}
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
parseOptions,
|
|
58
|
+
reconstructArgs
|
|
59
|
+
});
|