@deepseek-harness-tui/dsh-tui 0.16.1 → 0.18.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 +213 -34
- package/assets/plugin-icon.svg +13 -0
- package/assets/windows-installer.cs +308 -0
- package/assets/windows-installer.ps1 +17 -0
- package/bin/dsh-tui.js +64 -5
- package/cli/adapters/dsh/index.mjs +111 -0
- package/cli/adapters/dsh/locate.mjs +73 -0
- package/cli/adapters/dsh/management-plugin.mjs +111 -0
- package/cli/args.mjs +154 -0
- package/cli/contracts.d.ts +48 -0
- package/cli/engine.mjs +92 -0
- package/cli/entry.mjs +48 -0
- package/cli/process.mjs +118 -0
- package/cli/protocol.mjs +23 -0
- package/cli/schema-v1.json +33 -0
- package/cordis.patch.yml +3 -1
- package/cordis.yml +3 -1
- package/guide/dsh-tui-guide/SKILL.md +1 -0
- package/guide/dsh-tui-guide/cli.en.md +114 -0
- package/guide/dsh-tui-guide/cli.md +114 -0
- package/guide/dsh-tui-guide/configuration.en.md +7 -5
- package/guide/dsh-tui-guide/configuration.md +7 -5
- package/guide/dsh-tui-guide/getting-started.en.md +33 -3
- package/guide/dsh-tui-guide/getting-started.md +23 -2
- package/guide/dsh-tui-guide/interaction.en.md +50 -17
- package/guide/dsh-tui-guide/interaction.md +35 -13
- package/guide/dsh-tui-guide/plugins.en.md +63 -11
- package/guide/dsh-tui-guide/plugins.md +41 -7
- package/guide/dsh-tui-guide/user-guide.en.md +55 -34
- package/guide/dsh-tui-guide/user-guide.md +45 -28
- package/lib/settings.json +85 -42
- package/lib/types/adapter/channel/plugins.d.ts.map +1 -1
- package/lib/types/adapter/channel/plugins.js +8 -0
- package/lib/types/adapter/channel/ui-policy.d.ts +2 -1
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +4 -0
- package/lib/types/adapter/ports/channel-display.d.ts +10 -0
- package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-session.d.ts +2 -0
- package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
- package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-ui.d.ts +22 -2
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +11 -1
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel.d.ts +7 -0
- package/lib/types/adapter/ports/channel.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.d.ts +60 -0
- package/lib/types/adapter/standard/grants.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.js +74 -0
- package/lib/types/agent/capabilities.d.ts +2 -0
- package/lib/types/agent/capabilities.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +15 -1
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/api.d.ts +2 -2
- package/lib/types/api.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/events.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/events.js +2 -1
- package/lib/types/backends/codex/auth/status.js +1 -1
- package/lib/types/backends/codex/session/controls.d.ts.map +1 -1
- package/lib/types/backends/codex/session/controls.js +6 -5
- package/lib/types/backends/codex/session/goals.d.ts.map +1 -1
- package/lib/types/backends/codex/session/side-query.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/events.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/events.js +3 -1
- package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -1
- package/lib/types/backends/shared/channel-tokens.js +9 -8
- package/lib/types/channel/history-restore.d.ts.map +1 -1
- package/lib/types/channel/history-restore.js +2 -0
- package/lib/types/channel/interaction.d.ts.map +1 -1
- package/lib/types/channel/interaction.js +1 -0
- package/lib/types/channel/projection.d.ts +1 -1
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +19 -4
- package/lib/types/channel/questions.d.ts +2 -0
- package/lib/types/channel/questions.d.ts.map +1 -1
- package/lib/types/channel/sanitize.d.ts +14 -0
- package/lib/types/channel/sanitize.d.ts.map +1 -1
- package/lib/types/channel/sanitize.js +55 -0
- package/lib/types/channel/working-directory.d.ts +9 -0
- package/lib/types/channel/working-directory.d.ts.map +1 -0
- package/lib/types/channel/working-directory.js +7 -0
- package/lib/types/commands.d.ts +8 -1
- package/lib/types/commands.d.ts.map +1 -1
- package/lib/types/commands.js +14 -5
- package/lib/types/components/ChatTitle.d.ts +7 -0
- package/lib/types/components/ChatTitle.d.ts.map +1 -0
- package/lib/types/components/ChatTitle.js +15 -0
- package/lib/types/components/CodeBlockFrame.d.ts.map +1 -1
- package/lib/types/components/CodeBlockFrame.js +10 -5
- package/lib/types/components/CompactionStatusRow.d.ts.map +1 -1
- package/lib/types/components/CompactionStatusRow.js +24 -3
- package/lib/types/components/GoalTodoPanel.d.ts +73 -6
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +165 -17
- package/lib/types/components/Markdown.d.ts +9 -1
- package/lib/types/components/Markdown.d.ts.map +1 -1
- package/lib/types/components/Markdown.js +5 -4
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +20 -14
- package/lib/types/components/PluginGrantList.d.ts +45 -0
- package/lib/types/components/PluginGrantList.d.ts.map +1 -0
- package/lib/types/components/PluginGrantList.js +126 -0
- package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
- package/lib/types/components/PluginInstallPane.js +35 -6
- package/lib/types/components/PluginManagePane.d.ts.map +1 -1
- package/lib/types/components/PluginManagePane.js +65 -8
- package/lib/types/components/PromptInput.d.ts +13 -5
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +190 -108
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +232 -22
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +10 -0
- package/lib/types/components/SubagentDetailScene.d.ts +3 -1
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +17 -1
- package/lib/types/components/Whale.d.ts.map +1 -1
- package/lib/types/components/Whale.js +8 -5
- package/lib/types/components/approvals/ApprovalPanel.d.ts +1 -1
- package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
- package/lib/types/components/approvals/ApprovalPanel.js +93 -11
- package/lib/types/components/bigfont.d.ts.map +1 -1
- package/lib/types/components/bigfont.js +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +24 -11
- package/lib/types/components/onboardingModel.d.ts +2 -2
- package/lib/types/components/onboardingModel.js +3 -3
- package/lib/types/components/onboardingProviderPlan.d.ts +110 -0
- package/lib/types/components/onboardingProviderPlan.d.ts.map +1 -0
- package/lib/types/components/onboardingProviderPlan.js +78 -0
- package/lib/types/components/previewRows.d.ts +19 -0
- package/lib/types/components/previewRows.d.ts.map +1 -0
- package/lib/types/components/previewRows.js +46 -0
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
- package/lib/types/components/questions/AskUserQuestionPanel.js +75 -10
- package/lib/types/components/sessions/ForeignSessionRow.d.ts +3 -9
- package/lib/types/components/sessions/ForeignSessionRow.d.ts.map +1 -1
- package/lib/types/components/sessions/ForeignSessionRow.js +6 -10
- package/lib/types/components/sessions/SessionListRow.d.ts +4 -9
- package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -1
- package/lib/types/components/sessions/SessionListRow.js +18 -10
- package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/InfoPanel.js +4 -3
- package/lib/types/components/sidePanel/SidePanelLayout.d.ts.map +1 -1
- package/lib/types/components/sidePanel/SidePanelLayout.js +5 -5
- package/lib/types/components/sidePanel/WorkspacePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/WorkspacePanel.js +19 -7
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +7 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +16 -0
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +8 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +8 -1
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +36 -18
- package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/companion/CompanionPanel.js +2 -1
- package/lib/types/components/sidePanel/panelMarkdown.d.ts +32 -0
- package/lib/types/components/sidePanel/panelMarkdown.d.ts.map +1 -0
- package/lib/types/components/sidePanel/panelMarkdown.js +45 -0
- package/lib/types/components/sidePanel/pluginPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/pluginPanelAdapter.js +6 -1
- package/lib/types/components/sidePanel/subagentFailureRead.d.ts +21 -0
- package/lib/types/components/sidePanel/subagentFailureRead.d.ts.map +1 -0
- package/lib/types/components/sidePanel/subagentFailureRead.js +66 -0
- package/lib/types/components/sidePanel/types.d.ts +2 -0
- package/lib/types/components/sidePanel/types.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.js +39 -7
- package/lib/types/components/trajectory/MiniWake.d.ts +2 -2
- package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -1
- package/lib/types/components/trajectory/MiniWake.js +7 -3
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
- package/lib/types/components/workspaces/HomeWorkspaceRow.js +4 -7
- package/lib/types/dsh-adapter/backend/session.d.ts +7 -1
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/session.js +62 -6
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +18 -4
- package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.js +3 -1
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +5 -1
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +18 -1
- package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/command-completions.js +6 -8
- package/lib/types/dsh-adapter/channel/composer-images.d.ts +11 -1
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +121 -113
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-mentions.js +38 -17
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +9 -5
- package/lib/types/dsh-adapter/channel/core/actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/actions.js +23 -2
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +10 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.js +48 -3
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +5 -2
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +7 -0
- package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/files.js +2 -1
- package/lib/types/dsh-adapter/channel/core/host.d.ts +14 -10
- package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/host.js +192 -13
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +1 -0
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.js +32 -3
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +31 -5
- package/lib/types/dsh-adapter/channel/input-actions.d.ts +2 -2
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +34 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +5 -2
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +31 -4
- package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mentions.js +21 -7
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.js +7 -1
- package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-selection.js +6 -4
- package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/paths.js +11 -9
- package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-fork.js +1 -0
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.js +6 -1
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-metadata.js +15 -2
- package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.js +7 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +56 -36
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.js +3 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +3 -1
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +10 -3
- package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/state.js +2 -2
- package/lib/types/dsh-adapter/channel/types.d.ts +13 -1
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/liveSession.d.ts +3 -3
- package/lib/types/dsh-adapter/compat/liveSession.js +3 -3
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts +1 -1
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/sessionLog.js +17 -1
- package/lib/types/dsh-adapter/contract.d.ts +7 -5
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +10 -5
- package/lib/types/dsh-adapter/effect-ledger.d.ts +1 -1
- package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
- package/lib/types/dsh-adapter/effect-ledger.js +1 -0
- package/lib/types/dsh-adapter/entry-slot.d.ts +6 -0
- package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +29 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
- package/lib/types/dsh-adapter/experimental-bundles.js +15 -0
- package/lib/types/dsh-adapter/grant-file.d.ts +70 -0
- package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
- package/lib/types/dsh-adapter/grant-file.js +178 -0
- package/lib/types/dsh-adapter/host-access.d.ts +4 -0
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +54 -4
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +2 -2
- package/lib/types/dsh-adapter/host-dsh.js +3 -3
- package/lib/types/dsh-adapter/index.d.ts +8 -4
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +17 -12
- package/lib/types/dsh-adapter/panels.d.ts +28 -8
- package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
- package/lib/types/dsh-adapter/panels.js +11 -56
- package/lib/types/dsh-adapter/plugin-declaration.d.ts +28 -0
- package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.js +43 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts +28 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-install.js +160 -13
- package/lib/types/dsh-adapter/plugin-manage.d.ts +53 -10
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +240 -51
- package/lib/types/dsh-adapter/plugin.d.ts +81 -0
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +378 -84
- package/lib/types/dsh-adapter/plugins-info.d.ts +6 -7
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +99 -31
- package/lib/types/dsh-adapter/presets.d.ts +19 -6
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +69 -12
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +11 -5
- package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
- package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
- package/lib/types/dsh-adapter/row-attachment.js +29 -0
- package/lib/types/dsh-adapter/session-tools.d.ts +34 -0
- package/lib/types/dsh-adapter/session-tools.d.ts.map +1 -0
- package/lib/types/dsh-adapter/session-tools.js +39 -0
- package/lib/types/dsh-adapter/settings-sections.d.ts +18 -1
- package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
- package/lib/types/dsh-adapter/settings-sections.js +73 -0
- package/lib/types/dsh-adapter/status.d.ts +88 -1
- package/lib/types/dsh-adapter/status.d.ts.map +1 -1
- package/lib/types/dsh-adapter/status.js +318 -3
- package/lib/types/dsh-adapter/team-mode.d.ts +42 -33
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +76 -112
- package/lib/types/dsh-adapter/worktree-tool.d.ts +27 -0
- package/lib/types/dsh-adapter/worktree-tool.d.ts.map +1 -0
- package/lib/types/dsh-adapter/worktree-tool.js +87 -0
- package/lib/types/extensions.d.ts +1 -1
- package/lib/types/extensions.d.ts.map +1 -1
- package/lib/types/force-production-react.js +3 -3
- package/lib/types/heldInputs.d.ts +36 -0
- package/lib/types/heldInputs.d.ts.map +1 -0
- package/lib/types/heldInputs.js +173 -0
- package/lib/types/i18n.d.ts +543 -73
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +265 -46
- package/lib/types/ink/colorize.d.ts +7 -1
- package/lib/types/ink/colorize.d.ts.map +1 -1
- package/lib/types/ink/colorize.js +29 -8
- package/lib/types/ink/components/App.d.ts +2 -1
- package/lib/types/ink/components/App.d.ts.map +1 -1
- package/lib/types/ink/components/App.js +10 -3
- package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
- package/lib/types/ink/components/ScrollBox.js +1 -0
- package/lib/types/ink/dom.d.ts +1 -0
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-program-status.d.ts +78 -0
- package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-program-status.js +96 -0
- package/lib/types/ink/ink.d.ts +13 -4
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +119 -25
- package/lib/types/ink/output.d.ts +17 -2
- package/lib/types/ink/output.d.ts.map +1 -1
- package/lib/types/ink/output.js +85 -2
- package/lib/types/ink/parse-keypress.d.ts +1 -0
- package/lib/types/ink/parse-keypress.d.ts.map +1 -1
- package/lib/types/ink/parse-keypress.js +5 -4
- package/lib/types/ink/render-node-to-output.d.ts +2 -0
- package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
- package/lib/types/ink/render-node-to-output.js +79 -10
- package/lib/types/ink/root.d.ts +8 -0
- package/lib/types/ink/root.d.ts.map +1 -1
- package/lib/types/ink/root.js +12 -3
- package/lib/types/ink/screen.d.ts +11 -0
- package/lib/types/ink/screen.d.ts.map +1 -1
- package/lib/types/ink/screen.js +44 -0
- package/lib/types/ink/selection.d.ts +7 -2
- package/lib/types/ink/selection.d.ts.map +1 -1
- package/lib/types/ink/selection.js +187 -44
- package/lib/types/ink/shutdown-input.d.ts +15 -0
- package/lib/types/ink/shutdown-input.d.ts.map +1 -0
- package/lib/types/ink/shutdown-input.js +28 -0
- package/lib/types/ink/sixel-cursor-heal.d.ts +21 -0
- package/lib/types/ink/sixel-cursor-heal.d.ts.map +1 -0
- package/lib/types/ink/sixel-cursor-heal.js +62 -0
- package/lib/types/ink/sixel-graphics.d.ts +6 -0
- package/lib/types/ink/sixel-graphics.d.ts.map +1 -1
- package/lib/types/ink/sixel-graphics.js +18 -0
- package/lib/types/ink/styles.d.ts +8 -1
- package/lib/types/ink/styles.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification-windows.d.ts +195 -0
- package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -0
- package/lib/types/ink/terminal-notification-windows.js +433 -0
- package/lib/types/ink/terminal-notification.d.ts +3 -1
- package/lib/types/ink/terminal-notification.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification.js +4 -1
- package/lib/types/ink/terminal-querier.d.ts +9 -1
- package/lib/types/ink/terminal-querier.d.ts.map +1 -1
- package/lib/types/ink/terminal-querier.js +32 -1
- package/lib/types/ink/terminal.d.ts +23 -2
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +32 -2
- package/lib/types/ink/termio/osc.d.ts +2 -1
- package/lib/types/ink/termio/osc.d.ts.map +1 -1
- package/lib/types/ink/termio/osc.js +37 -8
- package/lib/types/ink/termio/osc7501.d.ts +102 -0
- package/lib/types/ink/termio/osc7501.d.ts.map +1 -0
- package/lib/types/ink/termio/osc7501.js +229 -0
- package/lib/types/ink/termio/tokenize.js +5 -7
- package/lib/types/onboardingDraft.d.ts +143 -0
- package/lib/types/onboardingDraft.d.ts.map +1 -0
- package/lib/types/onboardingDraft.js +71 -0
- package/lib/types/panels.d.ts +1 -1
- package/lib/types/panels.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.d.ts +3 -1
- package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.js +5 -1
- package/lib/types/screens/Chat.d.ts +6 -6
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +394 -141
- package/lib/types/screens/Launchpad.d.ts +8 -2
- package/lib/types/screens/Launchpad.d.ts.map +1 -1
- package/lib/types/screens/Launchpad.js +32 -12
- package/lib/types/screens/Onboarding.d.ts +22 -3
- package/lib/types/screens/Onboarding.d.ts.map +1 -1
- package/lib/types/screens/Onboarding.js +606 -36
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/SessionSupervisor.js +31 -21
- package/lib/types/screens/Settings.d.ts +5 -1
- package/lib/types/screens/Settings.d.ts.map +1 -1
- package/lib/types/screens/Settings.js +528 -51
- package/lib/types/screens/StatusLine.d.ts +9 -3
- package/lib/types/screens/StatusLine.d.ts.map +1 -1
- package/lib/types/screens/StatusLine.js +91 -15
- package/lib/types/screens/StatusMetrics.d.ts +2 -11
- package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
- package/lib/types/screens/StatusMetrics.js +20 -14
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +13 -21
- package/lib/types/sessionMounts.d.ts +14 -0
- package/lib/types/sessionMounts.d.ts.map +1 -1
- package/lib/types/sessionMounts.js +20 -9
- package/lib/types/sessions/format.d.ts +39 -0
- package/lib/types/sessions/format.d.ts.map +1 -1
- package/lib/types/sessions/format.js +83 -0
- package/lib/types/sessions/resumeFailure.d.ts +4 -0
- package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
- package/lib/types/sessions/resumeFailure.js +12 -4
- package/lib/types/sessions/workspaceCounts.d.ts +6 -0
- package/lib/types/sessions/workspaceCounts.d.ts.map +1 -0
- package/lib/types/sessions/workspaceCounts.js +24 -0
- package/lib/types/settings/definitions.d.ts +24 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +40 -15
- package/lib/types/tips.js +2 -2
- package/lib/types/tuiDisplayPrefs.d.ts +113 -5
- package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
- package/lib/types/tuiDisplayPrefs.js +276 -14
- package/lib/types/update.d.ts +15 -14
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +163 -115
- package/lib/types/updateProcess.d.ts +28 -0
- package/lib/types/updateProcess.d.ts.map +1 -0
- package/lib/types/updateProcess.js +135 -0
- package/lib/types/utils/inputWordBoundary.d.ts +5 -0
- package/lib/types/utils/inputWordBoundary.d.ts.map +1 -0
- package/lib/types/utils/inputWordBoundary.js +18 -0
- package/lib/types/utils/keymap.d.ts +1 -1
- package/lib/types/utils/keymap.d.ts.map +1 -1
- package/lib/types/utils/keymap.js +6 -1
- package/lib/types/utils/paths.d.ts +15 -0
- package/lib/types/utils/paths.d.ts.map +1 -1
- package/lib/types/utils/paths.js +25 -0
- package/lib/types/windowsInstaller.d.ts +4 -0
- package/lib/types/windowsInstaller.d.ts.map +1 -0
- package/lib/types/windowsInstaller.js +237 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +130 -111
- package/presets/liangshen/custom-bash.mjs +13 -1
- package/presets/liangshen/instruction-hint.mjs +4 -1
- package/presets/liangshen/skill-search.mjs +14 -2
- package/presets/winbash.mjs +16 -4
- package/tui-profile/feed/README.md +17 -8
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-keypress.d.ts","sourceRoot":"","sources":["../../../src/ink/parse-keypress.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AA4tBtE,gDAAgD;AAChD,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAA;AAEV;;;GAGG;AACH,MAAM,MAAM,gBAAgB;AAC1B,iEAAiE;AAC/D;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AAClD,oEAAoE;GAClE;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE;AACnC,+DAA+D;GAC7D;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE;AACnC,iEAAiE;GAC/D;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAC1C,mEAAmE;GACjE;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AAC5D,sDAAsD;GACpD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE;
|
|
1
|
+
{"version":3,"file":"parse-keypress.d.ts","sourceRoot":"","sources":["../../../src/ink/parse-keypress.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AA4tBtE,gDAAgD;AAChD,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAA;AAEV;;;GAGG;AACH,MA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E,UAAU,CAAA;IAChB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,gBAAgB,CAAA;CAC3B,CAAA;AAED;;0DAE0D;AAC1D,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,OAAO,CAAA;IACb;4DACwD;IACxD,MAAM,EAAE,MAAM,CAAA;IACd,2DAA2D;IAC3D,MAAM,EAAE,OAAO,GAAG,SAAS,CAAA;IAC3B,uCAAuC;IACvC,GAAG,EAAE,MAAM,CAAA;IACX,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED;2EAC2E;AAC3E,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,CAAA"}
|
|
@@ -184,11 +184,11 @@ const KITTY_FLAGS_RE = /^\x1b\[\?(\d+)u$/;
|
|
|
184
184
|
// Kitty graphics APC response: ESC_G key=value,...;OK|error ESC\\
|
|
185
185
|
// eslint-disable-next-line no-control-regex
|
|
186
186
|
const KITTY_GRAPHICS_RE = /^\x1b_G([^;]*);([^\x1b]*)\x1b\\$/;
|
|
187
|
-
// DECXCPR cursor position: CSI ? row ; col R
|
|
187
|
+
// DECXCPR cursor position: CSI ? row ; col [ ; page ] R
|
|
188
188
|
// The ? marker disambiguates from modified F3 keys (Shift+F3 = CSI 1;2 R,
|
|
189
189
|
// Ctrl+F3 = CSI 1;5 R, etc.) — plain CSI row;col R is genuinely ambiguous.
|
|
190
190
|
// eslint-disable-next-line no-control-regex
|
|
191
|
-
const CURSOR_POSITION_RE = /^\x1b\[\?(\d+);(\d+)R$/;
|
|
191
|
+
const CURSOR_POSITION_RE = /^\x1b\[\?(\d+);(\d+)(?:;(\d+))?R$/;
|
|
192
192
|
// XTWINOPS pixel-size replies: CSI 6;height;width t (cell) and
|
|
193
193
|
// CSI 4;height;width t (text area).
|
|
194
194
|
// eslint-disable-next-line no-control-regex
|
|
@@ -786,6 +786,7 @@ function parseTerminalResponse(s) {
|
|
|
786
786
|
type: 'cursorPosition',
|
|
787
787
|
row: parseInt(m[1], 10),
|
|
788
788
|
col: parseInt(m[2], 10),
|
|
789
|
+
...(m[3] === undefined ? {} : { page: parseInt(m[3], 10) }),
|
|
789
790
|
};
|
|
790
791
|
}
|
|
791
792
|
if ((m = TERMINAL_PIXEL_SIZE_RE.exec(s))) {
|
|
@@ -848,9 +849,9 @@ const INCOMPLETE_RESPONSE_PREFIXES = [
|
|
|
848
849
|
// `$` + final.
|
|
849
850
|
['decrpm', /^\x1b\[\?\d*(?:;\d*)?$/],
|
|
850
851
|
['decrpm', /^\x1b\[\?\d+;\d+\$$/],
|
|
851
|
-
// Kitty flags
|
|
852
|
+
// Kitty flags take one parameter; DECXCPR permits an optional third page.
|
|
852
853
|
['kittyKeyboard', /^\x1b\[\?\d*$/],
|
|
853
|
-
['cursorPosition', /^\x1b\[\?\d*(?:;\d*)
|
|
854
|
+
['cursorPosition', /^\x1b\[\?\d*(?:;\d*){0,2}$/],
|
|
854
855
|
// DA2: any `>`-parameter list.
|
|
855
856
|
['da2', /^\x1b\[>[\d;]*$/],
|
|
856
857
|
// XTWINOPS: `6;h;w t` / `4;h;w t`, up to the final byte.
|
|
@@ -103,6 +103,8 @@ export type FollowScroll = {
|
|
|
103
103
|
delta: number;
|
|
104
104
|
viewportTop: number;
|
|
105
105
|
viewportBottom: number;
|
|
106
|
+
viewportLeft?: number;
|
|
107
|
+
viewportRight?: number;
|
|
106
108
|
/** Current viewport rows map to PREVIOUS screen rows by this offset. */
|
|
107
109
|
screenRowOffset?: number;
|
|
108
110
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-node-to-output.d.ts","sourceRoot":"","sources":["../../../src/ink/render-node-to-output.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB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AE,CAIpD;AAoFD;;;;;GAKG;AACH,iBAAS,qBAAqB,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,CASlE;AAED;;;;;;;;;;;;;GAaG;AACH,iBAAS,wBAAwB,CAC/B,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,aAAa,EAAE,EACzB,aAAa,EAAE,MAAM,EAAE,EACvB,aAAa,EAAE,MAAM,EACrB,WAAW,GAAE,OAAe,EAC5B,QAAQ,CAAC,EAAE,YAAY,EAAE,GACxB,MAAM,CA2GR;AAoTD;;;;;;;;;GASG;AACH,iBAAS,kBAAkB,CACzB,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE;IACP,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAM9B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,wBAAwB,CAAC,EAAE,KAAK,CAAA;CACjC,GACA,IAAI,CAywCN;AA4PD,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,CAAA;AAE1D,eAAe,kBAAkB,CAAA"}
|
|
@@ -526,15 +526,32 @@ function applyPaddingToText(node, text, softWrap) {
|
|
|
526
526
|
}
|
|
527
527
|
return text;
|
|
528
528
|
}
|
|
529
|
-
/** Re-apply
|
|
529
|
+
/** Re-apply sorted, non-overlapping decoration runs at a new position. */
|
|
530
530
|
function pushNoSelectRuns(output, x, y, runs) {
|
|
531
531
|
if (runs === undefined)
|
|
532
532
|
return;
|
|
533
533
|
const bx = Math.floor(x);
|
|
534
534
|
const by = Math.floor(y);
|
|
535
|
-
|
|
535
|
+
// A long block can alternate hard/soft masks on every row. Cache hits
|
|
536
|
+
// must seek to the viewport instead of scanning all source rows.
|
|
537
|
+
let lo = 0;
|
|
538
|
+
let hi = runs.length;
|
|
539
|
+
while (lo < hi) {
|
|
540
|
+
const mid = (lo + hi) >>> 1;
|
|
541
|
+
const run = runs[mid];
|
|
542
|
+
if (by + run.offset + run.height <= 0)
|
|
543
|
+
lo = mid + 1;
|
|
544
|
+
else
|
|
545
|
+
hi = mid;
|
|
546
|
+
}
|
|
547
|
+
for (let i = lo; i < runs.length; i++) {
|
|
548
|
+
const run = runs[i];
|
|
549
|
+
if (by + run.offset >= output.height)
|
|
550
|
+
break;
|
|
536
551
|
if (run.width <= 0 || run.height <= 0)
|
|
537
552
|
continue;
|
|
553
|
+
if (!output.isRectVisible(bx, by + run.offset, run.width, run.height))
|
|
554
|
+
continue;
|
|
538
555
|
output.noSelect({ x: bx, y: by + run.offset, width: run.width, height: run.height });
|
|
539
556
|
}
|
|
540
557
|
}
|
|
@@ -644,10 +661,14 @@ function paintDecoratedTextNode(node, x, y, output, maxWidth, paddingLeft, paddi
|
|
|
644
661
|
if (prefixWidth > 0 && prefix !== undefined) {
|
|
645
662
|
for (let r = headerOffset; r < rows.length; r++) {
|
|
646
663
|
rows[r] = prefix.text + rows[r];
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
664
|
+
const ns = (flags[r] ? prefix.continuationNoSelect : undefined) ?? prefix.noSelect ?? 0;
|
|
665
|
+
if (ns <= 0)
|
|
666
|
+
continue;
|
|
667
|
+
const last = noSelectRuns.at(-1);
|
|
668
|
+
if (last?.width === ns && last.offset + last.height === r)
|
|
669
|
+
last.height++;
|
|
670
|
+
else
|
|
671
|
+
noSelectRuns.push({ offset: r, height: 1, width: ns });
|
|
651
672
|
}
|
|
652
673
|
}
|
|
653
674
|
else if (decoration.hang === true) {
|
|
@@ -827,6 +848,9 @@ function renderNodeToOutput(node, output, options) {
|
|
|
827
848
|
const fw = Math.floor(width);
|
|
828
849
|
const fh = Math.floor(height);
|
|
829
850
|
if (output.reuseImages(node)) {
|
|
851
|
+
if (node.style.position === 'absolute' && paintsOwnRect(node)) {
|
|
852
|
+
output.selectionOcclusion({ x: fx, y: fy, width: fw, height: fh }, paneIdsForSurface(node), prevScreen);
|
|
853
|
+
}
|
|
830
854
|
output.blit(prevScreen, fx, fy, fw, fh);
|
|
831
855
|
if (node.style.position === 'absolute') {
|
|
832
856
|
absoluteRectsCur.push(cached);
|
|
@@ -1046,6 +1070,12 @@ function renderNodeToOutput(node, output, options) {
|
|
|
1046
1070
|
// upstream indentation (tool prefix, tree lines) is covered too
|
|
1047
1071
|
// — a multi-row drag over a diff gutter shouldn't pick up the
|
|
1048
1072
|
// ` ⎿ ` prefix on row 0 or the blank cells under it on row 1+.
|
|
1073
|
+
if (node.style.position === 'absolute' && paintsOwnRect(node)) {
|
|
1074
|
+
output.selectionOcclusion({ x: Math.floor(x), y: Math.floor(y), width: Math.floor(width), height: Math.floor(height) }, paneIdsForSurface(node));
|
|
1075
|
+
}
|
|
1076
|
+
if (node.style.selectionPane !== undefined) {
|
|
1077
|
+
output.selectionPane({ x: Math.floor(x), y: Math.floor(y), width: Math.floor(width), height: Math.floor(height) }, node.style.selectionPane, node.style.selectionPaneViewport);
|
|
1078
|
+
}
|
|
1049
1079
|
if (node.style.noSelect) {
|
|
1050
1080
|
const boxX = Math.floor(x);
|
|
1051
1081
|
const fromEdge = node.style.noSelect === 'from-left-edge';
|
|
@@ -1169,6 +1199,8 @@ function renderNodeToOutput(node, output, options) {
|
|
|
1169
1199
|
viewportResizes.push({
|
|
1170
1200
|
delta: 0,
|
|
1171
1201
|
viewportTop: prevViewportTop,
|
|
1202
|
+
viewportLeft: Math.floor(x),
|
|
1203
|
+
viewportRight: Math.floor(x + width) - 1,
|
|
1172
1204
|
viewportBottom: prevViewportBottom,
|
|
1173
1205
|
kind,
|
|
1174
1206
|
rowDelta: kind === 'translate' ? node.scrollViewportTop - prevViewportTop : 0,
|
|
@@ -1264,6 +1296,8 @@ function renderNodeToOutput(node, output, options) {
|
|
|
1264
1296
|
followScrolls.push({
|
|
1265
1297
|
delta: followDelta,
|
|
1266
1298
|
viewportTop: vpTop,
|
|
1299
|
+
viewportLeft: Math.floor(x),
|
|
1300
|
+
viewportRight: Math.floor(x + width) - 1,
|
|
1267
1301
|
viewportBottom: vpTop + innerHeight - 1,
|
|
1268
1302
|
screenRowOffset,
|
|
1269
1303
|
});
|
|
@@ -1387,6 +1421,8 @@ function renderNodeToOutput(node, output, options) {
|
|
|
1387
1421
|
followScrolls.push({
|
|
1388
1422
|
delta: wheelDelta,
|
|
1389
1423
|
viewportTop: wheelVpTop,
|
|
1424
|
+
viewportLeft: Math.floor(x),
|
|
1425
|
+
viewportRight: Math.floor(x + width) - 1,
|
|
1390
1426
|
viewportBottom: wheelVpTop + innerHeight - 1,
|
|
1391
1427
|
screenRowOffset,
|
|
1392
1428
|
});
|
|
@@ -1405,6 +1441,13 @@ function renderNodeToOutput(node, output, options) {
|
|
|
1405
1441
|
node.stickyScroll = true;
|
|
1406
1442
|
node.onStickyRestore?.();
|
|
1407
1443
|
}
|
|
1444
|
+
else if (pending !== undefined && node.pendingScrollDelta === undefined) {
|
|
1445
|
+
// Draining and boundary clamps mutate the handle after its input
|
|
1446
|
+
// notification. Publish the settled position once, so virtual
|
|
1447
|
+
// windows can tighten without relying on an unrelated React tick.
|
|
1448
|
+
// A bottom re-pin already notified the same subscribers above.
|
|
1449
|
+
node.onScrollDrainEnd?.();
|
|
1450
|
+
}
|
|
1408
1451
|
scrollTop = clamped;
|
|
1409
1452
|
if (content && contentYoga) {
|
|
1410
1453
|
// Compute content wrapper's absolute render position with scroll
|
|
@@ -1508,9 +1551,15 @@ function renderNodeToOutput(node, output, options) {
|
|
|
1508
1551
|
const { top, bottom, delta } = hint;
|
|
1509
1552
|
const w = Math.floor(width);
|
|
1510
1553
|
output.blit(prevScreen, Math.floor(x), top, w, bottom - top + 1);
|
|
1511
|
-
//
|
|
1512
|
-
//
|
|
1513
|
-
|
|
1554
|
+
// Full rows carry soft-wrap metadata with their cells. A narrow
|
|
1555
|
+
// column leaves the flanks' row metadata live; the diff repairs
|
|
1556
|
+
// those flanks after the terminal scrolls whole rows.
|
|
1557
|
+
if (Math.floor(x) === 0 && w === output.width) {
|
|
1558
|
+
output.shift(top, bottom, delta);
|
|
1559
|
+
}
|
|
1560
|
+
else {
|
|
1561
|
+
output.shift(top, bottom, delta, Math.floor(x), w);
|
|
1562
|
+
}
|
|
1514
1563
|
// Edge rows: new content entering the viewport.
|
|
1515
1564
|
const edgeTop = delta > 0 ? bottom - delta + 1 : top;
|
|
1516
1565
|
const edgeBottom = delta > 0 ? bottom : top - delta - 1;
|
|
@@ -1779,7 +1828,7 @@ function renderNodeToOutput(node, output, options) {
|
|
|
1779
1828
|
if (node.style.softWrapContinuation !== undefined) {
|
|
1780
1829
|
const continuation = node.style.softWrapContinuation;
|
|
1781
1830
|
const contentEnd = Math.floor(x) + Math.abs(continuation);
|
|
1782
|
-
output.softWrapRow(Math.floor(y), continuation < 0 ? -contentEnd : contentEnd);
|
|
1831
|
+
output.softWrapRow(Math.floor(y), continuation < 0 ? -contentEnd : contentEnd, Math.floor(x));
|
|
1783
1832
|
}
|
|
1784
1833
|
}
|
|
1785
1834
|
else if (node.nodeName === 'ink-root') {
|
|
@@ -1902,6 +1951,23 @@ function siblingSharesY(node, yogaNode) {
|
|
|
1902
1951
|
// Example: CommandSuggestions' slash menu uses position='absolute' bottom='100%'
|
|
1903
1952
|
// to float above the prompt; a spinner tick in the ScrollBox above re-renders
|
|
1904
1953
|
// and overwrites those cells. Without this, the menu vanishes on the next frame.
|
|
1954
|
+
function paneIdsForSurface(node) {
|
|
1955
|
+
const ids = new Set();
|
|
1956
|
+
// An overlay remains in its ancestor column; only unrelated panes below it are hidden.
|
|
1957
|
+
for (let parent = node.parentNode; parent; parent = parent.parentNode) {
|
|
1958
|
+
if (parent.style.selectionPane !== undefined)
|
|
1959
|
+
ids.add(parent.style.selectionPane);
|
|
1960
|
+
}
|
|
1961
|
+
const visit = (element) => {
|
|
1962
|
+
if (element.style.selectionPane !== undefined)
|
|
1963
|
+
ids.add(element.style.selectionPane);
|
|
1964
|
+
for (const child of element.childNodes)
|
|
1965
|
+
if (child.nodeName !== '#text')
|
|
1966
|
+
visit(child);
|
|
1967
|
+
};
|
|
1968
|
+
visit(node);
|
|
1969
|
+
return ids;
|
|
1970
|
+
}
|
|
1905
1971
|
function blitEscapingAbsoluteDescendants(node, output, prevScreen, px, py, pw, ph) {
|
|
1906
1972
|
const pr = px + pw;
|
|
1907
1973
|
const pb = py + ph;
|
|
@@ -1920,6 +1986,9 @@ function blitEscapingAbsoluteDescendants(node, output, prevScreen, px, py, pw, p
|
|
|
1920
1986
|
const ch = Math.floor(cached.height);
|
|
1921
1987
|
// Only blit rects that extend outside the parent's layout bounds —
|
|
1922
1988
|
// cells within the parent rect are already covered by the parent blit.
|
|
1989
|
+
if (paintsOwnRect(elem)) {
|
|
1990
|
+
output.selectionOcclusion({ x: cx, y: cy, width: cw, height: ch }, paneIdsForSurface(elem), prevScreen);
|
|
1991
|
+
}
|
|
1923
1992
|
if (cx < px || cy < py || cx + cw > pr || cy + ch > pb) {
|
|
1924
1993
|
output.blit(prevScreen, cx, cy, cw, ch);
|
|
1925
1994
|
}
|
package/lib/types/ink/root.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { FrameEvent } from './frame.js';
|
|
3
3
|
import Ink from './ink.js';
|
|
4
|
+
import { type ShutdownInput } from './shutdown-input.js';
|
|
4
5
|
/** Options for mounting an Ink app. */
|
|
5
6
|
export type RenderOptions = {
|
|
6
7
|
/**
|
|
@@ -15,6 +16,8 @@ export type RenderOptions = {
|
|
|
15
16
|
* @default process.stdin
|
|
16
17
|
*/
|
|
17
18
|
stdin?: NodeJS.ReadStream;
|
|
19
|
+
/** Bounded synchronous device drain for a custom stdin; called only while owned. */
|
|
20
|
+
drainStdin?: () => void;
|
|
18
21
|
/**
|
|
19
22
|
* Error stream.
|
|
20
23
|
* @default process.stderr
|
|
@@ -74,6 +77,9 @@ export type Instance = {
|
|
|
74
77
|
* for the listener/pump semantics.
|
|
75
78
|
*/
|
|
76
79
|
detachStdinForHandoff: Ink['detachStdinForHandoff'];
|
|
80
|
+
/** Drain only this renderer's still-owned input after cleanup. */
|
|
81
|
+
drainStdin: Ink['drainStdin'];
|
|
82
|
+
readonly shutdownInput: ShutdownInput;
|
|
77
83
|
cleanup: () => void;
|
|
78
84
|
};
|
|
79
85
|
/**
|
|
@@ -82,6 +88,8 @@ export type Instance = {
|
|
|
82
88
|
* can be reused for multiple sequential screens.
|
|
83
89
|
*/
|
|
84
90
|
export type Root = {
|
|
91
|
+
/** Retain this lease when wrapping the unmount method. */
|
|
92
|
+
readonly shutdownInput: ShutdownInput;
|
|
85
93
|
render: (node: ReactNode) => void;
|
|
86
94
|
unmount: () => void;
|
|
87
95
|
waitUntilExit: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/ink/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,GAAmC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/ink/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,GAAmC,MAAM,UAAU,CAAA;AAE1D,OAAO,EAAyB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAE/E,uCAAuC;AACvC,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,CAAA;IAC3B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;IACzB,oFAAoF;IACpF,UAAU,CAAC,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CAAA;AAED;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,GACjB,MAAM,SAAS,EACf,UAAU,MAAM,CAAC,WAAW,GAAG,aAAa,KAC3C,OAAO,CAAC,QAAQ,CAWlB,CAAA;AAED,eAAe,aAAa,CAAA;AAE5B;;;;;GAKG;AACH,wBAAsB,UAAU,CAC9B,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAoCf"}
|
package/lib/types/ink/root.js
CHANGED
|
@@ -2,6 +2,7 @@ import { logForDebugging } from '../utils/debug.js';
|
|
|
2
2
|
import { Stream } from 'stream';
|
|
3
3
|
import Ink from './ink.js';
|
|
4
4
|
import instances from './instances.js';
|
|
5
|
+
import { registerShutdownInput } from './shutdown-input.js';
|
|
5
6
|
/**
|
|
6
7
|
* Mount a component and render the output.
|
|
7
8
|
* @param node - the React element to render.
|
|
@@ -20,7 +21,7 @@ export const renderSync = (node, options) => {
|
|
|
20
21
|
};
|
|
21
22
|
const instance = getInstance(inkOptions.stdout, () => new Ink(inkOptions));
|
|
22
23
|
instance.render(node);
|
|
23
|
-
|
|
24
|
+
const handle = {
|
|
24
25
|
rerender: instance.render,
|
|
25
26
|
unmount() {
|
|
26
27
|
instance.unmount();
|
|
@@ -28,8 +29,12 @@ export const renderSync = (node, options) => {
|
|
|
28
29
|
waitUntilExit: instance.waitUntilExit,
|
|
29
30
|
detachForShutdown: () => instance.detachForShutdown(),
|
|
30
31
|
detachStdinForHandoff: () => instance.detachStdinForHandoff(),
|
|
32
|
+
drainStdin: () => instance.drainStdin(),
|
|
33
|
+
shutdownInput: instance.shutdownInput,
|
|
31
34
|
cleanup: () => instances.delete(inkOptions.stdout),
|
|
32
35
|
};
|
|
36
|
+
registerShutdownInput(handle.unmount, instance.shutdownInput);
|
|
37
|
+
return handle;
|
|
33
38
|
};
|
|
34
39
|
/**
|
|
35
40
|
* Asynchronous render entry point that preserves a microtask boundary
|
|
@@ -56,7 +61,7 @@ export default wrappedRender;
|
|
|
56
61
|
* @returns a promise resolving to the managed root.
|
|
57
62
|
*/
|
|
58
63
|
export async function createRoot(options = {}) {
|
|
59
|
-
const { stdout = process.stdout, stdin = process.stdin, stderr = process.stderr, exitOnCtrlC = true, patchConsole = true, terminalImages = true, onFrame, } = options;
|
|
64
|
+
const { stdout = process.stdout, stdin = process.stdin, stderr = process.stderr, exitOnCtrlC = true, patchConsole = true, terminalImages = true, drainStdin, onFrame, } = options;
|
|
60
65
|
// See wrappedRender — preserve microtask boundary from the old WASM await.
|
|
61
66
|
await Promise.resolve();
|
|
62
67
|
const instance = new Ink({
|
|
@@ -66,16 +71,20 @@ export async function createRoot(options = {}) {
|
|
|
66
71
|
exitOnCtrlC,
|
|
67
72
|
patchConsole,
|
|
68
73
|
terminalImages,
|
|
74
|
+
drainStdin,
|
|
69
75
|
onFrame,
|
|
70
76
|
});
|
|
71
77
|
// Register in the instances map so that code that looks up the Ink
|
|
72
78
|
// instance by stdout (e.g. external editor pause/resume) can find it.
|
|
73
79
|
instances.set(stdout, instance);
|
|
74
|
-
|
|
80
|
+
const handle = {
|
|
81
|
+
shutdownInput: instance.shutdownInput,
|
|
75
82
|
render: node => instance.render(node),
|
|
76
83
|
unmount: () => instance.unmount(),
|
|
77
84
|
waitUntilExit: () => instance.waitUntilExit(),
|
|
78
85
|
};
|
|
86
|
+
registerShutdownInput(handle.unmount, instance.shutdownInput);
|
|
87
|
+
return handle;
|
|
79
88
|
}
|
|
80
89
|
const getOptions = (stdout = {}) => {
|
|
81
90
|
if (stdout instanceof Stream) {
|
|
@@ -280,6 +280,17 @@ export type Screen = Size & {
|
|
|
280
280
|
* blitRegion/shiftRows.
|
|
281
281
|
*/
|
|
282
282
|
softWrap: Int32Array;
|
|
283
|
+
/** Bounded pane row spans share the existing cell/copy-region planes. */
|
|
284
|
+
selectionPanes?: Map<string, Map<number, {
|
|
285
|
+
start: number;
|
|
286
|
+
end: number;
|
|
287
|
+
wrap: number;
|
|
288
|
+
viewport?: boolean;
|
|
289
|
+
excluded?: readonly {
|
|
290
|
+
start: number;
|
|
291
|
+
end: number;
|
|
292
|
+
}[];
|
|
293
|
+
}>>;
|
|
283
294
|
};
|
|
284
295
|
/**
|
|
285
296
|
* Return whether the cell at a position is empty or unwritten, treating
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../src/ink/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,IAAI,EAEV,MAAM,sBAAsB,CAAA;AAM7B;;;;;GAKG;AACH,qBAAa,QAAQ;IACnB,OAAO,CAAC,OAAO,CAAsB;IACrC,OAAO,CAAC,SAAS,CAGf;IACF,OAAO,CAAC,KAAK,CAA8B;IAE3C;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAqB5B;;;;;OAKG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG3B;AAED;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,SAAS,CAA4B;IAE7C;;;;OAIG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;IAW7C;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAGpC;AA4BD,yCAAyC;AACzC,MAAM,MAAM,GAAG,GAAG;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAwDhF;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,QAAQ,E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EAAqE;AACrE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAI/F;AAED,qDAAqD;AACrD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAWnD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,IAAI,CASN;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,SAAS,EACjB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,IAAI,CAyBN"}
|
package/lib/types/ink/screen.js
CHANGED
|
@@ -623,6 +623,7 @@ export function resetScreen(screen, width, height) {
|
|
|
623
623
|
screen.copyTexts ??= new Map();
|
|
624
624
|
screen.copyTexts.clear();
|
|
625
625
|
screen.softWrap.fill(0, 0, height);
|
|
626
|
+
screen.selectionPanes?.clear();
|
|
626
627
|
// Update dimensions
|
|
627
628
|
screen.width = width;
|
|
628
629
|
screen.height = height;
|
|
@@ -1066,6 +1067,29 @@ export function blitRegion(dst, src, regionX, regionY, maxX, maxY) {
|
|
|
1066
1067
|
for (const [id, text] of src.copyTexts)
|
|
1067
1068
|
dst.copyTexts.set(id, text);
|
|
1068
1069
|
}
|
|
1070
|
+
if (src.selectionPanes) {
|
|
1071
|
+
dst.selectionPanes ??= new Map();
|
|
1072
|
+
for (const [id, rows] of src.selectionPanes) {
|
|
1073
|
+
for (const [row, span] of rows) {
|
|
1074
|
+
if (row < regionY || row >= maxY || span.end <= regionX || span.start >= maxX)
|
|
1075
|
+
continue;
|
|
1076
|
+
let target = dst.selectionPanes.get(id);
|
|
1077
|
+
if (!target)
|
|
1078
|
+
dst.selectionPanes.set(id, target = new Map());
|
|
1079
|
+
const existing = target.get(row);
|
|
1080
|
+
target.set(row, { start: Math.min(existing?.start ?? Infinity, Math.max(regionX, span.start)),
|
|
1081
|
+
end: Math.max(existing?.end ?? 0, Math.min(maxX, span.end)), wrap: span.wrap, viewport: span.viewport,
|
|
1082
|
+
excluded: [
|
|
1083
|
+
...(existing?.excluded ?? []).flatMap(range => [
|
|
1084
|
+
{ start: range.start, end: Math.min(range.end, regionX) },
|
|
1085
|
+
{ start: Math.max(range.start, maxX), end: range.end },
|
|
1086
|
+
]),
|
|
1087
|
+
...(span.excluded ?? []).map(range => ({ start: Math.max(regionX, range.start), end: Math.min(maxX, range.end) })),
|
|
1088
|
+
].filter(range => range.end > range.start),
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1069
1093
|
// softWrap is per-row — copy the row range regardless of stride/width.
|
|
1070
1094
|
// Partial-width blits still carry the row's wrap provenance since the
|
|
1071
1095
|
// blitted content (a cached ink-text node) is what set the bit.
|
|
@@ -1296,6 +1320,26 @@ export function shiftRows(screen, top, bottom, n, columnX, columnWidth) {
|
|
|
1296
1320
|
if (n === 0 || top < 0 || bottom >= screen.height || top > bottom)
|
|
1297
1321
|
return;
|
|
1298
1322
|
const w = screen.width;
|
|
1323
|
+
for (const rows of screen.selectionPanes?.values() ?? []) {
|
|
1324
|
+
const previous = new Map(rows);
|
|
1325
|
+
const inside = (span) => span.end > (columnX ?? 0) && span.start < (columnX ?? 0) + (columnWidth ?? w);
|
|
1326
|
+
for (let row = top; row <= bottom; row++) {
|
|
1327
|
+
const span = previous.get(row);
|
|
1328
|
+
if (span && inside(span) && !span.viewport)
|
|
1329
|
+
rows.delete(row);
|
|
1330
|
+
}
|
|
1331
|
+
for (const [row, span] of previous) {
|
|
1332
|
+
if (row < top || row > bottom || !inside(span))
|
|
1333
|
+
continue;
|
|
1334
|
+
if (span.viewport) {
|
|
1335
|
+
const source = row + n >= top && row + n <= bottom ? previous.get(row + n) : undefined;
|
|
1336
|
+
rows.set(row, { ...span, wrap: source?.wrap ?? 0 });
|
|
1337
|
+
}
|
|
1338
|
+
else if (row - n >= top && row - n <= bottom) {
|
|
1339
|
+
rows.set(row - n, { ...span });
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1299
1343
|
if (columnX !== undefined || columnWidth !== undefined) {
|
|
1300
1344
|
const x1 = Math.max(0, Math.floor(columnX ?? 0));
|
|
1301
1345
|
const x2 = Math.min(w, x1 + Math.floor(columnWidth ?? w));
|
|
@@ -150,6 +150,7 @@ export type SelectionState = {
|
|
|
150
150
|
colStart: number;
|
|
151
151
|
colEnd: number;
|
|
152
152
|
};
|
|
153
|
+
paneId?: string;
|
|
153
154
|
};
|
|
154
155
|
/**
|
|
155
156
|
* Create a new selection state with no active selection.
|
|
@@ -407,6 +408,8 @@ export type ScrollEvent = {
|
|
|
407
408
|
delta: number;
|
|
408
409
|
viewportTop: number;
|
|
409
410
|
viewportBottom: number;
|
|
411
|
+
viewportLeft?: number;
|
|
412
|
+
viewportRight?: number;
|
|
410
413
|
/** Current viewport rows map to PREVIOUS screen rows by this offset. */
|
|
411
414
|
screenRowOffset?: number;
|
|
412
415
|
};
|
|
@@ -424,7 +427,7 @@ export type ScrollEvent = {
|
|
|
424
427
|
* selection is active.
|
|
425
428
|
* @returns the event the selection should be translated by, or null.
|
|
426
429
|
*/
|
|
427
|
-
export declare function pickFollowForSelection<T extends ScrollEvent>(events: T[], anchorRow: number | null): T | null;
|
|
430
|
+
export declare function pickFollowForSelection<T extends ScrollEvent>(events: T[], anchorRow: number | null, anchorCol?: number): T | null;
|
|
428
431
|
/**
|
|
429
432
|
* True when a selection is active, meaning both anchor and focus are set.
|
|
430
433
|
* @param s - the selection state to inspect.
|
|
@@ -457,6 +460,8 @@ export declare function selectionBounds(s: SelectionState): {
|
|
|
457
460
|
* @returns true when the cell lies inside the selection range.
|
|
458
461
|
*/
|
|
459
462
|
export declare function isCellSelected(s: SelectionState, col: number, row: number): boolean;
|
|
463
|
+
/** Re-anchor by logical offsets, not screen columns, when a pane reflows. */
|
|
464
|
+
export declare function refreshSelectionPane(s: SelectionState, screen: Screen, previous?: Screen): boolean;
|
|
460
465
|
/**
|
|
461
466
|
* Rehash the rows under the highlight and latch `stale` when they changed
|
|
462
467
|
* without a coordinated shift this frame.
|
|
@@ -535,7 +540,7 @@ export declare function getSelectedText(s: SelectionState, screen: Screen): stri
|
|
|
535
540
|
* drag-to-scroll, BEFORE scrollBy overwrites them. Only the rows that
|
|
536
541
|
* intersect the selection are captured, using the selection's col bounds
|
|
537
542
|
* for the anchor-side boundary row. After capturing the anchor row, the
|
|
538
|
-
* anchor.col AND anchorSpan cols are reset to the
|
|
543
|
+
* anchor.col AND anchorSpan cols are reset to the pane boundary so
|
|
539
544
|
* subsequent captures and the final getSelectedText don't re-apply a stale
|
|
540
545
|
* col constraint to content that's no longer under the original anchor.
|
|
541
546
|
* Both span cols are reset (not just the near side): after a blocked
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/ink/selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAGjE,KAAK,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAEzC;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA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