UI 增强
dsh-web-ui:右侧面板 + 皮肤中心 + 任务看板
早期生态增长最快的 UI 合集:向 Web UI 注入右侧面板、皮肤中心、Git 图和 token 统计。
配置片段
# 装进 web profile 并重启
dsh plugin --profile web add github:zhu1090093659/dsh-web-ui
npx @deepseek-ai/dsh web这是典型的 github:owner/repo 安装——插件仓库自带 bundle,不需要 npm 包。
核心代码
值得偷师的模式是不改内核的面板注入:插件在 ctx 上注册 UI 能力,web 客户端启动时发现它们,把面板、皮肤中心、Git 图和 token 统计挂成一等公民组件。
export function apply(ctx, config) {
// 注册 web 客户端在右侧栏渲染的组件
ctx.ui.registerPanel('tasks', { title: 'Task board' });
ctx.ui.registerPanel('git', { title: 'Git graph' });
ctx.ui.registerSkin(config.skin ?? 'default');
}为何高分
- 增长信号:公测数天内从 900+ 涨到约 1868 star。
- 覆盖面:任务看板、Git 图、token 统计、皮肤中心一包打尽。
- 启示:UI 插件是差异化的最快路径——而且完全不碰内核。