dexto 1.3.0 → 1.5.0
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/README.md +87 -22
- package/dist/agents/agent-registry.json +9 -0
- package/dist/agents/agent-template.yml +2 -2
- package/dist/agents/coding-agent/coding-agent.yml +27 -16
- package/dist/agents/database-agent/database-agent.yml +2 -2
- package/dist/agents/default-agent.yml +9 -7
- package/dist/agents/github-agent/github-agent.yml +2 -2
- package/dist/agents/product-name-researcher/product-name-researcher.yml +2 -2
- package/dist/agents/talk2pdf-agent/talk2pdf-agent.yml +2 -2
- package/dist/analytics/events.d.ts +13 -6
- package/dist/analytics/events.d.ts.map +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/analytics/index.d.ts.map +1 -1
- package/dist/analytics/index.js +6 -2
- package/dist/api/server-hono.d.ts.map +1 -1
- package/dist/api/server-hono.js +65 -9
- package/dist/cli/cli-subscriber.d.ts +4 -0
- package/dist/cli/cli-subscriber.d.ts.map +1 -1
- package/dist/cli/cli-subscriber.js +47 -3
- package/dist/cli/commands/create-app.d.ts +16 -14
- package/dist/cli/commands/create-app.d.ts.map +1 -1
- package/dist/cli/commands/create-app.js +626 -102
- package/dist/cli/commands/create-image.d.ts +7 -0
- package/dist/cli/commands/create-image.d.ts.map +1 -0
- package/dist/cli/commands/create-image.js +201 -0
- package/dist/cli/commands/helpers/formatters.d.ts.map +1 -1
- package/dist/cli/commands/helpers/formatters.js +9 -8
- package/dist/cli/commands/index.d.ts +2 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +2 -1
- package/dist/cli/commands/init-app.js +7 -7
- package/dist/cli/commands/install.d.ts +0 -3
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +19 -70
- package/dist/cli/commands/interactive-commands/command-parser.d.ts +17 -14
- package/dist/cli/commands/interactive-commands/command-parser.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/command-parser.js +7 -22
- package/dist/cli/commands/interactive-commands/commands.d.ts +4 -4
- package/dist/cli/commands/interactive-commands/commands.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/commands.js +34 -42
- package/dist/cli/commands/interactive-commands/documentation-commands.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/documentation-commands.js +4 -7
- package/dist/cli/commands/interactive-commands/general-commands.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/general-commands.js +159 -117
- package/dist/cli/commands/interactive-commands/mcp/index.d.ts +9 -3
- package/dist/cli/commands/interactive-commands/mcp/index.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/mcp/index.js +18 -3
- package/dist/cli/commands/interactive-commands/model/index.d.ts +8 -6
- package/dist/cli/commands/interactive-commands/model/index.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/model/index.js +18 -6
- package/dist/cli/commands/interactive-commands/prompt-commands.d.ts +3 -2
- package/dist/cli/commands/interactive-commands/prompt-commands.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/prompt-commands.js +77 -60
- package/dist/cli/commands/interactive-commands/session/index.d.ts +7 -12
- package/dist/cli/commands/interactive-commands/session/index.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/session/index.js +7 -14
- package/dist/cli/commands/interactive-commands/session/session-commands.d.ts +10 -24
- package/dist/cli/commands/interactive-commands/session/session-commands.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/session/session-commands.js +16 -371
- package/dist/cli/commands/interactive-commands/system/system-commands.d.ts +1 -0
- package/dist/cli/commands/interactive-commands/system/system-commands.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/system/system-commands.js +106 -77
- package/dist/cli/commands/interactive-commands/tool-commands.d.ts +1 -1
- package/dist/cli/commands/interactive-commands/tool-commands.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/tool-commands.js +5 -62
- package/dist/cli/commands/interactive-commands/utils/command-output.d.ts +13 -17
- package/dist/cli/commands/interactive-commands/utils/command-output.d.ts.map +1 -1
- package/dist/cli/commands/interactive-commands/utils/command-output.js +18 -37
- package/dist/cli/commands/list-agents.d.ts +2 -2
- package/dist/cli/commands/list-agents.d.ts.map +1 -1
- package/dist/cli/commands/list-agents.js +38 -34
- package/dist/cli/commands/session-commands.js +16 -16
- package/dist/cli/commands/setup.d.ts +13 -5
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +860 -65
- package/dist/cli/commands/uninstall.d.ts.map +1 -1
- package/dist/cli/commands/uninstall.js +4 -6
- package/dist/cli/commands/which.d.ts.map +1 -1
- package/dist/cli/commands/which.js +18 -4
- package/dist/cli/ink-cli/InkCLIRefactored.d.ts +9 -22
- package/dist/cli/ink-cli/InkCLIRefactored.d.ts.map +1 -1
- package/dist/cli/ink-cli/InkCLIRefactored.js +50 -133
- package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts +26 -3
- package/dist/cli/ink-cli/components/ApprovalPrompt.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/ApprovalPrompt.js +182 -45
- package/dist/cli/ink-cli/components/CustomInput.js +1 -1
- package/dist/cli/ink-cli/components/EditableMultiLineInput.js +4 -4
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts +22 -0
- package/dist/cli/ink-cli/components/ElicitationForm.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/ElicitationForm.js +358 -0
- package/dist/cli/ink-cli/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/ErrorBoundary.js +1 -1
- package/dist/cli/ink-cli/components/Footer.d.ts +16 -0
- package/dist/cli/ink-cli/components/Footer.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/Footer.js +27 -0
- package/dist/cli/ink-cli/components/HistorySearchBar.d.ts +17 -0
- package/dist/cli/ink-cli/components/HistorySearchBar.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/HistorySearchBar.js +8 -0
- package/dist/cli/ink-cli/components/MultiLineInput.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/MultiLineInput.js +3 -3
- package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts +15 -2
- package/dist/cli/ink-cli/components/ResourceAutocomplete.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/ResourceAutocomplete.js +126 -82
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts +15 -2
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/SlashCommandAutocomplete.js +228 -122
- package/dist/cli/ink-cli/components/StatusBar.d.ts +15 -2
- package/dist/cli/ink-cli/components/StatusBar.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/StatusBar.js +50 -10
- package/dist/cli/ink-cli/components/TextBufferInput.d.ts +52 -0
- package/dist/cli/ink-cli/components/TextBufferInput.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/TextBufferInput.js +471 -0
- package/dist/cli/ink-cli/components/base/BaseAutocomplete.js +4 -4
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts +11 -1
- package/dist/cli/ink-cli/components/base/BaseSelector.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/base/BaseSelector.js +90 -49
- package/dist/cli/ink-cli/components/chat/Footer.js +1 -1
- package/dist/cli/ink-cli/components/chat/Header.d.ts +1 -0
- package/dist/cli/ink-cli/components/chat/Header.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/chat/Header.js +6 -3
- package/dist/cli/ink-cli/components/chat/MessageItem.d.ts +3 -0
- package/dist/cli/ink-cli/components/chat/MessageItem.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/chat/MessageItem.js +95 -9
- package/dist/cli/ink-cli/components/chat/MessageList.js +1 -1
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts +16 -0
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/QueuedMessagesDisplay.js +27 -0
- package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts +5 -3
- package/dist/cli/ink-cli/components/chat/ToolIcon.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/chat/ToolIcon.js +21 -7
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts +10 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/ConfigBox.js +6 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts +10 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/HelpBox.js +15 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts +10 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/LogConfigBox.js +9 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts +10 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionHistoryBox.js +37 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts +10 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SessionListBox.js +9 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts +10 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/ShortcutsBox.js +6 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts +10 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/StatsBox.js +29 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts +45 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/StyledBox.js +38 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts +10 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/SyspromptBox.js +6 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts +13 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/chat/styled-boxes/index.js +12 -0
- package/dist/cli/ink-cli/components/input/InputArea.d.ts +36 -8
- package/dist/cli/ink-cli/components/input/InputArea.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/input/InputArea.js +3 -3
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts +25 -0
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/modes/AlternateBufferCLI.js +166 -0
- package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts +27 -0
- package/dist/cli/ink-cli/components/modes/StaticCLI.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/modes/StaticCLI.js +95 -0
- package/dist/cli/ink-cli/components/modes/index.d.ts +10 -0
- package/dist/cli/ink-cli/components/modes/index.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/modes/index.js +9 -0
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts +26 -0
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/ApiKeyInput.js +92 -0
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts +29 -0
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/CustomModelWizard.js +286 -0
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts +22 -0
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/LogLevelSelector.js +59 -0
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts +22 -0
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/McpAddChoice.js +59 -0
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts +26 -0
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/McpAddSelector.js +73 -0
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts +21 -0
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/McpCustomTypeSelector.js +51 -0
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts +29 -0
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/McpCustomWizard.js +215 -0
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts +22 -0
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/McpRemoveSelector.js +74 -0
- package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts +21 -0
- package/dist/cli/ink-cli/components/overlays/McpSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/McpSelector.js +52 -0
- package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts +28 -0
- package/dist/cli/ink-cli/components/overlays/McpServerActions.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/McpServerActions.js +84 -0
- package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts +29 -0
- package/dist/cli/ink-cli/components/overlays/McpServerList.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/McpServerList.js +109 -0
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts +15 -8
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/overlays/ModelSelectorRefactored.js +400 -23
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts +22 -0
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/PromptAddChoice.js +52 -0
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts +29 -0
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/PromptAddWizard.js +166 -0
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts +27 -0
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/PromptDeleteSelector.js +119 -0
- package/dist/cli/ink-cli/components/overlays/PromptList.d.ts +33 -0
- package/dist/cli/ink-cli/components/overlays/PromptList.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/PromptList.js +144 -0
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts +23 -0
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/SearchOverlay.js +189 -0
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts +7 -2
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.d.ts.map +1 -1
- package/dist/cli/ink-cli/components/overlays/SessionSelectorRefactored.js +19 -5
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts +21 -0
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/SessionSubcommandSelector.js +42 -0
- package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts +20 -0
- package/dist/cli/ink-cli/components/overlays/StreamSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/StreamSelector.js +58 -0
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts +25 -0
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/ToolBrowser.js +400 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts +25 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/LocalModelWizard.js +609 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts +15 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/index.js +14 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts +33 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/provider-config.js +419 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts +25 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ApiKeyStep.js +29 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts +17 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/ProviderSelector.js +11 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts +20 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/SetupInfoBanner.js +10 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts +30 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/WizardStepInput.js +13 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts +8 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/shared/index.js +7 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts +79 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/overlays/custom-model-wizard/types.js +38 -0
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts +21 -0
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/renderers/DiffRenderer.js +65 -0
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts +28 -0
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/renderers/FilePreviewRenderer.js +66 -0
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts +19 -0
- package/dist/cli/ink-cli/components/renderers/FileRenderer.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/renderers/FileRenderer.js +26 -0
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts +21 -0
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/renderers/GenericRenderer.js +26 -0
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts +20 -0
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/renderers/SearchRenderer.js +12 -0
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts +21 -0
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/renderers/ShellRenderer.js +25 -0
- package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts +61 -0
- package/dist/cli/ink-cli/components/renderers/diff-shared.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/renderers/diff-shared.js +158 -0
- package/dist/cli/ink-cli/components/renderers/index.d.ts +28 -0
- package/dist/cli/ink-cli/components/renderers/index.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/renderers/index.js +36 -0
- package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts +38 -0
- package/dist/cli/ink-cli/components/shared/MarkdownText.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/shared/MarkdownText.js +362 -0
- package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts +44 -0
- package/dist/cli/ink-cli/components/shared/VirtualizedList.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/shared/VirtualizedList.js +300 -0
- package/dist/cli/ink-cli/components/shared/text-buffer.d.ts +185 -0
- package/dist/cli/ink-cli/components/shared/text-buffer.d.ts.map +1 -0
- package/dist/cli/ink-cli/components/shared/text-buffer.js +1338 -0
- package/dist/cli/ink-cli/constants/processingPhrases.d.ts +10 -0
- package/dist/cli/ink-cli/constants/processingPhrases.d.ts.map +1 -0
- package/dist/cli/ink-cli/constants/processingPhrases.js +64 -0
- package/dist/cli/ink-cli/constants/tips.d.ts +15 -0
- package/dist/cli/ink-cli/constants/tips.d.ts.map +1 -0
- package/dist/cli/ink-cli/constants/tips.js +53 -0
- package/dist/cli/ink-cli/containers/InputContainer.d.ts +42 -8
- package/dist/cli/ink-cli/containers/InputContainer.d.ts.map +1 -1
- package/dist/cli/ink-cli/containers/InputContainer.js +513 -85
- package/dist/cli/ink-cli/containers/OverlayContainer.d.ts +23 -5
- package/dist/cli/ink-cli/containers/OverlayContainer.d.ts.map +1 -1
- package/dist/cli/ink-cli/containers/OverlayContainer.js +1214 -132
- package/dist/cli/ink-cli/containers/index.d.ts +1 -1
- package/dist/cli/ink-cli/containers/index.d.ts.map +1 -1
- package/dist/cli/ink-cli/contexts/KeypressContext.d.ts +36 -0
- package/dist/cli/ink-cli/contexts/KeypressContext.d.ts.map +1 -0
- package/dist/cli/ink-cli/contexts/KeypressContext.js +461 -0
- package/dist/cli/ink-cli/contexts/MouseContext.d.ts +27 -0
- package/dist/cli/ink-cli/contexts/MouseContext.d.ts.map +1 -0
- package/dist/cli/ink-cli/contexts/MouseContext.js +102 -0
- package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts +33 -0
- package/dist/cli/ink-cli/contexts/ScrollProvider.d.ts.map +1 -0
- package/dist/cli/ink-cli/contexts/ScrollProvider.js +170 -0
- package/dist/cli/ink-cli/contexts/index.d.ts +7 -0
- package/dist/cli/ink-cli/contexts/index.d.ts.map +1 -0
- package/dist/cli/ink-cli/contexts/index.js +6 -0
- package/dist/cli/ink-cli/hooks/index.d.ts +5 -0
- package/dist/cli/ink-cli/hooks/index.d.ts.map +1 -1
- package/dist/cli/ink-cli/hooks/index.js +6 -1
- package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts +26 -9
- package/dist/cli/ink-cli/hooks/useAgentEvents.d.ts.map +1 -1
- package/dist/cli/ink-cli/hooks/useAgentEvents.js +90 -198
- package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts +14 -0
- package/dist/cli/ink-cli/hooks/useBatchedScroll.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useBatchedScroll.js +25 -0
- package/dist/cli/ink-cli/hooks/useCLIState.d.ts +50 -0
- package/dist/cli/ink-cli/hooks/useCLIState.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useCLIState.js +190 -0
- package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts +24 -0
- package/dist/cli/ink-cli/hooks/useElapsedTime.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useElapsedTime.js +69 -0
- package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts +61 -0
- package/dist/cli/ink-cli/hooks/useHistorySearch.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useHistorySearch.js +210 -0
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts +136 -0
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useInputOrchestrator.js +663 -0
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.d.ts.map +1 -1
- package/dist/cli/ink-cli/hooks/useKeyboardShortcuts.js +7 -26
- package/dist/cli/ink-cli/hooks/useKeypress.d.ts +18 -0
- package/dist/cli/ink-cli/hooks/useKeypress.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useKeypress.js +26 -0
- package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts +30 -0
- package/dist/cli/ink-cli/hooks/usePhraseCycler.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/usePhraseCycler.js +68 -0
- package/dist/cli/ink-cli/hooks/useStreaming.d.ts +19 -0
- package/dist/cli/ink-cli/hooks/useStreaming.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useStreaming.js +26 -0
- package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts +14 -0
- package/dist/cli/ink-cli/hooks/useTerminalSize.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useTerminalSize.js +31 -0
- package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts +42 -0
- package/dist/cli/ink-cli/hooks/useTokenCounter.d.ts.map +1 -0
- package/dist/cli/ink-cli/hooks/useTokenCounter.js +96 -0
- package/dist/cli/ink-cli/services/CommandService.d.ts +32 -1
- package/dist/cli/ink-cli/services/CommandService.d.ts.map +1 -1
- package/dist/cli/ink-cli/services/CommandService.js +36 -5
- package/dist/cli/ink-cli/services/InputService.d.ts +1 -5
- package/dist/cli/ink-cli/services/InputService.d.ts.map +1 -1
- package/dist/cli/ink-cli/services/InputService.js +1 -8
- package/dist/cli/ink-cli/services/index.d.ts +2 -1
- package/dist/cli/ink-cli/services/index.d.ts.map +1 -1
- package/dist/cli/ink-cli/services/index.js +2 -1
- package/dist/cli/ink-cli/services/processStream.d.ts +69 -0
- package/dist/cli/ink-cli/services/processStream.d.ts.map +1 -0
- package/dist/cli/ink-cli/services/processStream.js +742 -0
- package/dist/cli/ink-cli/state/actions.d.ts +30 -60
- package/dist/cli/ink-cli/state/actions.d.ts.map +1 -1
- package/dist/cli/ink-cli/state/actions.js +3 -0
- package/dist/cli/ink-cli/state/index.d.ts +5 -3
- package/dist/cli/ink-cli/state/index.d.ts.map +1 -1
- package/dist/cli/ink-cli/state/index.js +4 -3
- package/dist/cli/ink-cli/state/initialState.d.ts +4 -3
- package/dist/cli/ink-cli/state/initialState.d.ts.map +1 -1
- package/dist/cli/ink-cli/state/initialState.js +20 -4
- package/dist/cli/ink-cli/state/reducer.d.ts +3 -0
- package/dist/cli/ink-cli/state/reducer.d.ts.map +1 -1
- package/dist/cli/ink-cli/state/reducer.js +62 -168
- package/dist/cli/ink-cli/state/streaming-state.d.ts +27 -0
- package/dist/cli/ink-cli/state/streaming-state.d.ts.map +1 -0
- package/dist/cli/ink-cli/state/streaming-state.js +39 -0
- package/dist/cli/ink-cli/state/types.d.ts +223 -6
- package/dist/cli/ink-cli/state/types.d.ts.map +1 -1
- package/dist/cli/ink-cli/utils/bracketedPaste.d.ts +22 -0
- package/dist/cli/ink-cli/utils/bracketedPaste.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/bracketedPaste.js +27 -0
- package/dist/cli/ink-cli/utils/clipboardUtils.d.ts +49 -0
- package/dist/cli/ink-cli/utils/clipboardUtils.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/clipboardUtils.js +356 -0
- package/dist/cli/ink-cli/utils/commandOverlays.d.ts +33 -0
- package/dist/cli/ink-cli/utils/commandOverlays.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/commandOverlays.js +78 -0
- package/dist/cli/ink-cli/utils/debugLog.d.ts +38 -0
- package/dist/cli/ink-cli/utils/debugLog.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/debugLog.js +66 -0
- package/dist/cli/ink-cli/utils/index.d.ts +2 -1
- package/dist/cli/ink-cli/utils/index.d.ts.map +1 -1
- package/dist/cli/ink-cli/utils/index.js +3 -1
- package/dist/cli/ink-cli/utils/input.d.ts +25 -0
- package/dist/cli/ink-cli/utils/input.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/input.js +56 -0
- package/dist/cli/ink-cli/utils/inputParsing.d.ts +0 -9
- package/dist/cli/ink-cli/utils/inputParsing.d.ts.map +1 -1
- package/dist/cli/ink-cli/utils/inputParsing.js +0 -27
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts +59 -3
- package/dist/cli/ink-cli/utils/messageFormatting.d.ts.map +1 -1
- package/dist/cli/ink-cli/utils/messageFormatting.js +348 -20
- package/dist/cli/ink-cli/utils/mouse.d.ts +61 -0
- package/dist/cli/ink-cli/utils/mouse.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/mouse.js +209 -0
- package/dist/cli/ink-cli/utils/streamSplitter.d.ts +44 -0
- package/dist/cli/ink-cli/utils/streamSplitter.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/streamSplitter.js +154 -0
- package/dist/cli/ink-cli/utils/textUtils.d.ts +63 -0
- package/dist/cli/ink-cli/utils/textUtils.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/textUtils.js +248 -0
- package/dist/cli/ink-cli/utils/toolUtils.d.ts +9 -0
- package/dist/cli/ink-cli/utils/toolUtils.d.ts.map +1 -0
- package/dist/cli/ink-cli/utils/toolUtils.js +15 -0
- package/dist/cli/utils/api-key-setup.d.ts +54 -4
- package/dist/cli/utils/api-key-setup.d.ts.map +1 -1
- package/dist/cli/utils/api-key-setup.js +433 -107
- package/dist/cli/utils/api-key-verification.d.ts +17 -0
- package/dist/cli/utils/api-key-verification.d.ts.map +1 -0
- package/dist/cli/utils/api-key-verification.js +211 -0
- package/dist/cli/utils/config-validation.d.ts +22 -2
- package/dist/cli/utils/config-validation.d.ts.map +1 -1
- package/dist/cli/utils/config-validation.js +354 -25
- package/dist/cli/utils/local-model-setup.d.ts +46 -0
- package/dist/cli/utils/local-model-setup.d.ts.map +1 -0
- package/dist/cli/utils/local-model-setup.js +662 -0
- package/dist/cli/utils/options.d.ts.map +1 -1
- package/dist/cli/utils/options.js +1 -3
- package/dist/cli/utils/prompt-helpers.d.ts +47 -0
- package/dist/cli/utils/prompt-helpers.d.ts.map +1 -0
- package/dist/cli/utils/prompt-helpers.js +66 -0
- package/dist/cli/utils/provider-setup.d.ts +66 -8
- package/dist/cli/utils/provider-setup.d.ts.map +1 -1
- package/dist/cli/utils/provider-setup.js +324 -84
- package/dist/cli/utils/scaffolding-utils.d.ts +76 -0
- package/dist/cli/utils/scaffolding-utils.d.ts.map +1 -0
- package/dist/cli/utils/scaffolding-utils.js +246 -0
- package/dist/cli/utils/setup-utils.d.ts +16 -0
- package/dist/cli/utils/setup-utils.d.ts.map +1 -1
- package/dist/cli/utils/setup-utils.js +72 -21
- package/dist/cli/utils/template-engine.d.ts +65 -0
- package/dist/cli/utils/template-engine.d.ts.map +1 -0
- package/dist/cli/utils/template-engine.js +1089 -0
- package/dist/config/cli-overrides.d.ts +45 -2
- package/dist/config/cli-overrides.d.ts.map +1 -1
- package/dist/config/cli-overrides.js +107 -10
- package/dist/index.js +379 -99
- package/dist/utils/agent-helpers.d.ts +95 -0
- package/dist/utils/agent-helpers.d.ts.map +1 -0
- package/dist/utils/agent-helpers.js +117 -0
- package/dist/webui/assets/index-8j-KMkX1.js +2054 -0
- package/dist/webui/assets/index-c_AX24V4.css +1 -0
- package/dist/webui/assets/{tanstack-DgxBONJY.js → tanstack-Br79RQ-n.js} +1 -1
- package/dist/webui/index.html +4 -10
- package/dist/webui/logos/aws-color.svg +1 -0
- package/dist/webui/logos/dexto/dexto_logo.svg +1 -1
- package/dist/webui/logos/dexto/dexto_logo_light.svg +6 -6
- package/dist/webui/logos/glama.svg +7 -0
- package/dist/webui/logos/litellm.svg +7 -0
- package/dist/webui/logos/openrouter.svg +1 -0
- package/package.json +18 -15
- package/dist/cli/commands/interactive-commands/index.d.ts +0 -63
- package/dist/cli/commands/interactive-commands/index.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/index.js +0 -73
- package/dist/cli/commands/interactive-commands/mcp/mcp-add-utils.d.ts +0 -34
- package/dist/cli/commands/interactive-commands/mcp/mcp-add-utils.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/mcp/mcp-add-utils.js +0 -178
- package/dist/cli/commands/interactive-commands/mcp/mcp-commands.d.ts +0 -9
- package/dist/cli/commands/interactive-commands/mcp/mcp-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/mcp/mcp-commands.js +0 -325
- package/dist/cli/commands/interactive-commands/model/model-commands.d.ts +0 -21
- package/dist/cli/commands/interactive-commands/model/model-commands.d.ts.map +0 -1
- package/dist/cli/commands/interactive-commands/model/model-commands.js +0 -190
- package/dist/cli/ink-cli/components/MultiLineTextInput.d.ts +0 -26
- package/dist/cli/ink-cli/components/MultiLineTextInput.d.ts.map +0 -1
- package/dist/cli/ink-cli/components/MultiLineTextInput.js +0 -220
- package/dist/discord/bot.d.ts +0 -4
- package/dist/discord/bot.d.ts.map +0 -1
- package/dist/discord/bot.js +0 -193
- package/dist/telegram/bot.d.ts +0 -5
- package/dist/telegram/bot.d.ts.map +0 -1
- package/dist/telegram/bot.js +0 -251
- package/dist/webui/assets/index-DKq5Xng1.js +0 -687
- package/dist/webui/assets/index-D_0_GBu5.css +0 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mouse Event Utilities
|
|
3
|
+
* Provides trackpad/mouse scroll support.
|
|
4
|
+
*/
|
|
5
|
+
import { ESC } from './input.js';
|
|
6
|
+
export type MouseEventName = 'scroll-up' | 'scroll-down' | 'scroll-left' | 'scroll-right' | 'left-press' | 'left-release' | 'right-press' | 'right-release' | 'middle-press' | 'middle-release' | 'move';
|
|
7
|
+
export interface MouseEvent {
|
|
8
|
+
name: MouseEventName;
|
|
9
|
+
col: number;
|
|
10
|
+
row: number;
|
|
11
|
+
shift: boolean;
|
|
12
|
+
meta: boolean;
|
|
13
|
+
ctrl: boolean;
|
|
14
|
+
button: 'left' | 'middle' | 'right' | 'none';
|
|
15
|
+
}
|
|
16
|
+
export type MouseHandler = (event: MouseEvent) => void | boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Enable mouse events in the terminal.
|
|
19
|
+
* Uses SGR extended mouse mode for better coordinate handling.
|
|
20
|
+
*/
|
|
21
|
+
export declare function enableMouseEvents(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Disable mouse events in the terminal.
|
|
24
|
+
*/
|
|
25
|
+
export declare function disableMouseEvents(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get mouse event name from button code
|
|
28
|
+
*
|
|
29
|
+
* NOTE: X11 mouse protocol limitation - all button releases report the same code (3),
|
|
30
|
+
* so we cannot distinguish between left-release, middle-release, and right-release.
|
|
31
|
+
* This function returns 'left-release' for all releases in X11 mode.
|
|
32
|
+
* Consumers needing accurate release identification should track press state themselves.
|
|
33
|
+
*/
|
|
34
|
+
export declare function getMouseEventName(buttonCode: number, isRelease: boolean): MouseEventName | null;
|
|
35
|
+
/**
|
|
36
|
+
* Parse SGR format mouse event
|
|
37
|
+
*/
|
|
38
|
+
export declare function parseSGRMouseEvent(buffer: string): {
|
|
39
|
+
event: MouseEvent;
|
|
40
|
+
length: number;
|
|
41
|
+
} | null;
|
|
42
|
+
/**
|
|
43
|
+
* Parse X11 format mouse event
|
|
44
|
+
*/
|
|
45
|
+
export declare function parseX11MouseEvent(buffer: string): {
|
|
46
|
+
event: MouseEvent;
|
|
47
|
+
length: number;
|
|
48
|
+
} | null;
|
|
49
|
+
/**
|
|
50
|
+
* Parse mouse event from buffer (tries both SGR and X11 formats)
|
|
51
|
+
*/
|
|
52
|
+
export declare function parseMouseEvent(buffer: string): {
|
|
53
|
+
event: MouseEvent;
|
|
54
|
+
length: number;
|
|
55
|
+
} | null;
|
|
56
|
+
/**
|
|
57
|
+
* Check if buffer could be an incomplete mouse sequence
|
|
58
|
+
*/
|
|
59
|
+
export declare function isIncompleteMouseSequence(buffer: string): boolean;
|
|
60
|
+
export { ESC };
|
|
61
|
+
//# sourceMappingURL=mouse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mouse.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/mouse.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,GAAG,EAMN,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,cAAc,GACpB,WAAW,GACX,aAAa,GACb,aAAa,GACb,cAAc,GACd,YAAY,GACZ,cAAc,GACd,aAAa,GACb,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,MAAM,CAAC;AAEb,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;CAChD;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,OAAO,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAIxC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,cAAc,GAAG,IAAI,CAmC/F;AAmBD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAiC/F;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAoE/F;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAE5F;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAmBjE;AAGD,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mouse Event Utilities
|
|
3
|
+
* Provides trackpad/mouse scroll support.
|
|
4
|
+
*/
|
|
5
|
+
import { ESC, SGR_MOUSE_REGEX, X11_MOUSE_REGEX, SGR_EVENT_PREFIX, X11_EVENT_PREFIX, couldBeMouseSequence, } from './input.js';
|
|
6
|
+
/**
|
|
7
|
+
* Enable mouse events in the terminal.
|
|
8
|
+
* Uses SGR extended mouse mode for better coordinate handling.
|
|
9
|
+
*/
|
|
10
|
+
export function enableMouseEvents() {
|
|
11
|
+
// ?1002h = button event tracking (clicks + drags + scroll wheel)
|
|
12
|
+
// ?1006h = SGR extended mouse mode (better coordinate handling)
|
|
13
|
+
process.stdout.write('\u001b[?1002h\u001b[?1006h');
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Disable mouse events in the terminal.
|
|
17
|
+
*/
|
|
18
|
+
export function disableMouseEvents() {
|
|
19
|
+
process.stdout.write('\u001b[?1006l\u001b[?1002l');
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get mouse event name from button code
|
|
23
|
+
*
|
|
24
|
+
* NOTE: X11 mouse protocol limitation - all button releases report the same code (3),
|
|
25
|
+
* so we cannot distinguish between left-release, middle-release, and right-release.
|
|
26
|
+
* This function returns 'left-release' for all releases in X11 mode.
|
|
27
|
+
* Consumers needing accurate release identification should track press state themselves.
|
|
28
|
+
*/
|
|
29
|
+
export function getMouseEventName(buttonCode, isRelease) {
|
|
30
|
+
const isMove = (buttonCode & 32) !== 0;
|
|
31
|
+
// Horizontal scroll (less common)
|
|
32
|
+
if (buttonCode === 66) {
|
|
33
|
+
return 'scroll-left';
|
|
34
|
+
}
|
|
35
|
+
else if (buttonCode === 67) {
|
|
36
|
+
return 'scroll-right';
|
|
37
|
+
}
|
|
38
|
+
// Vertical scroll
|
|
39
|
+
if ((buttonCode & 64) === 64) {
|
|
40
|
+
if ((buttonCode & 1) === 0) {
|
|
41
|
+
return 'scroll-up';
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return 'scroll-down';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (isMove) {
|
|
48
|
+
return 'move';
|
|
49
|
+
}
|
|
50
|
+
const button = buttonCode & 3;
|
|
51
|
+
const type = isRelease ? 'release' : 'press';
|
|
52
|
+
switch (button) {
|
|
53
|
+
case 0:
|
|
54
|
+
return `left-${type}`;
|
|
55
|
+
case 1:
|
|
56
|
+
return `middle-${type}`;
|
|
57
|
+
case 2:
|
|
58
|
+
return `right-${type}`;
|
|
59
|
+
default:
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get button type from button code
|
|
65
|
+
*/
|
|
66
|
+
function getButtonFromCode(code) {
|
|
67
|
+
const button = code & 3;
|
|
68
|
+
switch (button) {
|
|
69
|
+
case 0:
|
|
70
|
+
return 'left';
|
|
71
|
+
case 1:
|
|
72
|
+
return 'middle';
|
|
73
|
+
case 2:
|
|
74
|
+
return 'right';
|
|
75
|
+
default:
|
|
76
|
+
return 'none';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Parse SGR format mouse event
|
|
81
|
+
*/
|
|
82
|
+
export function parseSGRMouseEvent(buffer) {
|
|
83
|
+
const match = buffer.match(SGR_MOUSE_REGEX);
|
|
84
|
+
if (match) {
|
|
85
|
+
const buttonCode = parseInt(match[1], 10);
|
|
86
|
+
const col = parseInt(match[2], 10);
|
|
87
|
+
const row = parseInt(match[3], 10);
|
|
88
|
+
const action = match[4];
|
|
89
|
+
const isRelease = action === 'm';
|
|
90
|
+
const shift = (buttonCode & 4) !== 0;
|
|
91
|
+
const meta = (buttonCode & 8) !== 0;
|
|
92
|
+
const ctrl = (buttonCode & 16) !== 0;
|
|
93
|
+
const name = getMouseEventName(buttonCode, isRelease);
|
|
94
|
+
if (name) {
|
|
95
|
+
return {
|
|
96
|
+
event: {
|
|
97
|
+
name,
|
|
98
|
+
ctrl,
|
|
99
|
+
meta,
|
|
100
|
+
shift,
|
|
101
|
+
col,
|
|
102
|
+
row,
|
|
103
|
+
button: getButtonFromCode(buttonCode),
|
|
104
|
+
},
|
|
105
|
+
length: match[0].length,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Parse X11 format mouse event
|
|
113
|
+
*/
|
|
114
|
+
export function parseX11MouseEvent(buffer) {
|
|
115
|
+
const match = buffer.match(X11_MOUSE_REGEX);
|
|
116
|
+
if (!match)
|
|
117
|
+
return null;
|
|
118
|
+
const b = match[1].charCodeAt(0) - 32;
|
|
119
|
+
const col = match[1].charCodeAt(1) - 32;
|
|
120
|
+
const row = match[1].charCodeAt(2) - 32;
|
|
121
|
+
const shift = (b & 4) !== 0;
|
|
122
|
+
const meta = (b & 8) !== 0;
|
|
123
|
+
const ctrl = (b & 16) !== 0;
|
|
124
|
+
const isMove = (b & 32) !== 0;
|
|
125
|
+
const isWheel = (b & 64) !== 0;
|
|
126
|
+
let name = null;
|
|
127
|
+
if (isWheel) {
|
|
128
|
+
const button = b & 3;
|
|
129
|
+
switch (button) {
|
|
130
|
+
case 0:
|
|
131
|
+
name = 'scroll-up';
|
|
132
|
+
break;
|
|
133
|
+
case 1:
|
|
134
|
+
name = 'scroll-down';
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
else if (isMove) {
|
|
139
|
+
name = 'move';
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
const button = b & 3;
|
|
143
|
+
if (button === 3) {
|
|
144
|
+
// X11 reports 'release' (3) for all button releases
|
|
145
|
+
name = 'left-release';
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
switch (button) {
|
|
149
|
+
case 0:
|
|
150
|
+
name = 'left-press';
|
|
151
|
+
break;
|
|
152
|
+
case 1:
|
|
153
|
+
name = 'middle-press';
|
|
154
|
+
break;
|
|
155
|
+
case 2:
|
|
156
|
+
name = 'right-press';
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (name) {
|
|
162
|
+
let button = getButtonFromCode(b);
|
|
163
|
+
if (name === 'left-release' && button === 'none') {
|
|
164
|
+
button = 'left';
|
|
165
|
+
}
|
|
166
|
+
return {
|
|
167
|
+
event: {
|
|
168
|
+
name,
|
|
169
|
+
ctrl,
|
|
170
|
+
meta,
|
|
171
|
+
shift,
|
|
172
|
+
col,
|
|
173
|
+
row,
|
|
174
|
+
button,
|
|
175
|
+
},
|
|
176
|
+
length: match[0].length,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Parse mouse event from buffer (tries both SGR and X11 formats)
|
|
183
|
+
*/
|
|
184
|
+
export function parseMouseEvent(buffer) {
|
|
185
|
+
return parseSGRMouseEvent(buffer) || parseX11MouseEvent(buffer);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Check if buffer could be an incomplete mouse sequence
|
|
189
|
+
*/
|
|
190
|
+
export function isIncompleteMouseSequence(buffer) {
|
|
191
|
+
if (!couldBeMouseSequence(buffer))
|
|
192
|
+
return false;
|
|
193
|
+
// If it matches a complete sequence, it's not incomplete
|
|
194
|
+
if (parseMouseEvent(buffer))
|
|
195
|
+
return false;
|
|
196
|
+
if (buffer.startsWith(X11_EVENT_PREFIX)) {
|
|
197
|
+
// X11 needs exactly 3 bytes after prefix
|
|
198
|
+
return buffer.length < X11_EVENT_PREFIX.length + 3;
|
|
199
|
+
}
|
|
200
|
+
if (buffer.startsWith(SGR_EVENT_PREFIX)) {
|
|
201
|
+
// SGR sequences end with 'm' or 'M'
|
|
202
|
+
// Add a reasonable max length check to fail early on garbage
|
|
203
|
+
return !/[mM]/.test(buffer) && buffer.length < 50;
|
|
204
|
+
}
|
|
205
|
+
// It's a prefix of the prefix (e.g. "ESC" or "ESC [")
|
|
206
|
+
return true;
|
|
207
|
+
}
|
|
208
|
+
// Re-export ESC for convenience
|
|
209
|
+
export { ESC };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Splitter Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides markdown-aware splitting for streaming content to reduce flickering.
|
|
5
|
+
*
|
|
6
|
+
* Approach:
|
|
7
|
+
* - Find safe split points at paragraph boundaries (\n\n)
|
|
8
|
+
* - Protect code blocks from being split mid-block
|
|
9
|
+
* - Allow progressive finalization during streaming
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Find the last safe split point in the content.
|
|
13
|
+
*
|
|
14
|
+
* Safe split points are:
|
|
15
|
+
* 1. After paragraph breaks (\n\n) that are not inside code blocks
|
|
16
|
+
* 2. Before code blocks if we're inside one
|
|
17
|
+
*
|
|
18
|
+
* Returns the index to split at, or content.length if no split is needed.
|
|
19
|
+
*/
|
|
20
|
+
export declare function findLastSafeSplitPoint(content: string): number;
|
|
21
|
+
/**
|
|
22
|
+
* Find the last newline that's not inside a code block.
|
|
23
|
+
* Used for line-based batching.
|
|
24
|
+
*/
|
|
25
|
+
export declare function findLastSafeNewline(content: string): number;
|
|
26
|
+
/**
|
|
27
|
+
* Determines if content should be split for progressive finalization.
|
|
28
|
+
*
|
|
29
|
+
* Strategy:
|
|
30
|
+
* 1. First try paragraph splits (\n\n) for clean breaks
|
|
31
|
+
* 2. If content exceeds MAX_PENDING_LENGTH with no paragraph break,
|
|
32
|
+
* fall back to line-based splits (\n) to prevent flickering
|
|
33
|
+
*
|
|
34
|
+
* Returns:
|
|
35
|
+
* - { shouldSplit: false } if no split needed
|
|
36
|
+
* - { shouldSplit: true, splitIndex, before, after } if split found
|
|
37
|
+
*/
|
|
38
|
+
export declare function checkForSplit(content: string): {
|
|
39
|
+
shouldSplit: boolean;
|
|
40
|
+
splitIndex?: number;
|
|
41
|
+
before?: string;
|
|
42
|
+
after?: string;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=streamSplitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamSplitter.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/streamSplitter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAmDH;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA2B9D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAiB3D;AAcD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG;IAC5C,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CA+BA"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Splitter Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides markdown-aware splitting for streaming content to reduce flickering.
|
|
5
|
+
*
|
|
6
|
+
* Approach:
|
|
7
|
+
* - Find safe split points at paragraph boundaries (\n\n)
|
|
8
|
+
* - Protect code blocks from being split mid-block
|
|
9
|
+
* - Allow progressive finalization during streaming
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Checks if a given index is inside a fenced code block (``` ... ```)
|
|
13
|
+
*/
|
|
14
|
+
function isIndexInsideCodeBlock(content, indexToTest) {
|
|
15
|
+
let fenceCount = 0;
|
|
16
|
+
let searchPos = 0;
|
|
17
|
+
while (searchPos < content.length) {
|
|
18
|
+
const nextFence = content.indexOf('```', searchPos);
|
|
19
|
+
if (nextFence === -1 || nextFence >= indexToTest) {
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
fenceCount++;
|
|
23
|
+
searchPos = nextFence + 3;
|
|
24
|
+
}
|
|
25
|
+
return fenceCount % 2 === 1;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Finds the starting index of the code block that encloses the given index.
|
|
29
|
+
* Returns -1 if the index is not inside a code block.
|
|
30
|
+
*/
|
|
31
|
+
function findEnclosingCodeBlockStart(content, index) {
|
|
32
|
+
if (!isIndexInsideCodeBlock(content, index)) {
|
|
33
|
+
return -1;
|
|
34
|
+
}
|
|
35
|
+
let currentSearchPos = 0;
|
|
36
|
+
while (currentSearchPos < index) {
|
|
37
|
+
const blockStartIndex = content.indexOf('```', currentSearchPos);
|
|
38
|
+
if (blockStartIndex === -1 || blockStartIndex >= index) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
const blockEndIndex = content.indexOf('```', blockStartIndex + 3);
|
|
42
|
+
if (blockStartIndex < index) {
|
|
43
|
+
if (blockEndIndex === -1 || index < blockEndIndex + 3) {
|
|
44
|
+
return blockStartIndex;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (blockEndIndex === -1)
|
|
48
|
+
break;
|
|
49
|
+
currentSearchPos = blockEndIndex + 3;
|
|
50
|
+
}
|
|
51
|
+
return -1;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Find the last safe split point in the content.
|
|
55
|
+
*
|
|
56
|
+
* Safe split points are:
|
|
57
|
+
* 1. After paragraph breaks (\n\n) that are not inside code blocks
|
|
58
|
+
* 2. Before code blocks if we're inside one
|
|
59
|
+
*
|
|
60
|
+
* Returns the index to split at, or content.length if no split is needed.
|
|
61
|
+
*/
|
|
62
|
+
export function findLastSafeSplitPoint(content) {
|
|
63
|
+
// If we're inside a code block at the end, split before it
|
|
64
|
+
const enclosingBlockStart = findEnclosingCodeBlockStart(content, content.length);
|
|
65
|
+
if (enclosingBlockStart !== -1) {
|
|
66
|
+
return enclosingBlockStart;
|
|
67
|
+
}
|
|
68
|
+
// Search for the last double newline (\n\n) not in a code block
|
|
69
|
+
let searchStartIndex = content.length;
|
|
70
|
+
while (searchStartIndex >= 0) {
|
|
71
|
+
const dnlIndex = content.lastIndexOf('\n\n', searchStartIndex);
|
|
72
|
+
if (dnlIndex === -1) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
const potentialSplitPoint = dnlIndex + 2;
|
|
76
|
+
if (!isIndexInsideCodeBlock(content, potentialSplitPoint)) {
|
|
77
|
+
return potentialSplitPoint;
|
|
78
|
+
}
|
|
79
|
+
// If potentialSplitPoint was inside a code block,
|
|
80
|
+
// search before the \n\n we just found
|
|
81
|
+
searchStartIndex = dnlIndex - 1;
|
|
82
|
+
}
|
|
83
|
+
// No safe split point found, return full length
|
|
84
|
+
return content.length;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Find the last newline that's not inside a code block.
|
|
88
|
+
* Used for line-based batching.
|
|
89
|
+
*/
|
|
90
|
+
export function findLastSafeNewline(content) {
|
|
91
|
+
let searchPos = content.length;
|
|
92
|
+
while (searchPos > 0) {
|
|
93
|
+
const nlIndex = content.lastIndexOf('\n', searchPos - 1);
|
|
94
|
+
if (nlIndex === -1) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
if (!isIndexInsideCodeBlock(content, nlIndex)) {
|
|
98
|
+
return nlIndex + 1; // Return position after the newline
|
|
99
|
+
}
|
|
100
|
+
searchPos = nlIndex;
|
|
101
|
+
}
|
|
102
|
+
return -1; // No safe newline found
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Minimum content length before considering a paragraph split (\n\n).
|
|
106
|
+
*/
|
|
107
|
+
const MIN_PARAGRAPH_SPLIT_LENGTH = 200;
|
|
108
|
+
/**
|
|
109
|
+
* Maximum content length before forcing a line-based split.
|
|
110
|
+
* This prevents excessive accumulation that causes flickering.
|
|
111
|
+
* Roughly 3-4 lines of terminal width (~80 chars each).
|
|
112
|
+
*/
|
|
113
|
+
const MAX_PENDING_LENGTH = 300;
|
|
114
|
+
/**
|
|
115
|
+
* Determines if content should be split for progressive finalization.
|
|
116
|
+
*
|
|
117
|
+
* Strategy:
|
|
118
|
+
* 1. First try paragraph splits (\n\n) for clean breaks
|
|
119
|
+
* 2. If content exceeds MAX_PENDING_LENGTH with no paragraph break,
|
|
120
|
+
* fall back to line-based splits (\n) to prevent flickering
|
|
121
|
+
*
|
|
122
|
+
* Returns:
|
|
123
|
+
* - { shouldSplit: false } if no split needed
|
|
124
|
+
* - { shouldSplit: true, splitIndex, before, after } if split found
|
|
125
|
+
*/
|
|
126
|
+
export function checkForSplit(content) {
|
|
127
|
+
// Don't split very small content
|
|
128
|
+
if (content.length < MIN_PARAGRAPH_SPLIT_LENGTH) {
|
|
129
|
+
return { shouldSplit: false };
|
|
130
|
+
}
|
|
131
|
+
// Try paragraph-based split first (cleaner breaks)
|
|
132
|
+
const paragraphSplitPoint = findLastSafeSplitPoint(content);
|
|
133
|
+
if (paragraphSplitPoint > 80 && paragraphSplitPoint < content.length - 20) {
|
|
134
|
+
return {
|
|
135
|
+
shouldSplit: true,
|
|
136
|
+
splitIndex: paragraphSplitPoint,
|
|
137
|
+
before: content.substring(0, paragraphSplitPoint),
|
|
138
|
+
after: content.substring(paragraphSplitPoint),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
// If content is getting too long, force a line-based split to reduce flickering
|
|
142
|
+
if (content.length > MAX_PENDING_LENGTH) {
|
|
143
|
+
const lineSplitPoint = findLastSafeNewline(content);
|
|
144
|
+
if (lineSplitPoint > 80 && lineSplitPoint < content.length - 20) {
|
|
145
|
+
return {
|
|
146
|
+
shouldSplit: true,
|
|
147
|
+
splitIndex: lineSplitPoint,
|
|
148
|
+
before: content.substring(0, lineSplitPoint),
|
|
149
|
+
after: content.substring(lineSplitPoint),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return { shouldSplit: false };
|
|
154
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unicode-aware text utilities for terminal rendering
|
|
3
|
+
*
|
|
4
|
+
* These utilities work at the code-point level rather than UTF-16 code units,
|
|
5
|
+
* so that surrogate-pair emoji count as one "column".
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Convert a string to an array of code points (handles surrogate pairs correctly)
|
|
9
|
+
*/
|
|
10
|
+
export declare function toCodePoints(str: string): string[];
|
|
11
|
+
/**
|
|
12
|
+
* Get the code-point length of a string
|
|
13
|
+
*/
|
|
14
|
+
export declare function cpLen(str: string): number;
|
|
15
|
+
/**
|
|
16
|
+
* Slice a string by code-point indices
|
|
17
|
+
*/
|
|
18
|
+
export declare function cpSlice(str: string, start: number, end?: number): string;
|
|
19
|
+
/**
|
|
20
|
+
* Strip characters that can break terminal rendering.
|
|
21
|
+
*
|
|
22
|
+
* Characters stripped:
|
|
23
|
+
* - ANSI escape sequences
|
|
24
|
+
* - C0 control chars (0x00-0x1F) except CR/LF/TAB
|
|
25
|
+
* - C1 control chars (0x80-0x9F)
|
|
26
|
+
*
|
|
27
|
+
* Characters preserved:
|
|
28
|
+
* - All printable Unicode including emojis
|
|
29
|
+
* - CR/LF (0x0D/0x0A) - needed for line breaks
|
|
30
|
+
* - TAB (0x09)
|
|
31
|
+
*/
|
|
32
|
+
export declare function stripUnsafeCharacters(str: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Cached version of stringWidth function for better performance
|
|
35
|
+
*/
|
|
36
|
+
export declare function getCachedStringWidth(str: string): number;
|
|
37
|
+
/**
|
|
38
|
+
* Clear the string width cache
|
|
39
|
+
*/
|
|
40
|
+
export declare function clearStringWidthCache(): void;
|
|
41
|
+
export declare const isWordCharStrict: (char: string | undefined) => boolean;
|
|
42
|
+
export declare const isWhitespace: (char: string | undefined) => boolean;
|
|
43
|
+
export declare const isCombiningMark: (char: string | undefined) => boolean;
|
|
44
|
+
export declare const isWordCharWithCombining: (char: string | undefined) => boolean;
|
|
45
|
+
export declare const getCharScript: (char: string | undefined) => string;
|
|
46
|
+
export declare const isDifferentScript: (char1: string | undefined, char2: string | undefined) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Find previous word boundary in a line
|
|
49
|
+
*/
|
|
50
|
+
export declare function findPrevWordBoundary(line: string, cursorCol: number): number;
|
|
51
|
+
/**
|
|
52
|
+
* Find next word boundary in a line
|
|
53
|
+
*/
|
|
54
|
+
export declare function findNextWordBoundary(line: string, cursorCol: number): number;
|
|
55
|
+
/**
|
|
56
|
+
* Find next word start within a line, starting from col
|
|
57
|
+
*/
|
|
58
|
+
export declare function findNextWordStartInLine(line: string, col: number): number | null;
|
|
59
|
+
/**
|
|
60
|
+
* Find previous word start within a line
|
|
61
|
+
*/
|
|
62
|
+
export declare function findPrevWordStartInLine(line: string, col: number): number | null;
|
|
63
|
+
//# sourceMappingURL=textUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textUtils.d.ts","sourceRoot":"","sources":["../../../../src/cli/ink-cli/utils/textUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CA+BlD;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAGxE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAwBzD;AAKD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAcxD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAID,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,GAAG,SAAS,KAAG,OACN,CAAC;AAEvD,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,GAAG,SAAS,KAAG,OACf,CAAC;AAE1C,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,GAAG,SAAS,KAAG,OACd,CAAC;AAE9C,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,GAAG,SAAS,KAAG,OAChB,CAAC;AAGpD,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,GAAG,SAAS,KAAG,MASxD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC1B,OAAO,MAAM,GAAG,SAAS,EACzB,OAAO,MAAM,GAAG,SAAS,KAC1B,OAGF,CAAC;AAKF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAgB5E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAkB5E;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAiChF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAiChF"}
|