QIN-SMART/dsh-quote-to-chat ↗★ 0

dsh-quote-to-chat

Select text in a DSH reply: a floating toolbar that quotes it into the composer draft or opens a side chat about it. 适合需要快速引用回复内容或针对特定文本发起旁支讨论的用户。

Package
dsh-quote-to-chat
Compatibility
Unverified
Version
0.2.0
License
MIT
Last updated
Oct 2, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:QIN-SMART/dsh-quote-to-chat

配置

界面里没有设置项(保持克制)。调试句柄:

__dshQuoteToChat.config()                                  // { enabled, format, attribution, minChars }
__dshQuoteToChat.setConfig({ format: 'plain' })            // auto | quote | fenced | plain
__dshQuoteToChat.setConfig({ attribution: true })          // 引用块后补一行「(引用自第 N 轮回复)」
__dshQuoteToChat.setConfig({ minChars: 0 })                // 少于 N 字符不弹
__dshQuoteToChat.setConfig({ enabled: false })             // 整体关掉
__dshQuoteToChat.state()                                   // { open, text, turn, instances, hasActions, sideChat, config }
__dshQuoteToChat.insert('一段话')                           // 绕过选区直接写引用(自动化用)
__dshQuoteToChat.sideChat()                                // { available, composers, drafts }

配置存 localStorage['dsh.quote-to-chat.v1'],白名单字段,坏数据一律回落默认值。