liyown/dshx--packages-create-dshx ↗★ 7
create-dshx
Create a DeepSeek Harness plugin project. 适合插件开发者,用于快速生成包含Host和Client入口的规范项目。
インストール
検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗
ドキュメント
README 全文を読む ↗create-dshx
Create a reproducible DeepSeek Harness plugin project with typed Host and Client entry points.
pnpm create dshx@preview my-plugin
cd my-plugin
pnpm dev
Choose a feature template and an independent Client styling setup:
pnpm create dshx@preview my-plugin --template starter --style css-modules
pnpm create dshx@preview my-plugin --template showcase --style tailwind
pnpm create dshx@preview my-plugin --template starter --style none
startercontains one Host Tool and one localized visible Client Slot. ItsdefineLocale()contribution supplies typedzh/encopy withoutLocaleNamespaceMapdeclaration merging.showcaseadds a Prompt Section, dynamic Prompt Context, Settings contract, typed API, and Runtime Deck Slot. Experimental Conversation APIs are intentionally excluded.css-modulesuses the standard Vite CSS Modules pipeline.tailwinduses Tailwind v4's Vite plugin, CSS-first configuration, adshx:prefix, and omits Preflight so the plugin cannot reset the shared DSH page.noneemits no stylesheet or styling dependency.
Every generated project provides check, build, dev --open, and prepack; prepack runs the offline check and production build through the selected package manager. The initializer refuses to overwrite an existing directory, pins the matching DSHX release, installs the latest verified DSH boundary for local development, and declares the selected providers plus the runtime packages required by the compiled Host. A starter that uses defineLocale() includes the required @deepseek-ai/dsh-client-locale provider edge automatically.
Interactive dependency installation displays an animated status line until the package manager succeeds or fails. The initializer follows the package manager that invoked it (npm create, pnpm create, or Yarn), unless --package-manager explicitly overrides that choice.
Automation
pnpm create dshx@preview my-plugin --yes --no-install
pnpm create dshx@preview my-plugin --package-manager pnpm
--yesdisables interactive questions.--yesdefaults tostarterwithcss-moduleswhen no selectors are passed.--template starter|showcaseselects the feature set.--style css-modules|tailwind|noneselects the styling setup.--installand--no-installexplicitly control dependency installation.--package-manager pnpm|yarn|npmoverrides detection.--cwdselects the parent directory.
Package-manager detection checks the explicit flag, existing lockfiles, the nearest packageManager declaration, the invoking package manager, and available commands on PATH, in that order.
See the DSHX documentation and repository for the full development workflow.
MIT © DSHX contributors.