dsh-client-ui-quote
其他 活跃维护

dsh-client-ui-quote

skyhancloud/dsh-client-ui-quote

适配AI对话网页端的轻量选择引用插件,选中任意AI回复内容即可自动生成引用横幅,一键追加到下一条待发送消息,无需手动复制粘贴调整格式,简化多轮对话的内容溯源引用操作。

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

dsh-client-ui-quote

# dsh-client-ui-quote English | [中文](https://github.com/skyhancloud/dsh-client-ui-quote/blob/main/README.zh.md) A selection-quoting plugin for the DeepSeek Harness web GUI: select text inside an AI reply and attach it to your next message as a quote banner. GitHub stars License Last commit Version CI status GitHub Sponsors ## Table of Contents - [Features](#features) - [Preview](#preview) - [Installation](#installation) - [Usage](#usage) - [Development](#development) - [License](#license) ## Features - **Selection toolbar** — one 引用 (Quote) button appears above the selection after a 50ms debounce, so it never flashes mid-drag. It hides on Escape, scroll-away, or when the selection collapses. - **Quote banner** — a removable strip above the composer with a quote glyph, the quoted text, and a × button. The quote is consumed by the next send: the banner clears when the message goes out. Escape while the composer is focused clears it too. - **Clean draft** — the quote is a pending-send attachment, not text in your input. Focus returns to the composer so typing follows. - **Localized** — toolbar labels and the quote attribution follow the UI language (中文 / English). - **Fallback for older harnesses** — on versions without the input-machine quote attachment, the button inserts the quote block at the end of the draft instead. ## Preview ![Toolbar above a selected AI reply](https://cdnimage-cache.doubi.ren/?url=https://raw.githubusercontent.com/skyhancloud/dsh-client-ui-quote/main/assets/preview-1.png) ![Quote banner above the composer](https://cdnimage-cache.doubi.ren/?url=https://raw.githubusercontent.com/skyhancloud/dsh-client-ui-quote/main/assets/preview-2.png) ## Installation ### Prerequisites - DeepSeek Harness with the web GUI (`dsh web`) - Full banner behavior needs `@deepseek-ai/dsh-client-ui-conversation` with the input-machine quote attachment (`InputActions.setQuote`). Older versions fall back to inserting the quote into the draft. ### Install ```sh dsh plugin --profile web add https://github.com/skyhancloud/dsh-client-ui-quote ``` Then restart `dsh web` and refresh the browser. ## Usage 1. Select any text inside an AI reply. 2. Click **引用** (Quote) above the selection — the quote appears as a banner above the composer. 3. Type your message and send — the quote is prepended to the outgoing message: ``` > 引用 AI 回复: > ``` 4. Click × on the banner when you no longer need the quote. ## Development ```sh pnpm install pnpm run bundle # emits lib/index.js and lib/client.js ``` Pull requests are welcome. ## License MIT — see [LICENSE](https://github.com/skyhancloud/dsh-client-ui-quote/blob/main/LICENSE).