dsh-input-history
开发工具 活跃维护

dsh-input-history

NightsVesa/dsh-input-history

轻量级输入历史插件,面向Web端输入编写器,支持通过上下方向键快速回溯过往输入内容,自动按时间顺序记录输入序列,切换流畅无卡顿,无侵入适配原生界面,无需额外操作即可提升输入效率。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
65 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:NightsVesa/dsh-input-history
git clone https://github.com/NightsVesa/dsh-input-history.git
git clone git@github.com:NightsVesa/dsh-input-history.git
README.md main

dsh-input-history

Input history for the DeepSeek Harness Web composer. In any loaded session, press ArrowUp to recall older submitted prompts or slash commands and ArrowDown to move forward and restore the draft you were typing.

Install from GitHub

dsh plugin --profile web add github:NightsVesa/dsh-input-history
dsh web

The repository commits its built lib/ artifacts, so GitHub installation does not run a prepare script or require a pnpm allowBuilds entry. For a reproducible install, pin a commit:

dsh plugin --profile web add github:NightsVesa/dsh-input-history#<commit>

Remove it with:

dsh plugin --profile web remove dsh-input-history

Behavior

  • History is isolated per session and capped at 256 entries.
  • Existing user messages, steering messages, and slash commands are read from the loaded durable session window.
  • An open command/reference menu keeps ownership of the arrow keys.
  • Modified arrow chords, IME composition, read-only input, and inactive composer states retain their native behavior.
  • Reaching the newest entry with ArrowDown restores the draft that existed before navigation began.

Development

Requires Node.js ^22.19.0 or >=24.0.0 and pnpm 11.7.0.

pnpm install
pnpm run check

The plugin is a standard DSH bundle: package.json declares dsh.bundle, cordis.patch.yml inserts the plugin, and the browser half is exposed through ./client with a dsh.client manifest.

Compatibility

Tested against DeepSeek Harness 0.1.0-rc.5. The browser integration targets the stock composer's public data-composer-card marker and the client runtime's sessions service.

License

MIT