DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-plugin-core-demo

Plugin Core Demo

DSH 插件共享的 UI 基础,提供实时组件预览:设计令牌、常用控件、工作区浏览和通知统一维护——安装后即可在真实宿主环境中预览每个组件。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-plugin-core-demo@0.30.2
README兼容性版本

兼容性与来源证明

Plugin Core Demo 以 dsh-plugin-core-demo 发布,当前版本为 0.30.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.30.2stable
2026/11/4
0.30.1stable
2026/11/4
0.30.0stable
2026/11/4
查看其余 72 个版本收起版本
0.29.2stable
2026/11/4
0.29.1stable
2026/11/4
0.29.0stable
2026/11/4
0.28.0stable
2026/11/4
0.27.0stable
2026/11/4
0.26.0stable
2026/11/4
0.25.0stable
2026/11/4
0.24.0stable
2026/11/3
0.23.0stable
2026/11/3
0.22.1stable
2026/11/3
0.22.0stable
2026/11/3
0.21.0stable
2026/11/3
0.20.9stable
2026/11/3
0.20.8stable
2026/11/3
0.20.7stable
2026/11/3
0.20.6stable
2026/11/3
0.20.5stable
2026/11/3
0.20.4stable
2026/11/2
0.20.3stable
2026/11/2
最新版
0.30.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
3 MB
文件数
8
Surface
web
许可证
MIT
发布源
npm
周下载
5,782
安全扫描
✓ v0.30.2 扫描通过
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
0.20.2stable
2026/11/2
0.20.1stable
2026/11/2
0.20.0stable
2026/11/2
0.19.1stable
2026/11/2
0.19.0stable
2026/11/2
0.18.0stable
2026/11/2
0.17.0stable
2026/11/1
0.16.0stable
2026/11/1
0.15.1stable
2026/10/31
0.15.0stable
2026/10/31
0.14.2stable
2026/10/31
0.14.1stable
2026/10/31
0.14.0stable
2026/10/31
0.13.0stable
2026/10/30
0.12.1stable
2026/10/30
0.12.0stable
2026/10/30
0.11.0stable
2026/10/30
0.10.1stable
2026/10/29
0.10.0stable
2026/10/29
0.9.0stable
2026/10/29
0.8.3stable
2026/10/28
0.8.2stable
2026/10/28
0.8.1stable
2026/10/28
0.8.0stable
2026/10/28
0.7.4stable
2026/10/28
0.7.3stable
2026/10/28
0.7.2stable
2026/10/28
0.7.1stable
2026/10/28
0.6.1stable
2026/10/28
0.6.0stable
2026/10/28
0.5.1stable
2026/10/26
0.5.0stable
2026/10/26
0.4.0stable
2026/10/26
0.3.0stable
2026/10/25
0.2.14stable
2026/10/19
0.2.13stable
2026/10/19
0.2.12stable
2026/10/19
0.2.11stable
2026/10/19
0.2.10stable
2026/10/19
0.2.9stable
2026/10/19
0.2.8stable
2026/10/19
0.2.7stable
2026/10/19
0.2.6stable
2026/10/19
0.2.5stable
2026/10/19
0.2.4stable
2026/10/19
0.2.3stable
2026/10/19
0.2.2stable
2026/10/19
0.2.1stable
2026/10/19
0.2.0stable
2026/10/19
0.1.4stable
2026/10/19
0.1.3stable
2026/10/19
0.1.2stable
2026/10/19
0.0.1stable
2026/10/19

README

dsh-plugin-core-demo

在 真实 DSH 宿主里预览 dsh-plugin-core 的控件与业务组件的插件。

它和库是完全分开的两个 npm 包(库是纯库,只有子路径导出;本包是插件):

包用途
库dsh-plugin-core各插件按子路径引用(/ui /utils /design …)
插件dsh-plugin-core-demo(本包)装进 DSH,宿主内预览

构建

# 在仓库根先构建库(本包引用 ../../dist/)
pnpm run build
# 再构建本包 → dist/index.js(server 壳)+ dist/client.js(预览页 bundle)
pnpm run build:demo

dist/ 与 src/ 一起入库:宿主安装插件时不跑构建脚本。

发布与安装

不要在本目录手跑 npm publish。 本包与核心共用同一个 vX.Y.Z tag,由 .github/workflows/demo-publish.yml 自动发布;版本必须与根 package.json 完全一致 (test/version-sync.test.mjs 与 CI 都校验,不一致直接失败)。

git tag v0.1.3 && git push origin v0.1.3      # 在仓库根:一次 tag 发库 + 本包
dsh plugin --profile web add dsh-plugin-core-demo

装好后:插件列表 → 本插件 → 设置页里的「组件预览」卡片 → 点开即整页预览;也可点侧栏图标。

实现要点

  • client 侧只导出 apply;依赖一律 ctx.inject([...], cb) 内等待(顶层导出 inject 会卡死宿主启动)。
  • 三块注册(sidebar.panellist / main / settings.plugin.item)各自 ctx.inject、自成一块; settings.plugin.item 与 main 的 key 必须 = 包名(宿主机制)。
  • 变量前缀统一用 dshpc,不碰 --dsw-* / --dsh-*(宿主在用); 展示代码直接用 --dshpc-*。
  • 零运行时依赖:不引内部 @deepseek-ai/*,故不声明 schemastery Config。