Kutlukgit/dsh-ux-plugins--packages-ux-example ↗★ 0

@kutlukgit/dsh-ux-example

示例 Cordis 插件骨架,展示该 monorepo 的插件约定与结构。 适合开发者参考插件骨架约定,普通用户用途有限。

套件
@kutlukgit/dsh-ux-example
相容性
待驗證
Cordis 依賴範圍
^4.0.1
版本
0.1.0
授權
MIT
最近更新
2026年8月15日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

dsh-ux-example

示例插件包 —— 展示本 monorepo 的 Cordis 插件骨架约定。

An example plugin demonstrating the Cordis plugin skeleton conventions used in this monorepo.

结构 Structure

src/index.ts       插件入口:name / Config / inject / apply
src/index.test.ts  vitest 测试

插件按 DSH 官方形状导出 named exports:name、Config(schemastery schema)、inject(依赖的服务)、apply(ctx, config)(注册副作用,卸载自动回滚)。

开发 Development

pnpm test          # vitest
pnpm typecheck     # tsc --noEmit
pnpm build         # tsc → lib/

兼容性 Compatibility

依赖 @deepseek-ai/cordis(peer),DSH 处于 developer preview,破坏性变更可能发生。