rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:bovvl/dsh-response-annotations
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 DSH Web GUI 里复刻 Codex / ChatGPT 桌面版的 response annotations:
<response-annotations> 结构化块;
也支持只发批注(空输入框按宿主发送快捷键 / 点胶囊纸飞机 / 点盖住宿主主按钮的批注按钮;
运行中会盖住 Stop,删光批注后 Stop 自动恢复)。纯浏览器端 Client 插件:Host 半边为空 apply(),不注册工具、不改 Host 行为、不发任何网络请求。
deepseek-flash,agent 会话)生成,由 Ava 维护与发布(2026-10)。Assisted-by: DeepSeek Harness (deepseek-flash) 说明。从 GitHub 安装即可,无需 npm:
https://github.com/bovvl/dsh-response-annotationsdsh plugin --profile <profile> add github:bovvl/dsh-response-annotations
安装后刷新页面(或依赖 HMR)即可。
dsh plugin --profile <profile> add /abs/path/to/dsh-response-annotations
成功标志:打开任意会话,选中一段已完成(非流式中)的助手回复文字, 出现「添加到对话」浮动按钮。插件清单:
client.js(由 build.mjs 从 src/*.js 生成,勿手改)shell.overlay(浮动工具条 / 评论卡 / 定位时的临时高亮)、
conversation.input.overlay(输入框上方的「N 条批注」胶囊)、
conversation.user.text.node(已发送只读卡片)dsh-response-annotations(order -100)conversation.sendSession 以附加载荷(发送成功才消费)0.2.1-rc.3(在此版本上完成开发与实机验证;更早/更新的版本未验证)dsh plugin add github:bovvl/dsh-response-annotations 实测成功)/plugins/events 出现本插件 entry,bundle 正常下发)shell.overlay / conversation.input.overlay / conversation.user.text.node
等槽位、conversation.sendSession 内部方法与 ui-chat 的 DOM 锚点
(data-chat-flow-kind="assistant-step"、data-chat-node-key、data-conversation-session
以及发送按钮的 _primary 类名)。DSH 升级若调整这些实现,可能出现气泡缺失/定位失败/发送不再附加批注;
代码已对这些读取做 try/catch 与降级,但无法承诺跨版本 100% 兼容。# L1 安装
dsh plugin --profile <profile> add github:bovvl/dsh-response-annotations
# L2 加载:启动 Web profile 后检查插件图
dsh web --host 127.0.0.1 --port <port> --no-open
curl -s http://127.0.0.1:<port>/plugins/events | grep dsh-response-annotations
仓库已提交构建产物 client.js,安装时不需要构建;改 src/ 后重新生成:
node build.mjs
node --check client.js
node --test test/core.test.mjs
node --test test/smoke.test.mjs # 额外的加载/包装冒烟测试
\n# Response annotations:\n<PREAMBLE>\n<response-annotations>\n[JSON]\n</response-annotations>\n\n## My request:\n<用户原文>
JSON 每项形如 {"text":"所选文本","annotation":"可选评论","source":{"messageId":"..."}};
空评论丢弃 annotation 键;messageId 缺失时回退为 nodeKey。
解析失败时原样显示消息,不隐藏任何内容。
localStorage['dsh-annotation.v1.<sessionId>'](历史 key,保留以兼容已有批注与气泡存档)。{id, nodeKey, messageId, start, end, quote, prefix, suffix, comment, createdAt};
start/end 是该行渲染文本的 offset,用 quote + 前后 40 字上下文重锚定。:codex-annotation 指令渲染。fixed.send / fixed.complementary 目录读取,Enter 与 Cmd/Ctrl+Enter
都跟随 DSH 绑定)。仍不支持把批注连同 / 命令一起发(命令消息会跳过批注附加)。conversation.sendSession 实现;DSH 升级若改动该方法签名需要适配。
包装带 __dshAnnotationWrapped 幂等标记,卸载/热更新时恢复原方法。</response-annotations> 之类极端内容,显示解析会安全降级为原文。[data-chat-flow-kind="assistant-step"]、[data-chat-node-key]、
[data-conversation-session] 是 ui-chat / ui-conversation 的内部实现;升级可能变化,
定位失败时只提示找不到,数据不丢。source.messageId 回退为 nodeKey。0.2.1-rc.3 的 desktop / web profile 实机验证(选中、评论、只发批注、气泡、定位、高亮);未覆盖所有操作系统与 DSH 未来版本。package.json cordis.patch.yml index.js client.js build.mjs
locale/{en,zh}.json icon.svg README.md LICENSE .gitignore
src/{core,store,selection,ui,capsule,usertext,apply}.js
test/{core,smoke}.test.mjs CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin、deepseek-harness-plugins。