dsh-power-type
Power Mode typing effects for the DSH web composer: caret particles and glowing character echoes, a heat ramp from amber to red with rising embers as the combo grows, a combo counter over visible glyphs, and a synthesized key tick with a heavier Enter impact.
Install
dsh plugin --profile web add dsh-power-type
Sandbox test
This plugin has not been tested yet. Submit a test →
README
dsh-power-type
[English](README.md) | 中文
 
为 DeepSeek Harness(DSH)Web 输入框添加 Power Mode 打字特效:粒子、冲击波、连击、热浪与余烬。
功能
- 光标粒子、文字发光残影与输入框震动。
- 连击越高,当前输入行会越热:暖黄 → 橙色 → 红色,伴随热浪细纹和上升余烬。
- 热浪只包当前文字行,不画输入框边框,也不出结算卡片。
- 连击按可视字符数累积:英文逐键,中文一次提交多个字时会补足连击和按键 tick 密度。
- 每次敲击有轻量合成音效,Enter 有更重的冲击音;可独立关闭或调音量。
- 支持中文等输入法的组合输入;深色/浅色主题自动适配。
安装
需要 DSH Web >=0.2.1-rc.2 <0.3.0。
dsh plugin --profile web add dsh-power-type
想装仓库当前提交而不是已发布版本,直接从 GitHub 安装:
dsh plugin --profile web add github:huangzhilin-hzl/dsh-power-type
如果从源码运行 DSH,请在 DSH 仓库根目录执行:
pnpm dsh plugin --profile web add github:huangzhilin-hzl/dsh-power-type
安装后重启 DSH Web 并刷新页面,插件无需构建。
本地开发时,也可以从插件目录安装:
dsh plugin --profile web add /absolute/path/to/dsh-power-type
本地安装使用目录链接,请保留该目录。
使用
在输入框中打字即可,特效默认开启。可在 插件 → 已安装插件 → Power Type 中启用或停用插件。
在浏览器控制台调整特效强度和音效:
window.__dshPowerType.setIntensity(1.5) // 默认 1,范围 0.2–2.5 window.__dshPowerType.setSoundEnabled(false) // 关闭敲击/Enter 音效 window.__dshPowerType.setVolume(0.5) // 0–1,默认 0.9
设置保存在当前浏览器本地。
卸载
dsh plugin --profile web remove dsh-power-type
从 DSH 源码运行时,将 dsh 替换为 pnpm dsh。
开发
先在 DSH 源码仓库中安装依赖,再从本插件目录运行:
export DSH_CHECKOUT=/absolute/path/to/deepseek-harness node --test test/engine.test.mjs node --test test/browser.test.mjs node --test test/dsh.test.mjs
浏览器测试需要 Chrome/Chromium。DSH 集成测试还需要 pnpm,以及 DSH 仓库中已构建的 apps/web/dist。可通过 CHROME_PATH 和 DSH_TEST_PNPM 指定可执行文件路径。
设置 DSH_PLUGIN_SPEC=github:huangzhilin-hzl/dsh-power-type,可验证远程包的 DSH 集成。
打开 [demo/index.html](demo/index.html) 可查看独立视觉演示;[demo/index.html?heat=1](demo/index.html?heat=1) 会持续输入以展示热浪,加 &theme=light 可查看浅色主题。
Rendered from the README published on npm. Formatted only, not edited.
Versions
Published on npm::2,最后更新 2026-10-29