dshbase

插件目录 / Developer / dsh-plugin-quote-reply

dsh-plugin-quote-reply

已验证 · 实测可装 yangYzc

✓ 持续维护 基于 5 个官方 DSH 包 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-14最近推送
跨平台平台

功能简介

DSH划词引用插件:选中文字一键引用回复或新窗口。

✅
我们的评价
可用 — 实测通过,早期项目

DSH划词引用插件:选中文字一键引用回复或新窗口。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-plugin-quote-reply

**DeepSeek Harness (DSH) 划词引用插件** — 在会话中选中文字,一键「引用回复」或「新窗口回复」。 Select text (划词) in a DSH conversation, then quote it into the composer or reply in a new window. https://badgen.net/npm/v/dsh-plugin-quote-reply](https://www.npmjs.com/package/dsh-plugin-quote-reply) https://badgen.net/badge/license/MIT/green](LICENSE) ---

功能 Features

在 DSH Web 界面里,用鼠标**划选**任意消息中的文字,选中处下方会浮出工具条: - **引用回复**:把选中文字以 markdown 引用块(> …)插入当前输入框,直接接着打字回复。 - **新窗口回复**:自动创建并打开一个新会话,引用已预填在新会话的输入框里。 > 划词来源不限:助手回复、用户消息、工具输出都可以。

安装 Install

``sh

任意 profile(推荐 web)

dsh plugin --profile web add dsh-plugin-quote-reply
` 安装后重启 dsh web(或运行仓库内 重启-DSH-Web.cmd),刷新浏览器即可生效。

从 Git 安装(备选)

`sh dsh plugin --profile web add "github:<your-name>/dsh-plugin-quote-reply" ` git 安装会触发 prepare 构建脚本。pnpm ≥ 10 默认拒绝执行 git 依赖的构建脚本,首次安装会失败并提示你放行——把报错里给出的包名写进 profile 的 pnpm-workspace.yaml: `yaml allowBuilds: dsh-plugin-quote-reply: true ` 然后重新执行上面的 add 命令。(放行 = 允许在安装时执行该包的代码,只放行你信任的源码。)

使用 Usage

1. 在会话里用鼠标选中一段文字(比如助手回答中的一句)。 2. 选中处下方出现工具条。 3. 点「引用回复」——引用进当前输入框;或点「新窗口回复」——开新会话并预填引用。 4. 打字,发送。

工作原理 How it works

- 纯**客户端(浏览器)插件**:宿主半身 + 浏览器半身(
exports["./client"] + dsh.client 声明)。 - 划词监听:全局 selectionchange / mouseup 事件 + 选区坐标定位浮动工具条(框架本身没有消息文本选区 API)。 - 引用写入:会话标准套件 inputActions.setDraft()(经 conversation.input.dock 槽位注入)。 - 新窗口:SessionRuntime.create() → sessions.open() → conversation.input.for(binding.ctx).setDraft() 预填。

开发 Development

`sh npm install # 安装依赖 npm run typecheck # 类型检查 npm run build # 构建 lib/index.js + lib/client.js(client 半身按官方 __ModuleLoader__ 格式包装) `

发布 Publish

`sh npm version patch # 0.1.0 → 0.1.1 npm publish # prepare 会自动重新构建 ``

许可证 License

[MIT](LICENSE) © yangaazz

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-plugin-quote-reply」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

Web profile:

dsh plugin --profile web add dsh-plugin-quote-reply

Headless(CLI)profile:

dsh plugin --profile headless add dsh-plugin-quote-reply

包信息

npm:dsh-plugin-quote-reply · 版本 0.1.0 · 实测环境 dsh 0.1.0-rc.6

实测报告

端到端验证通过:dsh 0.1.0-rc.6 上 L1 安装 + L2 加载 + L3 运行问答。

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7797 个插件 →