今天拉去最新代码后,重新安装构建,运行后抛出 '@deepseek-ai/dsh-llm' does not provide an export named 'CallId' 错误 #4827
|
$ node --import tsx/esm apps/cli/src/bin.ts "web" Error: dsh: plugin tree failed to load: failed to apply loader entry include (cordis:include): loader entries failed to apply Node.js v25.1.0 |
Replies: 2 comments
|
The deepest ESM cause identifies an out-of-tree plugin compatibility failure, not a failed core rebuild. Both failing rows load from |
|
这个报错的直接根因是代际重命名,修法有现成的双代模式,给撞到的人:
如果你的插件要同时兼容 rc 线和 alpha 线,别按版本号分支,用导出探测做个 shim(我们维护 pi2dsh 做 alpha 升级预检时就是这么过的,双代契约测试在跑): import * as dshLlm from '@deepseek-ai/dsh-llm'
// alpha renamed CallId -> ToolCallId; probe the export, not the version.
export const CallId = (dshLlm as any).ToolCallId ?? (dshLlm as any).CallId我们的 alpha 预检里核证过的其它代际差异(附件重编码到 WebP、user-questions 槽位改 waterfall、web 一次性 launch-token 等)整理在仓库的兼容性记录里,给同样在 alpha 上跑插件的人参考。 |
The deepest ESM cause identifies an out-of-tree plugin compatibility failure, not a failed core rebuild. Both failing rows load from
~/.dsh/profiles/web/node_modules/@a1soyo0/dsh-agy/...and import a runtime value namedCallId.\n\nIn rc.2,@deepseek-ai/dsh-llmexported theCallIdbranded constructor. In alpha.1 (cd5ef814), that runtime brand is namedToolCallId;CallIdis no longer exported. A plugin bundle built against the rc.2 value surface cannot boot under the alpha.1 core closure just because pnpm installed it successfully.\n\nChoose one compatible pair:\n\n- If alpha.1 is required, update@a1soyo0/dsh-agyto a release that explicitly supports alpha.1 /ToolCallId.\n- If this plugin…