kun2-5code/dsh-plugin-template
kun2-5code★ 1TypeScript最后同步: 2026-08-16
A starter template for DeepSeek Harness (dsh) plugins: six plugin shapes, fourteen browser UI surfaces, and demo slash commands in one installable bundle.
README 摘要
dsh-plugin-template English 简体中文 A ready-to-run, ready-to-install starter template for DeepSeek Harness ( dsh ) plugins. It demonstrates the six most common plugin shapes in one minimal installable bundle: - Config — Config interface + Schemastery schema; validation and defaults apply at load time (docs) - Tool — ctx.tools.register(defineTool(...)) registers a model-callable tool (docs) - Events — ctx.on / ctx.emit with declaration merging for typed events (docs) - Service — a class-form plugin that provides a service to other plugins (docs) - Hook — a tools/pre-execute permission gate that denies tool calls by config (docs) - Browser half (client) — src/client/ registers browser UI on fourteen surfaces (index: docs/ui-surfaces.md): a clickable config card under Settings → Plugins → Configurable (writes greeting / maxRetries / verbose into the settings document, taking effect live; on a stock harness the card renders a read-only "not exposed" explainer instead of vanishing), a sidebar footer action button, an input dock strip above the composer, a shell overlay pill, a header utility badge, input tool-row buttons (left/right), a custom command row for /dsh-demo , a General settings…
在 GitHub 查看完整 README →