DSH Desktop serves profile plugins a prebuilt module surface; for
@deepseek-ai/dsh-session that surface carries the SessionLogOffset *type*
but not the runtime stamp the published npm package also exports. A value
import therefore fails ESM instantiation:
SyntaxError: The requested module '@deepseek-ai/dsh-session' does not
provide an export named 'SessionLogOffset' (lib/index.js:16)
and takes the whole host half down with it -- no /sidebar/api routes
(fs / git / terminal / jobs), so the native Files tab only renders the
'Nothing here can view this kind of content yet' fallback. Reproduced on
DSH Desktop v2.0.9 (DSH 0.1.5-rc.1): dsh-better-sidebar 0.18.1 / 0.19.0 /
0.19.1 all fail this way, while 0.18.0 (no such import) loads.
The brand is compile-time only -- the runtime stamp is an identity
function that asserts a non-negative safe integer, which Array#length
satisfies by construction -- so import the type and cast at the use site,
and pin the rule with tests/host-runtime-imports.spec.ts.