DeepSeek Harness · module reference

@deepseek-ai/dsh-client-runtime

Lifecycle of this module across published shells, and the known fix when a plugin requires it.

该模块在各已发布 shell 上的生命周期,以及插件 require 它时的已知修法。

Module history模块历史

@deepseek-ai/dsh-client-runtime
never shipped in any shell module table从未进入任何 shell 模块表

Status状态

never-seeded(15 个已发布 shell 的模块表都没有它)

Known fix已知修法

Migrate to @deepseek-ai/dsh-client-store (in the module table since 0.1.2-alpha.2, exports the same-named createSnapshotStore/defineStore — usually a one-line swap); wrap in try/catch when older shells must keep working (note: falling back to dsh-client-runtime inside the catch is dead code — declaring engines.dsh >= 0.1.2-alpha.2 is cleaner); when declaring, mind npm semver prerelease semantics: literally, >=0.1.2-alpha.2 rejects cross-tuple prereleases such as 0.1.3-rc.x (a comparator only admits prereleases on the same major.minor.patch, and standard semver libs behave exactly so) — if the reader interprets it literally, runtime capability detection (or per-generation multi-track OR ranges) is safer
迁移到 @deepseek-ai/dsh-client-store(0.1.2-alpha.2 起在模块表,导出同名 createSnapshotStore/defineStore,多数情况一行替换);需要支持旧 shell 时 try/catch 兜底(注意:catch 里回退到 runtime 是死代码,更干净的做法是声明 engines.dsh >= 0.1.2-alpha.2);声明时注意 npm semver 预发布语义:字面上 >=0.1.2-alpha.2 会把 0.1.3-rc.x 等跨轨预发布判为不兼容(comparator 只放行同三元组的预发布,标准 semver 库即如此)——若解读方按字面语义,运行时能力探测或逐代际回补多轨 OR 更稳
Fisfzy/dsh-ego-browser — main/v0.8.1 already migrated to dsh-client-store — only the npm publish is missing —— main/v0.8.1 已迁移到 dsh-client-store,只差 npm publishhttps://github.com/Fisfzy/dsh-ego-browser/issues/32
RevolutionLA/dsh-dream-skin — store-first + try/catch fallback; loads fine on >= 0.1.2-alpha.2 —— store-first + try/catch 兜底写法,在 ≥0.1.2-alpha.2 上加载正常https://github.com/RevolutionLA/dsh-dream-skin/issues/47#issuecomment-5601034304
RevolutionLA/dsh-dream-skin — Measured: engines.dsh >=0.1.0-rc.6 judged 0.1.1-rc.x / 0.1.2-rc.x incompatible by standard semver (opposite of the author's intent); the declaration was dropped in favor of runtime detection —— 实测 engines.dsh >=0.1.0-rc.6 被标准 semver 判 0.1.1-rc.x / 0.1.2-rc.x 不兼容(与作者意图相反),最终撤掉声明改运行时探测https://github.com/RevolutionLA/dsh-dream-skin/issues/47#issuecomment-5621165398
npx dsh-why diagnose this exact error in the browser在浏览器里直接诊断这条报错

What it breaks它会导致什么