新版本动了什么呀? 一更新, build, 整个环境坏掉了, 上周用还好好的. 后悔呀 #5144
Replies: 14 comments 11 replies
|
pnpm run clean |
|
这不是业务逻辑突然坏了,而是 安装/构建产物和源码版本没对齐:api-proxy 还在从 @deepseek-ai/dsh-session、@deepseek-ai/dsh-agent-presets 拉 isJsonValue、InvalidPresetIdError 等符号,但你当前树里这些包的入口已经不再 export 它们(但是或旧 lib/ / node_modules 还在)。 你看先按这个顺序救环境(从轻到重): 确认你跑的是哪一种:全局/npx 安装,还是本地 clone 源码 pnpm run build。 两种修法不同。 本地源码:在仓库根目录清构建缓存后再装再编: 若仍报同样 MISSING_EXPORT,先删各包的 lib/(或文档写的 dist)以及根上的 node_modules,再 pnpm install && pnpm run build。不要混用上周的全局 dsh 二进制去编这周的源码树。 npx / 全局包:不要只「升一个包」。清掉对应 _npx 缓存或重装同一 pinned 版本,避免半新半旧的 @deepseek-ai/dsh-* 拼在一起。 |
|
pnpm run clean |
|
本地源码:在仓库根目录清构建缓存后再装再编: 下面详细错误 $ tsx scripts/build.ts
packages/llm/llm-pi-ai/src/catalog.ts:143:7 - error TS2741: Property '"thinking.budget"' is missing in type '{ 'thinking.enabled': true; 'thinking.effort': true; }' but required in type 'Record<"thinking.enabled" | "thinking.effort" | "thinking.budget", true>'. 143 const CHAT_TEMPLATE_VAR_GATE: Record<PiAiChatTemplateVar, true> = { packages/llm/llm-pi-ai/src/catalog.ts:242:12 - error TS1360: Type '{ readonly supportsStore: "offer"; readonly supportsDeveloperRole: "offer"; readonly supportsReasoningEffort: "offer"; readonly supportsUsageInStreaming: "offer"; readonly supportsFinishReason: "offer"; ... 18 more ...; readonly sessionAffinityFormat: "withhold"; }' does not satisfy the expected type 'Record<keyof OpenAICompletionsCompat, CompatDisposition>'. 242 } as const satisfies Record<keyof OpenAICompletionsCompat, CompatDisposition> packages/llm/llm-pi-ai/src/catalog.ts:267:12 - error TS1360: Type '{ readonly supportsEagerToolInputStreaming: "offer"; readonly supportsLongCacheRetention: "offer"; readonly supportsCacheControlOnTools: "offer"; readonly supportsTemperature: "offer"; ... 4 more ...; readonly supportsToolReferences: "withhold"; }' does not satisfy the expected type 'Record<keyof AnthropicMessagesCompat, CompatDisposition>'. 267 } as const satisfies Record<keyof AnthropicMessagesCompat, CompatDisposition> Found 3 errors. [ELIFECYCLE] Command failed with exit code 2. Error: build: build:lib exited with 2 Node.js v24.18.1 |
|
|
最简单的办法,将deepseek-harness 项目整个删了,重新 git clone ,然后编译就好了, 我就是这样操作修复的,然后你的那些 session 是还在的 |
|
ctrl+alt+t->claude->type 'Help me resolve the runtime issues from the deepseek-harness update while keeping all historical data intact.' |
|
升级翻车这种事,别只赌「环境能修好」——先给自己留退路。你的 sessions/settings/skills 全部在 我处理这类升级问题用 dsh-backup,动手前 10 秒备份,坏了直接还原: dsh plugin --profile web add @xiaoyuyu6420/dsh-backup # 装完重启 dsh web
/backup # 立刻备份一份
/backup restore latest --dry-run # 先预览,确认再真还原两个对本帖场景有用的机制:
要求 DSH 0.1.1-rc.2 或兼容版本(安装时会校验 peer,版本不符会提示);备份默认落在 |
我遇到了同样的问题(在 最可能的链路: 如果问题依旧,欢迎贴出完整构建日志,我再帮你看。 |
|
代码全部删除 重新拉 |
|
上面的方法用完了还是错误 |
|
报错只贴了最后两行—— 如果目标只是"先能用起来",别在源码 build 上耗了,直接装官方构建版,跳过整个 build 环节: npm i -g @deepseek-ai/dsh
dsh web会话、配置、技能都存在 |
|
emmm,dsh会破坏性更新这个事情望周知,人家第一版出来就说了哦 |

Uh oh!
There was an error while loading. Please reload this page.
"isJsonValue" is not exported by "../../core/session/src/index.ts".
╭─[ lib/types/api-proxy.js:14:32 ]
│
14 │ import { isAppendSurfaceEvent, isJsonValue } from '@deepseek-ai/dsh-session';
│ ─────┬─────
│ ╰─────── Missing export
────╯
[MISSING_EXPORT] "InvalidPresetIdError" is not exported by "../../preset/agent-presets/src/index.ts".
╭─[ lib/types/api-proxy.js:20:10 ]
│
20 │ import { InvalidPresetIdError, PresetExistsError, PresetMountError, PresetNotWritableError, resolveSessionPreset, UnknownPresetError, } from '@deepseek-ai/dsh-agent-presets';
│ ──────────┬─────────
│ ╰─────────── Missing export
────╯
[MISSING_EXPORT] "PresetExistsError" is not exported by "../../preset/agent-presets/src/index.ts".
╭─[ lib/types/api-proxy.js:20:32 ]
│
20 │ import { InvalidPresetIdError, PresetExistsError, PresetMountError, PresetNotWritableError, resolveSessionPreset, UnknownPresetError, } from '@deepseek-ai/dsh-agent-presets';
│ ────────┬────────
│ ╰────────── Missing export
────╯
[MISSING_EXPORT] "PresetMountError" is not exported by "../../preset/agent-presets/src/index.ts".
╭─[ lib/types/api-proxy.js:20:51 ]
│
20 │ import { InvalidPresetIdError, PresetExistsError, PresetMountError, PresetNotWritableError, resolveSessionPreset, │ ────────┬───────
│ ╰───────── Missing export
────╯
[MISSING_EXPORT] "PresetNotWritableError" is not exported by "../../preset/agent-presets/src/index.ts".
╭─[ lib/types/api-proxy.js:20:69 ]
│
20 │ import { InvalidPresetIdError, PresetExistsError, PresetMountError, PresetNotWritableError, resolveSessionPreset, UnknownPresetError, } from '@deepseek-ai/dsh-agent-presets';
│ ───────────┬──────────
│ ╰──────────── Missing export
All reactions