dsh-web
zhu1090093659
DeepSeek Harness (DSH) Web 插件聚合生态 · 万物皆插件,通过创意工坊分发||DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Tkingxiao/dsh-any-background
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A DeepSeek Harness appearance plugin: custom theme color, background wallpaper (image / video / algorithmically generated), and fine-grained per-surface opacity & blur controls. Compatible with DSH 0.1.5-rc.2 through 0.2.1-alpha.1 — and every host release above it (official-Sidebar UI such as the "Theme" card enables itself where the host exposes the Sidebar registry extension point, and is skipped silently where it does not).
Custom homepage · wallpaper + theme color applied
Theme color picker · PS-style wheel + precise HSL/RGB inputs
Per-part opacity and blur · main background, sidebar, cards, settings
Background editor · image/video wallpapers support drag-to-pan and scroll-to-zoom
Generated dynamic background · mesh gradient / Shader / geometric presets
Generated dynamic background · geometric low-poly mode preview
Export and import configs to share
backdrop-filter blur (0–60 px) per surface, including a real backdrop on the composer, the Cordis panel and popover surfaces via stable host selectors.code highlight chips and produced chips share one opacity + blur slider. The opacity is the alpha of each surface's own background color (no second color stacked on top of the original), and the blur frosts that same layer so the wallpaper shows through the content.panelOpacity / blurs.panel), two identities: without dsh-better-sidebar it reads "右方侧边栏" (Right sidebar) and drives the official right Sidebar's surface tokens and frosted blur (works on 0.1.5-rc.2 through 0.1.7); with dsh-better-sidebar installed it reads "bettersidebar" and takes over that plugin's bottom workbench panel (the official sidebar keeps responding too). The row is always visible.conversation.session.header* slot anchors and tags the open popover at runtime instead of relying on class shapes.backdrop-filter — the row hosts no in-place overlay of its own (its dropdowns portal to body), so the backdrop root costs nothing and no underlay node is injected into a host element. The anchor is expressed in CSS (the row is the conversation.session.header slot's direct parent) instead of guessing a hashed class or tagging a host element at runtime; before 0.1.7-alpha.1 the host mounts that slot bare with no such element, so there the rule matches nothing and the part is simply inert. On the Windows desktop shell the same slider pair also drives the window caption band — its fill and its frost both read this card's two variables, so the caption area and the session title row can never disagree — and the native minimize/maximize/close block is handed transparent so Windows paints no background of its own, leaving the band itself showing through. A blank session marks the row headerBlank (a placeholder left with only its padding) and the plugin skips claiming it.sidebarRightTabs + the sidebar.right.pane.tab keyed seat); with dsh-better-sidebar installed, the page registers in that plugin's sidebar instead and the official guide card withdraws itself, so the two never duplicate. Settings panel, official sidebar and better-sidebar all share one page implementation and one state store — a change in any of them shows up everywhere. The shell adapts to the panel width, and a narrow panel tightens padding and falls back to a single column. On a host without the right Sidebar the registration silently never happens.dsh-any-theme.json (config + wallpaper, video embedded as a data URL) and import to restore it anywhere.@font-face; toggle it off or remove it at any time. Fonts stream as raw bytes and persist in the plugin data dir; code blocks keep their monospace stack.-webkit-text-stroke: width 0–4 px (0 = off) and a color of auto-contrast / gray / black / white / accent / custom. Code blocks, inline code, icons and the host's background-clip: text shimmer chrome (the "深度求索中" turn-status line and the turn-process rows) are exempted automatically, so multi-color syntax never smears and gradient text is never flattened into a stroke-coloured blob.Auto both the surface and font directions follow the accent's lightness (dark pick → light fonts, light pick → dark fonts), falling back to the wallpaper's perceived brightness when no color is picked.~/.dsh/.dsh-any-background-data/, not localStorage.AppFrame.module.css's .frame::before — full width, exactly --dsh-windows-titlebar-height tall — and it filled from the host's sidebar token, outside the plugin's reach, so moving the sidebar slider turned the window's caption clear and dropped the title and the Application / Edit menubar onto the raw wallpaper (issue #23, symptom 1). The band now paints from this card's material at this card's opacity and frosts with the same blur variable, so one slider pair drives the session title row and the window caption and the two can never disagree.--dsw-specific-sidebar-fill, shipped over dsh-desktop:windows-appearance to setTitleBarOverlay). v0.3.5 pinned that probe to the material's opaque colour, which then disagreed with a band that had started following its sliders — a washed-out pale rectangle in light mode. The probe now reports transparent, so Windows paints no background there: the band already covers exactly those 40 px, so the block IS the band — one continuous surface, matching at every opacity. (Feeding the probe the card's paint along with its alpha was tried first: Windows then gives each button its own background patch, and the three stack into a lighter, visibly segmented block.) The glyphs are still measured separately off the same probe (--dsw-alias-label-primary), so they stay opaque and readable.AppFrame rounds .centerCol's top-left by 16 px and clips its overflow; once the frame is cleared to show the wallpaper, that notch let the wallpaper through under the conversation header's first pixels. The plugin now zeroes that corner (dab-center-flat).headerBlank (min-height:0, no bottom rule), leaving only its padding and the corner control — deliberately a row that paints nothing. The plugin claimed it anyway and tinted it, so a box appeared exactly where there was meant to be no header bar. Claiming now skips that marker, and only one element can hold the class: a row that goes blank, or one the host replaces, has the class removed.position for a host card. The host positions none of the three takeover cards (approval / plan review / question) on any supported release — checked per tag: zero position: hits across their three stylesheets — so v0.3.4's .dab-input-frost [data-approval-key]>div{position:relative;isolation:isolate} was really the plugin deciding the card's positioning for the host. Once the host's own styles position that card too (issue #24's desktop shell pins it with position:absolute plus a percentage max-height), the decision becomes a specificity race: at equal weight the plugin wins by source order and turns the host's absolute card into an in-flow one — seat height, card box and the reported collapse along with it — and none of that is the plugin's to decide (both outcomes measured locally against a rule of the same weight). The frost now rides a runtime per-card class (dab-takeover-frost): attached only while the blur is non-zero, and writing position:relative inline only where the card's computed position is static (the setBlur guard, remembered with data-dab-pos-patched). A card the host positioned keeps its own position — which is then the containing block the underlay rides, so the frost still lands. A host box's position is no longer a contest this plugin can take part in..dab-takeover-frost{isolation:isolate} and its ::before; applyTakeoverFrost attaches the class and rides watchParts' existing throttled pass to claim cards the host mounts later (the value signature gained the card's identity, or that pass would be skipped exactly when an approval appears and the card would stay bare). The role="dialog" valve follows PART_BLUR_RULE: a dialog inside the card gives up the isolation first.--dsw-specific-input-major rewrite stays global — the host only ever uses that token as a background (verified per tag, so it cannot move a box) — the input opacity slider still owns their fade, and the blur slider now reaches them through the new path.backdrop-filter; the row is CLAIMED AT RUNTIME — the plugin walks from a conversation.session.header* slot anchor up to the nearest <header> and tags it with its own class (the same idiom the view cards and the frame use), so no hashed class is guessed and no assumption is made about how deep the host nests the slot; before 0.1.7-alpha.1 the host mounts that slot bare with no such row, so nothing is ever claimed and the part is inert. It is the eleventh part, and the Font page's outline groups gained the same row.--dsw-specific-sidebar-fill, and this plugin re-emits that token with the sidebar slider's alpha — which left the block looking washed out and translucent (issue #23, symptom 2). The plugin now pins only the host's own measurement probe back to the material's opaque colour: the page keeps following its sliders, the block keeps the host's own colour.# published on the npm registry
dsh plugin --profile web add dsh-any-background
# or straight from the GitHub repository
dsh plugin --profile web add github:Tkingxiao/dsh-any-background
Then launch:
dsh web
The plugin appears as a "Theme" section in Settings.
npx @deepseek-ai/dsh plugin --profile web add dsh-any-background
npx @deepseek-ai/dsh web
The lib/ directory is committed, so installs need no build step. To rebuild after editing src/:
git clone https://github.com/Tkingxiao/dsh-any-background.git
cd dsh-any-background
pnpm install
pnpm run bundle
pnpm dsh plugin --profile web add "dsh-any-background"
pnpm dsh web
dsh web 0.1.5-rc.2 ~ 0.2.1-alpha.1, and everything above it with it — engines.dsh, the six gated @deepseek-ai/dsh-* peerDependencies and dsh.compatibility.dsh name the 0.1.5-rc / 0.1.6-alpha builds this plugin was checked against one by one — those have to be listed, since the umbrella starts above them — keep naming every build it has since diffed (0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, 0.2.0-rc.2, 0.2.1-alpha.1) for the record, and close with an uncapped >=0.1.7-alpha.1, so every 0.1.7, 0.2 and later release loads. The uncapped umbrella is the deliberate choice: from 0.1.7-rc.1 the host enforces exactly this peer list — a release it does not name is disabled before a single module is imported — so a range that runs out is a wall in front of a plugin that would have gone on working. An unseen release gets the closest verified adapter plus a log line saying how far from exact that is, and the worst a stale guess can cost is one slider no longer fading a surface the host has since moved; a version check that failed closed would have cost the whole plugin. dsh.compatibility.dshReleases records which builds were checked and how: 0.1.7-rc.1 / 0.1.7-rc.2, 0.2.0-rc.1 / 0.2.0-rc.2 and 0.2.1-alpha.1 were checked by diffing their tags, the builds before them hands-on. That enforcement still means a dsh web restart when the plugin is installed or updated — the check runs while the profile is composed, not when the plugin is updated — but the uncapped umbrella is what spares a machine that has already moved to a newer host from needing a plugin release or a manual exact-version exemption (dsh plugin allow-version) first. The host release is resolved on the Node half at runtime, and features that depend on a specific host release channel (the right Sidebar's panel blur, the official Sidebar's "Theme" card) enable themselves only where the corresponding host structure exists; everything else behaves identically across the range.ctx.profileContext.installAnchor, with the launcher's on-disk layout behind it — the client context exposes no version) and, once handed down through the read RPC, is routed only by the front-layer adapter — src/host-compat/ detects and buckets channels, while src/client/host-compat/versions/ holds one folder per set of verified facts (v0-1-5-rc-2-3 / v0-1-6-alpha-1-2 / v0-1-7-alpha-1-2-rc-1 / v0-1-7-rc-2 / v0-2-0-rc-1 / v0-2-0-rc-2 / v0-2-1-alpha-1 / unknown), each describing that version's panel mechanics, header slot keys, plugin-page shape and where a menu's paint lives. A folder is keyed to what its facts cover, not to the shape of the version number: 0.2.0-rc.1 and 0.2.0-rc.2 are one prerelease channel, but rc.2 renamed the token a sticky menu group heading paints from, so the line carries two folders and the newer one is named for the build that opened it. Base code just asks the adapter questions (who owns the guide surface, which layer carries the blur, which token fades a menu) and never compares version strings. Another build on a verified patch line (0.1.6-alpha.4 against a table checked at alpha.2) keeps that line's adapter, and a patch line nothing was checked against clamps to the nearest one with a log line saying so — which is the arm that now serves every release above 0.2.1-alpha.1. Only a release that will not parse at all falls into unknown and probes the DOM shape instead of guessing (:has() dual arms); supporting a new host means adding one folder and registering it.dsh is 0.1.5-rc.2, inside the supported range; the mobile UI shell is provided by dsh-web-mobile.package.json declares dsh.bundle.patch: ./cordis.patch.yml (a loader insert layer), the repository ships prebuilt runtime artifacts ready to use (lib/index.js, lib/client.js), and there are no install scripts, no postinstall, no native binaries, and no build step at install time.<dsh home>/.dsh-any-background-data/ (config JSON, wallpaper, rotation pool, video, font) and touches nothing outside it; config writes are atomic (temp file + rename). These files live on the real disk, so they are outside generation restore — it neither captures nor rolls them back; deleting the directory is a full plugin reset.child_process, no native modules, no dynamically downloaded executables./dsh-any-background/{video,wallpaper,font} (GET/HEAD streaming) with matching */upload POST routes (100 MB cap) and the dedicated RPC channel /dsh-any-background under the local dsh web server; no extra listening ports.dsh web to load the client bundle; settings changes afterwards apply live and persist automatically. Updating the plugin requires a restart to pick up the new lib/client.js.pnpm run typecheck (full tsc check) and pnpm run bundle (tsdown emits lib/); no automated unit tests — behavior is verified manually.[data-sidebar-right-panel], [data-dsh-bottom-panel], …) and CSS token names; a host restyle of those layers can leave a slider ineffective for its surface (cosmetic only — nothing breaks). The version-specific half of those selectors lives inside its own version folder, so a host revision normally means editing that one file. -webkit-text-stroke may clip about 1px at the edge of some single-line ellipsis containers.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: dsh-better-sidebar。