DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-add-to-chat

d

dsh-add-to-chat

Manifest valid

Adds lightweight selected-text references to DSH assistant replies: selections stay outside the editor as removable draft contexts, remain marked beside the source, and render as hoverable annotations

UI (client)hasBundlePatch

DSH对话注释插件

在 DSH 的助手回复中选中文字后,点击 添加到对话。插件会把所选内容保留为独立注释,并在用户发送下一条消息时将其作为插件来源上下文提交。 插件实现极简对话注释效果,与codex类似。

English: README.en.md

效果

在助手回复中选中文字,点击浮动的 添加到对话。

选中文本后的添加到对话操作

可连续添加多条注释。输入框保持普通文本;悬浮“x 条注释”可查看每段原文,并逐条删除。

两条独立注释的悬浮预览

继续正常输入并发送。注释会随本次提交作为独立上下文传给模型;提交成功后自动清空,提交失败则恢复。

发送后在用户消息上方悬浮查看关联注释

功能说明

  • 纯浏览器端 DSH 客户端插件;不需要 Host 服务或任何产品专用集成。
  • 每次选区限于同一条助手回复,可连续添加多条注释。
  • 不自动发送;用户可继续编辑普通草稿,或只发送注释。
  • “x 条注释”悬浮卡片展示完整原文,支持逐条删除及全部删除。
  • 待发送注释卡片优先向上展开,空间不足时向下展开;悬浮层高于输入框,详情与删除按钮不会被输入框遮挡。
  • 不向 Lexical 编辑器写入 Markdown、隐藏节点或 Chip,因此不会因 Backspace 误删。
  • 注释待发送时,原助手选区附近保留数字标记,不弹出原文;详情统一在输入框上方的“条注释”卡片查看。
  • 界面文案跟随 DSH 当前语言,支持中文和英文,并在切换语言后立即刷新。

兼容性

插件只依赖三个语义扩展点:助手正文的 data-dsh-message-role="assistant" 标记、conversation.draftContexts 提交服务及 DSH locale 服务。它不依赖页面 CSS class,也不要求 Host 服务或产品专用代码。

安装

dsh plugin --profile web add github:choco9527/dsh-add-to-chat

DSH Desktop 请安装到当前使用的 Desktop Profile;Electron 渲染器复用同一套 DSH Web 客户端模块图。

开发

corepack pnpm install
corepack pnpm run check
dsh plugin --profile web add .

安装后重启目标 DSH Profile。不要再手动把同一插件 id 写入 Profile 的 cordis.patch.yml,bundle 已自行注册。

浏览器遮挡回归:使用已安装的 Playwright 运行 node --test test/preview.browser.mjs;可用 PLAYWRIGHT_MODULE 指定其模块入口、CHROME_EXECUTABLE 指定 Chrome 可执行文件。测试加载真实插件代码,在隔离页面中检查输入框层级 7/9、向上展开、窄窗口向下回退及删除交互,不访问真实对话。

许可证

MIT

Comments

Loading…

Similar plugins

dsh-select-quote

by latte03

Select text in the dsh web conversation to attach it as an annotation to your next message. The source text keeps a dashed highlight with an ordinal badge in place, and the composer summary lists, edi

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 3

MIT

TypeScript

Oct 27, 2026

dsh plugin --profile web add dsh-select-quote

by feifiefei

DSH right-sidebar file helper: annotate a selection in the document preview (text lines / Excel ranges / Word-PDF pages) or right-click a file, then send the quote plus your note into the current chat

Manifest valid

★ 0

MIT

JavaScript

Oct 19, 2026

dsh plugin --profile web add dsh-file-to-chat

by an-an-618

Adds a lightweight follow-up row under each DSH answer: one anchor question plus 1-3 user-voice quick replies, so the next turn is one click away; supports always / balanced / conservative strategies

UI & ExperienceTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add @an-an-618/dsh-hook-followup

by zhao-guang-ai

该仓库暂未提供项目说明。

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 3

↓ 491/wk

MIT

JavaScript

Oct 28, 2026

dsh plugin --profile web add dsh-quote-annotate-pro

by sunnystarye-ui

Codex-style text annotation for conversations: select text, add a quote with your comment, inject it into the composer, and expand sent annotations as a pill.

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Aug 24, 2026

dsh plugin --profile web add dsh-plugin-text-quote

Annotate on selection, persist through refresh; send the notes with your message and the model answers each one.

UI & ExperienceManifest valid

★ 0

↓ 69/wk

dsh plugin --profile web add dsh-inline-comments