Repository navigation
Replies: 13 comments
|
Confirming the same blocker from our side: Working workaround while it's unpublished: install the plugin from a local checkout — |
|
我方确认同样的阻塞:任何依赖 在未发布期间可用的变通方案:从本地 checkout 安装插件—— |
|
这个坑我们实测踩过: 这个包确实没发到 npm(404),dsh-find-plugin 等依赖它的插件会装不上。 这是上游依赖没发布的问题,客户端无解——插件作者得先把依赖发到 npm。排查时看 pnpm 报错里是哪个包 404,就能定位。 这类安装/依赖坑(ERR_PNPM_FETCH_404、dsh-type-meta missing、ERR_REQUIRE_ESM 等)都整理在排错页:https://dshbase.com/troubleshooting/ |
|
Update: |
|
Thanks everyone for confirming and digging into this — really helpful data points. Let me consolidate where we stand: Current state
Action items for the harness maintainers
Community workarounds until then
Would be great to get a maintainer's confirmation on the intended publish policy for the rc trains, so plugin authors know which versions to target. |
|
Thanks @zoahdev for tracking this down. I verified both fixes on the npm registry:
So the remaining action item is only the (optional) publish of |
|
dsh-type-meta 从 npm 缺失阻塞社区插件开发——官方包发布遗漏,rc 期常见(#369 dsh-pty 未发布同族)。 临时:等官方补发布,或本地 link 源码里的包。依赖/发布坑第 3 章有汇总:https://github.com/Electricitysheep/dsh-handbook/blob/main/docs/03-profiles.md |
|
Adding a mechanism note that compounds the dist-tag issue already diagnosed here: even once the stale
So this isn't just "the currently-broken package needs republishing" (true and necessary) — it's that peers shouldn't be installed by pnpm at all here. The architecture's own intent (see the comment above Verified fix — tested on pnpm 9.12.0 / Node 22.23.2, from-source // packages/boot/app-boot/src/profile.ts
const PROFILE_NPMRC = `auto-install-peers=false
ignore-workspace-root-check=true
`
export function initProfile(dir: string, bundles: readonly string[]): void {
// ...existing package.json / cordis.patch.yml / pnpm-workspace.yaml writes...
const npmrcPath = join(dir, '.npmrc')
if (!existsSync(npmrcPath)) writeFileSync(npmrcPath, PROFILE_NPMRC)
}With this in place, Happy to send a PR, but CONTRIBUTING.md notes external PRs aren't being accepted right now, so posting the diff here. |
|
Thanks @rjn32s — this is the missing piece. The dist-tag cleanup only fixed the current train; your point that |
|
@rjn32s 那条机制层根因( 反方向的同一个坑:我们踩的是"
|
| 生效的通道 | 被静默忽略的通道 | |
|---|---|---|
autoInstallPeers(pnpm 9) |
.npmrc |
pnpm-workspace.yaml |
minimumReleaseAge(pnpm 11) |
pnpm-workspace.yaml |
.npmrc |
两个方向都存在,而且两次的失败模式一模一样:不报错,只是安静地用默认值。
所以他提的"由 profile 生成兼容各 pnpm 主版本的 .npmrc"我完全赞成,但建议把理由写得更硬一点:这不是"给旧版本兜底",而是"配置通道本身会随 pnpm 版本迁移,而写错通道时 pnpm 不会告诉你"。 只写一处,无论写哪处,都是在赌用户装的是哪个 pnpm。
还有一层:dsh plugin 用的是 PATH 上的 pnpm,不是它自己控制的
这一点让上面那条更严重。dsh plugin 内部调的是用户 PATH 上的那个 pnpm——也就是说 profile 用哪个版本的 pnpm 初始化、之后又被哪个版本操作,DSH 完全不掌握。
我们的回归为此专门用了一个固定版本的 pnpm shim,因为本机 pnpm 版本和 profile 初始化时的版本不一致会造成假失败(表现是"莫名其妙装不上",而排查方向完全指错)。
对这帖的意义:"我们假设用户用 pnpm ≥10"这个前提在 DSH 这条路上是不成立的——corepack 默认、CI 镜像、各种发行版打包的 pnpm 版本五花八门,而 DSH 只是调用它。所以配置必须写成在所有主版本上都成立的形式,而不是"在推荐版本上成立"。
一个附带建议:把版本探测做进错误里
既然通道会随版本变,那么当 dsh plugin add 失败时,把当时实际用的 pnpm 版本打进报错几乎是零成本、且能省掉大量来回的一件事:
dsh plugin: pnpm install failed (pnpm 9.12.0)
这帖前面几轮排查(dist-tag → dsh-session peer → autoInstallPeers 通道)之所以走了那么久,一部分原因就是大家的 pnpm 版本不同,看到的现象也不同,而报错里没有这个变量。这个社区里有一大类最贵的 bug 都是同一个形状——诊断信息在系统里真实存在过,只是没送到需要它的人手上,pnpm 版本正是这里那条缺失的信息。
边界与利益相关
我们不修 DSH 自家组件——initProfile()、生成的 pnpm-workspace.yaml/.npmrc、发布链都在 DSH 里。上面第一节是我们自己踩过的实测(pnpm 11 上 .npmrc 的 minimum-release-age 不生效);第二节是我们回归装置的做法。我没有在 pnpm 9 上验证过 @rjn32s 那条,我提供的只是"镜像方向也存在"这个独立证据。
利益相关:我维护 pi2dsh,它也是 npm 上的一个 DSH 插件,所以社区插件的安装链路修好了我们也受益——先说在前面。这条不推销:这是发布链和 profile 初始化的问题,装什么插件都不解决。
Uh oh!
There was an error while loading. Please reload this page.
Summary
Following the official guide for publishing a community plugin (bundle package with
dsh.bundlein package.json), I created a standalone repo and tried to install the ecosystem packages with pnpm:pnpm installfails with:Findings
@deepseek-ai/dsh-type-metadoes not exist on the npm registry.@deepseek-ai/dsh-llm@0.0.1-rc.1(likely via one of its many peer dependencies such as dsh-agent).npm installworks around it (loose resolution), but pnpm with strict peer resolution fails. pnpm is the package manager used by the dsh monorepo itself, so many community plugin authors will hit this.auto-install-peersdoes not help, because the package is referenced in the resolved dependency graph.Impact
Anyone building a standalone plugin repo (the officially recommended distribution format) cannot install the SDK packages with pnpm. This blocks community plugin development and publishing.
Suggestion
@deepseek-ai/dsh-type-metato npm (or remove/replace the reference in the rc packages), orThanks!
All reactions