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

@kutlukgit/dsh-ux-example

Example Cordis plugin skeleton for the dsh-ux-plugins monorepo 适合开发者参考插件骨架约定,普通用户用途有限。

패키지
@kutlukgit/dsh-ux-example
호환성
미검증
Cordis peer 범위
^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,破坏性变更可能发生。