dexto 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/wrapper.js +1 -1
- package/dist/cli/auth/dexto-api-key.d.ts +34 -0
- package/dist/cli/auth/dexto-api-key.d.ts.map +1 -0
- package/dist/cli/auth/dexto-api-key.js +161 -0
- package/dist/cli/auth/index.d.ts +2 -1
- package/dist/cli/auth/index.d.ts.map +1 -1
- package/dist/cli/auth/index.js +2 -1
- package/dist/cli/auth/oauth.d.ts +10 -0
- package/dist/cli/auth/oauth.d.ts.map +1 -1
- package/dist/cli/auth/oauth.js +142 -39
- package/dist/cli/auth/service.d.ts +1 -0
- package/dist/cli/auth/service.d.ts.map +1 -1
- package/dist/cli/auth/service.js +1 -0
- package/dist/cli/commands/auth/login.d.ts.map +1 -1
- package/dist/cli/commands/auth/login.js +40 -105
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +157 -120
- package/dist/cli/utils/config-validation.js +3 -3
- package/dist/cli/utils/options.d.ts.map +1 -1
- package/dist/cli/utils/options.js +6 -0
- package/dist/cli/utils/scaffolding-utils.d.ts.map +1 -1
- package/dist/cli/utils/scaffolding-utils.js +38 -4
- package/dist/index-main.js +78 -11
- package/dist/index.js +12 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +18 -11
- package/dist/webui/assets/index-d6c-yJNn.js +2059 -0
- package/dist/webui/assets/index-yKdFLN1k.css +1 -0
- package/dist/webui/assets/react-vendor-l0sNRNKZ.js +1 -0
- package/dist/webui/assets/tanstack-BjCuxfF-.js +41 -0
- package/dist/webui/index.html +3 -4
- package/package.json +13 -23
- package/dist/cli/assets/sounds/SOURCES.md +0 -35
- package/dist/cli/assets/sounds/boot.wav +0 -0
- package/dist/cli/assets/sounds/chime.wav +0 -0
- package/dist/cli/assets/sounds/coin.wav +0 -0
- package/dist/cli/assets/sounds/confirm.wav +0 -0
- package/dist/cli/assets/sounds/levelup.wav +0 -0
- package/dist/cli/assets/sounds/ping.wav +0 -0
- package/dist/cli/assets/sounds/powerup.wav +0 -0
- package/dist/cli/assets/sounds/startup.wav +0 -0
- package/dist/cli/assets/sounds/success.wav +0 -0
- package/dist/cli/assets/sounds/treasure.wav +0 -0
- package/dist/cli/assets/sounds/win.wav +0 -0
- package/dist/cli/commands/interactive-commands/auth/index.d.ts +0 -12
- package/dist/cli/commands/interactive-commands/auth/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/auth/index.js +0 -20
- package/dist/cli/commands/interactive-commands/command-parser.d.ts +0 -56
- package/dist/cli/commands/interactive-commands/command-parser.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/command-parser.js +0 -173
- package/dist/cli/commands/interactive-commands/commands.d.ts +0 -52
- package/dist/cli/commands/interactive-commands/commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/commands.js +0 -142
- package/dist/cli/commands/interactive-commands/documentation-commands.d.ts +0 -15
- package/dist/cli/commands/interactive-commands/documentation-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/documentation-commands.js +0 -39
- package/dist/cli/commands/interactive-commands/exit-handler.d.ts +0 -12
- package/dist/cli/commands/interactive-commands/exit-handler.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/exit-handler.js +0 -20
- package/dist/cli/commands/interactive-commands/exit-stats.d.ts +0 -24
- package/dist/cli/commands/interactive-commands/exit-stats.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/exit-stats.js +0 -17
- package/dist/cli/commands/interactive-commands/export/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/export/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/export/index.js +0 -21
- package/dist/cli/commands/interactive-commands/general-commands.d.ts +0 -22
- package/dist/cli/commands/interactive-commands/general-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/general-commands.js +0 -508
- package/dist/cli/commands/interactive-commands/mcp/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/mcp/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/mcp/index.js +0 -18
- package/dist/cli/commands/interactive-commands/model/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/model/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/model/index.js +0 -19
- package/dist/cli/commands/interactive-commands/plugin/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/plugin/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/plugin/index.js +0 -18
- package/dist/cli/commands/interactive-commands/prompt-commands.d.ts +0 -25
- package/dist/cli/commands/interactive-commands/prompt-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/prompt-commands.js +0 -284
- package/dist/cli/commands/interactive-commands/session/index.d.ts +0 -16
- package/dist/cli/commands/interactive-commands/session/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/session/index.js +0 -15
- package/dist/cli/commands/interactive-commands/session/session-commands.d.ts +0 -32
- package/dist/cli/commands/interactive-commands/session/session-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/session/session-commands.js +0 -65
- package/dist/cli/commands/interactive-commands/system/index.d.ts +0 -13
- package/dist/cli/commands/interactive-commands/system/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/system/index.js +0 -12
- package/dist/cli/commands/interactive-commands/system/system-commands.d.ts +0 -6
- package/dist/cli/commands/interactive-commands/system/system-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/system/system-commands.js +0 -188
- package/dist/cli/commands/interactive-commands/tool-commands.d.ts +0 -15
- package/dist/cli/commands/interactive-commands/tool-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/tool-commands.js +0 -24
- package/dist/cli/commands/interactive-commands/utils/arg-parser.d.ts +0 -57
- package/dist/cli/commands/interactive-commands/utils/arg-parser.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/arg-parser.js +0 -81
- package/dist/cli/commands/interactive-commands/utils/command-output.d.ts +0 -40
- package/dist/cli/commands/interactive-commands/utils/command-output.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/command-output.js +0 -56
- package/dist/cli/commands/interactive-commands/utils/format-output.d.ts +0 -14
- package/dist/cli/commands/interactive-commands/utils/format-output.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/utils/format-output.js +0 -18
- package/dist/cli/ink-cli/InkCLIRefactored.d.ts +0 -52
- package/dist/cli/ink-cli/InkCLIRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/InkCLIRefactored.js +0 -231
- package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts +0 -44
- package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ApprovalPrompt.js +0 -323
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.d.ts +0 -18
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/BackgroundTasksPanel.js +0 -48
- package/dist/cli/ink-cli/components/CustomInput.d.ts +0 -17
- package/dist/cli/ink-cli/components/CustomInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/CustomInput.js +0 -51
- package/dist/cli/ink-cli/components/CustomTextInput.d.ts +0 -16
- package/dist/cli/ink-cli/components/CustomTextInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/CustomTextInput.js +0 -36
- package/dist/cli/ink-cli/components/EditableMultiLineInput.d.ts +0 -19
- package/dist/cli/ink-cli/components/EditableMultiLineInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/EditableMultiLineInput.js +0 -120
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts +0 -24
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ElicitationForm.js +0 -592
- package/dist/cli/ink-cli/components/ErrorBoundary.d.ts +0 -20
- package/dist/cli/ink-cli/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ErrorBoundary.js +0 -29
- package/dist/cli/ink-cli/components/Footer.d.ts +0 -22
- package/dist/cli/ink-cli/components/Footer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/Footer.js +0 -76
- package/dist/cli/ink-cli/components/HistorySearchBar.d.ts +0 -17
- package/dist/cli/ink-cli/components/HistorySearchBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/HistorySearchBar.js +0 -8
- package/dist/cli/ink-cli/components/MultiLineInput.d.ts +0 -12
- package/dist/cli/ink-cli/components/MultiLineInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/MultiLineInput.js +0 -27
- package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts +0 -26
- package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/ResourceAutocomplete.js +0 -385
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts +0 -28
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.js +0 -412
- package/dist/cli/ink-cli/components/StatusBar.d.ts +0 -41
- package/dist/cli/ink-cli/components/StatusBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/StatusBar.js +0 -116
- package/dist/cli/ink-cli/components/TextBufferInput.d.ts +0 -52
- package/dist/cli/ink-cli/components/TextBufferInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/TextBufferInput.js +0 -490
- package/dist/cli/ink-cli/components/TodoPanel.d.ts +0 -26
- package/dist/cli/ink-cli/components/TodoPanel.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/TodoPanel.js +0 -62
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.d.ts +0 -29
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.js +0 -98
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts +0 -37
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/BaseSelector.js +0 -128
- package/dist/cli/ink-cli/components/base/index.d.ts +0 -6
- package/dist/cli/ink-cli/components/base/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/base/index.js +0 -5
- package/dist/cli/ink-cli/components/chat/ChatView.d.ts +0 -19
- package/dist/cli/ink-cli/components/chat/ChatView.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/ChatView.js +0 -11
- package/dist/cli/ink-cli/components/chat/Footer.d.ts +0 -9
- package/dist/cli/ink-cli/components/chat/Footer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/Footer.js +0 -8
- package/dist/cli/ink-cli/components/chat/Header.d.ts +0 -18
- package/dist/cli/ink-cli/components/chat/Header.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/Header.js +0 -16
- package/dist/cli/ink-cli/components/chat/MessageItem.d.ts +0 -21
- package/dist/cli/ink-cli/components/chat/MessageItem.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/MessageItem.js +0 -182
- package/dist/cli/ink-cli/components/chat/MessageList.d.ts +0 -16
- package/dist/cli/ink-cli/components/chat/MessageList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/MessageList.js +0 -20
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts +0 -16
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.js +0 -27
- package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts +0 -18
- package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/ToolIcon.js +0 -36
- package/dist/cli/ink-cli/components/chat/index.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/index.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.js +0 -15
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.js +0 -37
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.js +0 -9
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.js +0 -29
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts +0 -45
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.js +0 -38
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts +0 -10
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.js +0 -6
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts +0 -13
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.js +0 -12
- package/dist/cli/ink-cli/components/input/InputArea.d.ts +0 -46
- package/dist/cli/ink-cli/components/input/InputArea.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/input/InputArea.js +0 -6
- package/dist/cli/ink-cli/components/input/index.d.ts +0 -5
- package/dist/cli/ink-cli/components/input/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/input/index.js +0 -4
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts +0 -27
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.js +0 -182
- package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts +0 -29
- package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/StaticCLI.js +0 -114
- package/dist/cli/ink-cli/components/modes/index.d.ts +0 -10
- package/dist/cli/ink-cli/components/modes/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/modes/index.js +0 -9
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.js +0 -92
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.d.ts +0 -13
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/CommandOutputOverlay.js +0 -60
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ContextStatsOverlay.js +0 -241
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.js +0 -301
- package/dist/cli/ink-cli/components/overlays/ExportWizard.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/ExportWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ExportWizard.js +0 -308
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts +0 -23
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.js +0 -70
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/MarketplaceAddPrompt.js +0 -81
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.d.ts +0 -31
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/MarketplaceBrowser.js +0 -297
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.js +0 -59
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.js +0 -73
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.js +0 -51
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.js +0 -215
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.js +0 -80
- package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpSelector.js +0 -52
- package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts +0 -28
- package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpServerActions.js +0 -93
- package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/McpServerList.js +0 -116
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts +0 -28
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.js +0 -743
- package/dist/cli/ink-cli/components/overlays/PluginActions.d.ts +0 -27
- package/dist/cli/ink-cli/components/overlays/PluginActions.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginActions.js +0 -66
- package/dist/cli/ink-cli/components/overlays/PluginList.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/PluginList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginList.js +0 -70
- package/dist/cli/ink-cli/components/overlays/PluginManager.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/PluginManager.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PluginManager.js +0 -63
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts +0 -22
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.js +0 -52
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts +0 -29
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.js +0 -166
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts +0 -27
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.js +0 -119
- package/dist/cli/ink-cli/components/overlays/PromptList.d.ts +0 -33
- package/dist/cli/ink-cli/components/overlays/PromptList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/PromptList.js +0 -143
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts +0 -23
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.js +0 -189
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionRenameOverlay.js +0 -63
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.js +0 -126
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.js +0 -42
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.d.ts +0 -21
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/SoundsSelector.js +0 -566
- package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/StreamSelector.js +0 -58
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts +0 -26
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.js +0 -697
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts +0 -25
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.js +0 -604
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts +0 -15
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.js +0 -14
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts +0 -42
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.js +0 -547
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts +0 -25
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.js +0 -29
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts +0 -17
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.js +0 -11
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts +0 -20
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.js +0 -10
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts +0 -30
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.js +0 -13
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts +0 -8
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.js +0 -7
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts +0 -85
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.js +0 -38
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.js +0 -65
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts +0 -30
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.js +0 -67
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/FileRenderer.js +0 -37
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.js +0 -26
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts +0 -20
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.js +0 -26
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts +0 -21
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.js +0 -15
- package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts +0 -61
- package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/diff-shared.js +0 -158
- package/dist/cli/ink-cli/components/renderers/index.d.ts +0 -28
- package/dist/cli/ink-cli/components/renderers/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/renderers/index.js +0 -36
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.d.ts +0 -7
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/FocusOverlayFrame.js +0 -8
- package/dist/cli/ink-cli/components/shared/HintBar.d.ts +0 -6
- package/dist/cli/ink-cli/components/shared/HintBar.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/HintBar.js +0 -6
- package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts +0 -38
- package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/MarkdownText.js +0 -389
- package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts +0 -44
- package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/VirtualizedList.js +0 -300
- package/dist/cli/ink-cli/components/shared/text-buffer.d.ts +0 -185
- package/dist/cli/ink-cli/components/shared/text-buffer.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/shared/text-buffer.js +0 -1338
- package/dist/cli/ink-cli/constants/processingPhrases.d.ts +0 -10
- package/dist/cli/ink-cli/constants/processingPhrases.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/processingPhrases.js +0 -92
- package/dist/cli/ink-cli/constants/spinnerFrames.d.ts +0 -2
- package/dist/cli/ink-cli/constants/spinnerFrames.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/spinnerFrames.js +0 -1
- package/dist/cli/ink-cli/constants/tips.d.ts +0 -15
- package/dist/cli/ink-cli/constants/tips.d.ts.map +0 -1
- package/dist/cli/ink-cli/constants/tips.js +0 -58
- package/dist/cli/ink-cli/containers/InputContainer.d.ts +0 -62
- package/dist/cli/ink-cli/containers/InputContainer.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/InputContainer.js +0 -643
- package/dist/cli/ink-cli/containers/OverlayContainer.d.ts +0 -42
- package/dist/cli/ink-cli/containers/OverlayContainer.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/OverlayContainer.js +0 -1840
- package/dist/cli/ink-cli/containers/index.d.ts +0 -6
- package/dist/cli/ink-cli/containers/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/containers/index.js +0 -5
- package/dist/cli/ink-cli/contexts/KeypressContext.d.ts +0 -36
- package/dist/cli/ink-cli/contexts/KeypressContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/KeypressContext.js +0 -461
- package/dist/cli/ink-cli/contexts/MouseContext.d.ts +0 -27
- package/dist/cli/ink-cli/contexts/MouseContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/MouseContext.js +0 -102
- package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts +0 -33
- package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/ScrollProvider.js +0 -170
- package/dist/cli/ink-cli/contexts/SoundContext.d.ts +0 -23
- package/dist/cli/ink-cli/contexts/SoundContext.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/SoundContext.js +0 -22
- package/dist/cli/ink-cli/contexts/index.d.ts +0 -8
- package/dist/cli/ink-cli/contexts/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/contexts/index.js +0 -7
- package/dist/cli/ink-cli/hooks/index.d.ts +0 -12
- package/dist/cli/ink-cli/hooks/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/index.js +0 -14
- package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts +0 -49
- package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useAgentEvents.js +0 -369
- package/dist/cli/ink-cli/hooks/useAnimationTick.d.ts +0 -11
- package/dist/cli/ink-cli/hooks/useAnimationTick.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useAnimationTick.js +0 -54
- package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts +0 -14
- package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useBatchedScroll.js +0 -25
- package/dist/cli/ink-cli/hooks/useCLIState.d.ts +0 -52
- package/dist/cli/ink-cli/hooks/useCLIState.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useCLIState.js +0 -224
- package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts +0 -24
- package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useElapsedTime.js +0 -69
- package/dist/cli/ink-cli/hooks/useGitBranch.d.ts +0 -13
- package/dist/cli/ink-cli/hooks/useGitBranch.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useGitBranch.js +0 -35
- package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts +0 -61
- package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useHistorySearch.js +0 -210
- package/dist/cli/ink-cli/hooks/useInputHistory.d.ts +0 -18
- package/dist/cli/ink-cli/hooks/useInputHistory.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useInputHistory.js +0 -26
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts +0 -136
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.js +0 -715
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts +0 -21
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.js +0 -80
- package/dist/cli/ink-cli/hooks/useKeypress.d.ts +0 -18
- package/dist/cli/ink-cli/hooks/useKeypress.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useKeypress.js +0 -26
- package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts +0 -30
- package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/usePhraseCycler.js +0 -68
- package/dist/cli/ink-cli/hooks/useStreaming.d.ts +0 -19
- package/dist/cli/ink-cli/hooks/useStreaming.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useStreaming.js +0 -26
- package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts +0 -14
- package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useTerminalSize.js +0 -31
- package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts +0 -46
- package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts.map +0 -1
- package/dist/cli/ink-cli/hooks/useTokenCounter.js +0 -122
- package/dist/cli/ink-cli/services/CommandService.d.ts +0 -58
- package/dist/cli/ink-cli/services/CommandService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/CommandService.js +0 -64
- package/dist/cli/ink-cli/services/InputService.d.ts +0 -40
- package/dist/cli/ink-cli/services/InputService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/InputService.js +0 -87
- package/dist/cli/ink-cli/services/MessageService.d.ts +0 -35
- package/dist/cli/ink-cli/services/MessageService.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/MessageService.js +0 -49
- package/dist/cli/ink-cli/services/index.d.ts +0 -8
- package/dist/cli/ink-cli/services/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/index.js +0 -7
- package/dist/cli/ink-cli/services/processStream.d.ts +0 -75
- package/dist/cli/ink-cli/services/processStream.d.ts.map +0 -1
- package/dist/cli/ink-cli/services/processStream.js +0 -951
- package/dist/cli/ink-cli/state/actions.d.ts +0 -124
- package/dist/cli/ink-cli/state/actions.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/actions.js +0 -8
- package/dist/cli/ink-cli/state/index.d.ts +0 -10
- package/dist/cli/ink-cli/state/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/index.js +0 -8
- package/dist/cli/ink-cli/state/initialState.d.ts +0 -12
- package/dist/cli/ink-cli/state/initialState.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/initialState.js +0 -58
- package/dist/cli/ink-cli/state/reducer.d.ts +0 -15
- package/dist/cli/ink-cli/state/reducer.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/reducer.js +0 -341
- package/dist/cli/ink-cli/state/streaming-state.d.ts +0 -27
- package/dist/cli/ink-cli/state/streaming-state.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/streaming-state.js +0 -39
- package/dist/cli/ink-cli/state/types.d.ts +0 -378
- package/dist/cli/ink-cli/state/types.d.ts.map +0 -1
- package/dist/cli/ink-cli/state/types.js +0 -5
- package/dist/cli/ink-cli/utils/bracketedPaste.d.ts +0 -22
- package/dist/cli/ink-cli/utils/bracketedPaste.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/bracketedPaste.js +0 -27
- package/dist/cli/ink-cli/utils/clipboardUtils.d.ts +0 -49
- package/dist/cli/ink-cli/utils/clipboardUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/clipboardUtils.js +0 -356
- package/dist/cli/ink-cli/utils/commandOverlays.d.ts +0 -33
- package/dist/cli/ink-cli/utils/commandOverlays.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/commandOverlays.js +0 -85
- package/dist/cli/ink-cli/utils/debugLog.d.ts +0 -38
- package/dist/cli/ink-cli/utils/debugLog.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/debugLog.js +0 -66
- package/dist/cli/ink-cli/utils/elicitationSchema.d.ts +0 -11
- package/dist/cli/ink-cli/utils/elicitationSchema.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/elicitationSchema.js +0 -80
- package/dist/cli/ink-cli/utils/idGenerator.d.ts +0 -10
- package/dist/cli/ink-cli/utils/idGenerator.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/idGenerator.js +0 -12
- package/dist/cli/ink-cli/utils/index.d.ts +0 -9
- package/dist/cli/ink-cli/utils/index.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/index.js +0 -13
- package/dist/cli/ink-cli/utils/input.d.ts +0 -25
- package/dist/cli/ink-cli/utils/input.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/input.js +0 -56
- package/dist/cli/ink-cli/utils/inputParsing.d.ts +0 -31
- package/dist/cli/ink-cli/utils/inputParsing.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/inputParsing.js +0 -70
- package/dist/cli/ink-cli/utils/llm-provider-display.d.ts +0 -3
- package/dist/cli/ink-cli/utils/llm-provider-display.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/llm-provider-display.js +0 -22
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts +0 -125
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/messageFormatting.js +0 -485
- package/dist/cli/ink-cli/utils/mouse.d.ts +0 -61
- package/dist/cli/ink-cli/utils/mouse.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/mouse.js +0 -209
- package/dist/cli/ink-cli/utils/overlayPresentation.d.ts +0 -19
- package/dist/cli/ink-cli/utils/overlayPresentation.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/overlayPresentation.js +0 -33
- package/dist/cli/ink-cli/utils/overlaySizing.d.ts +0 -19
- package/dist/cli/ink-cli/utils/overlaySizing.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/overlaySizing.js +0 -11
- package/dist/cli/ink-cli/utils/soundNotification.d.ts +0 -77
- package/dist/cli/ink-cli/utils/soundNotification.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/soundNotification.js +0 -226
- package/dist/cli/ink-cli/utils/streamSplitter.d.ts +0 -44
- package/dist/cli/ink-cli/utils/streamSplitter.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/streamSplitter.js +0 -154
- package/dist/cli/ink-cli/utils/textUtils.d.ts +0 -63
- package/dist/cli/ink-cli/utils/textUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/textUtils.js +0 -248
- package/dist/cli/ink-cli/utils/toolUtils.d.ts +0 -20
- package/dist/cli/ink-cli/utils/toolUtils.d.ts.map +0 -1
- package/dist/cli/ink-cli/utils/toolUtils.js +0 -25
- package/dist/webui/assets/index-C9JXwpvo.css +0 -1
- package/dist/webui/assets/index-CKhumsZA.js +0 -2059
- package/dist/webui/assets/react-vendor-gH-7aFTg.js +0 -17
- package/dist/webui/assets/tanstack-Br79RQ-n.js +0 -25
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Base Autocomplete Component
|
|
4
|
-
* Reusable autocomplete with filtering, scoring, and keyboard navigation
|
|
5
|
-
* Used by SlashCommandAutocomplete and ResourceAutocomplete
|
|
6
|
-
*/
|
|
7
|
-
import { useState, useEffect, useRef, useMemo } from 'react';
|
|
8
|
-
import { Box, Text, useInput } from 'ink';
|
|
9
|
-
/**
|
|
10
|
-
* Generic autocomplete component with filtering, scoring, and keyboard navigation
|
|
11
|
-
*/
|
|
12
|
-
export function BaseAutocomplete({ items, query, isVisible, isLoading = false, onSelect, onLoadIntoInput, onClose, filterFn, scoreFn, formatItem, formatLoadText, title, maxVisibleItems = 10, loadingMessage = 'Loading...', emptyMessage = 'No matches found', borderColor = 'cyan', }) {
|
|
13
|
-
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
14
|
-
const [scrollOffset, setScrollOffset] = useState(0);
|
|
15
|
-
const selectedIndexRef = useRef(0);
|
|
16
|
-
// Keep ref in sync
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
selectedIndexRef.current = selectedIndex;
|
|
19
|
-
}, [selectedIndex]);
|
|
20
|
-
// Filter and sort items
|
|
21
|
-
const filteredItems = useMemo(() => {
|
|
22
|
-
if (!query)
|
|
23
|
-
return items;
|
|
24
|
-
return items
|
|
25
|
-
.filter((item) => filterFn(item, query))
|
|
26
|
-
.sort((a, b) => {
|
|
27
|
-
const scoreA = scoreFn(a, query);
|
|
28
|
-
const scoreB = scoreFn(b, query);
|
|
29
|
-
return scoreB - scoreA; // Higher score first
|
|
30
|
-
});
|
|
31
|
-
}, [items, query, filterFn, scoreFn]);
|
|
32
|
-
// Reset selection when items change
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
setSelectedIndex(0);
|
|
35
|
-
setScrollOffset(0);
|
|
36
|
-
}, [filteredItems.length]);
|
|
37
|
-
// Auto-scroll to keep selected item visible
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (selectedIndex < scrollOffset) {
|
|
40
|
-
setScrollOffset(selectedIndex);
|
|
41
|
-
}
|
|
42
|
-
else if (selectedIndex >= scrollOffset + maxVisibleItems) {
|
|
43
|
-
setScrollOffset(Math.max(0, selectedIndex - maxVisibleItems + 1));
|
|
44
|
-
}
|
|
45
|
-
}, [selectedIndex, scrollOffset, maxVisibleItems]);
|
|
46
|
-
// Calculate visible items
|
|
47
|
-
const visibleItems = useMemo(() => {
|
|
48
|
-
return filteredItems.slice(scrollOffset, scrollOffset + maxVisibleItems);
|
|
49
|
-
}, [filteredItems, scrollOffset, maxVisibleItems]);
|
|
50
|
-
// Handle keyboard navigation
|
|
51
|
-
useInput((input, key) => {
|
|
52
|
-
if (!isVisible)
|
|
53
|
-
return;
|
|
54
|
-
const itemsLength = filteredItems.length;
|
|
55
|
-
if (itemsLength === 0)
|
|
56
|
-
return;
|
|
57
|
-
if (key.upArrow) {
|
|
58
|
-
setSelectedIndex((prev) => (prev - 1 + itemsLength) % itemsLength);
|
|
59
|
-
}
|
|
60
|
-
if (key.downArrow) {
|
|
61
|
-
setSelectedIndex((prev) => (prev + 1) % itemsLength);
|
|
62
|
-
}
|
|
63
|
-
if (key.escape) {
|
|
64
|
-
onClose();
|
|
65
|
-
}
|
|
66
|
-
// Tab: Load into input for editing
|
|
67
|
-
if (key.tab && onLoadIntoInput && formatLoadText && itemsLength > 0) {
|
|
68
|
-
const item = filteredItems[selectedIndexRef.current];
|
|
69
|
-
if (item) {
|
|
70
|
-
onLoadIntoInput(formatLoadText(item));
|
|
71
|
-
}
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
// Enter: Select item
|
|
75
|
-
if (key.return && itemsLength > 0) {
|
|
76
|
-
const item = filteredItems[selectedIndexRef.current];
|
|
77
|
-
if (item) {
|
|
78
|
-
onSelect(item);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}, { isActive: isVisible });
|
|
82
|
-
if (!isVisible)
|
|
83
|
-
return null;
|
|
84
|
-
if (isLoading) {
|
|
85
|
-
return (_jsx(Box, { borderStyle: "single", borderColor: "gray", paddingX: 1, paddingY: 1, children: _jsx(Text, { color: "gray", children: loadingMessage }) }));
|
|
86
|
-
}
|
|
87
|
-
if (filteredItems.length === 0) {
|
|
88
|
-
return (_jsx(Box, { borderStyle: "single", borderColor: "gray", paddingX: 1, paddingY: 1, children: _jsx(Text, { color: "gray", children: emptyMessage }) }));
|
|
89
|
-
}
|
|
90
|
-
const hasMoreAbove = scrollOffset > 0;
|
|
91
|
-
const hasMoreBelow = scrollOffset + maxVisibleItems < filteredItems.length;
|
|
92
|
-
const totalItems = filteredItems.length;
|
|
93
|
-
return (_jsxs(Box, { borderStyle: "single", borderColor: borderColor, flexDirection: "column", height: Math.min(maxVisibleItems + 3, totalItems + 3), children: [_jsx(Box, { paddingX: 1, paddingY: 0, children: _jsxs(Text, { color: "gray", children: [title, " (", selectedIndex + 1, "/", totalItems, ") - \u2191\u2193 navigate", onLoadIntoInput && ', Tab load', ', Enter select, Esc close'] }) }), hasMoreAbove && (_jsx(Box, { paddingX: 1, paddingY: 0, children: _jsxs(Text, { color: "gray", children: ["... \u2191 (", scrollOffset, " more above)"] }) })), visibleItems.map((item, visibleIndex) => {
|
|
94
|
-
const actualIndex = scrollOffset + visibleIndex;
|
|
95
|
-
const isSelected = actualIndex === selectedIndex;
|
|
96
|
-
return (_jsx(Box, { paddingX: 1, paddingY: 0, children: formatItem(item, isSelected) }, actualIndex));
|
|
97
|
-
}), hasMoreBelow && (_jsx(Box, { paddingX: 1, paddingY: 0, children: _jsxs(Text, { color: "gray", children: ["... \u2193 (", totalItems - scrollOffset - maxVisibleItems, " more below)"] }) }))] }));
|
|
98
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base Selector Component
|
|
3
|
-
* Reusable selector with keyboard navigation for lists
|
|
4
|
-
* Used by ModelSelector and SessionSelector
|
|
5
|
-
*/
|
|
6
|
-
import { type ReactNode } from 'react';
|
|
7
|
-
import type { Key } from '../../hooks/useInputOrchestrator.js';
|
|
8
|
-
export interface BaseSelectorProps<T> {
|
|
9
|
-
items: T[];
|
|
10
|
-
isVisible: boolean;
|
|
11
|
-
isLoading?: boolean;
|
|
12
|
-
selectedIndex: number;
|
|
13
|
-
onSelectIndex: (index: number) => void;
|
|
14
|
-
onSelect: (item: T) => void;
|
|
15
|
-
onClose: () => void;
|
|
16
|
-
formatItem: (item: T, isSelected: boolean) => ReactNode;
|
|
17
|
-
title: string;
|
|
18
|
-
maxVisibleItems?: number;
|
|
19
|
-
loadingMessage?: string;
|
|
20
|
-
emptyMessage?: string;
|
|
21
|
-
borderColor?: string;
|
|
22
|
-
onTab?: (item: T) => void;
|
|
23
|
-
supportsTab?: boolean;
|
|
24
|
-
instructionsOverride?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface BaseSelectorHandle {
|
|
27
|
-
handleInput: (input: string, key: Key) => boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Generic selector component with keyboard navigation and scrolling
|
|
31
|
-
*/
|
|
32
|
-
declare function BaseSelectorInner<T>({ items, isVisible, isLoading, selectedIndex, onSelectIndex, onSelect, onClose, formatItem, title, maxVisibleItems, loadingMessage, emptyMessage, borderColor, onTab, supportsTab, instructionsOverride, }: BaseSelectorProps<T>, ref: React.Ref<BaseSelectorHandle>): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
-
export declare const BaseSelector: <T>(props: BaseSelectorProps<T> & {
|
|
34
|
-
ref?: React.Ref<BaseSelectorHandle>;
|
|
35
|
-
}) => ReturnType<typeof BaseSelectorInner>;
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=BaseSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSelector.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/base/BaseSelector.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAQH,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAK/D,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAChC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,KAAK,SAAS,CAAC;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,kBAAkB;IAC/B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAED;;GAEG;AACH,iBAAS,iBAAiB,CAAC,CAAC,EACxB,EACI,KAAK,EACL,SAAS,EACT,SAAiB,EACjB,aAAa,EACb,aAAa,EACb,QAAQ,EACR,OAAO,EACP,UAAU,EACV,KAAK,EACL,eAAmB,EACnB,cAA6B,EAC7B,YAA+B,EAC/B,WAAoB,EACpB,KAAK,EACL,WAAmB,EACnB,oBAAoB,GACvB,EAAE,iBAAiB,CAAC,CAAC,CAAC,EACvB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,kDA8LrC;AAGD,eAAO,MAAM,YAAY,EAAoC,CAAC,CAAC,EAC3D,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;CAAE,KACpE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Base Selector Component
|
|
4
|
-
* Reusable selector with keyboard navigation for lists
|
|
5
|
-
* Used by ModelSelector and SessionSelector
|
|
6
|
-
*/
|
|
7
|
-
import { useState, useEffect, useRef, useMemo, useCallback, forwardRef, useImperativeHandle, } from 'react';
|
|
8
|
-
import { Box, Text } from 'ink';
|
|
9
|
-
import { useTerminalSize } from '../../hooks/useTerminalSize.js';
|
|
10
|
-
import { getMaxVisibleItemsForTerminalRows } from '../../utils/overlaySizing.js';
|
|
11
|
-
import { HintBar } from '../shared/HintBar.js';
|
|
12
|
-
/**
|
|
13
|
-
* Generic selector component with keyboard navigation and scrolling
|
|
14
|
-
*/
|
|
15
|
-
function BaseSelectorInner({ items, isVisible, isLoading = false, selectedIndex, onSelectIndex, onSelect, onClose, formatItem, title, maxVisibleItems = 8, loadingMessage = 'Loading...', emptyMessage = 'No items found', borderColor = 'cyan', onTab, supportsTab = false, instructionsOverride, }, ref) {
|
|
16
|
-
const { rows: terminalRows } = useTerminalSize();
|
|
17
|
-
const viewportItems = useMemo(() => {
|
|
18
|
-
return getMaxVisibleItemsForTerminalRows({
|
|
19
|
-
rows: terminalRows,
|
|
20
|
-
hardCap: maxVisibleItems,
|
|
21
|
-
reservedRows: 14,
|
|
22
|
-
});
|
|
23
|
-
}, [terminalRows, maxVisibleItems]);
|
|
24
|
-
// Track scroll offset as state, but derive during render when needed
|
|
25
|
-
const [scrollOffsetState, setScrollOffset] = useState(0);
|
|
26
|
-
const selectedIndexRef = useRef(selectedIndex);
|
|
27
|
-
const prevItemsLengthRef = useRef(items.length);
|
|
28
|
-
// Keep ref in sync
|
|
29
|
-
selectedIndexRef.current = selectedIndex;
|
|
30
|
-
// Derive the correct scroll offset during render (no second render needed)
|
|
31
|
-
// This handles both selectedIndex changes from parent AND items length changes
|
|
32
|
-
const scrollOffset = useMemo(() => {
|
|
33
|
-
const itemsChanged = items.length !== prevItemsLengthRef.current;
|
|
34
|
-
// Reset scroll if items changed significantly
|
|
35
|
-
if (itemsChanged && items.length <= viewportItems) {
|
|
36
|
-
return 0;
|
|
37
|
-
}
|
|
38
|
-
let offset = scrollOffsetState;
|
|
39
|
-
// Adjust offset to keep selectedIndex visible
|
|
40
|
-
if (selectedIndex < offset) {
|
|
41
|
-
offset = selectedIndex;
|
|
42
|
-
}
|
|
43
|
-
else if (selectedIndex >= offset + viewportItems) {
|
|
44
|
-
offset = Math.max(0, selectedIndex - viewportItems + 1);
|
|
45
|
-
}
|
|
46
|
-
// Clamp to valid range
|
|
47
|
-
const maxOffset = Math.max(0, items.length - viewportItems);
|
|
48
|
-
return Math.min(maxOffset, Math.max(0, offset));
|
|
49
|
-
}, [selectedIndex, items.length, viewportItems, scrollOffsetState]);
|
|
50
|
-
// Update refs after render (not during useMemo which can run multiple times)
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
prevItemsLengthRef.current = items.length;
|
|
53
|
-
}, [items.length]);
|
|
54
|
-
// Sync scroll offset state after render if it changed
|
|
55
|
-
// This ensures the stored state is correct for next navigation
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
if (scrollOffset !== scrollOffsetState) {
|
|
58
|
-
setScrollOffset(scrollOffset);
|
|
59
|
-
}
|
|
60
|
-
}, [scrollOffset, scrollOffsetState]);
|
|
61
|
-
// Handle selection change - only updates parent state
|
|
62
|
-
const handleSelectIndex = useCallback((newIndex) => {
|
|
63
|
-
selectedIndexRef.current = newIndex;
|
|
64
|
-
onSelectIndex(newIndex);
|
|
65
|
-
}, [onSelectIndex]);
|
|
66
|
-
// Calculate visible items
|
|
67
|
-
const visibleItems = useMemo(() => {
|
|
68
|
-
return items.slice(scrollOffset, scrollOffset + viewportItems);
|
|
69
|
-
}, [items, scrollOffset, viewportItems]);
|
|
70
|
-
// Expose handleInput method via ref
|
|
71
|
-
useImperativeHandle(ref, () => ({
|
|
72
|
-
handleInput: (_input, key) => {
|
|
73
|
-
if (!isVisible)
|
|
74
|
-
return false;
|
|
75
|
-
// Escape always works, regardless of item count
|
|
76
|
-
if (key.escape) {
|
|
77
|
-
onClose();
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
const itemsLength = items.length;
|
|
81
|
-
if (isLoading || itemsLength === 0)
|
|
82
|
-
return true;
|
|
83
|
-
if (key.upArrow) {
|
|
84
|
-
const nextIndex = (selectedIndexRef.current - 1 + itemsLength) % itemsLength;
|
|
85
|
-
handleSelectIndex(nextIndex);
|
|
86
|
-
return true;
|
|
87
|
-
}
|
|
88
|
-
if (key.downArrow) {
|
|
89
|
-
const nextIndex = (selectedIndexRef.current + 1) % itemsLength;
|
|
90
|
-
handleSelectIndex(nextIndex);
|
|
91
|
-
return true;
|
|
92
|
-
}
|
|
93
|
-
if (key.tab && onTab) {
|
|
94
|
-
const item = items[selectedIndexRef.current];
|
|
95
|
-
if (item !== undefined) {
|
|
96
|
-
onTab(item);
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
if (key.return && itemsLength > 0) {
|
|
101
|
-
const item = items[selectedIndexRef.current];
|
|
102
|
-
if (item !== undefined) {
|
|
103
|
-
onSelect(item);
|
|
104
|
-
return true;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return false;
|
|
108
|
-
},
|
|
109
|
-
}), [isVisible, isLoading, items, handleSelectIndex, onClose, onSelect, onTab]);
|
|
110
|
-
if (!isVisible)
|
|
111
|
-
return null;
|
|
112
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { paddingX: 0, paddingY: 0, children: _jsx(Text, { color: borderColor, bold: true, children: title }) }), _jsx(Box, { flexDirection: "column", height: viewportItems, marginTop: 1, children: isLoading ? (_jsxs(_Fragment, { children: [_jsx(Box, { paddingX: 0, paddingY: 0, children: _jsx(Text, { color: "gray", children: loadingMessage }) }), Array.from({ length: Math.max(0, viewportItems - 1) }, (_, index) => (_jsx(Box, { paddingX: 0, paddingY: 0, children: _jsx(Text, { children: " " }) }, `loading-spacer-${index}`)))] })) : items.length === 0 ? (_jsxs(_Fragment, { children: [_jsx(Box, { paddingX: 0, paddingY: 0, children: _jsx(Text, { color: "gray", children: emptyMessage }) }), Array.from({ length: Math.max(0, viewportItems - 1) }, (_, index) => (_jsx(Box, { paddingX: 0, paddingY: 0, children: _jsx(Text, { children: " " }) }, `empty-spacer-${index}`)))] })) : (Array.from({ length: viewportItems }, (_, rowIndex) => {
|
|
113
|
-
const item = visibleItems[rowIndex];
|
|
114
|
-
if (item === undefined) {
|
|
115
|
-
return (_jsx(Box, { paddingX: 0, paddingY: 0, children: _jsx(Text, { children: " " }) }, `item-empty-${rowIndex}`));
|
|
116
|
-
}
|
|
117
|
-
const actualIndex = scrollOffset + rowIndex;
|
|
118
|
-
const isSelected = actualIndex === selectedIndex;
|
|
119
|
-
return (_jsx(Box, { paddingX: 0, paddingY: 0, children: formatItem(item, isSelected) }, actualIndex));
|
|
120
|
-
})) }), _jsx(Box, { paddingX: 0, paddingY: 0, marginTop: 1, children: instructionsOverride ? (_jsx(Text, { color: "gray", wrap: "truncate-end", children: instructionsOverride })) : (_jsx(HintBar, { hints: [
|
|
121
|
-
'↑↓ navigate',
|
|
122
|
-
supportsTab ? 'Tab load' : '',
|
|
123
|
-
'Enter select',
|
|
124
|
-
'Esc close',
|
|
125
|
-
] })) })] }));
|
|
126
|
-
}
|
|
127
|
-
// Export with proper generic type support
|
|
128
|
-
export const BaseSelector = forwardRef(BaseSelectorInner);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/base/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ChatView Component
|
|
3
|
-
* Main chat display area combining header and messages
|
|
4
|
-
*/
|
|
5
|
-
import type { Message, StartupInfo } from '../../state/types.js';
|
|
6
|
-
interface ChatViewProps {
|
|
7
|
-
messages: Message[];
|
|
8
|
-
modelName: string;
|
|
9
|
-
sessionId?: string | undefined;
|
|
10
|
-
hasActiveSession: boolean;
|
|
11
|
-
startupInfo: StartupInfo;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Pure presentational component for chat area
|
|
15
|
-
* Combines header and message list
|
|
16
|
-
*/
|
|
17
|
-
export declare function ChatView({ messages, modelName, sessionId, hasActiveSession, startupInfo, }: ChatViewProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=ChatView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatView.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/chat/ChatView.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEjE,UAAU,aAAa;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,WAAW,GACd,EAAE,aAAa,2CAYf"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box } from 'ink';
|
|
3
|
-
import { Header } from './Header.js';
|
|
4
|
-
import { MessageList } from './MessageList.js';
|
|
5
|
-
/**
|
|
6
|
-
* Pure presentational component for chat area
|
|
7
|
-
* Combines header and message list
|
|
8
|
-
*/
|
|
9
|
-
export function ChatView({ messages, modelName, sessionId, hasActiveSession, startupInfo, }) {
|
|
10
|
-
return (_jsxs(Box, { flexDirection: "column", flexGrow: 1, children: [_jsx(Header, { modelName: modelName, sessionId: sessionId, hasActiveSession: hasActiveSession, startupInfo: startupInfo }), _jsx(MessageList, { messages: messages })] }));
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/chat/Footer.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;GAEG;AACH,wBAAgB,MAAM,4CAQrB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from 'ink';
|
|
3
|
-
/**
|
|
4
|
-
* Pure presentational component for CLI footer
|
|
5
|
-
*/
|
|
6
|
-
export function Footer() {
|
|
7
|
-
return (_jsx(Box, { borderStyle: "single", borderColor: "gray", paddingX: 1, children: _jsx(Text, { color: "gray", children: "Shift+Enter/Ctrl+J: newline \u2022 Ctrl+W: del word \u2022 Ctrl+U: del line \u2022 Ctrl+C: exit" }) }));
|
|
8
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Header Component
|
|
3
|
-
* Displays CLI branding and session information
|
|
4
|
-
*/
|
|
5
|
-
import type { StartupInfo } from '../../state/types.js';
|
|
6
|
-
interface HeaderProps {
|
|
7
|
-
modelName: string;
|
|
8
|
-
sessionId?: string | undefined;
|
|
9
|
-
hasActiveSession: boolean;
|
|
10
|
-
startupInfo: StartupInfo;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Pure presentational component for CLI header
|
|
14
|
-
* Automatically adjusts width to terminal size
|
|
15
|
-
*/
|
|
16
|
-
export declare function Header({ modelName, sessionId, hasActiveSession, startupInfo }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/chat/Header.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,UAAU,WAAW;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,WAAW,EAAE,EAAE,WAAW,2CA6E1F"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from 'ink';
|
|
3
|
-
import { useTerminalSize } from '../../hooks/useTerminalSize.js';
|
|
4
|
-
/**
|
|
5
|
-
* Pure presentational component for CLI header
|
|
6
|
-
* Automatically adjusts width to terminal size
|
|
7
|
-
*/
|
|
8
|
-
export function Header({ modelName, sessionId, hasActiveSession, startupInfo }) {
|
|
9
|
-
const { columns } = useTerminalSize();
|
|
10
|
-
return (_jsxs(Box, { borderStyle: "single", borderColor: "gray", paddingX: 1, flexDirection: "column", flexShrink: 0, width: columns, children: [_jsx(Box, { marginTop: 1, children: _jsx(Text, { color: "greenBright", children: `██████╗ ███████╗██╗ ██╗████████╗ ██████╗
|
|
11
|
-
██╔══██╗██╔════╝╚██╗██╔╝╚══██╔══╝██╔═══██╗
|
|
12
|
-
██║ ██║█████╗ ╚███╔╝ ██║ ██║ ██║
|
|
13
|
-
██║ ██║██╔══╝ ██╔██╗ ██║ ██║ ██║
|
|
14
|
-
██████╔╝███████╗██╔╝ ██╗ ██║ ╚██████╔╝
|
|
15
|
-
╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝` }) }), _jsxs(Box, { marginTop: 1, flexDirection: "row", children: [_jsx(Text, { color: "gray", children: "Model: " }), _jsx(Text, { color: "white", children: modelName }), hasActiveSession && sessionId && (_jsxs(_Fragment, { children: [_jsx(Text, { color: "gray", children: " \u2022 Session: " }), _jsx(Text, { color: "white", children: sessionId.slice(0, 8) })] }))] }), _jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { color: "gray", children: "Servers: " }), _jsx(Text, { color: "white", children: startupInfo.connectedServers.count }), _jsx(Text, { color: "gray", children: " \u2022 Tools: " }), _jsx(Text, { color: "white", children: startupInfo.toolCount })] }), startupInfo.failedConnections.length > 0 && (_jsx(Box, { flexDirection: "row", children: _jsxs(Text, { color: "yellowBright", children: ["\u26A0\uFE0F Failed: ", startupInfo.failedConnections.join(', ')] }) })), startupInfo.updateInfo && (_jsxs(Box, { marginTop: 1, flexDirection: "row", children: [_jsxs(Text, { color: "yellow", children: ["\u2B06\uFE0F Update available: ", startupInfo.updateInfo.current, " \u2192", ' ', startupInfo.updateInfo.latest] }), _jsx(Text, { color: "gray", children: " \u2022 Run: " }), _jsx(Text, { color: "cyan", children: startupInfo.updateInfo.updateCommand })] })), startupInfo.needsAgentSync && (_jsxs(Box, { marginTop: startupInfo.updateInfo ? 0 : 1, flexDirection: "row", children: [_jsx(Text, { color: "yellow", children: "\uD83D\uDD04 Agent configs have updates available. Run: " }), _jsx(Text, { color: "cyan", children: "dexto sync-agents" })] })), _jsx(Box, { marginBottom: 1, children: _jsx(Text, { children: " " }) })] }));
|
|
16
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MessageItem Component
|
|
3
|
-
* Displays a single message with visual hierarchy
|
|
4
|
-
* Uses colors and spacing instead of explicit labels
|
|
5
|
-
*/
|
|
6
|
-
import type { Message } from '../../state/types.js';
|
|
7
|
-
interface MessageItemProps {
|
|
8
|
-
message: Message;
|
|
9
|
-
/** Terminal width for proper text wrapping calculations */
|
|
10
|
-
terminalWidth?: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Pure presentational component for a single message
|
|
14
|
-
* Visual hierarchy through colors and spacing only (no borders for easy text copying)
|
|
15
|
-
*
|
|
16
|
-
* Memoization with custom comparator prevents re-renders when message array changes
|
|
17
|
-
* but individual message content hasn't changed.
|
|
18
|
-
*/
|
|
19
|
-
export declare const MessageItem: import("react").MemoExoticComponent<({ message, terminalWidth }: MessageItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=MessageItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageItem.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/chat/MessageItem.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EACR,OAAO,EAUV,MAAM,sBAAsB,CAAC;AAoD9B,UAAU,gBAAgB;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,mEACc,gBAAgB,6CA4OrD,CAAC"}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* MessageItem Component
|
|
4
|
-
* Displays a single message with visual hierarchy
|
|
5
|
-
* Uses colors and spacing instead of explicit labels
|
|
6
|
-
*/
|
|
7
|
-
import { memo } from 'react';
|
|
8
|
-
import { Box, Text } from 'ink';
|
|
9
|
-
import wrapAnsi from 'wrap-ansi';
|
|
10
|
-
import { ConfigBox, StatsBox, HelpBox, SessionListBox, SessionHistoryBox, LogConfigBox, ShortcutsBox, SyspromptBox, } from './styled-boxes/index.js';
|
|
11
|
-
import { ToolResultRenderer } from '../renderers/index.js';
|
|
12
|
-
import { MarkdownText } from '../shared/MarkdownText.js';
|
|
13
|
-
import { ToolIcon } from './ToolIcon.js';
|
|
14
|
-
import { formatToolResultPreview } from '../../utils/messageFormatting.js';
|
|
15
|
-
/**
|
|
16
|
-
* Strip <plan-mode>...</plan-mode> tags from content.
|
|
17
|
-
* Plan mode instructions are injected for the LLM but should not be shown in the UI.
|
|
18
|
-
* Only trims when a tag was actually removed to preserve user-intended formatting.
|
|
19
|
-
*/
|
|
20
|
-
function stripPlanModeTags(content) {
|
|
21
|
-
// Remove <plan-mode>...</plan-mode> including any trailing whitespace
|
|
22
|
-
const stripped = content.replace(/<plan-mode>[\s\S]*?<\/plan-mode>\s*/g, '');
|
|
23
|
-
// Only trim if a tag was actually removed
|
|
24
|
-
return stripped === content ? content : stripped.trim();
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Format milliseconds into a compact human-readable string
|
|
28
|
-
* Examples: "1.2s", "1m 23s", "1h 2m"
|
|
29
|
-
*/
|
|
30
|
-
function formatDuration(ms) {
|
|
31
|
-
const seconds = Math.floor(ms / 1000);
|
|
32
|
-
const tenths = Math.floor((ms % 1000) / 100);
|
|
33
|
-
if (seconds < 60) {
|
|
34
|
-
return `${seconds}.${tenths}s`;
|
|
35
|
-
}
|
|
36
|
-
const minutes = Math.floor(seconds / 60);
|
|
37
|
-
const remainingSeconds = seconds % 60;
|
|
38
|
-
if (minutes < 60) {
|
|
39
|
-
return `${minutes}m ${remainingSeconds}s`;
|
|
40
|
-
}
|
|
41
|
-
const hours = Math.floor(minutes / 60);
|
|
42
|
-
const remainingMinutes = minutes % 60;
|
|
43
|
-
return `${hours}h ${remainingMinutes}m`;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Pure presentational component for a single message
|
|
47
|
-
* Visual hierarchy through colors and spacing only (no borders for easy text copying)
|
|
48
|
-
*
|
|
49
|
-
* Memoization with custom comparator prevents re-renders when message array changes
|
|
50
|
-
* but individual message content hasn't changed.
|
|
51
|
-
*/
|
|
52
|
-
export const MessageItem = memo(({ message, terminalWidth = 80 }) => {
|
|
53
|
-
// Check for styled message first
|
|
54
|
-
if (message.styledType && message.styledData) {
|
|
55
|
-
switch (message.styledType) {
|
|
56
|
-
case 'config':
|
|
57
|
-
return _jsx(ConfigBox, { data: message.styledData });
|
|
58
|
-
case 'stats':
|
|
59
|
-
return _jsx(StatsBox, { data: message.styledData });
|
|
60
|
-
case 'help':
|
|
61
|
-
return _jsx(HelpBox, { data: message.styledData });
|
|
62
|
-
case 'session-list':
|
|
63
|
-
return _jsx(SessionListBox, { data: message.styledData });
|
|
64
|
-
case 'session-history':
|
|
65
|
-
return (_jsx(SessionHistoryBox, { data: message.styledData }));
|
|
66
|
-
case 'log-config':
|
|
67
|
-
return _jsx(LogConfigBox, { data: message.styledData });
|
|
68
|
-
case 'run-summary': {
|
|
69
|
-
const data = message.styledData;
|
|
70
|
-
const durationStr = formatDuration(data.durationMs);
|
|
71
|
-
// Only show tokens when >= 1000, using K notation
|
|
72
|
-
const tokensStr = data.totalTokens >= 1000
|
|
73
|
-
? `, Used ${(data.totalTokens / 1000).toFixed(1)}K tokens`
|
|
74
|
-
: '';
|
|
75
|
-
return (_jsx(Box, { marginTop: 1, marginBottom: 1, width: terminalWidth, children: _jsxs(Text, { color: "gray", children: ["\u2500 Worked for ", durationStr, tokensStr, " \u2500"] }) }));
|
|
76
|
-
}
|
|
77
|
-
case 'shortcuts':
|
|
78
|
-
return _jsx(ShortcutsBox, { data: message.styledData });
|
|
79
|
-
case 'sysprompt':
|
|
80
|
-
return _jsx(SyspromptBox, { data: message.styledData });
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
// User message: '>' prefix with gray background
|
|
84
|
-
// Strip plan-mode tags before display (plan instructions are for LLM, not user)
|
|
85
|
-
// Properly wrap text accounting for prefix "> " (2 chars) and paddingX={1} (2 chars total)
|
|
86
|
-
if (message.role === 'user') {
|
|
87
|
-
const prefix = '> ';
|
|
88
|
-
const paddingChars = 2; // paddingX={1} = 1 char on each side
|
|
89
|
-
const availableWidth = Math.max(20, terminalWidth - prefix.length - paddingChars);
|
|
90
|
-
const displayContent = stripPlanModeTags(message.content);
|
|
91
|
-
const wrappedContent = wrapAnsi(displayContent, availableWidth, {
|
|
92
|
-
hard: true,
|
|
93
|
-
wordWrap: true,
|
|
94
|
-
trim: false,
|
|
95
|
-
});
|
|
96
|
-
const lines = wrappedContent.split('\n');
|
|
97
|
-
return (_jsx(Box, { flexDirection: "column", marginTop: 2, marginBottom: 1, width: terminalWidth, children: _jsx(Box, { flexDirection: "column", paddingX: 1, backgroundColor: "gray", children: lines.map((line, i) => (_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { color: "green", children: i === 0 ? prefix : ' ' }), _jsx(Text, { color: "white", children: line })] }, i))) }) }));
|
|
98
|
-
}
|
|
99
|
-
// Assistant message: Gray circle indicator (unless continuation)
|
|
100
|
-
// IMPORTANT: width="100%" is required to prevent Ink layout failures on large content.
|
|
101
|
-
// Without width constraints, streaming content causes terminal blackout at ~50+ lines.
|
|
102
|
-
// marginTop={1} for consistent spacing with tool messages
|
|
103
|
-
if (message.role === 'assistant') {
|
|
104
|
-
// Continuation messages: no indicator, just content
|
|
105
|
-
if (message.isContinuation) {
|
|
106
|
-
return (_jsx(Box, { flexDirection: "column", width: terminalWidth, children: _jsx(MarkdownText, { children: message.content || '' }) }));
|
|
107
|
-
}
|
|
108
|
-
// Regular assistant message: bullet prefix inline with first line
|
|
109
|
-
// Text wraps at terminal width - wrapped lines may start at column 0
|
|
110
|
-
// This is simpler and avoids mid-word splitting issues with Ink's wrap
|
|
111
|
-
return (_jsx(Box, { flexDirection: "column", marginTop: 1, width: terminalWidth, children: _jsx(MarkdownText, { bulletPrefix: "\u23FA ", children: message.content || '' }) }));
|
|
112
|
-
}
|
|
113
|
-
// Tool message: Animated icon based on status
|
|
114
|
-
// - Running: green spinner + "Running..."
|
|
115
|
-
// - Finished (success): green dot
|
|
116
|
-
// - Finished (error): red dot
|
|
117
|
-
if (message.role === 'tool') {
|
|
118
|
-
// Use structured renderers if display data is available
|
|
119
|
-
const hasStructuredDisplay = message.toolDisplayData && message.toolContent;
|
|
120
|
-
const isRunning = message.toolStatus === 'running';
|
|
121
|
-
const isPending = message.toolStatus === 'pending' || message.toolStatus === 'pending_approval';
|
|
122
|
-
// Check for sub-agent progress data
|
|
123
|
-
const subAgentProgress = message.subAgentProgress;
|
|
124
|
-
const contentLines = message.content.split('\n');
|
|
125
|
-
const headerLine = contentLines[0] ?? '';
|
|
126
|
-
const subHeaderLine = contentLines.length > 1 ? contentLines[1] : '';
|
|
127
|
-
// Parse tool name and args for bold formatting: "ToolName(args)" → bold name + normal args
|
|
128
|
-
const parenIndex = headerLine.indexOf('(');
|
|
129
|
-
const toolName = parenIndex > 0 ? headerLine.slice(0, parenIndex) : headerLine;
|
|
130
|
-
const toolArgs = parenIndex > 0 ? headerLine.slice(parenIndex) : '';
|
|
131
|
-
// Build the full tool header text for wrapping
|
|
132
|
-
// Don't include status suffix if we have sub-agent progress (it shows its own status)
|
|
133
|
-
const statusSuffix = subAgentProgress
|
|
134
|
-
? ''
|
|
135
|
-
: isRunning
|
|
136
|
-
? ' Running...'
|
|
137
|
-
: isPending
|
|
138
|
-
? ' Waiting...'
|
|
139
|
-
: '';
|
|
140
|
-
const fullToolText = `${toolName}${toolArgs}${statusSuffix}`;
|
|
141
|
-
// ToolIcon takes 2 chars ("● "), so available width is terminalWidth - 2
|
|
142
|
-
const iconWidth = 2;
|
|
143
|
-
const availableWidth = Math.max(20, terminalWidth - iconWidth);
|
|
144
|
-
const wrappedToolText = wrapAnsi(fullToolText, availableWidth, {
|
|
145
|
-
hard: true,
|
|
146
|
-
wordWrap: true,
|
|
147
|
-
trim: false,
|
|
148
|
-
});
|
|
149
|
-
const toolLines = wrappedToolText.split('\n');
|
|
150
|
-
return (_jsxs(Box, { flexDirection: "column", marginTop: 1, width: terminalWidth, children: [toolLines.map((line, i) => (_jsxs(Box, { flexDirection: "row", children: [i === 0 ? (_jsx(ToolIcon, { status: message.toolStatus || 'finished', isError: message.isError ?? false })) : (_jsx(Text, { children: ' ' })), _jsx(Text, { children: i === 0 ? (_jsxs(_Fragment, { children: [_jsx(Text, { bold: true, children: line.slice(0, toolName.length) }), _jsx(Text, { children: line.slice(toolName.length) })] })) : (line) })] }, i))), subHeaderLine && (_jsx(Box, { marginLeft: 2, children: _jsx(Text, { color: "gray", children: subHeaderLine }) })), subAgentProgress && isRunning && (_jsx(Box, { marginLeft: 2, children: _jsxs(Text, { color: "gray", children: ["\u2514\u2500 ", subAgentProgress.toolsCalled, " tool", subAgentProgress.toolsCalled !== 1 ? 's' : '', " called | Current:", ' ', subAgentProgress.currentTool, subAgentProgress.runtimeAgentId
|
|
151
|
-
? ` | Agent: ${subAgentProgress.agentId} (${subAgentProgress.runtimeAgentId})`
|
|
152
|
-
: ` | Agent: ${subAgentProgress.agentId}`, subAgentProgress.tokenUsage &&
|
|
153
|
-
subAgentProgress.tokenUsage.total > 0
|
|
154
|
-
? ` | ${subAgentProgress.tokenUsage.total.toLocaleString()} tokens`
|
|
155
|
-
: ''] }) })), hasStructuredDisplay ? (_jsx(ToolResultRenderer, { display: message.toolDisplayData, content: message.toolContent })) : (message.toolResult && (_jsx(Box, { flexDirection: "column", children: _jsxs(Text, { color: "gray", children: ["\u23BF ", formatToolResultPreview(message.toolResult)] }) })))] }));
|
|
156
|
-
}
|
|
157
|
-
// System message: Compact gray text
|
|
158
|
-
return (_jsx(Box, { flexDirection: "column", marginBottom: 1, width: terminalWidth, children: _jsx(Text, { color: "gray", children: message.content }) }));
|
|
159
|
-
},
|
|
160
|
-
// Custom comparator: only re-render if message content actually changed
|
|
161
|
-
(prev, next) => {
|
|
162
|
-
return (prev.message.id === next.message.id &&
|
|
163
|
-
prev.message.content === next.message.content &&
|
|
164
|
-
prev.message.role === next.message.role &&
|
|
165
|
-
prev.message.toolStatus === next.message.toolStatus &&
|
|
166
|
-
prev.message.toolResult === next.message.toolResult &&
|
|
167
|
-
prev.message.isStreaming === next.message.isStreaming &&
|
|
168
|
-
prev.message.styledType === next.message.styledType &&
|
|
169
|
-
prev.message.styledData === next.message.styledData &&
|
|
170
|
-
prev.message.isContinuation === next.message.isContinuation &&
|
|
171
|
-
prev.message.isError === next.message.isError &&
|
|
172
|
-
prev.message.toolDisplayData === next.message.toolDisplayData &&
|
|
173
|
-
prev.message.toolContent === next.message.toolContent &&
|
|
174
|
-
prev.terminalWidth === next.terminalWidth &&
|
|
175
|
-
prev.message.subAgentProgress?.toolsCalled ===
|
|
176
|
-
next.message.subAgentProgress?.toolsCalled &&
|
|
177
|
-
prev.message.subAgentProgress?.currentTool ===
|
|
178
|
-
next.message.subAgentProgress?.currentTool &&
|
|
179
|
-
prev.message.subAgentProgress?.tokenUsage?.total ===
|
|
180
|
-
next.message.subAgentProgress?.tokenUsage?.total);
|
|
181
|
-
});
|
|
182
|
-
MessageItem.displayName = 'MessageItem';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MessageList Component
|
|
3
|
-
* Displays a list of messages with optional welcome message
|
|
4
|
-
*/
|
|
5
|
-
import type { Message } from '../../state/types.js';
|
|
6
|
-
interface MessageListProps {
|
|
7
|
-
messages: Message[];
|
|
8
|
-
maxVisible?: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Pure presentational component for message list
|
|
12
|
-
* Shows only recent messages for performance
|
|
13
|
-
*/
|
|
14
|
-
export declare function MessageList({ messages, maxVisible }: MessageListProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=MessageList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../../src/cli/ink-cli/components/chat/MessageList.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,UAAU,gBAAgB;IACtB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,UAAe,EAAE,EAAE,gBAAgB,2CA6B1E"}
|