dsh-session-enhance
DeepSeek Harness Web 插件:待填写(功能一句话)。
功能
- 待填写
安装
npm install # 装 esbuild(devDependency,仅构建需要)
npm run build # src/client.js → lib/client.js
npm run link-profilelink-profile 自动完成:dependencies 加 link: 依赖、dsh.profile.bundles 追加、 profile 里 pnpm install。然后手动重启 dsh web(约定:不自动重启)生效。
目录结构
src/client.js # 浏览器端源码(手写 ModuleLoader 格式,client 插件逻辑所在地)
lib/index.js # 宿主端空 apply(host 插件逻辑写这里,参考 dsh-image-read)
lib/client.js # 浏览器端构建产物(npm run build 生成)
package.json # 三要素:dsh.bundle.patch + dsh.client 声明 + exports["./client"]
cordis.patch.yml # bundle patch:insert 进 profile 插件树
build.mjs # 构建脚本(esbuild)
link-profile.mjs # 链接安装脚本开发参考
- 项目级 skill
dsh-plugin-dev:SKILL.md + references/(manifest 三要素、client half、
paste/reference 链、pnpm 陷阱)。
- 参考实现:
dsh-text-collapse(client 插件完整模板)、dsh-image-read(host 工具插件)、
~/.dsh/profiles/web/node_modules/dsh-chat-timeline(手写 client bundle)。
- DSH 内部 API 权威来源:
/opt/homebrew/lib/node_modules/@deepseek-ai/dsh/(已安装版本)。