kun2-5code/dsh-plugin-template
DeepSeek Harness(dsh)插件入门模板:包含六种插件形态、十四个浏览器界面,以及一个可安装包中的演示斜杠命令。
catalog 简介:A starter template for DeepSeek Harness (dsh) plugins: six plugin shapes, fourteen browser UI surfaces, and demo slash commands in one installable bundle.
安装
dsh-plugin-template/
├── package.json # npm manifest + dsh.bundle / dsh.client declarations + prepare build script
├── tsconfig.json # strict type-check configuration (tsc --noEmit)
├── tsdown.config.ts # build config: Node library (lib/) + client bundle (lib/client.js), self-contained for git-install prepare
├── cordis.patch.yml # bundle config layer: inserts the plugin rows
├── dev/cordis.yml # local dev overlay (points at source; use with dsh web --patch; host half only)
├── docs/
│ └── ui-surfaces.md # where the plugin registers UI + index of every slot (bilingual: ui-surfaces.zh.md)
├── src/
│ ├── index.ts # main plugin: Config + tool + events + effect, config wired through the settings namespace
│ ├── commands.ts # host half: demo slash commands /hello (replies world) and /dsh-demo (custom row)
│ ├── service.ts # optional example: Service provider (disabled by default)
│ ├── hook.ts # optional example: hook permission gate (disabled by default)
│ └── client/ # browser half: one module per UI surface (see docs/ui-surfaces.md)
│ ├── index.ts # client entry: inject + apply, assembles the registrations
│ ├── constants.ts # shared NAMESPACE + DEMO_COMMAND_NAME (keep in sync with package.json name / cordis.patch.yml)
│ ├── types.ts # minimal structural types for ctx services (no @deepseek-ai client imports)
│ ├── styles.ts # one injected <style> with all dtpl-* classes (theme tokens only)
│ ├── config-card.ts # settings.plugin.item: the clickable config card (staged form + status states)
│ ├── sidebar-action.ts # sidebar.footer.action: sidebar-footer button
│ ├── input-dock.ts # conversation.input.dock: strip above the composer (session-scoped)
│ ├── shell-overlay.ts # shell.overlay: frame-wide floating pill
│ ├── header-utilities.ts # conversation.session.header.utilities: right-aligned header badge
│ ├── input-left.ts # conversation.input.left: tool-row control at the left end
│ ├── input-right.ts # conversation.input.right: tool-row control next to send
│ ├── commandview.ts # conversation.chat.commandview: custom row for /dsh-demo
│ ├── general-item.ts # settings.general.item: one preference row in Settings → General
│ ├── plugins-tab.ts # settings.plugins.tab: a new tab in the Plugins page
│ ├── settings-action.ts # settings.action: button in the settings header
│ ├── header-actions.ts # conversation.session.header.actions: session-title action button
│ ├── composer-dock.ts # conversation.composer.dock: strip under the composer card
│ └── assistant-actions.ts # conversation.chat.assistant-actions: per-message button
└── test/smoke.mjs # smoke test on the build output (incl. settings wiring unit test)
把 kun2-5code/dsh-plugin-template 加入你的 DSH 配置(web profile)即可启用。
README
展开完整 README 收起
README 内容为空。
omdsh-dev/DSH-better-sidebar
bowenliang123/dsh-context
omdsh-dev/dsh-genui
Tabbit-Browser/dsh-plugin
omdsh-dev/dsh-notification
RevolutionLA/dsh-dream-skin
ZASENJC/dsh-plugins-store
saya-ch/dsh-mobile