DDDFXYqiming/dsh-annotation-patched ↗★ 2

@dsh-external/dsh-annotation-patched

DSH Web selection-annotation plugin: select assistant text, annotate (optional), and press Enter to send the annotation block with your message — the model replies to each annotation by number, with hoverable chips in the reply. 实现针对性划词提问。适合需要对AI长回复进行逐条批注讨论的用户。

パッケージ
@dsh-external/dsh-annotation-patched
互換性
未検証
Harness ピア範囲
^0.1.0-rc.6
バージョン
0.2.3
ライセンス
MIT
最終更新
2026/09/03

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DDDFXYqiming/dsh-annotation-patched

ドキュメント

README 全文を読む ↗

本地开发时也可直接使用仓库目录

dsh plugin --profile web add


## 已知边界

- 只支持选中**助手消息**,用户自己发的消息不处理
- 自动引用在**回车发送**和**点击发送按钮**时都会触发(`PATCH(2026-08-14d)` 起,capture 阶段拦截发送按钮先拼稿)
- 这是浏览器端插件,改了 `client.js` 后需要 **Ctrl+F5 强刷**(或者换个浏览器)才生效。`pnpm` 更新会覆盖 `node_modules` 里的副本,须以本目录为源重新 link
- 强依赖 DSH Web 的 DOM 结构(`[data-time-hover-root]`、`[class*="bubble"]`、`[data-composer-card]` 等),DSH UI 升级可能让它失效

## 升级记录

- v0.2.0 的基座从 v1.3.13 升到 v1.4.1(含 issue#20),适配了 5 处锚点。①工具条 i18n 化,文案走 `t()`,可留空提示进 zh/en 字典。②`attachAndSend(e)` 签名变化,点击路径传合成事件对象。③`stripOldBlock` 升级双语哨兵,zh 用 `提问:`、en 用 `Ask:`。④`updateChip` 锚点随 `t(chip.count)` 更新。⑤导出尾部改成单行锚点。测试断言跟进 inject 与 locale 的变化

## License

MIT(保留上游版权声明,见 LICENSE)