From bafa057457134a41cce3520e2ce92b7209396d30 Mon Sep 17 00:00:00 2001 From: QQ Date: Sun, 22 Nov 2026 19:55:18 +0800 Subject: [PATCH] chore: remove all dsh-better-display remnants (reader source/docs/license/routes) --- CHANGELOG.md | 5 + DESIGN.md | 112 -- README.en.md | 109 +- README.md | 97 +- THIRD_PARTY_NOTICES.md | 79 +- docs/extension-points.md | 208 ---- docs/official-rendering-bridge.md | 110 -- docs/openapi.yaml | 82 -- docs/runbooks/blank-reader.md | 39 - flags.json | 3 - lib/client.js | 114 +- lib/client.js.map | 2 +- lib/host.js | 281 +---- licenses/dsh-better-display-LICENSE | 24 - package.json | 10 +- src/client/AssistantNode.tsx | 72 -- src/client/Blocks.tsx | 252 ---- src/client/ChoreographedFlow.tsx | 239 ---- src/client/ClosedProcessSummary.tsx | 25 - src/client/DiffPanel.tsx | 124 -- src/client/LiveFold.tsx | 43 - src/client/McpAppFrame.module.css | 210 ---- src/client/McpAppFrame.tsx | 309 ----- src/client/OfficialContent.tsx | 108 -- src/client/Reader.module.css | 765 ------------ src/client/Reader.tsx | 912 -------------- src/client/ReasoningCard.tsx | 306 ----- src/client/SettingsSection.tsx | 96 +- src/client/StickyLane.tsx | 113 -- src/client/TimelineRail.module.css | 170 --- src/client/TimelineRail.tsx | 262 ---- src/client/ToolActivity.tsx | 278 ----- src/client/TurnMetrics.module.css | 139 --- src/client/TurnMetrics.tsx | 160 --- src/client/WaitClock.tsx | 33 - src/client/WaitingStatus.tsx | 13 - src/client/chat-seat.ts | 10 - src/client/composer-seat.ts | 28 - src/client/conversation-scroll.ts | 28 - src/client/deliverables.ts | 123 -- src/client/entry-policy.ts | 20 - src/client/entry.tsx | 40 - src/client/fold-choreography.ts | 55 - src/client/fold-intensity.ts | 28 - src/client/index.tsx | 12 +- src/client/live-turn.ts | 229 ---- src/client/markdown/MarkdownText.module.css | 304 ----- src/client/markdown/MarkdownText.tsx | 195 --- src/client/markdown/cjkFriendlyStrong.ts | 84 -- src/client/markdown/incremental.ts | 131 -- src/client/markdown/katex.tsx | 91 -- src/client/markdown/mathCompatibility.ts | 350 ------ src/client/markdown/parse.ts | 45 - src/client/markdown/render.tsx | 647 ---------- src/client/markdown/upstream.json | 14 - src/client/mcp-app.ts | 323 ----- src/client/message-chrome.ts | 47 - src/client/motion.tsx | 545 --------- src/client/native/ContextBody.module.css | 161 --- src/client/native/ContextBody.tsx | 591 --------- .../native/ContextInjectionRow.module.css | 66 - src/client/native/ContextInjectionRow.tsx | 106 -- src/client/native/ReferenceIcon.tsx | 35 - src/client/native/tool-call-model.ts | 248 ---- src/client/native/tool-update.ts | 32 - src/client/native/upstream.json | 41 - src/client/official-slots.tsx | 263 ---- src/client/open-file.ts | 88 -- src/client/pending-submission.ts | 49 - src/client/platform-media.ts | 17 - src/client/primitive-labels.ts | 55 - src/client/projection.ts | 130 -- src/client/reader-plugin.tsx | 239 ---- src/client/reasoning-follow.ts | 28 - src/client/rewind-cut.ts | 340 ----- src/client/settings-slots.ts | 20 - src/client/settings.tsx | 18 +- src/client/store.ts | 70 -- src/client/stream-buffer.ts | 136 -- src/client/streaming.tsx | 70 -- src/client/styles.ts | 22 - src/client/text-transform.ts | 265 ---- src/client/timeline.ts | 75 -- src/client/tool-activity.ts | 398 ------ src/client/turn-slots.ts | 80 -- src/client/types.ts | 106 -- src/client/waiting-clock.ts | 83 -- src/client/word-motion.tsx | 92 -- src/client/word-timeline.ts | 113 -- src/flags.ts | 40 - src/host.ts | 101 +- src/metrics.ts | 49 - src/reveal.ts | 90 -- src/workspace-path.ts | 4 - tests/browser-auto-fold.tsx | 64 - tests/browser-closed-gap.tsx | 20 - tests/browser-commentary.tsx | 191 --- tests/browser-motion.tsx | 65 - tests/browser-official-bridge.tsx | 153 --- tests/browser-sticky-lanes.tsx | 22 - tests/browser-waiting-clock.tsx | 14 - tests/chat-flow-hook.test.ts | 77 -- tests/chat/client-loader.test.ts | 50 - tests/context-tool-update.test.ts | 33 - tests/conversation-scroll.test.ts | 47 - tests/deliverables.test.ts | 128 -- tests/entry.test.ts | 42 - tests/fixtures/maid-composer-hide.html | 31 - tests/fixtures/reader-lane-owners.tsx | 46 - tests/fixtures/reader-official-users.tsx | 234 ---- tests/fixtures/reader-theme-overlap.html | 80 -- tests/fixtures/reader-user-bubble.tsx | 244 ---- tests/flags.test.ts | 46 - tests/fold-choreography.test.ts | 78 -- tests/fold-intensity.test.ts | 99 -- tests/footer-precedence.test.ts | 137 --- tests/history-word-regression.test.ts | 16 - tests/live-turn.test.ts | 289 ----- tests/log.test.ts | 99 -- tests/mcp-apps.test.ts | 157 --- tests/message-chrome.test.ts | 29 - tests/metrics.test.ts | 52 - tests/official-slots.test.ts | 151 --- tests/open-file.test.ts | 114 -- tests/pending-submission.test.ts | 56 - tests/pinned-selection.test.ts | 16 - tests/platform-media.test.ts | 23 - tests/projection.test.ts | 247 ---- tests/reader-composer-seat.test.ts | 61 - tests/reader-glass-css.test.ts | 28 - tests/reader-official-users.test.ts | 91 -- tests/reader-sticky-surface.test.ts | 377 ------ tests/reader-theme-lanes.test.ts | 54 - tests/reader-theme-overlap.test.ts | 151 --- tests/reader-user-bubble.test.ts | 138 --- tests/reasoning-block-key.test.ts | 129 -- tests/reasoning-follow.test.ts | 34 - tests/retiring-content.test.ts | 229 ---- tests/reveal.test.ts | 128 -- tests/rewind-cut.test.ts | 1090 ----------------- tests/stock-install.test.ts | 88 -- tests/stream-buffer.test.ts | 102 -- tests/styles.test.ts | 75 -- tests/terminal-input-preview.test.ts | 113 -- tests/text-transform.test.ts | 272 ---- tests/timeline.test.ts | 59 - tests/tool-clock.test.ts | 45 - tests/tool-diff.test.ts | 57 - tests/waiting-clock.test.ts | 83 -- tests/word-timeline.test.ts | 146 --- 150 files changed, 70 insertions(+), 20204 deletions(-) delete mode 100644 DESIGN.md delete mode 100644 docs/extension-points.md delete mode 100644 docs/official-rendering-bridge.md delete mode 100644 docs/openapi.yaml delete mode 100644 docs/runbooks/blank-reader.md delete mode 100644 flags.json delete mode 100644 licenses/dsh-better-display-LICENSE delete mode 100644 src/client/AssistantNode.tsx delete mode 100644 src/client/Blocks.tsx delete mode 100644 src/client/ChoreographedFlow.tsx delete mode 100644 src/client/ClosedProcessSummary.tsx delete mode 100644 src/client/DiffPanel.tsx delete mode 100644 src/client/LiveFold.tsx delete mode 100644 src/client/McpAppFrame.module.css delete mode 100644 src/client/McpAppFrame.tsx delete mode 100644 src/client/OfficialContent.tsx delete mode 100644 src/client/Reader.module.css delete mode 100644 src/client/Reader.tsx delete mode 100644 src/client/ReasoningCard.tsx delete mode 100644 src/client/StickyLane.tsx delete mode 100644 src/client/TimelineRail.module.css delete mode 100644 src/client/TimelineRail.tsx delete mode 100644 src/client/ToolActivity.tsx delete mode 100644 src/client/TurnMetrics.module.css delete mode 100644 src/client/TurnMetrics.tsx delete mode 100644 src/client/WaitClock.tsx delete mode 100644 src/client/WaitingStatus.tsx delete mode 100644 src/client/chat-seat.ts delete mode 100644 src/client/composer-seat.ts delete mode 100644 src/client/conversation-scroll.ts delete mode 100644 src/client/deliverables.ts delete mode 100644 src/client/entry-policy.ts delete mode 100644 src/client/entry.tsx delete mode 100644 src/client/fold-choreography.ts delete mode 100644 src/client/fold-intensity.ts delete mode 100644 src/client/live-turn.ts delete mode 100644 src/client/markdown/MarkdownText.module.css delete mode 100644 src/client/markdown/MarkdownText.tsx delete mode 100644 src/client/markdown/cjkFriendlyStrong.ts delete mode 100644 src/client/markdown/incremental.ts delete mode 100644 src/client/markdown/katex.tsx delete mode 100644 src/client/markdown/mathCompatibility.ts delete mode 100644 src/client/markdown/parse.ts delete mode 100644 src/client/markdown/render.tsx delete mode 100644 src/client/markdown/upstream.json delete mode 100644 src/client/mcp-app.ts delete mode 100644 src/client/message-chrome.ts delete mode 100644 src/client/motion.tsx delete mode 100644 src/client/native/ContextBody.module.css delete mode 100644 src/client/native/ContextBody.tsx delete mode 100644 src/client/native/ContextInjectionRow.module.css delete mode 100644 src/client/native/ContextInjectionRow.tsx delete mode 100644 src/client/native/ReferenceIcon.tsx delete mode 100644 src/client/native/tool-call-model.ts delete mode 100644 src/client/native/tool-update.ts delete mode 100644 src/client/native/upstream.json delete mode 100644 src/client/official-slots.tsx delete mode 100644 src/client/open-file.ts delete mode 100644 src/client/pending-submission.ts delete mode 100644 src/client/platform-media.ts delete mode 100644 src/client/primitive-labels.ts delete mode 100644 src/client/projection.ts delete mode 100644 src/client/reader-plugin.tsx delete mode 100644 src/client/reasoning-follow.ts delete mode 100644 src/client/rewind-cut.ts delete mode 100644 src/client/settings-slots.ts delete mode 100644 src/client/store.ts delete mode 100644 src/client/stream-buffer.ts delete mode 100644 src/client/streaming.tsx delete mode 100644 src/client/styles.ts delete mode 100644 src/client/text-transform.ts delete mode 100644 src/client/timeline.ts delete mode 100644 src/client/tool-activity.ts delete mode 100644 src/client/turn-slots.ts delete mode 100644 src/client/types.ts delete mode 100644 src/client/waiting-clock.ts delete mode 100644 src/client/word-motion.tsx delete mode 100644 src/client/word-timeline.ts delete mode 100644 src/flags.ts delete mode 100644 src/metrics.ts delete mode 100644 src/reveal.ts delete mode 100644 src/workspace-path.ts delete mode 100644 tests/browser-auto-fold.tsx delete mode 100644 tests/browser-closed-gap.tsx delete mode 100644 tests/browser-commentary.tsx delete mode 100644 tests/browser-motion.tsx delete mode 100644 tests/browser-official-bridge.tsx delete mode 100644 tests/browser-sticky-lanes.tsx delete mode 100644 tests/browser-waiting-clock.tsx delete mode 100644 tests/chat-flow-hook.test.ts delete mode 100644 tests/chat/client-loader.test.ts delete mode 100644 tests/context-tool-update.test.ts delete mode 100644 tests/conversation-scroll.test.ts delete mode 100644 tests/deliverables.test.ts delete mode 100644 tests/entry.test.ts delete mode 100644 tests/fixtures/maid-composer-hide.html delete mode 100644 tests/fixtures/reader-lane-owners.tsx delete mode 100644 tests/fixtures/reader-official-users.tsx delete mode 100644 tests/fixtures/reader-theme-overlap.html delete mode 100644 tests/fixtures/reader-user-bubble.tsx delete mode 100644 tests/flags.test.ts delete mode 100644 tests/fold-choreography.test.ts delete mode 100644 tests/fold-intensity.test.ts delete mode 100644 tests/footer-precedence.test.ts delete mode 100644 tests/history-word-regression.test.ts delete mode 100644 tests/live-turn.test.ts delete mode 100644 tests/log.test.ts delete mode 100644 tests/mcp-apps.test.ts delete mode 100644 tests/message-chrome.test.ts delete mode 100644 tests/metrics.test.ts delete mode 100644 tests/official-slots.test.ts delete mode 100644 tests/open-file.test.ts delete mode 100644 tests/pending-submission.test.ts delete mode 100644 tests/pinned-selection.test.ts delete mode 100644 tests/platform-media.test.ts delete mode 100644 tests/projection.test.ts delete mode 100644 tests/reader-composer-seat.test.ts delete mode 100644 tests/reader-glass-css.test.ts delete mode 100644 tests/reader-official-users.test.ts delete mode 100644 tests/reader-sticky-surface.test.ts delete mode 100644 tests/reader-theme-lanes.test.ts delete mode 100644 tests/reader-theme-overlap.test.ts delete mode 100644 tests/reader-user-bubble.test.ts delete mode 100644 tests/reasoning-block-key.test.ts delete mode 100644 tests/reasoning-follow.test.ts delete mode 100644 tests/retiring-content.test.ts delete mode 100644 tests/reveal.test.ts delete mode 100644 tests/rewind-cut.test.ts delete mode 100644 tests/stock-install.test.ts delete mode 100644 tests/stream-buffer.test.ts delete mode 100644 tests/styles.test.ts delete mode 100644 tests/terminal-input-preview.test.ts delete mode 100644 tests/text-transform.test.ts delete mode 100644 tests/timeline.test.ts delete mode 100644 tests/tool-clock.test.ts delete mode 100644 tests/tool-diff.test.ts delete mode 100644 tests/waiting-clock.test.ts delete mode 100644 tests/word-timeline.test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index cd61c4a..479050f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.0.4 — 2026-11-22 + +- 彻底移除合并自 dsh-better-display 的阅读视图及其全部残留:删除阅读页组件/样式/文本变换/官方槽位/入场策略等 `src/client/**` 源码,删除 reader/reveal/metrics 宿主路由与 `flags.json` 开关,删除 `DESIGN.md`、阅读相关 `docs/`、`licenses/dsh-better-display-LICENSE`;设置页只保留审批快捷键录制。 +- `src/host.ts` 只保留「新建空白会话默认自动审查」,不再注册任何 HTTP 路由。 + ## 1.0.3 — 2026-11-14 - 开发侧:`npm run typecheck` 转绿(无运行时行为变化)。设置节的 locale 命名空间键从旧的 `better-display` 改为 `better-chat`;`DEFAULT_BINDINGS.always` 可空导致展开后键可选,改用非空的 `DEFAULT_ALWAYS`;新增 `host-modules.d.ts` 与 `host-augment.d.ts`,为宿主自带的客户端包(`dsh-api-remotes` / `dsh-api-session-controller` / `dsh-client-connection` 等)补声明,并声明 `remote` / `sessions` 服务与 `connection/reset` 事件。 diff --git a/DESIGN.md b/DESIGN.md deleted file mode 100644 index abcc70f..0000000 --- a/DESIGN.md +++ /dev/null @@ -1,112 +0,0 @@ -# Display contract - -## Purpose - -Keep native DeepSeek Harness process information readable while separating the final answer after a successful turn. The reading view is a presentation of the public session projection, never a second Agent pipeline. - -## Content fidelity - -- Preserve literal reasoning text, whitespace, source order and block identity. An opt-in display transformer may paint different glyphs; it does not change the stored block. With no transformer installed, the painted text stays literal. -- Do not infer reasoning from wording, parse private provider logs, rewrite prompts or alter model settings. -- Preserve native context sources, tool types, summaries, filenames, details and results. -- Preserve the native conversation, input, model selector and approval system. -- Leave nontext and unknown content available through native renderers or a safe fallback. - -## Lifecycle - -During a turn, show its real process in chronological order. Starting body output, preparing tool input, finishing one tool, or entering another step is not whole-turn completion. - -Only a successful public turn-close boundary folds process, leaving the final answer in place. Failures, interruptions, unknown terminal states and approval requests remain visible. A live text selection defers folding until the selection is released. A historical turn can always be reopened. - -## Narration is never folded (2026-10-20) - -Assistant narration — the body segments a step emits between reasoning and tool calls, including text, images and future block kinds — is display content, not process detail. It is ordinary body prose, never annotation chrome. It is always rendered in source order: - -- Collapsing process hides reasoning cards, tool calls, context rows and other process records; it never hides, truncates or dims narration. -- Expanding process inserts those records back between the narration segments exactly where they occurred. Narration does not move, duplicate or become an answer card. -- Narration uses the normal body typography and keeps no left rule of its own. When collapsed process sat between two narration blocks, a compact process-chain summary (1px rail on the shared `--reader-rail` edge + `思考×N · 工具×K` label + chevron, 12px tertiary) occupies the gap; it counts only the rows folded between those blocks and expands them in place when clicked. If a live-fold cell already contains every one of those rows, the seam is omitted. Omitting it does not mark the previous narration with `data-reader-seam-after`, so that body keeps its bottom spacing. -- A step that carries body blocks no longer advertises process content on that basis; only literal reasoning does. -- Fold summaries count thinking, tools and records; narration is not counted as `输出×N` and never appears inside a fold box. -- During a live turn, a later reasoning step collapses every earlier reasoning/tool run in its own position, even across narration blocks; the latest thinking and everything after it stay open, and narration itself is never folded or moved. -- Auto-fold off, failure, interruption, unknown terminals and selection protection keep their existing behavior. - -While a turn is still open, a later reasoning step may collapse each earlier reasoning/tool run into its own disclosure at that run's source position. Narration stays outside those disclosures. Body or tool alone never triggers that live fold. A mid-turn user insert or steering message resets the chain, so reasoning after the insert does not fold steps before it. This is presentation-only and does not change the successful-turn final-answer fold. The live-fold cell is the only summary of a run it covers; the between-narration seam is not a second copy of that cell. - -## Long reasoning - -A neutral card bounds the transcript without replacing it. The viewport mask is 28px. Follow advances by two actual line heights every 840ms, with a 500ms transform using `cubic-bezier(.22,1,.36,1)`; clamp only at the current real end. Never accelerate through a burst, clone the transcript or loop old text. - -Expanding changes viewport size and preserves position and follow state. Wheel, touch, viewport focus or selection pause following. The explicit follow control resumes only when no text is selected. Completed history stays static. The full source text remains available. - -## Text and status motion - -Assign reveal times from source positions before rendering Markdown. Only newly appended text receives opacity/blur motion; existing paragraphs, page surfaces and text color do not animate. Unicode graphemes and punctuation keep their source order. Media and custom blocks do not enter the text queue. - -Busy labels use a 2-second glyph-only shimmer and a short state swap. Initial, busy and elapsed labels all use the native font at 14px/24px, weight 400. The disclosure arrow sits 6px from the current label; no longest-state spacer. Elapsed time and attention states do not shimmer. - -## Sticky reading lanes (2026-09-16) - -Keep the existing in-flow positions. The auto-fold control receives a full-column, 40px-minimum lane from initial render, native page background and seamless spacing, without divider lines or replacement shadows (user preference). The status retains its source position and shares the top lane's left side only when it reaches the scrollport top. The original summary row (never a duplicate) sticks below the greater measured toolbar/status height. Expanded and collapsed live summaries remain discoverable; completed summaries obey the same sticky offset. Scope is the current flow/turn, so subsequent turns replace earlier statistics rather than displaying unrelated counts forever. - -Taste checkpoint: native reading chrome, not floating badges; one column, no new card family, no shadows or rounded background tiles; existing typography. Active responsive-interaction binding: real ResizeObserver lane geometry → StickyLane + CSS offsets → verify desktop/320px, wrapped statistics, no overlap, and return to original position on reverse scroll. Preserve prior measured fold choreography and zero-height empty wrappers. - -## Reading and accessibility - -Manual reading, selection and keyboard access take precedence over automatic following. Reduced-motion preferences, disabled motion and background views settle to the received content. Errors stay local to their block. Do not turn user interaction into a permanent lock that prevents successful-turn folding. - -## Extensions and safety - -Trusted plugins may register `dsh-better-display.block`. Native content remains the fallback. Generative MCP Apps (SEP-1865 / `io.modelcontextprotocol/ui`) are supported via an isolated, sandboxed iframe (`sandbox="allow-scripts allow-forms"`, strictly without `allow-same-origin`) communicating via bidirectional JSON-RPC `postMessage` (`ui/initialize`, `ui/resize`, `ui/update-model-context`, `ui/submit`). - -### Block chain owner - -`renderSlotChain('dsh-better-display.block', owner)` passes the session block plus the display inputs the Reader already has. The original fields stay `block`, `streaming`, and `source`. These are added and may be omitted by an older caller: - -| Field | Meaning | -| --- | --- | -| `presentation.startedAt` | Assistant step time, when the Reader has one. | -| `presentation.interrupted` | This step was interrupted. | -| `presentation.liveText` | This block may run the live reveal. | -| `holdFormatting` | A text selection is holding Markdown formatting in place. | -| `liveText` | Same boolean as `presentation.liveText`. | - -A registrant that only reads `block`, `streaming`, and `source` keeps working. Replacing the chain still means that registrant draws the block. The fallback Reader keeps reveal, follow-scroll, and fold. The full shape and a copy-paste plugin are in [docs/extension-points.md](docs/extension-points.md). - -### Display text transform - -Service name: `dsh-better-display.text-transform`. Another client plugin lists that name in `inject` and registers a transformer. Kinds are `reasoning` (the thinking card) and `body` (assistant Markdown, and tool prose that uses the same reader). The request is `{ text, streaming, blockKey, kind, source }`. `read` may return a string, `{ text, final }`, or `undefined` to keep the source. `subscribe` tells the reader that a later batch changed what `read` will return. - -No registrant means the reader never calls `read` and never subscribes. Painted text, reveal, and fold stay as they are. - -The transformer is display-only. It must not write the session, the transcript, or the block object. Copy answer and copy message read the original blocks. Fold still follows the public turn boundary and the original block list. - -`final: false` keeps the live reveal open, including after the model has stopped while a batch is still out. A transformer that returns `final: !streaming` leaves the reveal flag unchanged. - -Each displayed string has its own `transformRevision`. That counter is not the reveal clock. The reveal continues when the new display string extends the previous one, so a translated batch that only appends does not replay the fade from the first character. A string that does not extend the previous one settles in place instead of typing again from empty. Plugins that want the fade to continue should return a string that starts with the previous display string. Do not use `transformRevision` as a React key or as the word-timeline revision. - -Register during plugin apply, before the reading view paints. A transformer registered mid-turn is picked up on the next reader render. - -## Host DOM hooks - -Reader replaces ChatView's message list, not the native conversation chrome. The enclosing `[data-conversation-scroll]` and sticky `[data-composer-seat]` stay host-owned. ChatView marks its column with `data-chat-flow=""`. Third-party skins (maid-atelier, phoebe-atelier, and others) treat a scrollport without that hook as inspect-only and hide the composer. Reader keeps the same empty `data-chat-flow` attribute on its column so those skins still see an interactive conversation. Turns stay on `[data-reader-turn]`; Reader does not emit native `[data-chat-flow-kind]` rows. - -## Fold choreography contract (2026-09-16) - -Single-agent implementation; preserve existing type, colors, source order and one-column reading layout. The memory cue is causality, not ornament: shrink → count → pause → continue. No bouncing capsule, scale-squashed text or parallel entrance spectacle. - -| Active reference | Decision | Target | Verification | -| --- | --- | --- | --- | -| motion-language | One attention owner; bounded coalescing instead of replaying every arrival | ChoreographedFlow | fast/slow/burst frame samples | -| motion-contract | Preserve step parents/keys until shrink completes; freeze a materialized public snapshot | fold-choreography + ChoreographedFlow | DOM identity, intermediate heights, ordered phases | -| responsive-interaction | Controls stay usable; labels receive available width, not an arbitrary narrow box | Reader.module.css | wide/narrow/200% text checks | -| typography-system | Keep native 14/24 status type; full short labels; wrap exceptional long labels | StatusText CSS | actual range vs container bounds | - -Motion id: `fold-choreography`. Trigger: newly received reasoning folds a previously visible chain. Historical mount is static. Native WAAPI animates measured layout height for 320ms (deliberate layout exception needed for real flow continuity), then counters roll for 160ms, then 80ms stillness, then 180ms content reveal. New data coalesces into one latest frame; it never restarts the active shrink. Newly released text uses the existing grapheme-safe bounded catch-up buffer. Counter values belong to committed presentation frames, not the transport clock. - -A selected passage, new user message, approval, error, stop, reduced motion or hidden page bypasses the waiting queue. Manual fold controls remain interruptible. Only the reader scroll coordinator writes the outer scroll position; during measured size animation it tracks geometry rather than layering another scroll easing. Authoritative session data is never rewritten. - -Rollback baseline: `.delivery/before-choreography-20260916.tgz` plus original commit `56a87bb2531e5ccb9db5d4c8a347c2f91d7e449a`; existing uncommitted fixes are included in the archive. Changed surface: existing client only, no Host restart or core edits. - -## Verification - -Use unit coverage for projection, lifecycle, source-ordered streaming, graphemes, Markdown and two-line stepping. Verify live Host manifest, served bundle, native process details, literal reasoning, motion, successful folding, reopening, narrow layouts and reduced motion separately. Keep private session evidence outside this repository. diff --git a/README.en.md b/README.en.md index 86fa1da..d19c216 100644 --- a/README.en.md +++ b/README.en.md @@ -1,8 +1,8 @@ # dsh-better-chat -Chat enhancements for DeepSeek Harness. v1.0.0 merges the **dsh-better-display -reading view** in: one plugin and one Web client artifact provide the reader tab -plus the approval / permission / plugin-store improvements. +Chat enhancements for DeepSeek Harness: Enter-to-approve / Esc-to-reject on approval cards, permission UI, plugin-store update button, and default auto-review for fresh blank sessions. + +> The reading view (merged from dsh-better-display) was fully removed in 1.0.4. This plugin no longer ships a Reading tab, nor that view's source, design docs or license. ## Install @@ -16,102 +16,11 @@ From this repository (pin a commit): dsh plugin --profile desktop add git+https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat.git# ``` -The compiled `lib/` is committed, so installation needs no build step. Fully -restart DSH afterwards. +The compiled `lib/` is committed, so installation needs no build step. Fully restart DSH afterwards. -> If the standalone **dsh-better-display** is installed, remove it while updating -> this plugin: the reading view is now part of this package, and installing both -> registers two reader views and two settings sections (their titles overwrite -> each other). +## Features -## Feature 1: reading view (merged from dsh-better-display 0.3.12) - -Adds a **阅读 / Reading** tab to the conversation: while a turn runs you see the -steps, reasoning and progress; on success the process collapses and the final -answer stays. The native conversation / trajectory views, composer, model picker, -tools and approvals remain. - -- The reader column keeps the host ChatView `data-chat-flow` hook, so third-party - skins that hang the composer off that marker still show it. -- ````mcp-app` code blocks in the final answer render as interactive cards inside - `