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,124 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* State actions for CLI state machine
|
|
3
|
-
* All state mutations go through these actions
|
|
4
|
-
*
|
|
5
|
-
* Note: Message/streaming state is handled separately via useState in InkCLIRefactored
|
|
6
|
-
* to simplify the reducer and match WebUI's direct event handling pattern.
|
|
7
|
-
*/
|
|
8
|
-
import type { OverlayType, McpWizardServerType, PendingImage } from './types.js';
|
|
9
|
-
import type { ApprovalRequest } from '../components/ApprovalPrompt.js';
|
|
10
|
-
/**
|
|
11
|
-
* Input actions
|
|
12
|
-
*/
|
|
13
|
-
export type InputChangeAction = {
|
|
14
|
-
type: 'INPUT_CHANGE';
|
|
15
|
-
value: string;
|
|
16
|
-
};
|
|
17
|
-
export type InputClearAction = {
|
|
18
|
-
type: 'INPUT_CLEAR';
|
|
19
|
-
};
|
|
20
|
-
export type InputHistoryNavigateAction = {
|
|
21
|
-
type: 'INPUT_HISTORY_NAVIGATE';
|
|
22
|
-
direction: 'up' | 'down';
|
|
23
|
-
};
|
|
24
|
-
export type InputHistoryResetAction = {
|
|
25
|
-
type: 'INPUT_HISTORY_RESET';
|
|
26
|
-
};
|
|
27
|
-
export type InputHistoryAddAction = {
|
|
28
|
-
type: 'INPUT_HISTORY_ADD';
|
|
29
|
-
value: string;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Image attachment actions
|
|
33
|
-
*/
|
|
34
|
-
export type ImageAddAction = {
|
|
35
|
-
type: 'IMAGE_ADD';
|
|
36
|
-
image: PendingImage;
|
|
37
|
-
};
|
|
38
|
-
export type ImageRemoveAction = {
|
|
39
|
-
type: 'IMAGE_REMOVE';
|
|
40
|
-
imageId: string;
|
|
41
|
-
};
|
|
42
|
-
export type ImagesClearAction = {
|
|
43
|
-
type: 'IMAGES_CLEAR';
|
|
44
|
-
};
|
|
45
|
-
export type CancelStartAction = {
|
|
46
|
-
type: 'CANCEL_START';
|
|
47
|
-
};
|
|
48
|
-
export type ThinkingStartAction = {
|
|
49
|
-
type: 'THINKING_START';
|
|
50
|
-
};
|
|
51
|
-
export type ThinkingEndAction = {
|
|
52
|
-
type: 'THINKING_END';
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* UI actions
|
|
56
|
-
*/
|
|
57
|
-
export type ProcessingStartAction = {
|
|
58
|
-
type: 'PROCESSING_START';
|
|
59
|
-
};
|
|
60
|
-
export type ProcessingEndAction = {
|
|
61
|
-
type: 'PROCESSING_END';
|
|
62
|
-
};
|
|
63
|
-
export type ShowOverlayAction = {
|
|
64
|
-
type: 'SHOW_OVERLAY';
|
|
65
|
-
overlay: OverlayType;
|
|
66
|
-
};
|
|
67
|
-
export type CloseOverlayAction = {
|
|
68
|
-
type: 'CLOSE_OVERLAY';
|
|
69
|
-
};
|
|
70
|
-
export type SetMcpWizardServerTypeAction = {
|
|
71
|
-
type: 'SET_MCP_WIZARD_SERVER_TYPE';
|
|
72
|
-
serverType: McpWizardServerType;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Session actions
|
|
76
|
-
*/
|
|
77
|
-
export type SessionSetAction = {
|
|
78
|
-
type: 'SESSION_SET';
|
|
79
|
-
sessionId: string;
|
|
80
|
-
hasActiveSession: boolean;
|
|
81
|
-
};
|
|
82
|
-
export type SessionClearAction = {
|
|
83
|
-
type: 'SESSION_CLEAR';
|
|
84
|
-
};
|
|
85
|
-
export type ModelUpdateAction = {
|
|
86
|
-
type: 'MODEL_UPDATE';
|
|
87
|
-
modelName: string;
|
|
88
|
-
};
|
|
89
|
-
export type ConversationResetAction = {
|
|
90
|
-
type: 'CONVERSATION_RESET';
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Approval actions
|
|
94
|
-
*/
|
|
95
|
-
export type ApprovalRequestAction = {
|
|
96
|
-
type: 'APPROVAL_REQUEST';
|
|
97
|
-
approval: ApprovalRequest;
|
|
98
|
-
};
|
|
99
|
-
export type ApprovalCompleteAction = {
|
|
100
|
-
type: 'APPROVAL_COMPLETE';
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Exit warning actions (for double Ctrl+C to exit)
|
|
104
|
-
*/
|
|
105
|
-
export type ExitWarningShowAction = {
|
|
106
|
-
type: 'EXIT_WARNING_SHOW';
|
|
107
|
-
};
|
|
108
|
-
export type ExitWarningClearAction = {
|
|
109
|
-
type: 'EXIT_WARNING_CLEAR';
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Copy mode actions (for text selection in alternate buffer)
|
|
113
|
-
*/
|
|
114
|
-
export type CopyModeEnableAction = {
|
|
115
|
-
type: 'COPY_MODE_ENABLE';
|
|
116
|
-
};
|
|
117
|
-
export type CopyModeDisableAction = {
|
|
118
|
-
type: 'COPY_MODE_DISABLE';
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* Combined action type
|
|
122
|
-
*/
|
|
123
|
-
export type CLIAction = InputChangeAction | InputClearAction | InputHistoryNavigateAction | InputHistoryResetAction | InputHistoryAddAction | ImageAddAction | ImageRemoveAction | ImagesClearAction | CancelStartAction | ThinkingStartAction | ThinkingEndAction | ProcessingStartAction | ProcessingEndAction | ShowOverlayAction | CloseOverlayAction | SetMcpWizardServerTypeAction | SessionSetAction | SessionClearAction | ModelUpdateAction | ConversationResetAction | ApprovalRequestAction | ApprovalCompleteAction | ExitWarningShowAction | ExitWarningClearAction | CopyModeEnableAction | CopyModeDisableAction;
|
|
124
|
-
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/state/actions.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* State actions for CLI state machine
|
|
3
|
-
* All state mutations go through these actions
|
|
4
|
-
*
|
|
5
|
-
* Note: Message/streaming state is handled separately via useState in InkCLIRefactored
|
|
6
|
-
* to simplify the reducer and match WebUI's direct event handling pattern.
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* State management module exports
|
|
3
|
-
*
|
|
4
|
-
* Note: State is now managed via useState hooks in InkCLIRefactored.
|
|
5
|
-
* This module exports types and remaining actions for UI/overlay state.
|
|
6
|
-
*/
|
|
7
|
-
export type { StartupInfo, Message, StreamingMessage, InputState, PendingImage, OverlayType, McpWizardServerType, UIState, SessionState, CLIState, } from './types.js';
|
|
8
|
-
export type { InputChangeAction, InputClearAction, InputHistoryNavigateAction, InputHistoryResetAction, InputHistoryAddAction, ImageAddAction, ImageRemoveAction, ImagesClearAction, CancelStartAction, ThinkingStartAction, ThinkingEndAction, ProcessingStartAction, ProcessingEndAction, ShowOverlayAction, CloseOverlayAction, SetMcpWizardServerTypeAction, SessionSetAction, SessionClearAction, ModelUpdateAction, ConversationResetAction, ApprovalRequestAction, ApprovalCompleteAction, ExitWarningShowAction, ExitWarningClearAction, CopyModeEnableAction, CopyModeDisableAction, CLIAction, } from './actions.js';
|
|
9
|
-
export { createInitialState } from './initialState.js';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/state/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACR,WAAW,EACX,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,OAAO,EACP,YAAY,EACZ,QAAQ,GACX,MAAM,YAAY,CAAC;AAGpB,YAAY,EACR,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,SAAS,GACZ,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* State management module exports
|
|
3
|
-
*
|
|
4
|
-
* Note: State is now managed via useState hooks in InkCLIRefactored.
|
|
5
|
-
* This module exports types and remaining actions for UI/overlay state.
|
|
6
|
-
*/
|
|
7
|
-
// Initial state (for types reference only)
|
|
8
|
-
export { createInitialState } from './initialState.js';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Initial state for CLI state machine
|
|
3
|
-
*
|
|
4
|
-
* Note: Messages are handled separately via useState in InkCLIRefactored
|
|
5
|
-
*/
|
|
6
|
-
import type { CLIState } from './types.js';
|
|
7
|
-
/**
|
|
8
|
-
* Creates the initial CLI state
|
|
9
|
-
* @param initialModelName - Initial model name
|
|
10
|
-
*/
|
|
11
|
-
export declare function createInitialState(initialModelName?: string): CLIState;
|
|
12
|
-
//# sourceMappingURL=initialState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initialState.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/state/initialState.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,gBAAgB,GAAE,MAAW,GAAG,QAAQ,CA+C1E"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Initial state for CLI state machine
|
|
3
|
-
*
|
|
4
|
-
* Note: Messages are handled separately via useState in InkCLIRefactored
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Creates the initial CLI state
|
|
8
|
-
* @param initialModelName - Initial model name
|
|
9
|
-
*/
|
|
10
|
-
export function createInitialState(initialModelName = '') {
|
|
11
|
-
return {
|
|
12
|
-
input: {
|
|
13
|
-
value: '',
|
|
14
|
-
history: [],
|
|
15
|
-
historyIndex: -1,
|
|
16
|
-
draftBeforeHistory: '',
|
|
17
|
-
images: [],
|
|
18
|
-
pastedBlocks: [],
|
|
19
|
-
pasteCounter: 0,
|
|
20
|
-
},
|
|
21
|
-
ui: {
|
|
22
|
-
isProcessing: false,
|
|
23
|
-
isCancelling: false,
|
|
24
|
-
isThinking: false,
|
|
25
|
-
isCompacting: false,
|
|
26
|
-
activeOverlay: 'none',
|
|
27
|
-
exitWarningShown: false,
|
|
28
|
-
exitWarningTimestamp: null,
|
|
29
|
-
mcpWizardServerType: null,
|
|
30
|
-
copyModeEnabled: false,
|
|
31
|
-
pendingModelSwitch: null,
|
|
32
|
-
selectedMcpServer: null,
|
|
33
|
-
historySearch: {
|
|
34
|
-
isActive: false,
|
|
35
|
-
query: '',
|
|
36
|
-
matchIndex: 0,
|
|
37
|
-
originalInput: '',
|
|
38
|
-
lastMatch: '',
|
|
39
|
-
},
|
|
40
|
-
promptAddWizard: null,
|
|
41
|
-
autoApproveEdits: false,
|
|
42
|
-
todoExpanded: true,
|
|
43
|
-
backgroundTasksRunning: 0,
|
|
44
|
-
backgroundTasksExpanded: false,
|
|
45
|
-
backgroundTasks: [],
|
|
46
|
-
planModeActive: false,
|
|
47
|
-
planModeInitialized: false,
|
|
48
|
-
},
|
|
49
|
-
session: {
|
|
50
|
-
id: null,
|
|
51
|
-
hasActiveSession: false,
|
|
52
|
-
modelName: initialModelName,
|
|
53
|
-
},
|
|
54
|
-
approval: null,
|
|
55
|
-
approvalQueue: [],
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* State reducer for CLI state machine
|
|
3
|
-
* Pure function that handles all state transitions
|
|
4
|
-
*
|
|
5
|
-
* Note: Message/streaming state is handled separately via useState in InkCLIRefactored
|
|
6
|
-
* to simplify the reducer and match WebUI's direct event handling pattern.
|
|
7
|
-
*/
|
|
8
|
-
import type { CLIState } from './types.js';
|
|
9
|
-
import type { CLIAction } from './actions.js';
|
|
10
|
-
/**
|
|
11
|
-
* Main CLI state reducer
|
|
12
|
-
* Handles all state transitions in a predictable, testable way
|
|
13
|
-
*/
|
|
14
|
-
export declare function cliReducer(state: CLIState, action: CLIAction): CLIState;
|
|
15
|
-
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/state/reducer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAG,QAAQ,CAkWvE"}
|
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* State reducer for CLI state machine
|
|
3
|
-
* Pure function that handles all state transitions
|
|
4
|
-
*
|
|
5
|
-
* Note: Message/streaming state is handled separately via useState in InkCLIRefactored
|
|
6
|
-
* to simplify the reducer and match WebUI's direct event handling pattern.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Main CLI state reducer
|
|
10
|
-
* Handles all state transitions in a predictable, testable way
|
|
11
|
-
*/
|
|
12
|
-
export function cliReducer(state, action) {
|
|
13
|
-
switch (action.type) {
|
|
14
|
-
// Input actions
|
|
15
|
-
case 'INPUT_CHANGE':
|
|
16
|
-
return {
|
|
17
|
-
...state,
|
|
18
|
-
input: {
|
|
19
|
-
...state.input,
|
|
20
|
-
value: action.value,
|
|
21
|
-
},
|
|
22
|
-
// Clear exit warning when user starts typing
|
|
23
|
-
ui: state.ui.exitWarningShown
|
|
24
|
-
? {
|
|
25
|
-
...state.ui,
|
|
26
|
-
exitWarningShown: false,
|
|
27
|
-
exitWarningTimestamp: null,
|
|
28
|
-
}
|
|
29
|
-
: state.ui,
|
|
30
|
-
};
|
|
31
|
-
case 'INPUT_CLEAR':
|
|
32
|
-
return {
|
|
33
|
-
...state,
|
|
34
|
-
input: {
|
|
35
|
-
...state.input,
|
|
36
|
-
value: '',
|
|
37
|
-
historyIndex: -1,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
case 'INPUT_HISTORY_NAVIGATE': {
|
|
41
|
-
const { history } = state.input;
|
|
42
|
-
if (history.length === 0)
|
|
43
|
-
return state;
|
|
44
|
-
let newIndex = state.input.historyIndex;
|
|
45
|
-
if (action.direction === 'up') {
|
|
46
|
-
// Navigate backward through history (older items)
|
|
47
|
-
// From -1 (current input) -> last history item -> ... -> first history item
|
|
48
|
-
if (newIndex < 0) {
|
|
49
|
-
newIndex = history.length - 1; // Start at most recent
|
|
50
|
-
}
|
|
51
|
-
else if (newIndex > 0) {
|
|
52
|
-
newIndex = newIndex - 1; // Go to older
|
|
53
|
-
}
|
|
54
|
-
// If at 0, stay there (oldest item)
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
// Navigate forward through history (newer items)
|
|
58
|
-
// From first history item -> ... -> last history item -> current input (-1)
|
|
59
|
-
if (newIndex >= 0 && newIndex < history.length - 1) {
|
|
60
|
-
newIndex = newIndex + 1; // Go to newer
|
|
61
|
-
}
|
|
62
|
-
else if (newIndex === history.length - 1) {
|
|
63
|
-
// At most recent history, go back to current input
|
|
64
|
-
return {
|
|
65
|
-
...state,
|
|
66
|
-
input: {
|
|
67
|
-
...state.input,
|
|
68
|
-
value: '',
|
|
69
|
-
historyIndex: -1,
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
// If at -1, stay there (no change needed)
|
|
74
|
-
if (newIndex < 0)
|
|
75
|
-
return state;
|
|
76
|
-
}
|
|
77
|
-
const historyItem = history[newIndex];
|
|
78
|
-
return {
|
|
79
|
-
...state,
|
|
80
|
-
input: {
|
|
81
|
-
...state.input,
|
|
82
|
-
value: historyItem || '',
|
|
83
|
-
historyIndex: newIndex,
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
case 'INPUT_HISTORY_RESET':
|
|
88
|
-
return {
|
|
89
|
-
...state,
|
|
90
|
-
input: {
|
|
91
|
-
...state.input,
|
|
92
|
-
historyIndex: -1,
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
case 'INPUT_HISTORY_ADD': {
|
|
96
|
-
// Add to history if not duplicate of last entry
|
|
97
|
-
const { history } = state.input;
|
|
98
|
-
if (!action.value ||
|
|
99
|
-
(history.length > 0 && history[history.length - 1] === action.value)) {
|
|
100
|
-
return state;
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
...state,
|
|
104
|
-
input: {
|
|
105
|
-
...state.input,
|
|
106
|
-
history: [...history, action.value].slice(-100), // Keep last 100
|
|
107
|
-
historyIndex: -1,
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
// Image actions
|
|
112
|
-
case 'IMAGE_ADD':
|
|
113
|
-
return {
|
|
114
|
-
...state,
|
|
115
|
-
input: {
|
|
116
|
-
...state.input,
|
|
117
|
-
images: [...state.input.images, action.image],
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
case 'IMAGE_REMOVE':
|
|
121
|
-
return {
|
|
122
|
-
...state,
|
|
123
|
-
input: {
|
|
124
|
-
...state.input,
|
|
125
|
-
images: state.input.images.filter((img) => img.id !== action.imageId),
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
case 'IMAGES_CLEAR':
|
|
129
|
-
return {
|
|
130
|
-
...state,
|
|
131
|
-
input: {
|
|
132
|
-
...state.input,
|
|
133
|
-
images: [],
|
|
134
|
-
},
|
|
135
|
-
};
|
|
136
|
-
case 'CANCEL_START':
|
|
137
|
-
return {
|
|
138
|
-
...state,
|
|
139
|
-
ui: {
|
|
140
|
-
...state.ui,
|
|
141
|
-
isProcessing: false,
|
|
142
|
-
isCancelling: true,
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
case 'THINKING_START':
|
|
146
|
-
return {
|
|
147
|
-
...state,
|
|
148
|
-
ui: {
|
|
149
|
-
...state.ui,
|
|
150
|
-
isThinking: true,
|
|
151
|
-
},
|
|
152
|
-
};
|
|
153
|
-
case 'THINKING_END':
|
|
154
|
-
return {
|
|
155
|
-
...state,
|
|
156
|
-
ui: {
|
|
157
|
-
...state.ui,
|
|
158
|
-
isThinking: false,
|
|
159
|
-
},
|
|
160
|
-
};
|
|
161
|
-
// UI actions
|
|
162
|
-
case 'PROCESSING_START':
|
|
163
|
-
return {
|
|
164
|
-
...state,
|
|
165
|
-
ui: {
|
|
166
|
-
...state.ui,
|
|
167
|
-
isProcessing: true,
|
|
168
|
-
isCancelling: false, // Clear cancellation flag for new request
|
|
169
|
-
activeOverlay: 'none',
|
|
170
|
-
exitWarningShown: false, // Clear exit warning on new submission
|
|
171
|
-
exitWarningTimestamp: null,
|
|
172
|
-
},
|
|
173
|
-
};
|
|
174
|
-
case 'PROCESSING_END':
|
|
175
|
-
return {
|
|
176
|
-
...state,
|
|
177
|
-
ui: {
|
|
178
|
-
...state.ui,
|
|
179
|
-
isProcessing: false,
|
|
180
|
-
isCancelling: false,
|
|
181
|
-
isThinking: false, // Clear thinking state when processing ends
|
|
182
|
-
},
|
|
183
|
-
};
|
|
184
|
-
case 'SHOW_OVERLAY':
|
|
185
|
-
return {
|
|
186
|
-
...state,
|
|
187
|
-
ui: {
|
|
188
|
-
...state.ui,
|
|
189
|
-
activeOverlay: action.overlay,
|
|
190
|
-
},
|
|
191
|
-
};
|
|
192
|
-
case 'CLOSE_OVERLAY':
|
|
193
|
-
return {
|
|
194
|
-
...state,
|
|
195
|
-
ui: {
|
|
196
|
-
...state.ui,
|
|
197
|
-
activeOverlay: 'none',
|
|
198
|
-
mcpWizardServerType: null, // Clear wizard state when closing overlay
|
|
199
|
-
},
|
|
200
|
-
};
|
|
201
|
-
case 'SET_MCP_WIZARD_SERVER_TYPE':
|
|
202
|
-
return {
|
|
203
|
-
...state,
|
|
204
|
-
ui: {
|
|
205
|
-
...state.ui,
|
|
206
|
-
mcpWizardServerType: action.serverType,
|
|
207
|
-
},
|
|
208
|
-
};
|
|
209
|
-
// Session actions
|
|
210
|
-
case 'SESSION_SET':
|
|
211
|
-
return {
|
|
212
|
-
...state,
|
|
213
|
-
session: {
|
|
214
|
-
...state.session,
|
|
215
|
-
id: action.sessionId,
|
|
216
|
-
hasActiveSession: action.hasActiveSession,
|
|
217
|
-
},
|
|
218
|
-
};
|
|
219
|
-
case 'SESSION_CLEAR':
|
|
220
|
-
return {
|
|
221
|
-
...state,
|
|
222
|
-
session: {
|
|
223
|
-
...state.session,
|
|
224
|
-
id: null,
|
|
225
|
-
hasActiveSession: false,
|
|
226
|
-
},
|
|
227
|
-
approval: null,
|
|
228
|
-
approvalQueue: [],
|
|
229
|
-
ui: {
|
|
230
|
-
...state.ui,
|
|
231
|
-
activeOverlay: 'none',
|
|
232
|
-
},
|
|
233
|
-
};
|
|
234
|
-
case 'MODEL_UPDATE':
|
|
235
|
-
return {
|
|
236
|
-
...state,
|
|
237
|
-
session: {
|
|
238
|
-
...state.session,
|
|
239
|
-
modelName: action.modelName,
|
|
240
|
-
},
|
|
241
|
-
};
|
|
242
|
-
case 'CONVERSATION_RESET':
|
|
243
|
-
return {
|
|
244
|
-
...state,
|
|
245
|
-
approval: null,
|
|
246
|
-
approvalQueue: [],
|
|
247
|
-
ui: {
|
|
248
|
-
...state.ui,
|
|
249
|
-
activeOverlay: 'none',
|
|
250
|
-
},
|
|
251
|
-
};
|
|
252
|
-
// Approval actions
|
|
253
|
-
case 'APPROVAL_REQUEST':
|
|
254
|
-
// Dedupe: skip if this approval ID is already pending or queued
|
|
255
|
-
if (state.approval?.approvalId === action.approval.approvalId) {
|
|
256
|
-
return state;
|
|
257
|
-
}
|
|
258
|
-
if (state.approvalQueue.some((r) => r.approvalId === action.approval.approvalId)) {
|
|
259
|
-
return state;
|
|
260
|
-
}
|
|
261
|
-
// If there's already a pending approval, queue this one
|
|
262
|
-
if (state.approval !== null) {
|
|
263
|
-
return {
|
|
264
|
-
...state,
|
|
265
|
-
approvalQueue: [...state.approvalQueue, action.approval],
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
// Otherwise, show it immediately
|
|
269
|
-
return {
|
|
270
|
-
...state,
|
|
271
|
-
approval: action.approval,
|
|
272
|
-
ui: {
|
|
273
|
-
...state.ui,
|
|
274
|
-
activeOverlay: 'approval',
|
|
275
|
-
},
|
|
276
|
-
};
|
|
277
|
-
case 'APPROVAL_COMPLETE':
|
|
278
|
-
// Check if there are queued approvals
|
|
279
|
-
if (state.approvalQueue.length > 0) {
|
|
280
|
-
// Show the next approval from the queue
|
|
281
|
-
const nextApproval = state.approvalQueue[0];
|
|
282
|
-
const remainingQueue = state.approvalQueue.slice(1);
|
|
283
|
-
return {
|
|
284
|
-
...state,
|
|
285
|
-
approval: nextApproval,
|
|
286
|
-
approvalQueue: remainingQueue,
|
|
287
|
-
ui: {
|
|
288
|
-
...state.ui,
|
|
289
|
-
activeOverlay: 'approval',
|
|
290
|
-
},
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
// No more approvals, clear everything
|
|
294
|
-
return {
|
|
295
|
-
...state,
|
|
296
|
-
approval: null,
|
|
297
|
-
ui: {
|
|
298
|
-
...state.ui,
|
|
299
|
-
activeOverlay: 'none',
|
|
300
|
-
},
|
|
301
|
-
};
|
|
302
|
-
// Exit warning actions (for double Ctrl+C to exit)
|
|
303
|
-
case 'EXIT_WARNING_SHOW':
|
|
304
|
-
return {
|
|
305
|
-
...state,
|
|
306
|
-
ui: {
|
|
307
|
-
...state.ui,
|
|
308
|
-
exitWarningShown: true,
|
|
309
|
-
exitWarningTimestamp: Date.now(),
|
|
310
|
-
},
|
|
311
|
-
};
|
|
312
|
-
case 'EXIT_WARNING_CLEAR':
|
|
313
|
-
return {
|
|
314
|
-
...state,
|
|
315
|
-
ui: {
|
|
316
|
-
...state.ui,
|
|
317
|
-
exitWarningShown: false,
|
|
318
|
-
exitWarningTimestamp: null,
|
|
319
|
-
},
|
|
320
|
-
};
|
|
321
|
-
// Copy mode actions (for text selection in alternate buffer)
|
|
322
|
-
case 'COPY_MODE_ENABLE':
|
|
323
|
-
return {
|
|
324
|
-
...state,
|
|
325
|
-
ui: {
|
|
326
|
-
...state.ui,
|
|
327
|
-
copyModeEnabled: true,
|
|
328
|
-
},
|
|
329
|
-
};
|
|
330
|
-
case 'COPY_MODE_DISABLE':
|
|
331
|
-
return {
|
|
332
|
-
...state,
|
|
333
|
-
ui: {
|
|
334
|
-
...state.ui,
|
|
335
|
-
copyModeEnabled: false,
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
default:
|
|
339
|
-
return state;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Streaming state manager for CLI
|
|
3
|
-
*
|
|
4
|
-
* Simple module-level state that can be accessed by both React components
|
|
5
|
-
* and command handlers. Uses a subscription pattern for React integration.
|
|
6
|
-
*/
|
|
7
|
-
type StreamingListener = (enabled: boolean) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Get current streaming state
|
|
10
|
-
*/
|
|
11
|
-
export declare function isStreamingEnabled(): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Set streaming state and notify listeners
|
|
14
|
-
*/
|
|
15
|
-
export declare function setStreamingEnabled(enabled: boolean): void;
|
|
16
|
-
/**
|
|
17
|
-
* Toggle streaming state
|
|
18
|
-
* @returns New streaming state
|
|
19
|
-
*/
|
|
20
|
-
export declare function toggleStreaming(): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Subscribe to streaming state changes
|
|
23
|
-
* @returns Unsubscribe function
|
|
24
|
-
*/
|
|
25
|
-
export declare function subscribeToStreaming(listener: StreamingListener): () => void;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=streaming-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"streaming-state.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/state/streaming-state.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,KAAK,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAKpD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK1D;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAGzC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,IAAI,CAG5E"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Streaming state manager for CLI
|
|
3
|
-
*
|
|
4
|
-
* Simple module-level state that can be accessed by both React components
|
|
5
|
-
* and command handlers. Uses a subscription pattern for React integration.
|
|
6
|
-
*/
|
|
7
|
-
let streamingEnabled = false;
|
|
8
|
-
const listeners = new Set();
|
|
9
|
-
/**
|
|
10
|
-
* Get current streaming state
|
|
11
|
-
*/
|
|
12
|
-
export function isStreamingEnabled() {
|
|
13
|
-
return streamingEnabled;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Set streaming state and notify listeners
|
|
17
|
-
*/
|
|
18
|
-
export function setStreamingEnabled(enabled) {
|
|
19
|
-
if (streamingEnabled !== enabled) {
|
|
20
|
-
streamingEnabled = enabled;
|
|
21
|
-
listeners.forEach((listener) => listener(enabled));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Toggle streaming state
|
|
26
|
-
* @returns New streaming state
|
|
27
|
-
*/
|
|
28
|
-
export function toggleStreaming() {
|
|
29
|
-
setStreamingEnabled(!streamingEnabled);
|
|
30
|
-
return streamingEnabled;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Subscribe to streaming state changes
|
|
34
|
-
* @returns Unsubscribe function
|
|
35
|
-
*/
|
|
36
|
-
export function subscribeToStreaming(listener) {
|
|
37
|
-
listeners.add(listener);
|
|
38
|
-
return () => listeners.delete(listener);
|
|
39
|
-
}
|