@deepseek-harness-tui/dsh-tui 0.11.1 → 0.12.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 +70 -24
- package/assets/whale-girl/whale-girl-dark.png +0 -0
- package/assets/whale-girl/whale-girl-happy.png +0 -0
- package/assets/whale-girl/whale-girl.png +0 -0
- package/bin/dsh-tui.js +93 -6
- package/cordis.patch.yml +63 -22
- package/cordis.yml +3 -2
- package/guide/dsh-tui-guide/SKILL.md +37 -0
- package/guide/dsh-tui-guide/configuration.en.md +410 -0
- package/guide/dsh-tui-guide/configuration.md +349 -0
- package/guide/dsh-tui-guide/getting-started.en.md +398 -0
- package/guide/dsh-tui-guide/getting-started.md +397 -0
- package/guide/dsh-tui-guide/interaction.en.md +674 -0
- package/guide/dsh-tui-guide/interaction.md +747 -0
- package/guide/dsh-tui-guide/migrate.en.md +166 -0
- package/guide/dsh-tui-guide/migrate.md +132 -0
- package/guide/dsh-tui-guide/plugins.en.md +68 -0
- package/guide/dsh-tui-guide/plugins.md +56 -0
- package/guide/dsh-tui-guide/themes.en.md +192 -0
- package/guide/dsh-tui-guide/themes.md +185 -0
- package/guide/dsh-tui-guide/user-guide.en.md +608 -0
- package/guide/dsh-tui-guide/user-guide.md +586 -0
- package/guide/dsh-tui-guide/vscode.en.md +301 -0
- package/guide/dsh-tui-guide/vscode.md +272 -0
- package/lib/settings.json +1272 -0
- package/lib/types/adapter/channel/ui-policy.d.ts +10 -2
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +17 -0
- package/lib/types/adapter/kernel/replay.d.ts.map +1 -1
- package/lib/types/adapter/kernel/replay.js +2 -0
- package/lib/types/adapter/ports/channel-display.d.ts +12 -0
- package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-session.d.ts +38 -0
- package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-settings.d.ts +14 -1
- package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-ui.d.ts +75 -6
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +86 -9
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/commands.d.ts.map +1 -1
- package/lib/types/commands.js +2 -0
- package/lib/types/components/BalanceReportRow.d.ts +10 -2
- package/lib/types/components/BalanceReportRow.d.ts.map +1 -1
- package/lib/types/components/BalanceReportRow.js +18 -4
- package/lib/types/components/Chat/JobCard.d.ts +9 -0
- package/lib/types/components/Chat/JobCard.d.ts.map +1 -1
- package/lib/types/components/Chat/JobCard.js +42 -15
- package/lib/types/components/Chat/SubagentMessage.js +6 -6
- package/lib/types/components/CompactionStatusRow.d.ts +24 -0
- package/lib/types/components/CompactionStatusRow.d.ts.map +1 -0
- package/lib/types/components/CompactionStatusRow.js +72 -0
- package/lib/types/components/GoalTodoPanel.js +2 -2
- package/lib/types/components/HelpMenu.d.ts +2 -2
- package/lib/types/components/HelpMenu.d.ts.map +1 -1
- package/lib/types/components/HelpMenu.js +5 -4
- package/lib/types/components/InlineMathParagraph.d.ts +22 -0
- package/lib/types/components/InlineMathParagraph.d.ts.map +1 -0
- package/lib/types/components/InlineMathParagraph.js +178 -0
- package/lib/types/components/JobsPanel.d.ts.map +1 -1
- package/lib/types/components/JobsPanel.js +80 -33
- package/lib/types/components/LogoV2.d.ts +41 -3
- package/lib/types/components/LogoV2.d.ts.map +1 -1
- package/lib/types/components/LogoV2.js +148 -24
- package/lib/types/components/Markdown.d.ts +10 -3
- package/lib/types/components/Markdown.d.ts.map +1 -1
- package/lib/types/components/Markdown.js +47 -14
- package/lib/types/components/MathBlock.d.ts +13 -0
- package/lib/types/components/MathBlock.d.ts.map +1 -0
- package/lib/types/components/MathBlock.js +136 -0
- package/lib/types/components/MessageList.d.ts +10 -1
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +16 -7
- package/lib/types/components/MigratePicker.d.ts +30 -0
- package/lib/types/components/MigratePicker.d.ts.map +1 -0
- package/lib/types/components/MigratePicker.js +38 -0
- package/lib/types/components/PresetPicker.d.ts +4 -0
- package/lib/types/components/PresetPicker.d.ts.map +1 -1
- package/lib/types/components/PresetPicker.js +5 -1
- package/lib/types/components/PromptInput.d.ts +17 -0
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +60 -8
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +2 -1
- package/lib/types/components/StarPrompt.d.ts +59 -0
- package/lib/types/components/StarPrompt.d.ts.map +1 -0
- package/lib/types/components/StarPrompt.js +326 -0
- package/lib/types/components/StreamingMarkdown.d.ts.map +1 -1
- package/lib/types/components/StreamingMarkdown.js +20 -3
- package/lib/types/components/SubagentCard.d.ts.map +1 -1
- package/lib/types/components/SubagentCard.js +8 -8
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +108 -10
- package/lib/types/components/TimelineRail.d.ts.map +1 -1
- package/lib/types/components/TimelineRail.js +9 -1
- package/lib/types/components/Whale.d.ts +17 -8
- package/lib/types/components/Whale.d.ts.map +1 -1
- package/lib/types/components/Whale.js +25 -15
- package/lib/types/components/WhaleGirl.d.ts +35 -0
- package/lib/types/components/WhaleGirl.d.ts.map +1 -0
- package/lib/types/components/WhaleGirl.js +50 -0
- package/lib/types/components/WorkingSpinner.d.ts +4 -1
- package/lib/types/components/WorkingSpinner.d.ts.map +1 -1
- package/lib/types/components/WorkingSpinner.js +2 -2
- package/lib/types/components/bigfont.d.ts +47 -18
- package/lib/types/components/bigfont.d.ts.map +1 -1
- package/lib/types/components/bigfont.js +55 -40
- package/lib/types/components/design-system/ThemeProvider.d.ts +6 -0
- package/lib/types/components/design-system/ThemeProvider.d.ts.map +1 -1
- package/lib/types/components/design-system/ThemeProvider.js +40 -1
- package/lib/types/components/maidPortrait.d.ts +44 -0
- package/lib/types/components/maidPortrait.d.ts.map +1 -0
- package/lib/types/components/maidPortrait.js +178 -0
- package/lib/types/components/mathPreview.d.ts +25 -0
- package/lib/types/components/mathPreview.d.ts.map +1 -0
- package/lib/types/components/mathPreview.js +48 -0
- package/lib/types/components/messages/AssistantThinkingMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantThinkingMessage.js +6 -5
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +3 -2
- package/lib/types/components/messages/TranscriptImages.d.ts.map +1 -1
- package/lib/types/components/messages/TranscriptImages.js +11 -1
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts +14 -2
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
- package/lib/types/components/questions/AskUserQuestionPanel.js +80 -38
- package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
- package/lib/types/components/questions/PlanReviewPanel.js +3 -3
- package/lib/types/components/sessions/ForeignSessionRow.d.ts +34 -0
- package/lib/types/components/sessions/ForeignSessionRow.d.ts.map +1 -0
- package/lib/types/components/sessions/ForeignSessionRow.js +43 -0
- package/lib/types/components/sessions/SourceTabs.d.ts +52 -0
- package/lib/types/components/sessions/SourceTabs.d.ts.map +1 -0
- package/lib/types/components/sessions/SourceTabs.js +70 -0
- package/lib/types/components/splashEggs.d.ts +56 -0
- package/lib/types/components/splashEggs.d.ts.map +1 -0
- package/lib/types/components/splashEggs.js +67 -0
- package/lib/types/components/splashFonts.d.ts +119 -0
- package/lib/types/components/splashFonts.d.ts.map +1 -0
- package/lib/types/components/splashFonts.js +267 -0
- package/lib/types/components/splashLayout.d.ts +41 -0
- package/lib/types/components/splashLayout.d.ts.map +1 -0
- package/lib/types/components/splashLayout.js +40 -0
- package/lib/types/components/trajectory/MiniWake.d.ts +11 -1
- package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -1
- package/lib/types/components/trajectory/MiniWake.js +9 -3
- package/lib/types/components/whaleGirlSprite.d.ts +17 -0
- package/lib/types/components/whaleGirlSprite.d.ts.map +1 -0
- package/lib/types/components/whaleGirlSprite.js +47 -0
- package/lib/types/deepseekPricing.d.ts +74 -0
- package/lib/types/deepseekPricing.d.ts.map +1 -1
- package/lib/types/deepseekPricing.js +110 -11
- package/lib/types/dsh-adapter/channel/action-readiness.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/action-readiness.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/action-readiness.js +6 -1
- package/lib/types/dsh-adapter/channel/background-action.d.ts +1 -0
- package/lib/types/dsh-adapter/channel/background-action.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/background-action.js +1 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +8 -9
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +69 -21
- package/lib/types/dsh-adapter/channel/compaction.d.ts +2 -1
- package/lib/types/dsh-adapter/channel/compaction.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/compaction.js +35 -2
- package/lib/types/dsh-adapter/channel/external-commands.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/external-commands.js +8 -2
- package/lib/types/dsh-adapter/channel/job-projection.d.ts +1 -0
- package/lib/types/dsh-adapter/channel/job-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/job-projection.js +88 -3
- package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/local-actions.js +6 -1
- package/lib/types/dsh-adapter/channel/mode-actions.d.ts +13 -0
- package/lib/types/dsh-adapter/channel/mode-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mode-actions.js +48 -7
- package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mode-permission-actions.js +25 -9
- package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-switch.js +5 -1
- package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/paths.js +7 -1
- package/lib/types/dsh-adapter/channel/preferences.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/preferences.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/preferences.js +31 -5
- package/lib/types/dsh-adapter/channel/projection.d.ts +1 -2
- package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection.js +127 -17
- package/lib/types/dsh-adapter/channel/question-record.d.ts +76 -0
- package/lib/types/dsh-adapter/channel/question-record.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/question-record.js +107 -0
- package/lib/types/dsh-adapter/channel/session-lineage.d.ts +42 -0
- package/lib/types/dsh-adapter/channel/session-lineage.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-lineage.js +51 -0
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +2 -0
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.js +9 -3
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts +2 -1
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-metadata.js +39 -7
- 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 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +4 -2
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +8 -0
- package/lib/types/dsh-adapter/channel/state.d.ts +17 -2
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/state.js +6 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +30 -35
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.js +143 -4
- package/lib/types/dsh-adapter/channel/types.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel.js +35 -5
- package/lib/types/dsh-adapter/compat/messages.d.ts +6 -0
- package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/messages.js +9 -0
- package/lib/types/dsh-adapter/contract.d.ts +6 -5
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +14 -6
- package/lib/types/dsh-adapter/index.d.ts +36 -1
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +22 -6
- package/lib/types/dsh-adapter/jobs.d.ts +82 -16
- package/lib/types/dsh-adapter/jobs.d.ts.map +1 -1
- package/lib/types/dsh-adapter/jobs.js +104 -9
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.js +131 -0
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.parse.d.ts +17 -0
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.parse.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.parse.js +329 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.js +102 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.parse.d.ts +16 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.parse.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.parse.js +289 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.js +117 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.parse.d.ts +13 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.parse.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.parse.js +178 -0
- package/lib/types/dsh-adapter/migrate/adapters/omp.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/omp.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/omp.js +133 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan-fs.d.ts +60 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan-fs.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan-fs.js +178 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan.d.ts +8 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan.js +40 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.js +93 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.parse.d.ts +9 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.parse.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.parse.js +89 -0
- package/lib/types/dsh-adapter/migrate/bin-path.d.ts +6 -0
- package/lib/types/dsh-adapter/migrate/bin-path.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/bin-path.js +30 -0
- package/lib/types/dsh-adapter/migrate/browse.d.ts +42 -0
- package/lib/types/dsh-adapter/migrate/browse.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/browse.js +90 -0
- package/lib/types/dsh-adapter/migrate/cli.d.ts +9 -0
- package/lib/types/dsh-adapter/migrate/cli.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/cli.js +106 -0
- package/lib/types/dsh-adapter/migrate/import-one.d.ts +89 -0
- package/lib/types/dsh-adapter/migrate/import-one.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/import-one.js +133 -0
- package/lib/types/dsh-adapter/migrate/index.d.ts +35 -0
- package/lib/types/dsh-adapter/migrate/index.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/index.js +107 -0
- package/lib/types/dsh-adapter/migrate/parse/injection.d.ts +40 -0
- package/lib/types/dsh-adapter/migrate/parse/injection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/parse/injection.js +127 -0
- package/lib/types/dsh-adapter/migrate/parse/jsonl.d.ts +28 -0
- package/lib/types/dsh-adapter/migrate/parse/jsonl.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/parse/jsonl.js +40 -0
- package/lib/types/dsh-adapter/migrate/parse/role-turns.d.ts +28 -0
- package/lib/types/dsh-adapter/migrate/parse/role-turns.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/parse/role-turns.js +50 -0
- package/lib/types/dsh-adapter/migrate/parse/title.d.ts +18 -0
- package/lib/types/dsh-adapter/migrate/parse/title.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/parse/title.js +29 -0
- package/lib/types/dsh-adapter/migrate/parse/tools.d.ts +62 -0
- package/lib/types/dsh-adapter/migrate/parse/tools.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/parse/tools.js +110 -0
- package/lib/types/dsh-adapter/migrate/picker.d.ts +64 -0
- package/lib/types/dsh-adapter/migrate/picker.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/picker.js +86 -0
- package/lib/types/dsh-adapter/migrate/recent-agents.d.ts +40 -0
- package/lib/types/dsh-adapter/migrate/recent-agents.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/recent-agents.js +100 -0
- package/lib/types/dsh-adapter/migrate/sessionize.d.ts +39 -0
- package/lib/types/dsh-adapter/migrate/sessionize.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/sessionize.js +271 -0
- package/lib/types/dsh-adapter/migrate/types.d.ts +176 -0
- package/lib/types/dsh-adapter/migrate/types.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/types.js +11 -0
- package/lib/types/dsh-adapter/migrate/uuid.d.ts +7 -0
- package/lib/types/dsh-adapter/migrate/uuid.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/uuid.js +25 -0
- package/lib/types/dsh-adapter/oauth/bonus.d.ts +27 -0
- package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -0
- package/lib/types/dsh-adapter/oauth/bonus.js +69 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/command.d.ts +2 -1
- package/lib/types/dsh-adapter/oauth/command.d.ts.map +1 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/command.js +7 -4
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/credentials.d.ts +13 -10
- package/lib/types/dsh-adapter/oauth/credentials.d.ts.map +1 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/credentials.js +61 -23
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts +39 -0
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -0
- package/lib/types/dsh-adapter/oauth/deepseek.js +189 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/index.d.ts +24 -16
- package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/index.js +34 -20
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/interaction.d.ts +14 -12
- package/lib/types/dsh-adapter/oauth/interaction.d.ts.map +1 -0
- package/lib/types/dsh-adapter/oauth/interaction.js +283 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/opener.d.ts +2 -1
- package/lib/types/dsh-adapter/oauth/opener.d.ts.map +1 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/opener.js +1 -1
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/pi-ai.d.ts +10 -3
- package/lib/types/dsh-adapter/oauth/pi-ai.d.ts.map +1 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/pi-ai.js +8 -3
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/profiles.d.ts +6 -3
- package/lib/types/dsh-adapter/oauth/profiles.d.ts.map +1 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/profiles.js +11 -3
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/service.d.ts +14 -7
- package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -0
- package/{node_modules/@deepseek-harness-tui/dsh-auth/lib → lib/types/dsh-adapter/oauth}/service.js +82 -17
- package/lib/types/dsh-adapter/plugin.d.ts +12 -3
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +215 -376
- package/lib/types/dsh-adapter/presets.d.ts +6 -4
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +6 -4
- package/lib/types/dsh-adapter/providerWizard.d.ts +17 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +260 -68
- package/lib/types/dsh-adapter/questions.d.ts +22 -15
- package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/questions.js +47 -45
- package/lib/types/dsh-adapter/sessions/digest.d.ts +11 -6
- package/lib/types/dsh-adapter/sessions/digest.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/digest.js +20 -13
- package/lib/types/dsh-adapter/sessions/frames.d.ts +3 -1
- package/lib/types/dsh-adapter/sessions/frames.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/frames.js +5 -4
- package/lib/types/dsh-adapter/sessions/list.d.ts +6 -1
- package/lib/types/dsh-adapter/sessions/list.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/list.js +188 -164
- package/lib/types/dsh-adapter/sessions/recovery.d.ts +16 -0
- package/lib/types/dsh-adapter/sessions/recovery.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/recovery.js +108 -0
- package/lib/types/dsh-adapter/sessions/snapshot.d.ts +7 -0
- package/lib/types/dsh-adapter/sessions/snapshot.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/snapshot.js +90 -0
- package/lib/types/dsh-adapter/sessions/store.d.ts +10 -4
- package/lib/types/dsh-adapter/sessions/store.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/store.js +62 -25
- package/lib/types/dsh-adapter/sideQuestion.d.ts +41 -2
- package/lib/types/dsh-adapter/sideQuestion.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sideQuestion.js +98 -2
- package/lib/types/dsh-adapter/subagents.d.ts +29 -3
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +87 -3
- package/lib/types/herdr.d.ts +2 -0
- package/lib/types/herdr.d.ts.map +1 -1
- package/lib/types/herdr.js +9 -3
- package/lib/types/i18n.d.ts +598 -60
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +198 -31
- package/lib/types/ink/components/App.d.ts +2 -2
- package/lib/types/ink/components/App.d.ts.map +1 -1
- package/lib/types/ink/components/App.js +15 -2
- package/lib/types/ink/components/Image.d.ts +14 -1
- package/lib/types/ink/components/Image.d.ts.map +1 -1
- package/lib/types/ink/components/Image.js +2 -2
- package/lib/types/ink/events/input-event.js +3 -3
- package/lib/types/ink/hooks/use-terminal-images.d.ts +12 -0
- package/lib/types/ink/hooks/use-terminal-images.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-terminal-images.js +13 -0
- package/lib/types/ink/ink.d.ts +6 -0
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +16 -1
- package/lib/types/ink/kitty-graphics.d.ts +44 -3
- package/lib/types/ink/kitty-graphics.d.ts.map +1 -1
- package/lib/types/ink/kitty-graphics.js +184 -23
- package/lib/types/ink/output.d.ts +24 -2
- package/lib/types/ink/output.d.ts.map +1 -1
- package/lib/types/ink/output.js +83 -5
- package/lib/types/ink/parse-keypress.d.ts +61 -1
- package/lib/types/ink/parse-keypress.d.ts.map +1 -1
- package/lib/types/ink/parse-keypress.js +764 -93
- package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
- package/lib/types/ink/render-node-to-output.js +8 -1
- package/lib/types/ink/screen.d.ts +24 -0
- package/lib/types/ink/screen.d.ts.map +1 -1
- package/lib/types/ink/screen.js +89 -0
- package/lib/types/ink/selection.d.ts +40 -18
- package/lib/types/ink/selection.d.ts.map +1 -1
- package/lib/types/ink/selection.js +142 -30
- package/lib/types/ink/sixel-codec.d.ts +12 -1
- package/lib/types/ink/sixel-codec.d.ts.map +1 -1
- package/lib/types/ink/sixel-codec.js +29 -5
- package/lib/types/ink/sixel-graphics.d.ts.map +1 -1
- package/lib/types/ink/sixel-graphics.js +5 -3
- package/lib/types/ink/styles.d.ts +9 -0
- package/lib/types/ink/styles.d.ts.map +1 -1
- package/lib/types/ink/terminal-image.d.ts +8 -0
- package/lib/types/ink/terminal-image.d.ts.map +1 -1
- package/lib/types/ink/terminal-querier.d.ts +32 -1
- package/lib/types/ink/terminal-querier.d.ts.map +1 -1
- package/lib/types/ink/terminal-querier.js +54 -2
- package/lib/types/ink/timeline-rail.d.ts +5 -0
- package/lib/types/ink/timeline-rail.d.ts.map +1 -1
- package/lib/types/ink/update-overflow-guard.d.ts +24 -0
- package/lib/types/ink/update-overflow-guard.d.ts.map +1 -1
- package/lib/types/ink/update-overflow-guard.js +25 -3
- package/lib/types/math/inline-layout.d.ts +29 -0
- package/lib/types/math/inline-layout.d.ts.map +1 -0
- package/lib/types/math/inline-layout.js +106 -0
- package/lib/types/math/layout.d.ts +58 -0
- package/lib/types/math/layout.d.ts.map +1 -0
- package/lib/types/math/layout.js +59 -0
- package/lib/types/math/renderer.d.ts +64 -0
- package/lib/types/math/renderer.d.ts.map +1 -0
- package/lib/types/math/renderer.js +256 -0
- package/lib/types/minimalUiMode.d.ts +19 -0
- package/lib/types/minimalUiMode.d.ts.map +1 -0
- package/lib/types/minimalUiMode.js +23 -0
- package/lib/types/oauth.d.ts +5 -10
- package/lib/types/oauth.d.ts.map +1 -1
- package/lib/types/oauth.js +5 -10
- package/lib/types/screens/Chat.d.ts +17 -1
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +627 -54
- package/lib/types/screens/SessionSupervisor.d.ts +2 -1
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/SessionSupervisor.js +156 -19
- package/lib/types/screens/Settings.d.ts.map +1 -1
- package/lib/types/screens/Settings.js +49 -11
- package/lib/types/screens/StatusLine.d.ts +4 -0
- package/lib/types/screens/StatusLine.d.ts.map +1 -1
- package/lib/types/screens/StatusLine.js +57 -27
- package/lib/types/screens/chatOverlay.d.ts +5 -0
- package/lib/types/screens/chatOverlay.d.ts.map +1 -1
- package/lib/types/screens/chatOverlay.js +1 -0
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts +47 -0
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -0
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +65 -0
- package/lib/types/screens/sessionSupervisor/model.d.ts +12 -0
- package/lib/types/screens/sessionSupervisor/model.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/model.js +26 -0
- package/lib/types/screens/sessionSupervisor/useForeignSessions.d.ts +107 -0
- package/lib/types/screens/sessionSupervisor/useForeignSessions.d.ts.map +1 -0
- package/lib/types/screens/sessionSupervisor/useForeignSessions.js +312 -0
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +4 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +97 -14
- package/lib/types/sessionHistory.d.ts +2 -2
- package/lib/types/sessionHistory.d.ts.map +1 -1
- package/lib/types/sessionHistory.js +31 -5
- package/lib/types/settings/definitions.d.ts +681 -0
- package/lib/types/settings/definitions.d.ts.map +1 -0
- package/lib/types/settings/definitions.js +511 -0
- package/lib/types/starAction.d.ts +44 -0
- package/lib/types/starAction.d.ts.map +1 -0
- package/lib/types/starAction.js +52 -0
- package/lib/types/terminal-utils/latex.d.ts +10 -0
- package/lib/types/terminal-utils/latex.d.ts.map +1 -0
- package/lib/types/terminal-utils/latex.js +1417 -0
- package/lib/types/terminal-utils/markdown.d.ts +3 -1
- package/lib/types/terminal-utils/markdown.d.ts.map +1 -1
- package/lib/types/terminal-utils/markdown.js +26 -1
- package/lib/types/terminal-utils/math.d.ts +66 -0
- package/lib/types/terminal-utils/math.d.ts.map +1 -0
- package/lib/types/terminal-utils/math.js +337 -0
- package/lib/types/tips.d.ts.map +1 -1
- package/lib/types/tips.js +16 -4
- package/lib/types/tuiDisplayPrefs.d.ts +67 -0
- package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
- package/lib/types/tuiDisplayPrefs.js +59 -0
- package/lib/types/ui.d.ts +1 -1
- package/lib/types/ui.d.ts.map +1 -1
- package/lib/types/ui.js +1 -1
- package/lib/types/update.js +2 -2
- package/lib/types/usageStats.d.ts +98 -0
- package/lib/types/usageStats.d.ts.map +1 -0
- package/lib/types/usageStats.js +169 -0
- package/lib/types/utils/bmp.d.ts +17 -0
- package/lib/types/utils/bmp.d.ts.map +1 -0
- package/lib/types/utils/bmp.js +154 -0
- package/lib/types/utils/clipboard.d.ts +14 -2
- package/lib/types/utils/clipboard.d.ts.map +1 -1
- package/lib/types/utils/clipboard.js +143 -8
- package/lib/types/utils/fold-long-lines.d.ts.map +1 -1
- package/lib/types/utils/fold-long-lines.js +2 -1
- package/lib/types/utils/keymap.d.ts +4 -1
- package/lib/types/utils/keymap.d.ts.map +1 -1
- package/lib/types/utils/keymap.js +8 -0
- package/lib/types/utils/modifiers.d.ts +4 -3
- package/lib/types/utils/modifiers.d.ts.map +1 -1
- package/lib/types/utils/modifiers.js +4 -3
- package/lib/types/utils/pastedImagePath.d.ts +8 -0
- package/lib/types/utils/pastedImagePath.d.ts.map +1 -1
- package/lib/types/utils/pastedImagePath.js +29 -5
- package/node_modules/@dsh-tui-vendor/mathjax-tex-svg/LICENSE +202 -0
- package/node_modules/@dsh-tui-vendor/mathjax-tex-svg/NOTICE +20 -0
- package/node_modules/@dsh-tui-vendor/mathjax-tex-svg/index.d.ts +16 -0
- package/node_modules/@dsh-tui-vendor/mathjax-tex-svg/lib/bundled-packages.json +4 -0
- package/node_modules/@dsh-tui-vendor/mathjax-tex-svg/lib/index.mjs +20 -0
- package/node_modules/@dsh-tui-vendor/mathjax-tex-svg/lib/index.mjs.LEGAL.txt +35 -0
- package/node_modules/@dsh-tui-vendor/mathjax-tex-svg/package.json +29 -0
- package/package.json +127 -102
- package/presets/liangshen/agent.cordis.yml +4 -1
- package/presets/liangshen/preset.yml +1 -1
- package/lib/types/minimalMode.d.ts +0 -13
- package/lib/types/minimalMode.d.ts.map +0 -1
- package/lib/types/minimalMode.js +0 -17
- package/node_modules/@deepseek-harness-tui/dsh-auth/LICENSE +0 -21
- package/node_modules/@deepseek-harness-tui/dsh-auth/README.md +0 -143
- package/node_modules/@deepseek-harness-tui/dsh-auth/cordis.patch.yml +0 -11
- package/node_modules/@deepseek-harness-tui/dsh-auth/dsh-plugin.json +0 -44
- package/node_modules/@deepseek-harness-tui/dsh-auth/lib/interaction.js +0 -193
- package/node_modules/@deepseek-harness-tui/dsh-auth/package.json +0 -69
|
@@ -85,7 +85,7 @@ type Options = {
|
|
|
85
85
|
previousImages?: readonly TerminalImagePlacement[];
|
|
86
86
|
};
|
|
87
87
|
/** A queued paint operation: write, clip, unclip, blit, clear, shade, noSelect, or shift. */
|
|
88
|
-
export type Operation = WriteOperation | ClipOperation | UnclipOperation | BlitOperation | ClearOperation | ShadeOperation | NoSelectOperation | ShiftOperation;
|
|
88
|
+
export type Operation = WriteOperation | ClipOperation | UnclipOperation | BlitOperation | ClearOperation | ShadeOperation | NoSelectOperation | CopyRegionOperation | SoftWrapRowOperation | ShiftOperation;
|
|
89
89
|
/**
|
|
90
90
|
* Restyle the cells already in the region at this point of the paint
|
|
91
91
|
* order: a modal layer's backdrop. Applied in sequence like a write, so
|
|
@@ -108,7 +108,8 @@ type WriteOperation = {
|
|
|
108
108
|
* means line i is a continuation of line i-1 (the `\n` before it was
|
|
109
109
|
* inserted by word-wrap, not in the source). Index 0 is always false.
|
|
110
110
|
* Undefined means the producer didn't track wrapping (e.g. fills,
|
|
111
|
-
* raw-ansi)
|
|
111
|
+
* raw-ansi): the rows it paints are marked "not a continuation", since it
|
|
112
|
+
* replaced whatever was there — see the write case in `get()`.
|
|
112
113
|
*/
|
|
113
114
|
softWrap?: boolean[];
|
|
114
115
|
};
|
|
@@ -156,6 +157,19 @@ type NoSelectOperation = {
|
|
|
156
157
|
type: 'noSelect';
|
|
157
158
|
region: Rectangle;
|
|
158
159
|
};
|
|
160
|
+
/** Row `y` continues the row above, whose content ends at `contentEnd`. */
|
|
161
|
+
type SoftWrapRowOperation = {
|
|
162
|
+
type: 'softWrapRow';
|
|
163
|
+
y: number;
|
|
164
|
+
contentEnd: number;
|
|
165
|
+
};
|
|
166
|
+
/** A region that copies as `text` (see Screen.copyRegion); paints nothing. */
|
|
167
|
+
type CopyRegionOperation = {
|
|
168
|
+
type: 'copyRegion';
|
|
169
|
+
region: Rectangle;
|
|
170
|
+
text: string;
|
|
171
|
+
id: number;
|
|
172
|
+
};
|
|
159
173
|
/**
|
|
160
174
|
* Collects write/blit/clear/clip operations from the render tree, then
|
|
161
175
|
* applies them to a Screen buffer in get(). The Screen is what gets
|
|
@@ -250,6 +264,8 @@ export default class Output {
|
|
|
250
264
|
* the mark wins regardless of what's blitted into the region.
|
|
251
265
|
* @param region - the region to mark.
|
|
252
266
|
*/
|
|
267
|
+
/** Mark row `y` as a wrap continuation (see Styles.softWrapContinuation). */
|
|
268
|
+
softWrapRow(y: number, contentEnd: number): void;
|
|
253
269
|
noSelect(region: Rectangle): void;
|
|
254
270
|
/**
|
|
255
271
|
* Record a fully visible, frame-budgeted image request. Rejected placements
|
|
@@ -272,6 +288,12 @@ export default class Output {
|
|
|
272
288
|
getImages(): readonly TerminalImagePlacement[];
|
|
273
289
|
/** Pixel ownership is determined by paint order, not just final text values. */
|
|
274
290
|
imageBacking(node: DOMElement): void;
|
|
291
|
+
/**
|
|
292
|
+
* The admitted placement's backing colour, or undefined when the raster
|
|
293
|
+
* composites transparently: its cells are then blanks, not a painted
|
|
294
|
+
* surface, so whatever the terminal shows behind the UI stays visible.
|
|
295
|
+
*/
|
|
296
|
+
imagePlacementBackground(node: DOMElement): string | undefined;
|
|
275
297
|
/**
|
|
276
298
|
* Queue a text write at a position, split across lines on newlines.
|
|
277
299
|
* @param x - the left column.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/ink/output.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,sBA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CHANGED
|
@@ -4,7 +4,7 @@ import { getGraphemeSegmenter } from '../utils/intl.js';
|
|
|
4
4
|
import sliceAnsi from '../utils/sliceAnsi.js';
|
|
5
5
|
import { reorderBidi } from './bidi.js';
|
|
6
6
|
import { unionRect } from './layout/geometry.js';
|
|
7
|
-
import { blitRegion, cellRunSpan, createCellRun, extractHyperlinkFromStyles, filterOutHyperlinkStyles, markNoSelectRegion, OSC8_PREFIX, shadeRegion, recordCellRunEntry, recordSpacerRunEntry, replayCellRun, resetScreen, setCellAt, shiftRows, } from './screen.js';
|
|
7
|
+
import { blitRegion, cellRunSpan, createCellRun, extractHyperlinkFromStyles, filterOutHyperlinkStyles, allocateCopyRegionId, clearCopyRegionSpan, markCopyRegion, pruneCopyTexts, markNoSelectRegion, OSC8_PREFIX, shadeRegion, recordCellRunEntry, recordSpacerRunEntry, replayCellRun, resetScreen, setCellAt, shiftRows, } from './screen.js';
|
|
8
8
|
import { stringWidth } from './stringWidth.js';
|
|
9
9
|
import { expandTabs } from './tabstops.js';
|
|
10
10
|
import { TERMINAL_IMAGE_MAX_CELLS, TERMINAL_IMAGE_MAX_FRAME_BYTES, TERMINAL_IMAGE_MAX_PLACEMENTS, } from './terminal-image.js';
|
|
@@ -152,6 +152,22 @@ function isNodeInSubtree(node, root) {
|
|
|
152
152
|
}
|
|
153
153
|
return false;
|
|
154
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* One copy region id per image node for its lifetime, so rows captured
|
|
157
|
+
* during drag-to-scroll and rows still on screen name the same formula.
|
|
158
|
+
*/
|
|
159
|
+
const copyRegionIds = new WeakMap();
|
|
160
|
+
/**
|
|
161
|
+
* Copy text reaches the clipboard without passing through cells, so it never
|
|
162
|
+
* met the render path's control-character rules. Drop C0/C1 (newlines
|
|
163
|
+
* excepted: a block formula's source is multi-line) and the
|
|
164
|
+
* interlinear-annotation code points, which the copy pipeline reserves for
|
|
165
|
+
* its own row metadata.
|
|
166
|
+
*/
|
|
167
|
+
const COPY_TEXT_STRIP = /[\u0000-\u0009\u000b-\u001f\u007f-\u009f\uFFF9-\uFFFB]/g;
|
|
168
|
+
function cleanCopyText(value) {
|
|
169
|
+
return value.replace(COPY_TEXT_STRIP, '');
|
|
170
|
+
}
|
|
155
171
|
/**
|
|
156
172
|
* Slot-reuse ceiling: the clustered array is a second full memory image of
|
|
157
173
|
* the line, and pathological single-line output (base64 blobs, minified
|
|
@@ -502,6 +518,10 @@ export default class Output {
|
|
|
502
518
|
* the mark wins regardless of what's blitted into the region.
|
|
503
519
|
* @param region - the region to mark.
|
|
504
520
|
*/
|
|
521
|
+
/** Mark row `y` as a wrap continuation (see Styles.softWrapContinuation). */
|
|
522
|
+
softWrapRow(y, contentEnd) {
|
|
523
|
+
this.operations.push({ type: 'softWrapRow', y, contentEnd });
|
|
524
|
+
}
|
|
505
525
|
noSelect(region) {
|
|
506
526
|
this.operations.push({ type: 'noSelect', region });
|
|
507
527
|
}
|
|
@@ -525,7 +545,11 @@ export default class Output {
|
|
|
525
545
|
return false;
|
|
526
546
|
}
|
|
527
547
|
const presentation = node.attributes.imagePresentation;
|
|
528
|
-
const
|
|
548
|
+
const transparent = node.attributes.imageTransparent === 'transparent';
|
|
549
|
+
// Both protocols crop a partially visible content image to its visible
|
|
550
|
+
// cells (Sixel re-encodes the slice, Kitty places a source rectangle), so
|
|
551
|
+
// scrolling past a viewport edge never flips it to its text fallback.
|
|
552
|
+
const canCrop = this.terminalImagesEnabled && (presentation === 'preview' || presentation === 'transcript');
|
|
529
553
|
if (!canCrop && (left < 0 ||
|
|
530
554
|
top < 0 ||
|
|
531
555
|
left + width > this.width ||
|
|
@@ -559,6 +583,7 @@ export default class Output {
|
|
|
559
583
|
rows: height,
|
|
560
584
|
source,
|
|
561
585
|
...(presentation === 'preview' || presentation === 'transcript' ? { presentation } : {}),
|
|
586
|
+
...(transparent ? { transparent: true } : {}),
|
|
562
587
|
...(canCrop ? { clip: { x: visibleLeft, y: visibleTop, columns: visibleRight - visibleLeft, rows: visibleBottom - visibleTop } } : {}),
|
|
563
588
|
...(background !== undefined ? { background } : {}),
|
|
564
589
|
};
|
|
@@ -576,8 +601,9 @@ export default class Output {
|
|
|
576
601
|
*/
|
|
577
602
|
reuseImages(node) {
|
|
578
603
|
// A scrollable image's current clip is only known inside its ScrollBox.
|
|
579
|
-
// Descend first rather than admitting stale placements from an ancestor
|
|
580
|
-
|
|
604
|
+
// Descend first rather than admitting stale placements from an ancestor
|
|
605
|
+
// blit: a crop computed without that clip would spill past the viewport.
|
|
606
|
+
if (this.terminalImagesEnabled && this.previousImages.some(p => isNodeInSubtree(p.node, node)))
|
|
581
607
|
return false;
|
|
582
608
|
let reusedAll = true;
|
|
583
609
|
for (const placement of this.previousImages) {
|
|
@@ -650,11 +676,31 @@ export default class Output {
|
|
|
650
676
|
const placement = this.imagePlacements.find(image => image.node === node);
|
|
651
677
|
if (placement) {
|
|
652
678
|
const visible = placement.clip ?? placement;
|
|
653
|
-
|
|
679
|
+
const region = { x: visible.x, y: visible.y, width: visible.columns, height: visible.rows };
|
|
680
|
+
// An image's backing cells are blank; one with copy text (a formula's
|
|
681
|
+
// source) copies as that text, any other image is left out of copies.
|
|
682
|
+
const copyText = node.attributes['imageCopyText'];
|
|
683
|
+
const copied = typeof copyText === 'string' ? cleanCopyText(copyText) : '';
|
|
684
|
+
if (copied !== '') {
|
|
685
|
+
let id = copyRegionIds.get(node);
|
|
686
|
+
if (id === undefined)
|
|
687
|
+
copyRegionIds.set(node, id = allocateCopyRegionId());
|
|
688
|
+
this.operations.push({ type: 'copyRegion', region, text: copied, id });
|
|
689
|
+
}
|
|
690
|
+
else
|
|
691
|
+
this.noSelect(region);
|
|
654
692
|
}
|
|
655
693
|
if (this.imageReady)
|
|
656
694
|
this.imageBackingEnds.set(node, this.operations.length);
|
|
657
695
|
}
|
|
696
|
+
/**
|
|
697
|
+
* The admitted placement's backing colour, or undefined when the raster
|
|
698
|
+
* composites transparently: its cells are then blanks, not a painted
|
|
699
|
+
* surface, so whatever the terminal shows behind the UI stays visible.
|
|
700
|
+
*/
|
|
701
|
+
imagePlacementBackground(node) {
|
|
702
|
+
return this.imagePlacements.find(image => image.node === node)?.background;
|
|
703
|
+
}
|
|
658
704
|
/**
|
|
659
705
|
* Queue a text write at a position, split across lines on newlines.
|
|
660
706
|
* @param x - the left column.
|
|
@@ -810,6 +856,24 @@ export default class Output {
|
|
|
810
856
|
shiftRows(screen, operation.top, operation.bottom, operation.n);
|
|
811
857
|
continue;
|
|
812
858
|
}
|
|
859
|
+
case 'softWrapRow': {
|
|
860
|
+
// Paint order: the marker lands where the producer asked for it, and
|
|
861
|
+
// the write case above resets it when a later operation repaints that
|
|
862
|
+
// row. (This used to run in a pass after every write, which let a
|
|
863
|
+
// marker outlive an overlay that overwrote the row.)
|
|
864
|
+
if (operation.y > 0 && operation.y < screen.height) {
|
|
865
|
+
screen.softWrap[operation.y] = Math.max(1, operation.contentEnd);
|
|
866
|
+
}
|
|
867
|
+
continue;
|
|
868
|
+
}
|
|
869
|
+
case 'copyRegion': {
|
|
870
|
+
// In paint order: anything written over the image later (a menu,
|
|
871
|
+
// an overlay) clears the cells it covers, so a copy reads what is
|
|
872
|
+
// visible there rather than the formula beneath.
|
|
873
|
+
const { x, y, width, height } = operation.region;
|
|
874
|
+
markCopyRegion(screen, x, y, width, height, operation.text, operation.id);
|
|
875
|
+
continue;
|
|
876
|
+
}
|
|
813
877
|
case 'shade': {
|
|
814
878
|
// Honour the active clip like a write: a backdrop inside an
|
|
815
879
|
// overflow-hidden ancestor must not shade cells outside it.
|
|
@@ -882,6 +946,9 @@ export default class Output {
|
|
|
882
946
|
}
|
|
883
947
|
const contentEnd = writeLineToScreen(screen, line, x, lineY, screenWidth, this.stylePool, this.charCache, this.streamingSlot, this.packedOwner);
|
|
884
948
|
writeCells += contentEnd - x;
|
|
949
|
+
if (screen.copyTexts !== undefined && screen.copyTexts.size > 0) {
|
|
950
|
+
clearCopyRegionSpan(screen, lineY, x, contentEnd);
|
|
951
|
+
}
|
|
885
952
|
// See Screen.softWrap docstring for the encoding. contentEnd
|
|
886
953
|
// from writeLineToScreen is tab-expansion-aware, unlike
|
|
887
954
|
// x+stringWidth(line) which treats tabs as width 0.
|
|
@@ -890,6 +957,14 @@ export default class Output {
|
|
|
890
957
|
swBits[lineY] = isSW ? prevContentEnd : 0;
|
|
891
958
|
prevContentEnd = contentEnd;
|
|
892
959
|
}
|
|
960
|
+
else {
|
|
961
|
+
// Paint order: a producer that doesn't track wrapping (fills,
|
|
962
|
+
// raw-ansi, overlays) still replaces the row it paints, so a
|
|
963
|
+
// continuation marker an earlier softWrapRow set for this row
|
|
964
|
+
// is stale — keep it and a copy would glue the overlay's text
|
|
965
|
+
// onto the previous line.
|
|
966
|
+
swBits[lineY] = 0;
|
|
967
|
+
}
|
|
893
968
|
offsetY++;
|
|
894
969
|
}
|
|
895
970
|
continue;
|
|
@@ -907,6 +982,9 @@ export default class Output {
|
|
|
907
982
|
markNoSelectRegion(screen, x, y, width, height);
|
|
908
983
|
}
|
|
909
984
|
}
|
|
985
|
+
// Blits carry the previous frame's region texts; keep only the ones a
|
|
986
|
+
// cell still references, or the map grows by every redrawn formula.
|
|
987
|
+
pruneCopyTexts(screen);
|
|
910
988
|
// Log blit/write ratio for debugging - high write count suggests blitting isn't working
|
|
911
989
|
const totalCells = blitCells + writeCells;
|
|
912
990
|
if (totalCells > 1000 && writeCells > blitCells) {
|
|
@@ -81,6 +81,13 @@ export type Win32PasteState = {
|
|
|
81
81
|
held: ParsedKey[];
|
|
82
82
|
/** collected paste content while active */
|
|
83
83
|
buffer: string;
|
|
84
|
+
/**
|
|
85
|
+
* True when the last character appended to `buffer` came from a CR record
|
|
86
|
+
* (Uc=13). Classic conhost spells a pasted CRLF break as a CR record
|
|
87
|
+
* followed by an LF record (Uc=10); the LF half must fold into the CR's
|
|
88
|
+
* newline instead of appending a second one (issue #1090).
|
|
89
|
+
*/
|
|
90
|
+
lastWasCarriageReturn: boolean;
|
|
84
91
|
};
|
|
85
92
|
export type Win32ProtocolState = {
|
|
86
93
|
held: ParsedKey[];
|
|
@@ -94,6 +101,23 @@ export type KeyParseState = {
|
|
|
94
101
|
mode: 'NORMAL' | 'IN_PASTE';
|
|
95
102
|
incomplete: string;
|
|
96
103
|
pasteBuffer: string;
|
|
104
|
+
/**
|
|
105
|
+
* Host-injected platform gate: this machine MIGHT run the private win32
|
|
106
|
+
* input mode (`supportsWin32InputMode()`). Read-only — capability alone is
|
|
107
|
+
* not evidence and never lights anything by itself; only an explicit
|
|
108
|
+
* `false` closes the gate, and leaving the field absent keeps the parser's
|
|
109
|
+
* pre-gate behavior for direct callers.
|
|
110
|
+
*/
|
|
111
|
+
win32Capable?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Lit by successfully decoding a win32 record. Only behind that evidence
|
|
114
|
+
* may a plain `ESC[` fragment extend the hold (see isRecordPrefix).
|
|
115
|
+
*/
|
|
116
|
+
win32InputMode?: boolean;
|
|
117
|
+
/** First capture of a buffered win32 record; never renewed by flushes. */
|
|
118
|
+
win32InputStartedAt?: number;
|
|
119
|
+
/** A flushed lone ESC may be followed by an ESC-less record fragment. */
|
|
120
|
+
win32EscFlushedAt?: number;
|
|
97
121
|
/**
|
|
98
122
|
* Pending high surrogate from a win32-input-mode record. Uc is a UTF-16
|
|
99
123
|
* code unit, so supplementary-plane characters (emoji, CJK ext-B) arrive
|
|
@@ -141,6 +165,41 @@ export type KeyParseState = {
|
|
|
141
165
|
* otherwise kill a slow split).
|
|
142
166
|
*/
|
|
143
167
|
mouseTailHoldAt?: number;
|
|
168
|
+
/**
|
|
169
|
+
* Date.now() of the most recent flush that emitted a lone Escape key from an
|
|
170
|
+
* incomplete terminal sequence. Any text chunk inside the window may be that
|
|
171
|
+
* sequence's delayed tail — the bound is time (TERMINAL_RESPONSE_TAIL_GRACE_MS),
|
|
172
|
+
* not just the chunk that follows the flush.
|
|
173
|
+
*/
|
|
174
|
+
terminalResponseTailAfterEscFlushAt?: number;
|
|
175
|
+
/**
|
|
176
|
+
* Date.now() of the FIRST capture of the reply prefix currently held open
|
|
177
|
+
* across flushes (see TERMINAL_RESPONSE_TAIL_GRACE_MS). Later flushes and
|
|
178
|
+
* continuations never renew it; the hold is released — bytes dropped — once
|
|
179
|
+
* it expires or its in-flight claim disappears. Parser-maintained, like
|
|
180
|
+
* mouseTailHoldAt; never host-injected.
|
|
181
|
+
*/
|
|
182
|
+
terminalResponseHoldAt?: number;
|
|
183
|
+
/**
|
|
184
|
+
* Parser-maintained reply fragment held across calls after its introducer
|
|
185
|
+
* ESC was already flushed as a standalone key (a ConPTY split that lands
|
|
186
|
+
* mid-tail). The fragment has the synthesized ESC removed; the next text
|
|
187
|
+
* chunk may complete it. It lives only inside the
|
|
188
|
+
* terminalResponseTailAfterEscFlushAt window and is dropped — never
|
|
189
|
+
* emitted as text — once that window closes, the evidence disappears or
|
|
190
|
+
* the fragment stops being reply-shaped.
|
|
191
|
+
*/
|
|
192
|
+
terminalResponseReattachTail?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Host-injected, read-only in-flight evidence for terminal-query replies:
|
|
195
|
+
* the response types of the queries still awaiting a reply
|
|
196
|
+
* (querier.pendingResponseTypes). A reply is only claimed while one of
|
|
197
|
+
* these types is both expected and shape-compatible with the bytes; an
|
|
198
|
+
* absent or empty list means no evidence, so the parser never claims a
|
|
199
|
+
* response tail and direct callers keep the pre-gate behavior. The host
|
|
200
|
+
* re-injects it on every call, so a settled query stops counting at once.
|
|
201
|
+
*/
|
|
202
|
+
terminalExpectedResponseTypes?: readonly TerminalResponse['type'][];
|
|
144
203
|
_tokenizer?: Tokenizer;
|
|
145
204
|
};
|
|
146
205
|
/** Initial `KeyParseState` for a fresh parser. */
|
|
@@ -149,7 +208,8 @@ export declare const INITIAL_STATE: KeyParseState;
|
|
|
149
208
|
* Tokenize and parse a chunk of terminal input into parsed keys, mouse
|
|
150
209
|
* events, and terminal responses, maintaining paste-mode state.
|
|
151
210
|
* @param prevState - the state returned by the previous call, or INITIAL_STATE.
|
|
152
|
-
* @param input - the input chunk; null
|
|
211
|
+
* @param input - the input chunk; null applies the escape timeout (in-flight
|
|
212
|
+
* win32 records keep their bounded recovery grace).
|
|
153
213
|
* @returns the parsed inputs plus the state to pass to the next call.
|
|
154
214
|
*/
|
|
155
215
|
export declare function parseMultipleKeypresses(prevState: KeyParseState, input?: Buffer | string | null): [ParsedInput[], KeyParseState];
|
|
@@ -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;
|
|
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;AAmYtE,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,MAA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