dexto 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/coding-agent/coding-agent.yml +3 -1
- package/dist/analytics/wrapper.js +1 -1
- package/dist/cli/auth/dexto-api-key.d.ts +34 -0
- package/dist/cli/auth/dexto-api-key.d.ts.map +1 -0
- package/dist/cli/auth/dexto-api-key.js +161 -0
- package/dist/cli/auth/index.d.ts +2 -1
- package/dist/cli/auth/index.d.ts.map +1 -1
- package/dist/cli/auth/index.js +2 -1
- package/dist/cli/auth/oauth.d.ts +10 -0
- package/dist/cli/auth/oauth.d.ts.map +1 -1
- package/dist/cli/auth/oauth.js +113 -36
- package/dist/cli/auth/service.d.ts +1 -0
- package/dist/cli/auth/service.d.ts.map +1 -1
- package/dist/cli/auth/service.js +1 -0
- package/dist/cli/commands/auth/login.d.ts.map +1 -1
- package/dist/cli/commands/auth/login.js +40 -105
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +157 -120
- package/dist/cli/utils/config-validation.js +3 -3
- package/dist/cli/utils/options.d.ts.map +1 -1
- package/dist/cli/utils/options.js +6 -0
- package/dist/index-main.js +36 -2
- package/dist/utils/session-logger-factory.d.ts.map +1 -1
- package/dist/utils/session-logger-factory.js +17 -2
- package/dist/webui/assets/index-BPlk2Wbt.css +1 -0
- package/dist/webui/assets/index-BZvrpxyh.js +2059 -0
- package/dist/webui/index.html +2 -2
- package/package.json +13 -23
- 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/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 -458
- 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 -339
- 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 -67
- 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 -18
- 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 -197
- 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 -120
- 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 -269
- 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 -22
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ElicitationForm.js +0 -358
- 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 -376
- 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 -432
- 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 -110
- 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 -36
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/BaseSelector.js +0 -118
- 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 -180
- 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 -46
- 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 -180
- 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 -107
- 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/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 -630
- 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 -147
- 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/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 -642
- 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 -609
- 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 -66
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts +0 -19
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/FileRenderer.js +0 -26
- 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 -25
- 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/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/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 -57
- 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 -639
- 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 -1824
- 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/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 -223
- 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 -942
- 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 -57
- 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 -366
- 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 -84
- 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/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 -140
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/messageFormatting.js +0 -591
- 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/soundNotification.d.ts +0 -71
- package/dist/cli/ink-cli/utils/soundNotification.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/soundNotification.js +0 -203
- 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-DwtueA8l.js +0 -2059
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core state types for Ink CLI
|
|
3
|
-
* Central type definitions for the CLI state machine
|
|
4
|
-
*/
|
|
5
|
-
import type { ApprovalRequest } from '../components/ApprovalPrompt.js';
|
|
6
|
-
import type { ToolDisplayData, ContentPart, McpConnectionStatus, McpServerType } from '@dexto/core';
|
|
7
|
-
/**
|
|
8
|
-
* Update information for version check
|
|
9
|
-
*/
|
|
10
|
-
export interface UpdateInfo {
|
|
11
|
-
current: string;
|
|
12
|
-
latest: string;
|
|
13
|
-
updateCommand: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Startup information displayed in CLI header
|
|
17
|
-
*/
|
|
18
|
-
export interface StartupInfo {
|
|
19
|
-
connectedServers: {
|
|
20
|
-
count: number;
|
|
21
|
-
names: string[];
|
|
22
|
-
};
|
|
23
|
-
failedConnections: string[];
|
|
24
|
-
toolCount: number;
|
|
25
|
-
logFile: string | null;
|
|
26
|
-
/** Update info if a newer version is available */
|
|
27
|
-
updateInfo?: UpdateInfo | undefined;
|
|
28
|
-
/** True if installed agents differ from bundled and user should sync */
|
|
29
|
-
needsAgentSync?: boolean | undefined;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Tool call status for visual feedback
|
|
33
|
-
* - pending: Tool call received, checking if approval needed (static gray dot)
|
|
34
|
-
* - pending_approval: Waiting for user approval (static orange dot)
|
|
35
|
-
* - running: Actually executing (animated green/teal spinner)
|
|
36
|
-
* - finished: Completed (green dot success, red dot error)
|
|
37
|
-
*/
|
|
38
|
-
export type ToolStatus = 'pending' | 'pending_approval' | 'running' | 'finished';
|
|
39
|
-
/**
|
|
40
|
-
* Styled message types for rich command output
|
|
41
|
-
*/
|
|
42
|
-
export type StyledMessageType = 'config' | 'stats' | 'help' | 'session-list' | 'session-history' | 'log-config' | 'run-summary' | 'prompts' | 'sysprompt' | 'shortcuts';
|
|
43
|
-
/**
|
|
44
|
-
* Structured data for styled messages
|
|
45
|
-
*/
|
|
46
|
-
export interface ConfigStyledData {
|
|
47
|
-
configFilePath: string | null;
|
|
48
|
-
provider: string;
|
|
49
|
-
model: string;
|
|
50
|
-
maxTokens: number | null;
|
|
51
|
-
temperature: number | null;
|
|
52
|
-
permissionsMode: string;
|
|
53
|
-
maxSessions: string;
|
|
54
|
-
sessionTTL: string;
|
|
55
|
-
mcpServers: string[];
|
|
56
|
-
promptsCount: number;
|
|
57
|
-
hooksEnabled: string[];
|
|
58
|
-
}
|
|
59
|
-
export interface StatsStyledData {
|
|
60
|
-
sessions: {
|
|
61
|
-
total: number;
|
|
62
|
-
inMemory: number;
|
|
63
|
-
maxAllowed: number;
|
|
64
|
-
};
|
|
65
|
-
mcp: {
|
|
66
|
-
connected: number;
|
|
67
|
-
failed: number;
|
|
68
|
-
toolCount: number;
|
|
69
|
-
};
|
|
70
|
-
tokenUsage?: {
|
|
71
|
-
inputTokens: number;
|
|
72
|
-
outputTokens: number;
|
|
73
|
-
reasoningTokens: number;
|
|
74
|
-
cacheReadTokens: number;
|
|
75
|
-
cacheWriteTokens: number;
|
|
76
|
-
totalTokens: number;
|
|
77
|
-
};
|
|
78
|
-
estimatedCost?: number;
|
|
79
|
-
}
|
|
80
|
-
export interface HelpStyledData {
|
|
81
|
-
commands: Array<{
|
|
82
|
-
name: string;
|
|
83
|
-
description: string;
|
|
84
|
-
category: string;
|
|
85
|
-
}>;
|
|
86
|
-
}
|
|
87
|
-
export interface SessionListStyledData {
|
|
88
|
-
sessions: Array<{
|
|
89
|
-
id: string;
|
|
90
|
-
messageCount: number;
|
|
91
|
-
lastActive: string;
|
|
92
|
-
isCurrent: boolean;
|
|
93
|
-
}>;
|
|
94
|
-
total: number;
|
|
95
|
-
}
|
|
96
|
-
export interface SessionHistoryStyledData {
|
|
97
|
-
sessionId: string;
|
|
98
|
-
messages: Array<{
|
|
99
|
-
role: string;
|
|
100
|
-
content: string;
|
|
101
|
-
timestamp: string;
|
|
102
|
-
}>;
|
|
103
|
-
total: number;
|
|
104
|
-
}
|
|
105
|
-
export interface LogConfigStyledData {
|
|
106
|
-
currentLevel: string;
|
|
107
|
-
logFile: string | null;
|
|
108
|
-
availableLevels: string[];
|
|
109
|
-
}
|
|
110
|
-
export interface RunSummaryStyledData {
|
|
111
|
-
/** Duration in milliseconds */
|
|
112
|
-
durationMs: number;
|
|
113
|
-
/** Total tokens used (lastInput + cumulativeOutput) */
|
|
114
|
-
totalTokens: number;
|
|
115
|
-
}
|
|
116
|
-
export interface PromptsStyledData {
|
|
117
|
-
mcpPrompts: Array<{
|
|
118
|
-
name: string;
|
|
119
|
-
title?: string;
|
|
120
|
-
description?: string;
|
|
121
|
-
args?: string[];
|
|
122
|
-
}>;
|
|
123
|
-
configPrompts: Array<{
|
|
124
|
-
name: string;
|
|
125
|
-
title?: string;
|
|
126
|
-
description?: string;
|
|
127
|
-
}>;
|
|
128
|
-
customPrompts: Array<{
|
|
129
|
-
name: string;
|
|
130
|
-
title?: string;
|
|
131
|
-
description?: string;
|
|
132
|
-
}>;
|
|
133
|
-
total: number;
|
|
134
|
-
}
|
|
135
|
-
export interface SysPromptStyledData {
|
|
136
|
-
content: string;
|
|
137
|
-
}
|
|
138
|
-
export interface ShortcutsStyledData {
|
|
139
|
-
categories: Array<{
|
|
140
|
-
name: string;
|
|
141
|
-
shortcuts: Array<{
|
|
142
|
-
keys: string;
|
|
143
|
-
description: string;
|
|
144
|
-
}>;
|
|
145
|
-
}>;
|
|
146
|
-
}
|
|
147
|
-
export type StyledData = ConfigStyledData | StatsStyledData | HelpStyledData | SessionListStyledData | SessionHistoryStyledData | LogConfigStyledData | RunSummaryStyledData | PromptsStyledData | SysPromptStyledData | ShortcutsStyledData;
|
|
148
|
-
/**
|
|
149
|
-
* Sub-agent progress data for spawn_agent tool calls
|
|
150
|
-
*/
|
|
151
|
-
export interface SubAgentProgress {
|
|
152
|
-
/** Short task description */
|
|
153
|
-
task: string;
|
|
154
|
-
/** Agent ID (e.g., 'explore-agent') */
|
|
155
|
-
agentId: string;
|
|
156
|
-
/** Number of tools called by the sub-agent */
|
|
157
|
-
toolsCalled: number;
|
|
158
|
-
/** Current tool being executed */
|
|
159
|
-
currentTool: string;
|
|
160
|
-
/** Current tool arguments (optional) */
|
|
161
|
-
currentArgs?: Record<string, unknown> | undefined;
|
|
162
|
-
/** Cumulative token usage from the sub-agent (updated on each llm:response) */
|
|
163
|
-
tokenUsage?: {
|
|
164
|
-
input: number;
|
|
165
|
-
output: number;
|
|
166
|
-
total: number;
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Todo status for workflow tracking
|
|
171
|
-
*/
|
|
172
|
-
export type TodoStatus = 'pending' | 'in_progress' | 'completed';
|
|
173
|
-
/**
|
|
174
|
-
* Todo item for workflow tracking
|
|
175
|
-
*/
|
|
176
|
-
export interface TodoItem {
|
|
177
|
-
id: string;
|
|
178
|
-
sessionId: string;
|
|
179
|
-
content: string;
|
|
180
|
-
activeForm: string;
|
|
181
|
-
status: TodoStatus;
|
|
182
|
-
position: number;
|
|
183
|
-
createdAt: Date | string;
|
|
184
|
-
updatedAt: Date | string;
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Message in the chat interface
|
|
188
|
-
*
|
|
189
|
-
* TODO: Consolidate with InternalMessage from @dexto/core. Currently we have two
|
|
190
|
-
* message types: InternalMessage (core, ContentPart[] content) and Message (CLI,
|
|
191
|
-
* string content + UI fields). Consider extending InternalMessage or extracting
|
|
192
|
-
* shared role type to reduce duplication and type confusion.
|
|
193
|
-
*/
|
|
194
|
-
export interface Message {
|
|
195
|
-
id: string;
|
|
196
|
-
role: 'user' | 'assistant' | 'system' | 'tool';
|
|
197
|
-
content: string;
|
|
198
|
-
timestamp: Date;
|
|
199
|
-
isStreaming?: boolean;
|
|
200
|
-
toolResult?: string;
|
|
201
|
-
toolStatus?: ToolStatus;
|
|
202
|
-
isError?: boolean;
|
|
203
|
-
styledType?: StyledMessageType;
|
|
204
|
-
styledData?: StyledData;
|
|
205
|
-
/** True for split messages that continue a previous message (no role indicator) */
|
|
206
|
-
isContinuation?: boolean;
|
|
207
|
-
/** True for messages that are queued while agent is processing */
|
|
208
|
-
isQueued?: boolean;
|
|
209
|
-
/** Queue position (1-indexed) for queued messages */
|
|
210
|
-
queuePosition?: number;
|
|
211
|
-
/** Structured display data for tool-specific rendering (diffs, shell output, etc.) */
|
|
212
|
-
toolDisplayData?: ToolDisplayData;
|
|
213
|
-
/** Content parts for tool result rendering */
|
|
214
|
-
toolContent?: ContentPart[];
|
|
215
|
-
/** Sub-agent progress data (for spawn_agent tool calls) */
|
|
216
|
-
subAgentProgress?: SubAgentProgress;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Streaming message state
|
|
220
|
-
*/
|
|
221
|
-
export interface StreamingMessage {
|
|
222
|
-
id: string;
|
|
223
|
-
content: string;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Pending image attachment
|
|
227
|
-
*/
|
|
228
|
-
export interface PendingImage {
|
|
229
|
-
/** Unique ID for tracking/removal */
|
|
230
|
-
id: string;
|
|
231
|
-
/** Base64-encoded image data */
|
|
232
|
-
data: string;
|
|
233
|
-
/** MIME type of the image */
|
|
234
|
-
mimeType: string;
|
|
235
|
-
/** Placeholder text shown in input (e.g., "[Image 1]") */
|
|
236
|
-
placeholder: string;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Pasted content block (for collapsible paste feature)
|
|
240
|
-
*/
|
|
241
|
-
export interface PastedBlock {
|
|
242
|
-
/** Unique ID for tracking */
|
|
243
|
-
id: string;
|
|
244
|
-
/** Sequential number for display (Paste 1, Paste 2, etc.) */
|
|
245
|
-
number: number;
|
|
246
|
-
/** The full original pasted text */
|
|
247
|
-
fullText: string;
|
|
248
|
-
/** Line count for display */
|
|
249
|
-
lineCount: number;
|
|
250
|
-
/** Whether this block is currently collapsed */
|
|
251
|
-
isCollapsed: boolean;
|
|
252
|
-
/** The placeholder text when collapsed (e.g., "[Paste 1: ~32 lines]") */
|
|
253
|
-
placeholder: string;
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Input state management
|
|
257
|
-
*/
|
|
258
|
-
export interface InputState {
|
|
259
|
-
value: string;
|
|
260
|
-
history: string[];
|
|
261
|
-
historyIndex: number;
|
|
262
|
-
draftBeforeHistory: string;
|
|
263
|
-
/** Pending images to be sent with the next message */
|
|
264
|
-
images: PendingImage[];
|
|
265
|
-
/** Pasted content blocks (collapsed/expandable) */
|
|
266
|
-
pastedBlocks: PastedBlock[];
|
|
267
|
-
/** Counter for generating sequential paste numbers */
|
|
268
|
-
pasteCounter: number;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Available overlay types
|
|
272
|
-
*/
|
|
273
|
-
export type OverlayType = 'none' | 'slash-autocomplete' | 'resource-autocomplete' | 'model-selector' | 'custom-model-wizard' | 'session-selector' | 'mcp-server-list' | 'mcp-server-actions' | 'mcp-add-choice' | 'mcp-add-selector' | 'mcp-custom-type-selector' | 'mcp-custom-wizard' | 'log-level-selector' | 'stream-selector' | 'session-subcommand-selector' | 'api-key-input' | 'search' | 'approval' | 'tool-browser' | 'prompt-list' | 'prompt-add-choice' | 'prompt-add-wizard' | 'prompt-delete-selector' | 'session-rename' | 'context-stats' | 'export-wizard' | 'plugin-manager' | 'plugin-list' | 'plugin-actions' | 'marketplace-browser' | 'marketplace-add';
|
|
274
|
-
/**
|
|
275
|
-
* MCP server type for custom wizard (null = not yet selected)
|
|
276
|
-
*/
|
|
277
|
-
export type McpWizardServerType = McpServerType | null;
|
|
278
|
-
/**
|
|
279
|
-
* MCP server info for actions screen
|
|
280
|
-
*/
|
|
281
|
-
export interface SelectedMcpServer {
|
|
282
|
-
name: string;
|
|
283
|
-
enabled: boolean;
|
|
284
|
-
status: McpConnectionStatus;
|
|
285
|
-
type: McpServerType;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Pending model switch info (when waiting for API key input)
|
|
289
|
-
*/
|
|
290
|
-
export interface PendingModelSwitch {
|
|
291
|
-
provider: string;
|
|
292
|
-
model: string;
|
|
293
|
-
displayName?: string;
|
|
294
|
-
baseURL?: string;
|
|
295
|
-
reasoningEffort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Prompt add wizard state
|
|
299
|
-
*/
|
|
300
|
-
export type PromptAddScope = 'agent' | 'shared';
|
|
301
|
-
export interface PromptAddWizardState {
|
|
302
|
-
scope: PromptAddScope;
|
|
303
|
-
step: 'name' | 'title' | 'description' | 'content';
|
|
304
|
-
name: string;
|
|
305
|
-
title: string;
|
|
306
|
-
description: string;
|
|
307
|
-
content: string;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* History search state (Ctrl+R reverse search)
|
|
311
|
-
*/
|
|
312
|
-
export interface HistorySearchState {
|
|
313
|
-
isActive: boolean;
|
|
314
|
-
query: string;
|
|
315
|
-
matchIndex: number;
|
|
316
|
-
originalInput: string;
|
|
317
|
-
lastMatch: string;
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* UI state management
|
|
321
|
-
*/
|
|
322
|
-
export interface UIState {
|
|
323
|
-
isProcessing: boolean;
|
|
324
|
-
isCancelling: boolean;
|
|
325
|
-
isThinking: boolean;
|
|
326
|
-
isCompacting: boolean;
|
|
327
|
-
activeOverlay: OverlayType;
|
|
328
|
-
exitWarningShown: boolean;
|
|
329
|
-
exitWarningTimestamp: number | null;
|
|
330
|
-
mcpWizardServerType: McpWizardServerType;
|
|
331
|
-
copyModeEnabled: boolean;
|
|
332
|
-
pendingModelSwitch: PendingModelSwitch | null;
|
|
333
|
-
selectedMcpServer: SelectedMcpServer | null;
|
|
334
|
-
historySearch: HistorySearchState;
|
|
335
|
-
promptAddWizard: PromptAddWizardState | null;
|
|
336
|
-
autoApproveEdits: boolean;
|
|
337
|
-
todoExpanded: boolean;
|
|
338
|
-
backgroundTasksRunning: number;
|
|
339
|
-
backgroundTasksExpanded: boolean;
|
|
340
|
-
backgroundTasks: Array<{
|
|
341
|
-
taskId: string;
|
|
342
|
-
status: 'running' | 'completed' | 'failed' | 'cancelled';
|
|
343
|
-
description?: string;
|
|
344
|
-
}>;
|
|
345
|
-
planModeActive: boolean;
|
|
346
|
-
planModeInitialized: boolean;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Session state management
|
|
350
|
-
*/
|
|
351
|
-
export interface SessionState {
|
|
352
|
-
id: string | null;
|
|
353
|
-
hasActiveSession: boolean;
|
|
354
|
-
modelName: string;
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* Root CLI state (UI state only - messages handled separately via useState)
|
|
358
|
-
*/
|
|
359
|
-
export interface CLIState {
|
|
360
|
-
input: InputState;
|
|
361
|
-
ui: UIState;
|
|
362
|
-
session: SessionState;
|
|
363
|
-
approval: ApprovalRequest | null;
|
|
364
|
-
approvalQueue: ApprovalRequest[];
|
|
365
|
-
}
|
|
366
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/state/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEpG;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,gBAAgB,EAAE;QAAE,KA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AAE,eAAe,EAAE,CAAC;CACpC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bracketed Paste Mode utilities
|
|
3
|
-
*
|
|
4
|
-
* Bracketed paste mode tells the terminal to wrap pasted text with escape sequences:
|
|
5
|
-
* - Start: \x1b[200~
|
|
6
|
-
* - End: \x1b[201~
|
|
7
|
-
*
|
|
8
|
-
* This allows the application to distinguish between typed and pasted text,
|
|
9
|
-
* which is essential for handling multi-line pastes correctly (e.g., not
|
|
10
|
-
* treating newlines in pasted text as submit commands).
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Enable bracketed paste mode
|
|
14
|
-
* Call this when starting the CLI to ensure paste detection works
|
|
15
|
-
*/
|
|
16
|
-
export declare function enableBracketedPaste(): void;
|
|
17
|
-
/**
|
|
18
|
-
* Disable bracketed paste mode
|
|
19
|
-
* Call this when exiting the CLI to restore normal terminal behavior
|
|
20
|
-
*/
|
|
21
|
-
export declare function disableBracketedPaste(): void;
|
|
22
|
-
//# sourceMappingURL=bracketedPaste.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bracketedPaste.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/bracketedPaste.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bracketed Paste Mode utilities
|
|
3
|
-
*
|
|
4
|
-
* Bracketed paste mode tells the terminal to wrap pasted text with escape sequences:
|
|
5
|
-
* - Start: \x1b[200~
|
|
6
|
-
* - End: \x1b[201~
|
|
7
|
-
*
|
|
8
|
-
* This allows the application to distinguish between typed and pasted text,
|
|
9
|
-
* which is essential for handling multi-line pastes correctly (e.g., not
|
|
10
|
-
* treating newlines in pasted text as submit commands).
|
|
11
|
-
*/
|
|
12
|
-
const ENABLE_BRACKETED_PASTE = '\x1b[?2004h';
|
|
13
|
-
const DISABLE_BRACKETED_PASTE = '\x1b[?2004l';
|
|
14
|
-
/**
|
|
15
|
-
* Enable bracketed paste mode
|
|
16
|
-
* Call this when starting the CLI to ensure paste detection works
|
|
17
|
-
*/
|
|
18
|
-
export function enableBracketedPaste() {
|
|
19
|
-
process.stdout.write(ENABLE_BRACKETED_PASTE);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Disable bracketed paste mode
|
|
23
|
-
* Call this when exiting the CLI to restore normal terminal behavior
|
|
24
|
-
*/
|
|
25
|
-
export function disableBracketedPaste() {
|
|
26
|
-
process.stdout.write(DISABLE_BRACKETED_PASTE);
|
|
27
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Clipboard utilities for reading images from system clipboard
|
|
3
|
-
*
|
|
4
|
-
* Supports macOS, Windows/WSL, and Linux (Wayland + X11).
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export interface ClipboardImageContent {
|
|
8
|
-
/** Base64-encoded image data */
|
|
9
|
-
data: string;
|
|
10
|
-
/** MIME type of the image */
|
|
11
|
-
mimeType: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Read image from system clipboard
|
|
15
|
-
*
|
|
16
|
-
* @returns ClipboardImageContent if clipboard contains an image, undefined otherwise
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* const image = await readClipboardImage();
|
|
21
|
-
* if (image) {
|
|
22
|
-
* console.log(`Got ${image.mimeType} image, ${image.data.length} bytes base64`);
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare function readClipboardImage(): Promise<ClipboardImageContent | undefined>;
|
|
27
|
-
/**
|
|
28
|
-
* Write text to system clipboard
|
|
29
|
-
*
|
|
30
|
-
* @param text - The text to copy to clipboard
|
|
31
|
-
* @returns true if successful, false otherwise
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* const success = await writeToClipboard('Hello, World!');
|
|
36
|
-
* if (success) {
|
|
37
|
-
* console.log('Copied to clipboard');
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare function writeToClipboard(text: string): Promise<boolean>;
|
|
42
|
-
/**
|
|
43
|
-
* Check if clipboard contains an image (without reading it)
|
|
44
|
-
* This is a lighter-weight check that doesn't require reading the full image data.
|
|
45
|
-
*
|
|
46
|
-
* @returns true if clipboard likely contains an image
|
|
47
|
-
*/
|
|
48
|
-
export declare function clipboardHasImage(): Promise<boolean>;
|
|
49
|
-
//# sourceMappingURL=clipboardUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clipboardUtils.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/clipboardUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,MAAM,WAAW,qBAAqB;IAClC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,CAAC;CACpB;AA6MD;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAgBrF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA4DrE;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC,CA4D1D"}
|