YuZtArt/dsh-plugin-background-browser--packages-starter ↗★ 0

dsh-plugin-starter

提供最小化TypeScript服务插件开发模板 适合准备开发 DSH 插件、需要起始项目结构的开发者,可在模板基础上实现自己的插件。

包名
dsh-plugin-starter
兼容性
待验证
Cordis 依赖范围
4.0.2
版本
0.1.0
许可证
MIT
最近更新
2026年9月16日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YuZtArt/dsh-plugin-background-browser#2849b0d364ee0ae5db74eb89a47cd8371d076b58&path:packages/starter

dsh-plugin-starter

DeepSeek Harness 的最小 TypeScript 服务插件。加载后注册 ctx.dshStarter,提供 greet(who) 方法;配置项 greeting 默认是 Hello。这是开发骨架,不会自动向模型注册工具或添加 UI。

消费方声明 export const inject = ['dshStarter'] 后,在 apply(ctx) 中调用 ctx.dshStarter.greet('DeepSeek')。

从工作区根目录执行 npm run check,然后 npm run pack:starter。通过 dsh plugin --profile plugin-dev add 安装,再用 dsh --profile plugin-dev --dump-config 检查组合配置。

发布前修改包名和 patch 中的模块名,并移除 private: true。完整开发说明见工作区 docs/plugin-development.md。