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

@kutlukgit/dsh-ux-example

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

Package
@kutlukgit/dsh-ux-example
Compatibility
Unverified
Cordis peer range
^4.0.1
Version
0.1.0
License
MIT
Last updated
Aug 15, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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,破坏性变更可能发生。