@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAW,YAAY,EAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAW,YAAY,EAAgB,cAAc,EAAyG,gBAAgB,EAAe,aAAa,EAA+F,cAAc,EAAoa,MAAM,qCAAqC,CAAA;AAC3xB,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,wBAAwB,EA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AAqB,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAA;CAClI;AAED,4EAA4E;AAC5E,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,CAAA;KAAE,CAAA;CAC/C;AAED,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,0EAA0E;IAC1E,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/channel.ts"],"names":[],"mappings":"AASA,OAAO,EAA4B,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/channel.ts"],"names":[],"mappings":"AASA,OAAO,EAA4B,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AA6BxF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,KAAK,KAAK,EAAqE,MAAM,wBAAwB,CAAA;AAyCtH,OAAO,KAAK,EAAyD,YAAY,EAA8T,MAAM,oBAAoB,CAAA;AAgCza,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAkBnD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,OAAO,EACZ,YAAY,EAAE,KAAK,EACnB,OAAO,EAAE,oBAAoB,GAC5B,YAAY,CAUd;AAy8BD,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,YAAY,EAAE,uBAAuB,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACrxB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -23,6 +23,7 @@ import { createModelSwitchAction } from './channel/model-switch.js';
|
|
|
23
23
|
import { createFileActions } from './channel/file-actions.js';
|
|
24
24
|
import { createReportActions } from './channel/reports.js';
|
|
25
25
|
import { createSessionMetadataActions } from './channel/session-metadata.js';
|
|
26
|
+
import { createForeignBrowser } from './migrate/browse.js';
|
|
26
27
|
import { createAgentViewProjection } from './channel/agent-view-projection.js';
|
|
27
28
|
import { createJobProjection } from './channel/job-projection.js';
|
|
28
29
|
import { createExternalCommandInvoker } from './channel/external-commands.js';
|
|
@@ -150,9 +151,8 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
150
151
|
return agents?.get(id);
|
|
151
152
|
},
|
|
152
153
|
});
|
|
153
|
-
|
|
154
|
+
owner.own(() => subagentProjection.dispose());
|
|
154
155
|
const subagentControl = subagentProjection.control;
|
|
155
|
-
const pendingTaskDescriptions = subagentProjection.pendingTaskDescriptions;
|
|
156
156
|
// Job projection owns registry callbacks and transcript rows. The optional
|
|
157
157
|
// service attachment has no authority after its injected lifetime ends.
|
|
158
158
|
const jobProjection = createJobProjection(() => state, {
|
|
@@ -162,6 +162,7 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
162
162
|
const jobControl = jobProjection.control;
|
|
163
163
|
const attachJobs = jobProjection.attach;
|
|
164
164
|
const resetJobProjection = jobProjection.reset;
|
|
165
|
+
const reanchorJobProjection = jobProjection.reanchor;
|
|
165
166
|
// The DSH slash-command registry (optional service): /plan, /goal and
|
|
166
167
|
// friends register here; the TUI merges their descriptors into the slash
|
|
167
168
|
// menu and dispatches through `execute` (which logs the paired
|
|
@@ -364,6 +365,7 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
364
365
|
// installed after ChannelState initialization below.
|
|
365
366
|
let settleManualCompaction;
|
|
366
367
|
let compactManualSession;
|
|
368
|
+
let cancelManualCompaction;
|
|
367
369
|
let forkSessionAction;
|
|
368
370
|
let rewindToAction;
|
|
369
371
|
let rewindToNodeAction;
|
|
@@ -396,11 +398,14 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
396
398
|
emitStream: emitter.emitStream,
|
|
397
399
|
...createSettingsHosts(ctx, owner.assertActive),
|
|
398
400
|
...createPreferences(() => state),
|
|
401
|
+
/** Mount-owned settings namespace: the section registers under it, so this
|
|
402
|
+
* is the only ns whose section carries the TUI's user layer. */
|
|
403
|
+
settingsNamespace: options.settingsNs ?? 'dsh-tui',
|
|
399
404
|
get autoRecapOnOpen() {
|
|
400
405
|
const settings = ctx.get('settings');
|
|
401
406
|
if (settings === undefined)
|
|
402
407
|
return false;
|
|
403
|
-
const ns = settings.describe({ redactSecrets: true }).find(entry => entry.ns ===
|
|
408
|
+
const ns = settings.describe({ redactSecrets: true }).find(entry => entry.ns === state.settingsNamespace);
|
|
404
409
|
return ns?.value?.recapOnOpen !== false;
|
|
405
410
|
},
|
|
406
411
|
...createInitialChannelView(options, {
|
|
@@ -409,6 +414,15 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
409
414
|
mode: sessionModes[0],
|
|
410
415
|
cwdDescription: workspaceService.describe(options.cwd).description ?? options.cwd,
|
|
411
416
|
}),
|
|
417
|
+
// Deprecated pre-rename alias of `minimalUi`. An accessor is required here
|
|
418
|
+
// (a field set in createInitialChannelView would be copied by the spread
|
|
419
|
+
// into a stale data property). Read-only on purpose: the only supported
|
|
420
|
+
// write path is `setMinimalUi()` / its `setMinimal()` alias, and the
|
|
421
|
+
// frozen `ChannelUi` view third-party scenes receive exposes it read-only
|
|
422
|
+
// anyway.
|
|
423
|
+
get minimal() {
|
|
424
|
+
return state.minimalUi;
|
|
425
|
+
},
|
|
412
426
|
commandList: LOCAL_COMMANDS,
|
|
413
427
|
...actionMethods,
|
|
414
428
|
subagentControl,
|
|
@@ -556,6 +570,7 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
556
570
|
runtime: adapterRuntime,
|
|
557
571
|
grantStore: currentGrantStore,
|
|
558
572
|
});
|
|
573
|
+
const foreignBrowser = createForeignBrowser(() => ctx.get('sessionPersistence'), owner.signal);
|
|
559
574
|
sessionMetadataActions = createSessionMetadataActions(ctx, {
|
|
560
575
|
owner,
|
|
561
576
|
binding,
|
|
@@ -602,7 +617,7 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
602
617
|
};
|
|
603
618
|
const bash = ctx.get('shell');
|
|
604
619
|
const projector = createChannelProjection(state, {
|
|
605
|
-
agent: () => binding.agent, rowIds, resetContextWarning,
|
|
620
|
+
agent: () => binding.agent, rowIds, resetContextWarning, jobs: jobStore, inputConvergence,
|
|
606
621
|
checkContextWarning, notify: (...args) => notify(...args),
|
|
607
622
|
tools: ctx.get('tools'), renderer: rendererRuntime,
|
|
608
623
|
attachments: () => ctx.get('attachments'),
|
|
@@ -710,7 +725,12 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
710
725
|
messageObserver,
|
|
711
726
|
retireAttachment,
|
|
712
727
|
});
|
|
713
|
-
const
|
|
728
|
+
const rawBindAgent = bindingEvents.bind;
|
|
729
|
+
/** Bind the new agent, then re-anchor the job projection: its event
|
|
730
|
+
* subscription is deliberately owner-agnostic, so this is what makes the
|
|
731
|
+
* /jobs roster follow a session switch immediately instead of waiting for
|
|
732
|
+
* the new session's first job event. */
|
|
733
|
+
const bindAgent = () => { rawBindAgent(); reanchorJobProjection(); };
|
|
714
734
|
const sessionAdoption = createSessionAdoption(state, {
|
|
715
735
|
binding,
|
|
716
736
|
rowIds,
|
|
@@ -733,6 +753,8 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
733
753
|
rowIds,
|
|
734
754
|
resetProjector: () => projector.reset(),
|
|
735
755
|
resetSubagents: subagentProjection.reset,
|
|
756
|
+
restoreSubagents: subagentProjection.restore,
|
|
757
|
+
parkSubagents: subagentProjection.park,
|
|
736
758
|
resetJobs: resetJobProjection,
|
|
737
759
|
replay: replaySessionSeed,
|
|
738
760
|
settleReplay: projector.settleStreaming,
|
|
@@ -760,6 +782,7 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
760
782
|
// a target already running in this process is re-attached rather than
|
|
761
783
|
// resumed twice from its log (which would mount one log in two places).
|
|
762
784
|
adoptLive: target => adoptLiveAgent(target),
|
|
785
|
+
parkSubagents: subagentProjection.park,
|
|
763
786
|
backgroundHandles,
|
|
764
787
|
rowIds,
|
|
765
788
|
resetProjector: () => projector.reset(),
|
|
@@ -815,6 +838,7 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
815
838
|
});
|
|
816
839
|
settleManualCompaction = manualCompaction.settle;
|
|
817
840
|
compactManualSession = manualCompaction.compact;
|
|
841
|
+
cancelManualCompaction = manualCompaction.cancel;
|
|
818
842
|
backgroundCurrentAction = createBackgroundCurrentAction(ctx, state, {
|
|
819
843
|
configuredPreset: options.configuredPreset,
|
|
820
844
|
configuredProvider: options.configuredProvider,
|
|
@@ -828,6 +852,7 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
828
852
|
rowIds,
|
|
829
853
|
resetProjector: () => projector.reset(),
|
|
830
854
|
resetSubagents: subagentProjection.reset,
|
|
855
|
+
parkSubagents: subagentProjection.park,
|
|
831
856
|
resetJobs: resetJobProjection,
|
|
832
857
|
refreshEffortLevels: () => modelActions.refreshEffortLevels(),
|
|
833
858
|
bindAgent,
|
|
@@ -880,8 +905,12 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
880
905
|
sideQuestion: sessionMetadataActions.sideQuestion,
|
|
881
906
|
listFileCandidates: fileActions.listFileCandidates,
|
|
882
907
|
listFiles: fileActions.listFiles,
|
|
908
|
+
cachedSessions: sessionMetadataActions.cachedSessions,
|
|
883
909
|
listSessions: sessionMetadataActions.listSessions,
|
|
884
910
|
previewSession: sessionMetadataActions.previewSession,
|
|
911
|
+
listForeignSources: foreignBrowser.listSources,
|
|
912
|
+
listForeignSessions: foreignBrowser.listSessions,
|
|
913
|
+
importForeignSession: foreignBrowser.importSession,
|
|
885
914
|
bindApprovalStore: agentView.bindApprovalStore,
|
|
886
915
|
agentViewRows: agentView.rows,
|
|
887
916
|
subscribeAgentView: agentView.subscribe,
|
|
@@ -898,6 +927,7 @@ function createChannelWithOwner(ctx, initialAgent, options, owner) {
|
|
|
898
927
|
deleteSession: sessionMetadataActions.deleteSession,
|
|
899
928
|
renameSessionTo: sessionMetadataActions.renameSessionTo,
|
|
900
929
|
compact: compactManualSession,
|
|
930
|
+
cancelCompact: cancelManualCompaction,
|
|
901
931
|
runExternalCommand: externalCommands.invokeText,
|
|
902
932
|
runExternalCommandOutcome: externalCommands.invoke,
|
|
903
933
|
pushLocal: localActions.pushLocal,
|
|
@@ -7,6 +7,12 @@ export declare function toolResultPayload(message: {
|
|
|
7
7
|
content: readonly ContentBlock[];
|
|
8
8
|
isError: boolean;
|
|
9
9
|
};
|
|
10
|
+
/** Tool-call ids one message answers: 0.1.7 tool-role messages, or older result blocks. */
|
|
11
|
+
export declare function answeredToolCallIds(message: {
|
|
12
|
+
readonly role: string;
|
|
13
|
+
readonly toolCallId?: string;
|
|
14
|
+
readonly content: readonly ContentBlock[];
|
|
15
|
+
}): string[];
|
|
10
16
|
/** Preserve old checkpoints while recognizing the V4 producer-owned source. */
|
|
11
17
|
export declare function isCompactionCheckpointSource(source: {
|
|
12
18
|
kind: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/compat/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAC1C,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAC3B,GAAG,SAAS,GAAG;IAAE,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAarE;AAED,+EAA+E;AAC/E,wBAAgB,4BAA4B,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAE/F"}
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/compat/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAC1C,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAC3B,GAAG,SAAS,GAAG;IAAE,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAarE;AAED,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;CAC1C,GAAG,MAAM,EAAE,CAMX;AAED,+EAA+E;AAC/E,wBAAgB,4BAA4B,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAE/F"}
|
|
@@ -9,6 +9,15 @@ export function toolResultPayload(message) {
|
|
|
9
9
|
}
|
|
10
10
|
return { content: message?.content ?? [], isError: message?.isError === true };
|
|
11
11
|
}
|
|
12
|
+
/** Tool-call ids one message answers: 0.1.7 tool-role messages, or older result blocks. */
|
|
13
|
+
export function answeredToolCallIds(message) {
|
|
14
|
+
const ids = message.role === 'tool' && typeof message.toolCallId === 'string' ? [message.toolCallId] : [];
|
|
15
|
+
for (const block of message.content) {
|
|
16
|
+
if (block.type === 'tool-result' && typeof block.toolCallId === 'string')
|
|
17
|
+
ids.push(block.toolCallId);
|
|
18
|
+
}
|
|
19
|
+
return ids;
|
|
20
|
+
}
|
|
12
21
|
/** Preserve old checkpoints while recognizing the V4 producer-owned source. */
|
|
13
22
|
export function isCompactionCheckpointSource(source) {
|
|
14
23
|
return source.kind === 'compact-checkpoint' || (source.kind === 'plugin' && source.plugin === 'compact');
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/** Primary validated upstream line (newest). */
|
|
2
|
-
export declare const UPSTREAM_VALIDATED_VERSION = "0.
|
|
2
|
+
export declare const UPSTREAM_VALIDATED_VERSION = "0.2.0-rc.2";
|
|
3
3
|
/**
|
|
4
4
|
* Explicitly supported upstream prerelease lines, oldest first.
|
|
5
5
|
*
|
|
6
|
-
* 0.
|
|
7
|
-
*
|
|
6
|
+
* 0.2.0-rc.2 = primary continuous-CI line; 0.2.0-rc.1 and
|
|
7
|
+
* 0.1.7-rc.2/rc.1 = previous
|
|
8
|
+
* family (mapped compatibility); 0.1.5-rc.1/alpha.2/alpha.1 = mapped
|
|
8
9
|
* compatibility lines (source-checked when the primary line moves);
|
|
9
10
|
* 0.1.3-alpha.2 = compatibility line (the only 0.1.3 build on npm);
|
|
10
11
|
* 0.1.2-rc.1 = previous family (full CI coverage); 0.1.2-alpha.3–alpha.5 =
|
|
@@ -16,14 +17,14 @@ export declare const UPSTREAM_VALIDATED_VERSION = "0.1.7-rc.2";
|
|
|
16
17
|
* The peer range in package.json is deliberately wider than this list: an
|
|
17
18
|
* install on an older or newer line is allowed but reports drift at boot.
|
|
18
19
|
*/
|
|
19
|
-
export declare const UPSTREAM_VALIDATED_VERSIONS: readonly ["0.1.0-rc.6", "0.1.0-rc.7", "0.1.0-rc.8", "0.1.1-rc.1", "0.1.1-rc.2", "0.1.2-alpha.3", "0.1.2-alpha.4", "0.1.2-alpha.5", "0.1.2-rc.1", "0.1.3-alpha.2", "0.1.5-alpha.1", "0.1.5-alpha.2", "0.1.5-rc.1", "0.1.7-rc.1", "0.1.7-rc.2"];
|
|
20
|
+
export declare const UPSTREAM_VALIDATED_VERSIONS: readonly ["0.1.0-rc.6", "0.1.0-rc.7", "0.1.0-rc.8", "0.1.1-rc.1", "0.1.1-rc.2", "0.1.2-alpha.3", "0.1.2-alpha.4", "0.1.2-alpha.5", "0.1.2-rc.1", "0.1.3-alpha.2", "0.1.5-alpha.1", "0.1.5-alpha.2", "0.1.5-rc.1", "0.1.7-rc.1", "0.1.7-rc.2", "0.2.0-rc.1", "0.2.0-rc.2"];
|
|
20
21
|
/**
|
|
21
22
|
* Framework packages version on their own lines; the contract validates
|
|
22
23
|
* their MAJOR (breaking surface), not the harness prerelease number.
|
|
23
24
|
*/
|
|
24
25
|
export declare const UPSTREAM_FRAMEWORK_MAJORS: Record<string, number>;
|
|
25
26
|
/** Official packages the adapter consumes at runtime or as types. */
|
|
26
|
-
export declare const UPSTREAM_BLESSED_PACKAGES: readonly ["@deepseek-ai/cordis", "@deepseek-ai/schemastery", "@deepseek-ai/dsh-invariants", "@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-agent-instructions", "@deepseek-ai/dsh-agent-preset-registry", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-ptc-runtime-node", "@deepseek-ai/dsh-commands", "@deepseek-ai/dsh-cordis-host-runner", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-pi-ai", "@deepseek-ai/dsh-persona", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-skill", "@deepseek-ai/dsh-storage", "@deepseek-ai/dsh-storage-domain", "@deepseek-ai/dsh-storage-json", "@deepseek-ai/dsh-workspace", "@deepseek-ai/dsh-web-app", "@deepseek-ai/dsh-system-prompt", "@deepseek-ai/dsh-terminal", "@deepseek-ai/dsh-terminal-bash", "@deepseek-ai/dsh-tool-ask-user", "@deepseek-ai/dsh-tool-bash-persistent", "@deepseek-ai/dsh-tool-cordis", "@deepseek-ai/dsh-tool-subagent", "@deepseek-ai/dsh-user-approval", "@deepseek-ai/dsh-user-questions"];
|
|
27
|
+
export declare const UPSTREAM_BLESSED_PACKAGES: readonly ["@deepseek-ai/cordis", "@deepseek-ai/schemastery", "@deepseek-ai/dsh-invariants", "@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-agent-instructions", "@deepseek-ai/dsh-agent-preset-registry", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-ptc-runtime-node", "@deepseek-ai/dsh-commands", "@deepseek-ai/dsh-cordis-host-runner", "@deepseek-ai/dsh-deepseek-account", "@deepseek-ai/dsh-host-webserver", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-pi-ai", "@deepseek-ai/dsh-persona", "@deepseek-ai/dsh-scope", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-skill", "@deepseek-ai/dsh-storage", "@deepseek-ai/dsh-storage-domain", "@deepseek-ai/dsh-storage-json", "@deepseek-ai/dsh-workspace", "@deepseek-ai/dsh-web-app", "@deepseek-ai/dsh-system-prompt", "@deepseek-ai/dsh-terminal", "@deepseek-ai/dsh-terminal-bash", "@deepseek-ai/dsh-tool-ask-user", "@deepseek-ai/dsh-tool-bash-persistent", "@deepseek-ai/dsh-tool-cordis", "@deepseek-ai/dsh-tool-subagent", "@deepseek-ai/dsh-user-approval", "@deepseek-ai/dsh-user-questions"];
|
|
27
28
|
export interface UpstreamDriftEntry {
|
|
28
29
|
package: string;
|
|
29
30
|
installed: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAkBA,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAkBA,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,2BAA2B,2QAkB9B,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAG5D,CAAA;AAED,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,siCAkC5B,CAAA;AAEV,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,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AA;AAEtE,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,iBAAiB,CAAA;IACvB,sFAAsF;IACtF,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,oBAAoB,GAAG,SAAS,CA0BlC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Upstream compatibility contract.
|
|
3
3
|
*
|
|
4
4
|
* The TUI is validated against a set of upstream prerelease lines — the
|
|
5
|
-
* current primary (0.
|
|
6
|
-
* compatibility across the 0.1.5, 0.1.3, 0.1.2, 0.1.1 and 0.1.0
|
|
7
|
-
* families.
|
|
5
|
+
* current primary (0.2.0-rc.2) plus older lines kept in backward
|
|
6
|
+
* compatibility across the 0.1.7, 0.1.5, 0.1.3, 0.1.2, 0.1.1 and 0.1.0
|
|
7
|
+
* release families.
|
|
8
8
|
* Every official package this adapter touches is blessed here; anything
|
|
9
9
|
* else must go through upstream channels or the adapter, never the UI.
|
|
10
10
|
*
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
import { readFileSync } from 'node:fs';
|
|
17
17
|
import { fileURLToPath } from 'node:url';
|
|
18
18
|
/** Primary validated upstream line (newest). */
|
|
19
|
-
export const UPSTREAM_VALIDATED_VERSION = '0.
|
|
19
|
+
export const UPSTREAM_VALIDATED_VERSION = '0.2.0-rc.2';
|
|
20
20
|
/**
|
|
21
21
|
* Explicitly supported upstream prerelease lines, oldest first.
|
|
22
22
|
*
|
|
23
|
-
* 0.
|
|
24
|
-
*
|
|
23
|
+
* 0.2.0-rc.2 = primary continuous-CI line; 0.2.0-rc.1 and
|
|
24
|
+
* 0.1.7-rc.2/rc.1 = previous
|
|
25
|
+
* family (mapped compatibility); 0.1.5-rc.1/alpha.2/alpha.1 = mapped
|
|
25
26
|
* compatibility lines (source-checked when the primary line moves);
|
|
26
27
|
* 0.1.3-alpha.2 = compatibility line (the only 0.1.3 build on npm);
|
|
27
28
|
* 0.1.2-rc.1 = previous family (full CI coverage); 0.1.2-alpha.3–alpha.5 =
|
|
@@ -49,6 +50,8 @@ export const UPSTREAM_VALIDATED_VERSIONS = [
|
|
|
49
50
|
'0.1.5-rc.1',
|
|
50
51
|
'0.1.7-rc.1',
|
|
51
52
|
'0.1.7-rc.2',
|
|
53
|
+
'0.2.0-rc.1',
|
|
54
|
+
'0.2.0-rc.2',
|
|
52
55
|
];
|
|
53
56
|
/**
|
|
54
57
|
* Framework packages version on their own lines; the contract validates
|
|
@@ -70,9 +73,12 @@ export const UPSTREAM_BLESSED_PACKAGES = [
|
|
|
70
73
|
'@deepseek-ai/dsh-ptc-runtime-node',
|
|
71
74
|
'@deepseek-ai/dsh-commands',
|
|
72
75
|
'@deepseek-ai/dsh-cordis-host-runner',
|
|
76
|
+
'@deepseek-ai/dsh-deepseek-account',
|
|
77
|
+
'@deepseek-ai/dsh-host-webserver',
|
|
73
78
|
'@deepseek-ai/dsh-llm',
|
|
74
79
|
'@deepseek-ai/dsh-llm-pi-ai',
|
|
75
80
|
'@deepseek-ai/dsh-persona',
|
|
81
|
+
'@deepseek-ai/dsh-scope',
|
|
76
82
|
'@deepseek-ai/dsh-session',
|
|
77
83
|
'@deepseek-ai/dsh-settings',
|
|
78
84
|
'@deepseek-ai/dsh-skill',
|
|
@@ -96,6 +102,8 @@ export const UPSTREAM_BLESSED_PACKAGES = [
|
|
|
96
102
|
const OPTIONAL_RUNTIME_PACKAGES = new Set([
|
|
97
103
|
'@deepseek-ai/dsh-agent-preset-registry',
|
|
98
104
|
'@deepseek-ai/dsh-ptc-runtime-node',
|
|
105
|
+
'@deepseek-ai/dsh-deepseek-account',
|
|
106
|
+
'@deepseek-ai/dsh-host-webserver',
|
|
99
107
|
'@deepseek-ai/dsh-web-app',
|
|
100
108
|
]);
|
|
101
109
|
/** Parse an upstream prerelease version; undefined when unparseable. */
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
import type { Context } from '@deepseek-ai/cordis';
|
|
10
10
|
import Schema from '@deepseek-ai/schemastery';
|
|
11
11
|
import type { SessionModeSpec } from '../sessionModes.js';
|
|
12
|
-
import { type PageMarginSetting, type ScrollGutterMode, type StatusBarConfig, type ToolBackground } from '../tuiDisplayPrefs.js';
|
|
12
|
+
import { type ImageBacking, type MathImageBacking, type MathImageScale, type MathRendering, type PageMarginSetting, type ScrollGutterMode, type StatusBarConfig, type ToolBackground } from '../tuiDisplayPrefs.js';
|
|
13
13
|
import { type ShortcutActionId } from '../utils/keymap.js';
|
|
14
|
+
import { type SplashFontSetting } from '../components/splashFonts.js';
|
|
14
15
|
import { type RuntimeConfig } from './compat/settings.js';
|
|
15
16
|
export declare const name = "dsh-tui";
|
|
16
17
|
export declare const inject: string[];
|
|
@@ -49,6 +50,13 @@ export interface Config {
|
|
|
49
50
|
/** Show the header whale and its idle animation. */
|
|
50
51
|
whale?: boolean;
|
|
51
52
|
whaleIdle?: boolean;
|
|
53
|
+
/** Big-text face on the header splash (settings `dsh-tui.splashFont`):
|
|
54
|
+
* `daily` (the default) rotates by local date, any other value is a font
|
|
55
|
+
* id from `components/splashFonts.ts` (`bold`/`square`/…) pinning that one
|
|
56
|
+
* face. An unknown value falls back to `daily`. */
|
|
57
|
+
splashFont?: SplashFontSetting;
|
|
58
|
+
/** Swap the header's pixel whale for the static maid portrait. */
|
|
59
|
+
whaleGirl?: boolean;
|
|
52
60
|
/** Reduce decorative header content and colors. */
|
|
53
61
|
minimal?: boolean;
|
|
54
62
|
/** Show the live working line derived in-process from base session events. */
|
|
@@ -125,6 +133,33 @@ export interface Config {
|
|
|
125
133
|
* than the viewport or of an unsupported type keeps the fenced source.
|
|
126
134
|
* On by default; off always shows the source. */
|
|
127
135
|
mermaidDiagrams?: boolean;
|
|
136
|
+
/** LaTeX math (settings `dsh-tui.mathRendering`): `$…$` / `\(…\)` inline
|
|
137
|
+
* and `$$…$$` / `\[…\]` blocks in replies. `auto` (default) uses the best
|
|
138
|
+
* available renderer — today Unicode text: Greek and operator symbols,
|
|
139
|
+
* scripts, fractions and operator limits stacked in display blocks,
|
|
140
|
+
* matrices, cases; `unicode` pins it; `source` always shows the TeX.
|
|
141
|
+
* Unsupported, still-streaming, or too-wide formulas keep their source. */
|
|
142
|
+
mathRendering?: MathRendering;
|
|
143
|
+
/** Display-formula image size (settings `dsh-tui.mathImageScale`), used
|
|
144
|
+
* with `mathRendering: image`: `auto` matches the body text, `large` and
|
|
145
|
+
* `xlarge` set display math bigger — which also hands the terminal more
|
|
146
|
+
* device pixels per stroke, the only sharpness lever a terminal image has.
|
|
147
|
+
* Inline formulas keep the base scale. */
|
|
148
|
+
mathImageScale?: MathImageScale;
|
|
149
|
+
/** Formula-image backing (settings `dsh-tui.mathImageBacking`): `transparent`
|
|
150
|
+
* paints only the formula and lets the terminal background show through;
|
|
151
|
+
* `terminal` composites it onto the terminal's background colour. */
|
|
152
|
+
mathImageBacking?: MathImageBacking;
|
|
153
|
+
/** Transcript-image backing (settings `dsh-tui.imageBacking`): `transparent`
|
|
154
|
+
* floats photos and illustrations on whatever the terminal shows;
|
|
155
|
+
* `terminal` composites them onto the terminal's background colour. */
|
|
156
|
+
imageBacking?: ImageBacking;
|
|
157
|
+
/** @deprecated Use `mathRendering`; `false` still means `source`. */
|
|
158
|
+
latexMath?: boolean;
|
|
159
|
+
/** Auto recap on open (settings `dsh-tui.recapOnOpen`): opening or resuming a
|
|
160
|
+
* session summarizes its recent activity into a dim line at the bottom of
|
|
161
|
+
* the transcript. On by default; off leaves `/recap` as the manual path. */
|
|
162
|
+
recapOnOpen?: boolean;
|
|
128
163
|
/** Status-footer field visibility and compact presentation preferences. */
|
|
129
164
|
statusBar?: Partial<StatusBarConfig>;
|
|
130
165
|
/** Built-in action-shortcut overrides (`paste: 'alt+v'`), keyed by action
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAA2C,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAA2C,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC5P,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC5E,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAC1F,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAGzE,eAAO,MAAM,IAAI,YAAY,CAAA;AAU7B,eAAO,MAAM,MAAM,UAAa,CAAA;AAEhC;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;yEAKqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;gDAC4C;IAC5C,KAAK,C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B,CAAC,EAAE,OAAO,CAAA;IAC5B;;;kDAG8C;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;mEAG+D;IAC/D,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;sDAKkD;IAClD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;gFAK4E;IAC5E,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B;;;;+CAI2C;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B;;0EAEsE;IACtE,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC;;4EAEwE;IACxE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;iFAE6E;IAC7E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IACpC;;;;sCAIkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD;;;yDAGqD;IACrD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CA8FH,CAAA;AAEtD;;;;;;GAMG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBtF"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import Schema from '@deepseek-ai/schemastery';
|
|
2
2
|
import { DEFAULT_STATUS_BAR, normalizePageMargin } from '../tuiDisplayPrefs.js';
|
|
3
3
|
import { SHORTCUT_ACTIONS } from '../utils/keymap.js';
|
|
4
|
+
import { normalizeSplashFont } from '../components/splashFonts.js';
|
|
4
5
|
import { editableConfig } from './compat/settings.js';
|
|
6
|
+
import { EDITABLE_CONFIG_KEYS } from '../settings/definitions.js';
|
|
5
7
|
export const name = 'dsh-tui';
|
|
6
8
|
// `tuiWorkspaces` must stay OUT of this code-level inject (issue #183): the
|
|
7
9
|
// dsh CLI resolves the bundle's cordis.patch.yml from the FIRST copy of this
|
|
@@ -27,6 +29,15 @@ export const Config = editableConfig(Schema.object({
|
|
|
27
29
|
effortDefault: Schema.string().required(false),
|
|
28
30
|
whale: Schema.boolean().default(true),
|
|
29
31
|
whaleIdle: Schema.boolean().default(true),
|
|
32
|
+
// The face registry grows with new releases, so this is a transform rather
|
|
33
|
+
// than a union: any string parses and junk lands on `daily` at parse time
|
|
34
|
+
// (a union would fail the whole boot on a stale id). The `/settings` field
|
|
35
|
+
// offers exactly the registry's ids. The default is deliberately NOT a
|
|
36
|
+
// `.default()` here — the volatile wrapper swallows it (same shape as
|
|
37
|
+
// pageMargin, whose unset value also reads `undefined`), so `daily` comes
|
|
38
|
+
// from `normalizeSplashFont` at every read site.
|
|
39
|
+
splashFont: Schema.transform(Schema.string(), value => normalizeSplashFont(value)),
|
|
40
|
+
whaleGirl: Schema.boolean().default(false),
|
|
30
41
|
minimal: Schema.boolean().default(false),
|
|
31
42
|
activity: Schema.boolean().default(true),
|
|
32
43
|
activityFrames: Schema.string().required(false),
|
|
@@ -48,6 +59,16 @@ export const Config = editableConfig(Schema.object({
|
|
|
48
59
|
expandEditor: Schema.boolean().default(true),
|
|
49
60
|
smoothStreaming: Schema.boolean().default(true),
|
|
50
61
|
mermaidDiagrams: Schema.boolean().default(true),
|
|
62
|
+
mathRendering: Schema.union(['auto', 'image', 'unicode', 'source']),
|
|
63
|
+
mathImageScale: Schema.union(['auto', 'large', 'xlarge']),
|
|
64
|
+
mathImageBacking: Schema.union(['transparent', 'terminal']),
|
|
65
|
+
imageBacking: Schema.union(['transparent', 'terminal']),
|
|
66
|
+
latexMath: Schema.boolean(),
|
|
67
|
+
// No `.default()` on purpose (the volatile wrapper swallows it; same rule as
|
|
68
|
+
// splashFont): an unset key must stay distinguishable from an explicit
|
|
69
|
+
// `false`, and the read site already treats undefined as on
|
|
70
|
+
// (`describe().value.recapOnOpen !== false`, see channel.ts).
|
|
71
|
+
recapOnOpen: Schema.boolean(),
|
|
51
72
|
statusBar: Schema.object({
|
|
52
73
|
compact: Schema.boolean().default(DEFAULT_STATUS_BAR.compact),
|
|
53
74
|
model: Schema.boolean().default(DEFAULT_STATUS_BAR.model),
|
|
@@ -78,12 +99,7 @@ export const Config = editableConfig(Schema.object({
|
|
|
78
99
|
approval: Schema.union(['ask', 'never']).required(false),
|
|
79
100
|
permission: Schema.string().required(false),
|
|
80
101
|
})).required(false),
|
|
81
|
-
}),
|
|
82
|
-
'diffLayout', 'thinkingFold', 'toolBackground', 'scrollGutter', 'pageMargin',
|
|
83
|
-
'foldTerminalCommand', 'promptSessionLabel', 'expandEditor', 'smoothStreaming',
|
|
84
|
-
'mermaidDiagrams', 'effortDefault', 'statusBar', 'whale', 'whaleIdle', 'minimal',
|
|
85
|
-
'lang', 'fullscreen', 'terminalImages', 'shortcuts',
|
|
86
|
-
]);
|
|
102
|
+
}), EDITABLE_CONFIG_KEYS);
|
|
87
103
|
/**
|
|
88
104
|
* Start the interactive TUI front door, delegating to the JSX implementation
|
|
89
105
|
* in `./plugin.tsx` (see its module doc for the full contract).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BackgroundJobStatus, BackgroundJobState } from '../adapter/ports/channel-view.js';
|
|
2
|
-
export type { BackgroundJobStatus, BackgroundJobState } from '../adapter/ports/channel-view.js';
|
|
1
|
+
import type { BackgroundJobOutputChannel, BackgroundJobStatus, BackgroundJobState } from '../adapter/ports/channel-view.js';
|
|
2
|
+
export type { BackgroundJobOutputChannel, BackgroundJobOutputLine, BackgroundJobStatus, BackgroundJobState } from '../adapter/ports/channel-view.js';
|
|
3
3
|
/**
|
|
4
4
|
* Structural mirror of the registry's `JobSnapshot` — only the fields the
|
|
5
5
|
* UI reads. Declared locally so no `@deepseek-ai/dsh-jobs` dependency (peer
|
|
@@ -15,24 +15,79 @@ export interface BackgroundJobSnapshot {
|
|
|
15
15
|
status: BackgroundJobStatus;
|
|
16
16
|
/** Kind-specific status detail, usually terminal ('exit code: 0'). */
|
|
17
17
|
detail?: string;
|
|
18
|
+
/** Live producer progress line (`3/10`, phase name); cleared at settle. */
|
|
19
|
+
progress?: string;
|
|
18
20
|
/** Epoch ms when the job was registered. */
|
|
19
21
|
startedAt: number;
|
|
20
22
|
/** Epoch ms when the job settled; absent while running/stopping. */
|
|
21
23
|
finishedAt?: number;
|
|
24
|
+
/** Output-ring facts when the snapshot came from the real registry:
|
|
25
|
+
* `total`/`earliest` are absolute byte coordinates; `spillPaths` name
|
|
26
|
+
* producer-retained files holding the complete stream. */
|
|
27
|
+
output?: {
|
|
28
|
+
total: number;
|
|
29
|
+
earliest: number;
|
|
30
|
+
spillPaths?: readonly string[];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/** Kernel `output` event: no payload — observers pull `readAt` themselves. */
|
|
34
|
+
export interface KernelJobOutputEvent {
|
|
35
|
+
type: 'output';
|
|
36
|
+
id: string;
|
|
37
|
+
owner?: string;
|
|
38
|
+
total: number;
|
|
39
|
+
}
|
|
40
|
+
/** Kernel lifecycle event carrying the committed job projection. */
|
|
41
|
+
export interface KernelJobLifecycleEvent {
|
|
42
|
+
type: 'registered' | 'progress' | 'stopping' | 'settled' | 'removed';
|
|
43
|
+
job: BackgroundJobSnapshot;
|
|
44
|
+
/** Settlement extras (`settled` only): who ended it, whether a waiter
|
|
45
|
+
* had already collected it (the UI skips duplicate toasts then). */
|
|
46
|
+
cause?: 'producer' | 'kill' | 'teardown';
|
|
47
|
+
awaited?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export type KernelJobEvent = KernelJobOutputEvent | KernelJobLifecycleEvent;
|
|
50
|
+
/** One kernel output-ring chunk at an absolute byte offset. */
|
|
51
|
+
export interface KernelJobChunk {
|
|
52
|
+
at: number;
|
|
53
|
+
text: string;
|
|
54
|
+
channel?: BackgroundJobOutputChannel;
|
|
55
|
+
gapBefore?: true;
|
|
56
|
+
}
|
|
57
|
+
/** Non-consuming ring read result; `next` is the resume offset. */
|
|
58
|
+
export interface KernelJobOutputRead {
|
|
59
|
+
chunks: readonly KernelJobChunk[];
|
|
60
|
+
next: number;
|
|
61
|
+
lossy?: boolean;
|
|
22
62
|
}
|
|
23
63
|
/**
|
|
24
64
|
* Duck-typed registry surface the channel consumes. `caller` is the owning
|
|
25
|
-
*
|
|
26
|
-
*
|
|
65
|
+
* session id string (`Agent.id`): the kernel fence compares
|
|
66
|
+
* `job.owner.id === caller`, so passing the Agent OBJECT matches nothing —
|
|
67
|
+
* the id string is the only value that opens owned jobs.
|
|
27
68
|
*/
|
|
28
69
|
export interface JobsRuntime {
|
|
29
70
|
/** Caller-owned + unowned job snapshots in registration order. */
|
|
30
|
-
list(caller?:
|
|
71
|
+
list(caller?: string): BackgroundJobSnapshot[];
|
|
31
72
|
/** Request cancellation by id; resolves to 'requested'/'already-finished'. */
|
|
32
|
-
kill(id: string, caller?:
|
|
33
|
-
/**
|
|
73
|
+
kill(id: string, caller?: string, reason?: string): unknown;
|
|
74
|
+
/**
|
|
75
|
+
* Kernel event bus (the real `JobRegistry.events` surface). Present on
|
|
76
|
+
* modern kernels: lifecycle events re-read the roster, `output` events
|
|
77
|
+
* pull `readAt` increments with the UI's own byte cursor. Absent on older
|
|
78
|
+
* kernels and test doubles — the mirror falls back to `onJobsChanged` +
|
|
79
|
+
* `job_output` tails.
|
|
80
|
+
*/
|
|
81
|
+
events?: {
|
|
82
|
+
subscribe(filter: {
|
|
83
|
+
owner?: string;
|
|
84
|
+
owners?: 'all' | 'scope';
|
|
85
|
+
}, listener: (event: KernelJobEvent) => void): () => void;
|
|
86
|
+
};
|
|
87
|
+
/** Non-consuming ring read at an absolute byte offset (kernel `readAt`). */
|
|
88
|
+
readAt?(id: string, from: number, caller?: string): KernelJobOutputRead;
|
|
89
|
+
/** Legacy push hooks; absent on the real registry, kept for old doubles. */
|
|
34
90
|
onJobsChanged?(listener: (owner: unknown) => void): () => void;
|
|
35
|
-
/** Fires on every settlement with the terminal snapshot + owner. */
|
|
36
91
|
onJobDone?(listener: (snapshot: BackgroundJobSnapshot, owner: unknown) => void): () => void;
|
|
37
92
|
}
|
|
38
93
|
/** Store event hooks the channel injects (toast on settle, emit on change). */
|
|
@@ -47,17 +102,11 @@ export declare const JOBS_MAX_TRACKED = 40;
|
|
|
47
102
|
/** Output tail lines retained per job (the card waterfall shows the last 3;
|
|
48
103
|
* the /jobs panel detail shows the whole retained tail). */
|
|
49
104
|
export declare const JOBS_MAX_OUTPUT_LINES = 30;
|
|
50
|
-
/**
|
|
51
|
-
* Ordered store of the current conversation's background jobs. Fed by
|
|
52
|
-
* {@link BackgroundJobStore.replace} with a fresh `list()` after every
|
|
53
|
-
* `onJobsChanged` commit, and by {@link BackgroundJobStore.onOutputSeen}
|
|
54
|
-
* with the tail of every `job_output` tool result. Emits no React state of
|
|
55
|
-
* its own — the channel wires the events into its version bump, exactly
|
|
56
|
-
* like the subagent projection.
|
|
57
|
-
*/
|
|
58
105
|
export declare class BackgroundJobStore {
|
|
59
106
|
private readonly events;
|
|
60
107
|
private readonly jobs;
|
|
108
|
+
/** Kernel-ring read state per job id (own cursor — never the model's). */
|
|
109
|
+
private readonly kernelReads;
|
|
61
110
|
/** Commands captured from start acks that arrived before the registry
|
|
62
111
|
* registered the job (the tool/result stream and the registry commit can
|
|
63
112
|
* race); consumed on registration. */
|
|
@@ -88,6 +137,23 @@ export declare class BackgroundJobStore {
|
|
|
88
137
|
* @param at - wall-clock receipt time of the read (defaults to now).
|
|
89
138
|
*/
|
|
90
139
|
onOutputSeen(id: string, text: string, at?: number): void;
|
|
140
|
+
/**
|
|
141
|
+
* Seed the kernel-ring cursor for one job at its retained head. Called from
|
|
142
|
+
* replace() whenever a snapshot carries ring facts — before any output
|
|
143
|
+
* pull — so the first readAt starts at `earliest`, never at 0 (bytes
|
|
144
|
+
* before `earliest` are already evicted).
|
|
145
|
+
*/
|
|
146
|
+
private seedKernelRead;
|
|
147
|
+
/**
|
|
148
|
+
* Pull one non-consuming increment from the kernel ring after an `output`
|
|
149
|
+
* event. Chunks split into lines; a chunk without a trailing newline parks
|
|
150
|
+
* its tail until the next pull (producers append streaming bytes, so line
|
|
151
|
+
* boundaries routinely straddle chunks). `gapBefore`/`lossy` mark bytes
|
|
152
|
+
* lost before the retained tail — surfaced as the dropped banner.
|
|
153
|
+
*/
|
|
154
|
+
onKernelOutput(id: string, read: KernelJobOutputRead, at?: number): void;
|
|
155
|
+
/** Kernel read state accessor for tests and cursor diagnostics. */
|
|
156
|
+
kernelCursorOf(id: string): number | undefined;
|
|
91
157
|
/** A fresh snapshot in registration order (newest tracked job last). */
|
|
92
158
|
snapshot(): readonly BackgroundJobState[];
|
|
93
159
|
get(id: string): BackgroundJobState | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAA2B,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACpJ,YAAY,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAGpJ;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,EAAE,EAAE,MAAM,CAAA;IACV,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAA;IACZ,8DAA8D;IAC9D,KAAK,EAAE,MAAM,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