dsh-smooth-stream 0.5.0 → 0.6.1

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.en.md CHANGED
@@ -140,6 +140,10 @@ The plugin defaults to `preset: balanced`. You can tune the cadence in your prof
140
140
 
141
141
  Open **Settings → Plugins → Plugin Configuration** in the Web UI:
142
142
 
143
+ **Logarithmic fade** (on by default) adapts the tail from 24 to at most 160 graphemes according to reveal speed, fading answers and expanded thinking from 0% opacity over 240ms with a reversed logarithmic curve that stays translucent longer. Text settles even during network pauses. Turning it off preserves text pacing and scrolling. It follows the motion preference and skips code, formulas and thinking summaries. Browsers without text-range highlighting support retain the existing reveal behavior.
144
+
145
+ For a local preview, run `pnpm build:repro`, serve the repository with `python3 -m http.server 8765 --bind 127.0.0.1`, and open `http://127.0.0.1:8765/repro/index.html?demo=fade`. This uses the real reveal/fade hooks with synthetic rich-text fixtures. Run `node scripts/verify-logarithmic-fade.mjs` to check and record it (Chrome and `pnpm exec playwright-core install ffmpeg` required; override the Chrome path with `CHROME_BIN`). Reports and recordings go to the ignored `repro/artifacts/logarithmic-fade/` directory.
146
+
143
147
  - **Enable smooth streaming** (default on): Toggles custom stream rendering and follow. Disabling instantly falls back to built-in Harness rendering.
144
148
  - **Auto-expand thinking**: Controls whether reasoning opens automatically while streaming.
145
149
  - **Collapse finished work** (default on): Folds thoughts and tool steps into a summary line once the turn settles.
@@ -150,4 +154,3 @@ Open **Settings → Plugins → Plugin Configuration** in the Web UI:
150
154
  ## License
151
155
 
152
156
  [MIT](LICENSE)
153
-
package/README.md CHANGED
@@ -141,12 +141,16 @@ Host 日志中显示 `[dsh-smooth-stream] plugin loaded!` 即表示已成功加
141
141
 
142
142
  - **启用丝滑流式渲染**(默认开启):接管回复和工具行的渲染与跟随;关闭后即时恢复 Harness 内置渲染。
143
143
  - **自动展开思考**:流式生成期间是否自动展开思考过程。
144
+ - **对数淡入**(默认开启):回答正文和展开的思考内容中,尾部范围随输出速度从 24 扩展到最多 160 个字素,从 0% 不透明度在 240ms 内按反向对数曲线变实(前段更通透,后段变实)。网络停顿时也会恢复清晰;关闭此项保留逐字输出与滚动。遵循动效偏好,跳过代码、公式和思考摘要,不支持文字范围着色的浏览器自动使用原有输出效果。
144
145
  - **完成后自动折叠**(默认开启):回合处理完成后,将思考过程与工具调用折叠为摘要行。
145
146
  - **显示渲染调试面板**(默认关闭):在界面右侧开启实时 HUD,观测 FPS、字符积压、弹性曲线并微调物理参数。
146
147
 
148
+ 本地淡入预览:执行 `pnpm build:repro`,在仓库根目录启动 `python3 -m http.server 8765 --bind 127.0.0.1`,打开 `http://127.0.0.1:8765/repro/index.html?demo=fade`。预览包含暂停、停止、深浅主题、高速分片和代码/公式保护样例,复用真实输出引擎,富文本为测试样例。
149
+
150
+ 执行 `node scripts/verify-logarithmic-fade.mjs` 可验证并录制预览(需要 Chrome 和 `pnpm exec playwright-core install ffmpeg`;其他 Chrome 路径可用 `CHROME_BIN` 指定),报告与视频保存在未跟踪的 `repro/artifacts/logarithmic-fade/`。
151
+
147
152
  ---
148
153
 
149
154
  ## 许可证
150
155
 
151
156
  [MIT](LICENSE)
152
-