[Bug] dsh plugin add @deepseek-ai/dsh-headless 在新建 profile 上必失败:依赖包未发布到 npm #1068
ciceroyang
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
环境
复现步骤
dsh plugin --profile report add ./some-local-plugindsh plugin --profile report add @deepseek-ai/dsh-headless实际结果
pnpm 报错:
@deepseek-ai/dsh-code-runtime-worker is not in the npm registry, or you have no permission to fetch it.根因
@deepseek-ai/dsh-headless依赖@deepseek-ai/dsh-code-runtime-worker,后者未发布到 npm(npm view 返回 404 已确认)。影响
用户无法按官方 docs/user/develop/basic/publish.md 的路径给自建 profile 安装 headless 组合包;只有默认模板生成的 headless profile 可用。这堵死了"自建 profile + headless 跑 e2e/自动化"这条官方文档明示的路径。
Workaround(已实测可用)
使用默认
headlessprofile,通过--patch覆盖层以绝对路径加载本地插件:dsh --profile headless --patch ./my-overlay.yml "task"建议
a) 把
@deepseek-ai/dsh-code-runtime-worker发布到 npm;或b) 在
dsh-headless的 npm 元数据中将其标记为 optionalDependencies 并文档说明该场景。(我在开发社区插件 dsh-report-studio 时踩到这个坑,完整记录见官方讨论区教程帖 #961 的"坑 2"。)
All reactions