概览
dsh-input-history
Arrow-key input history for the DeepSeek Harness Web composer
README / ZH
插件文档
dsh-input-history
DeepSeek Harness Web 输入框历史插件。在已加载的 session 中,按 ↑ 查看更早的输入或斜杠命令,按 ↓ 向后切换,并在到达末尾时恢复开始浏览历史前的草稿。
从 GitHub 安装
dsh plugin --profile web add github:NightsVesa/dsh-input-history
dsh web
仓库会提交构建后的 lib/,安装时不会运行 prepare,也不需要在 pnpm 中配置 allowBuilds。建议锁定 commit:
dsh plugin --profile web add github:NightsVesa/dsh-input-history#<commit>
卸载:
dsh plugin --profile web remove dsh-input-history
行为
- 每个 session 独立保存最多 256 条历史。
- 从当前已加载的持久化 session 窗口读取用户输入、steering 输入和斜杠命令。
- 命令或引用菜单打开时,方向键仍由菜单处理。
- 组合键、输入法组合状态、只读输入框和非活动输入框保持原行为。
↓到达最新位置后恢复原草稿。
开发
需要 Node.js ^22.19.0 或 >=24.0.0 以及 pnpm 11.7.0。
pnpm install
pnpm run check
这是标准 DSH bundle:package.json 声明 dsh.bundle,cordis.patch.yml 插入插件,浏览器入口通过 ./client 和 dsh.client manifest 暴露。
兼容性
已在 DeepSeek Harness 0.1.0-rc.5 上验证。浏览器端依赖官方输入框的 data-composer-card 标记和 client runtime 的 sessions 服务。
许可证
MIT
