tecfancy/dsh-dock-host
A client-only host that renders a row of dock buttons above the composer and lets other plugins register into it.
Owns placement so features do not have to: one row of buttons above the composer, the dockButtons registry they register into, the theme tokens, i18n under a dockHost namespace in Chinese and English, an overflow menu for buttons past the visible limit, and the motion. It is deliberately feature-agnostic — it knows nothing about what a button does, and a feature such as a terminal or a files panel registers its own buttons and stops worrying about where they land. The row fills to four visible buttons by default, ordered primary first then by an explicit ascending order, with the remainder behind the overflow menu, so a crowded dock degrades predictably instead of wrapping the composer.
Install
dsh plugin --profile web add @tecfancy/dsh-dock-hostThe README's profile line, which is the one that reconciles dsh.profile.bundles; the npm install @tecfancy/dsh-dock-host line printed just above it is the library form for building against the contract, not a substitute. It follows the official bundle convention and is scaffolded from the author's own plugin framework, so the shape should look familiar if you have read other tecfancy plugins. A smoke-install script is included — node scripts/install-to-profile.mjs --profile web --copy — for testing a checkout without a registry publish.
Compatibility
Node >= 22.19.0, npm 10.9+, and @deepseek-ai/cordis ^4.0.1 as a peer dependency, because the plugin is built as a static Cordis plugin under the client's Feature-Sliced Design layering. It is client-only by construction: the host half registers no tools and no RPC, so no Typert artifacts are generated and none of the harness.handle, host.call or styles.insert builtins are used. No cross-boundary code imports and no direct window or document access, which is what keeps the layering honest rather than aspirational.
Details
- Repo: tecfancy/dsh-dock-host
- Category: Web UI Enhancements
- Stars: 0
- Version: 0.2.1 (npm)
Alternatives
tecfancy/dsh-dock-terminal · frayoshi/dsh-widechat · ai-eks/dsh-docking-layout