dsh-lego-plugin
界面增强 活跃维护

dsh-lego-plugin

XIAOke8698/dsh-lego-plugin

乐高式模块化Web界面可视化插件,支持拖拽拼接各类功能视图组件,无需复杂配置即可快速搭建个性化展示面板,组件可灵活复用按需调整展示内容。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
409 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:XIAOke8698/dsh-lego-plugin
git clone https://github.com/XIAOke8698/dsh-lego-plugin.git
git clone git@github.com:XIAOke8698/dsh-lego-plugin.git
README.md main

dsh-lego-plugin

dsh-lego-plugin banner

Lego-style visualization of DeepSeek Harness (DSH) plugins in the Web GUI.

Each plugin renders as a Lego brick — pure CSS, no external libraries, no
WebGL. Plugins are auto-grouped by module prefix, with 5 switchable themes,
light/dark adaptation, and Chinese/English locale support.

Trademark notice. This project is not affiliated with, endorsed by, or
connected to the LEGO Group. "LEGO" is a trademark of the LEGO Group. The
brick-style appearance is a visual metaphor only.

Visualization only. This plugin does not enable or disable plugins — it
reads the read-only plugin inventory and renders it.

Features

  • Lego bricks — plastic-look 3D bricks (studs, gloss, side shadow); enabled
    plugins are solid, disabled ones are greyed out.
  • Auto grouping — Cordis core / Host services / Client UI / DSH packages /
    Third-party / Local, each on its own baseplate.
  • 5 themes — Classic red, Ocean blue, Neon purple, Forest green, Amber.
  • Status dots — green = mounted, yellow = loading, red = mount failed,
    grey = waiting/unloading.
  • Search + details — filter by name/id; click a brick to see its entry id
    and state.
  • i18n — follows the GUI locale (中文 / English).
  • Light/dark — colors come from --dsw-alias-* theme tokens.

Screenshot

Lego view in Settings → Plugins

Install

Requires a DeepSeek Harness installation with the Web GUI.

dsh plugin --profile web add dsh-lego-plugin

--profile is required and names your run configuration. Use web if you
start the GUI with dsh web (the most common case), headless for the CLI,
or any other name — a missing profile is created automatically. To uninstall:

dsh plugin --profile web remove dsh-lego-plugin

Or install directly from GitHub:

dsh plugin --profile web add github:XIAOke8698/dsh-lego-plugin

Git installs build from source automatically; pnpm may ask you to allow the
package's build script, then re-run the add command.

Usage

Open Settings → Plugins and click the Lego view tab. The same view also
renders inside the latest cordis_run card in the conversation flow.

Development

src/
  index.js          host half (Loader entry)
  client/index.js   browser half — the whole feature
scripts/
  build-client.mjs  zero-dependency build (Node only)
node scripts/build-client.mjs
node --check lib/client.js

License

MIT