rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:LiFenrir/dsh-selection-quote
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Click a quoted excerpt in a sent DSH message to return to the text it quoted, centered in view and briefly highlighted.
@lifenrir/dsh-selection-quote>= 0.2.2-alpha.3>= 24.9DSH 0.2.1-rc.3 and later ship
@deepseek-ai/dsh-message-quotes, which already owns selection quoting: select text, click the official Quote action, and the quote is inserted into the composer and rendered in the sent message. This plugin deliberately does not create quotes. It adds the missing gesture: click a rendered quote to jump back to its source.
scrollIntoView({ block: 'center' }).react; all @deepseek-ai/* imports are type-only.dsh plugin add @lifenrir/dsh-selection-quote
git clone https://github.com/LiFenrir/dsh-selection-quote.git
cd dsh-selection-quote
pnpm install
pnpm build
dsh plugin add /absolute/path/to/dsh-selection-quote
lib/index.js and lib/client.js are committed, so pnpm build is only needed after changing src/.
dsh plugin add git+https://github.com/LiFenrir/dsh-selection-quote.git
Reload the Web UI (or restart the profile) after adding and enabling the plugin.
pnpm install
pnpm build # esbuild -> lib/index.js + lib/client.js
pnpm test # vitest (offline, jsdom for component specs)
Repository layout:
src/index.ts Host half (client-only plugin; empty apply)
src/client/index.tsx Client entry: locale, styles, session click observer
src/client/QuoteRevealer.tsx Session-scoped document click listener
src/client/quote-target.ts Reads the official [data-quote-preview] DOM
src/client/reveal.ts Source matching, centering, exact text highlight
tests/ Vitest specs
scripts/build-client.mjs esbuild bundler; also sets the client module id
lib/ Built output (committed; shipped in the npm package)
Type checking is done inside a DSH source checkout. This repository intentionally omits the tsconfig.json paths entries that point into deepseek-harness/..., because those relative paths do not exist here. The shipped tsconfig.json keeps the compiler options for editors; run the full tsc --noEmit type check with the original tsconfig in the DSH source tree.
The client bundle is a window.__ModuleLoader__.load({ id, factory }) registration. Its id must equal the package name, so scripts/build-client.mjs sets PLUGIN_ID = '@lifenrir/dsh-selection-quote'.
cursor: pointer rule for quote previews and a ::highlight(...) rule for the exact passage.[data-quote-preview] inside [data-chat-node-key], outside the composer, when the click did not end a drag selection.[data-conversation-session] container, only among messages before the clicked one. Older pages are loaded when needed.MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。