dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:samuelraj-game/dsh-plugin-annotation
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Annotate passages in a DeepSeek Harness conversation: select text, add a comment, and the annotation rides your next turn as hidden context. Annotations persist per session, so switching conversations does not lose them.
Staged annotations stay out of the composer draft. They collect in a small count pill above the composer:
[ 💬 2 annotations (×) ]
Hover the pill to open the stack. The panel lists each annotation with its quoted passage, your comment, and edit/remove actions:
2 annotations [Send all]
1 SELECTED TEXT
"remove"
USER COMMENT
are you sure?
2 SELECTED TEXT
"the official 0.4.10 installer"
USER COMMENT
no comment
- and 1. continue on Enter, Tab indents, and Enter on an empty item ends the list.Annotations never enter your text field. They are held by the plugin's host half and attached to the next turn as a hidden context message, so the model sees the quoted passage and your comment while the conversation shows only your own message:
(shown) please also check the checksum
(hidden) The user annotated passages of the conversation. …
1. Quoted passage:
remove
User comment: are you sure?
Press the composer's normal Send button (or Enter) and the staged stack goes with it. With annotations pending and an empty composer, the send button stays enabled because the plugin keeps an invisible token in the draft; the host strips it before the model step.
| Where | Key | Effect |
|---|---|---|
| Comment card | Enter |
Stage in the stack (continues a list item when the line is one) |
| Comment card | Ctrl/Cmd+Enter |
Send only this annotation now |
| Comment card | Shift+Enter |
New line |
| Comment card | Tab / Shift+Tab |
Indent / outdent a list item |
| Comment card | Esc |
Cancel |
| Count pill | Hover | Open the stack |
| Count pill | × (on hover) |
Clear the stack |
| Stack panel | Send all |
Send the stack plus the draft |
Add this index source in Plugins → Discover → Add index source:
https://samuelraj-game.github.io/dsh-plugin-annotation/index.json
(Discover needs the experimental Custom plugin markets bundle switched on in Plugins → More.)
dsh plugin install dsh-plugin-annotation
Or add the bundle in the app: Plugins → Installed → Add bundle, then pick dsh-plugin-annotation.
This package is both a bundle and a plugin. The bundle patch (cordis.patch.yml) inserts its own row:
- insert:
- id: ui-annotation
name: dsh-plugin-annotation
Adding dsh-plugin-annotation to the profile's dsh.profile.bundles (and installing the package) is enough — no hand-editing of cordis.patch.yml.
conversation.input.overlay slot, which the shell mounts once per Session, so it is available in every conversation.mouseup / keyup / selectionchange; selections inside editable surfaces (the composer, inputs) are ignored./dsh-plugin-annotation, each mutation requiring the x-dsh-plugin-annotation header.agent/pre-step, the host appends a separate hidden user/message whose source.kind is annotation, then drains the store. The direct user message is left untouched and the raw block never renders, because Chat hides ordinary context nodes.U+2063): the client writes it so the native send button enables, and the host strips it before the model step, substituting (annotation) if the message becomes empty.::highlight(dsh-annotation)), and the hovered annotation gets a second, stronger highlight; numbered pins re-measure on scroll, resize, and a light interval.--dsw-alias-*), so light and dark themes both look native.| DSH | >= 0.2.1-rc.5 (declared in engines.dsh) |
| Profile | a base-backed web or Desktop profile that mounts @deepseek-ai/dsh-client-ui-conversation and @deepseek-ai/dsh-host-webserver |
| Node.js | DSH's own — the host half uses only node: built-ins (Buffer), no dependencies |
| OS | any platform the DSH client runs on (Windows, macOS, Linux) |
Permissions: no DSH permission category is used. No filesystem access, no outbound network, no command execution, no credential access, no MCP or host APIs.
Map keyed by session id. Nothing is written to disk./dsh-plugin-annotation prefix on DSH's own loopback web server. Mutations require the x-dsh-plugin-annotation request header and are rejected otherwise.inputActions face, one <style> element, and its own fixed-position overlay elements.dependencies, no runtime devDependencies, no preinstall / install / postinstall / prepare scripts, no native binaries, no dynamic code loading.lib/client.js is the artifact; consuming the package needs no build step.U+2063) is written into the composer when annotations are pending and the composer is empty. The host strips it before the model step; if a send fails mid-flight the token can remain in the draft, where it is invisible and harmless but present.node scripts/release.mjs patch # 0.4.0 -> 0.4.1
node scripts/release.mjs minor # 0.4.0 -> 0.5.0
node scripts/release.mjs 0.4.2 # explicit version
One command bumps package.json, commits the release, pins that commit in docs/index.json, commits the index, and pushes. Add --dry-run to see the plan without touching anything. It requires a clean working tree on main, and it does not publish to npm — the market installs straight from the pinned commit.
The repository is the published package; lib/client.js is hand-authored in the bundle format the client module system expects:
window.__ModuleLoader__.load({ id: "dsh-plugin-annotation", factory: (require) => { /* ... */ } });
After changing the client half, copy lib/client.js into <profile>/node_modules/dsh-plugin-annotation/lib/ and reload the app. Host-half changes need a profile restart, because its routes and the agent/pre-step listener are registered at Host startup.
npm run check # node --check both halves, then run the host tests
docs/ holds the plugin-market index (index.json + icons/), published with GitHub Pages (Settings → Pages → Deploy from a branch → main / /docs).
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。