
开发 DeepSeek Harness插件
DSH 的 Profile 体系
内置的随附 Profile 主要有这几个(首次使用会自动初始化):
- web:用于浏览器图形界面(dsh web 的别名)。
- headless:用于跑一次性任务,跑完打印结果并退出。
- sdk:用于给 SDK 客户端提供 JSON-RPC 服务。
- sdk-minimal:极简版 SDK 配置。
- acp:用于 ACP(Agent Client Protocol)自动化客户端。
- desktop 本地客户端
如何查看
shell
## Mac下环境命令。
ls ~/.dsh/profiles/
## windows环境命令
dir "%USERPROFILE%\.dsh\profiles\"把插件加载到Web Profile
shell
# pnpm 默认会生成一个 link: 依赖
dsh plugin --profile web add ./dsh-plugin-my-demo
# 加 file: 会真正把包复制到 profile 的 node_modules 里。好处是独立、稳定;坏处是你本地改了源码,装进去的那份副本不会自动更新,需要重新安装或手动同步才能生效。
dsh plugin --profile web add "file:/Users/你/插件目录"这条命令(比如 dsh plugin add)实际上帮你干了这三件事:
- 装插件:把插件安装(或链接)到
~/.dsh/profiles/web/这个运行环境里。 - 挂配置:把插件相关的补丁配置(patch)登记进系统,让它启动时能被加载。
- 改清单:更新
~/.dsh/profiles/web/package.json,把插件的依赖和绑定信息写进去。
查看插件是否加载成功
shell
dsh --profile web --dump-config卸载插件
shell
dsh plugin --profile web remove <插件包名>启动DSH Web端
shell
dsh web
