Repository navigation
Replies: 7 comments 9 replies
|
macOS 上独立复现,补充一份验证数据,并对主帖里 环境:macOS 27.3、Node v26.13.1、npm 11.20.0 安装本身是成功的(exit 0,changed 667 packages),之后 补充一:今天做“干净重装”也修不好。 我直接下载 registry 上的 tarball 核对,不只是本地副本: 所以卸载重装 alpha.1 仍会拉到同一个旧 1.1.0,必须由发布侧 bump 重发 vendor 包 补充二:回滚路径已实测可用。 补充三(对主帖的修正):至少在 |
|
补充一例 Windows x64 独立复现。
实际解析到 Loader 1.1.0。另取 npm registry 的 1.1.0 tarball 核对,SHA-512 与 registry 一致,发布物确实缺这个导出。这样 Windows 和楼上的 macOS 都复现到了同一个 ESM 链接错误。 |
|
补充一例 Linux x64 生产环境自动化升级流程中的独立复现与验证数据。 环境:
执行流水线证据:
至此,macOS、Windows、Linux 三大主流平台全部在 ESM 阶段确定性复现该致命错误。建议发布侧在 bump 并补发 |
|
确实,以上说的都对,确实升级到刚发布的版本遇到了,现在在回退。 |
|
本地重新打包修复并正常启动后依然用不了,会话序列化检查一直报错,新旧会话都一样 |
|
更新: npm uninstall -g @deepseek-ai/dsh
npm i -g @deepseek-ai/dsh@0.2.3-alpha.2我这边 Linux x64 / Node 24.22.3,从 alpha.1 升到 alpha.2 后 |
|
SiriLee's update is right, and I measured the same thing. Two pieces it does not cover, both cheap to check and both likely to bite someone reading this later. 1. The Node requirement is a narrowing, and the numbers matter. Comparing the three releases on the registry: So alpha.2 does not merely "adjust" it — it drops everything from 24.9.0 up to 24.22.2, and all of Node 25.x. The Windows reproduction earlier in this thread ran on v24.19.0 and v24.21.0, both of which are now outside the declared range: that reporter needs Node ≥24.22.3 before alpha.2 is even nominally supported. And it is advisory, not enforced. I booted alpha.2 on node v26.5.0 — below its own declared floor of 26.13.1 — and 2. The second nest is closed on the registry now, not just locally. When the loader was rebuilt by hand, the next failure was npm's For completeness, the loader fix confirmed from the tarballs rather than from behaviour: Still worth restating for whoever scrolls to the bottom: The one thing in this thread that this does not explain is the session serialization check still failing after a local repack — a vendor repack does not touch the session codec, so I read that as its own defect, and I have not reproduced it. |
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
@deepseek-ai/dsh@0.2.3-alpha.1可以安装,但任何dsh命令(dsh --version、dsh --help、dsh web等)都在启动时失败:失败发生在 CLI 分派命令之前:入口加载
dsh-app-boot时就做了 ESM 链接,此时已经因为缺失导出而中止,所以不是某一个子命令的问题,而是整条启动路径不可用。这不是依赖版本缺失,而是 同版本旧内容:alpha.1 的
dsh-app-boot按新版 loader 源码构建,需要EntryValidationError/formatIssues/relocate/validateOptions;npm 上~1.1.0解析到的@deepseek-ai/cordis-plugin-loader@1.1.0仍是 2026-11-04 的旧构建,没有这些导出。loader 源码在 2026-11-13 已更新,但vendor/loader/package.json的版本仍是1.1.0,没有 bump,发布流程不会重发同一个版本。@deepseek-ai/cordis-plugin-include是同一模式:源码已改为yaml+parseEntryYaml/stringifyEntryYaml,npm 上 1.1.0 仍是 11-04 的旧构建。当前第一个报错是 loader,不等于 include 没问题,建议一并检查。复现
node -v # v24.18.0 npm i -g @deepseek-ai/dsh@0.2.3-alpha.1 dsh --version dsh --help dsh web三个命令都是同一个错误:
Registry 证据
@deepseek-ai/dsh@0.2.3-alpha.1声明:npm 上 loader 的实际情况:
cordis-plugin-loader@1.1.0的实际导出:缺少
EntryValidationError、formatIssues、relocate、validateOptions。alpha.1 的源码:
vendor/loader/src/config/utils.ts已定义上述导出;1ae70efcde chore(cordis): sync loader 1.0.0-rc.9 and include 1.2.0,2026-11-13 16:45 +0800;vendor/loader/package.json在 rc.5 和 alpha.1 两个 tag 里都是1.1.0,没有 bump;时间线:
cordis-plugin-loader@1.1.0发布EntryValidationError等dsh-v0.2.3-alpha.1tagdsh@0.2.3-alpha.1发布也就是说 npm 上的 1.1.0 比 alpha.1 依赖的源码早了 9 天;
~1.1.0能解析,但内容不对。发布检查建议
和 #11984 的“精确 pin 的版本不存在”不同,这次
1.1.0存在且可解析,所以“每个依赖都能npm view到”这类存在性检查会通过;release:verify-packed-install只装本地 tarball,也会通过。问题在安装之后才暴露。建议补的是“同版本内容一致性”:
<name>@<version>的dist.integrity/ 导出 smoke test;同版本内容不同就失败。建议修复
任选其一即可解除当前 alpha 渠道:
@deepseek-ai/cordis-plugin-loader和@deepseek-ai/cordis-plugin-include发1.1.1(或1.2.0);~1.1.0会接受1.1.1。@deepseek-ai/dsh@0.2.3-alpha.2(或重新打 alpha tag),确保干净安装解析到新 vendor 版本。cordis-plugin-include,避免修完 loader 后在 profile/YAML 阶段再撞一次。用户侧临时绕法
继续留在
0.2.2-rc.5:修复后要干净重装,不要原地升级(否则
dsh/node_modules里的旧 1.1.0 可能继续被复用):验证 loader 是否已带新导出:
All reactions