dsh-context v0.4.0
Full TypeScript port — both plugin halves now ship as strict TypeScript.
Changes
src/host.ts: typed fold model (Snapshot/RequestRecord/SurfaceNode/ContextEventRecord), local drift-free service contracts forconnection/sessions/sessionQueryviadeclare moduleaugmentation.src/client.cts: typed client bundle — React types (@types/react),locale/slots/connectioncontracts, typed component props. CJS-flavored so esbuild keepsrequire/module.exportssemantics despitetype: module.tsconfig.json: strict,noEmit,verbatimModuleSyntax— the type system enforces that the client bundle carries no runtime imports.- Build: esbuild transpiles both halves (
npm run build);npm run typecheckadded tonpm test. - Runtime behavior is byte-for-byte equivalent to v0.3.1; all functional tests pass unchanged.
Note: the official
@deepseek-ai/*service type packages publish broken dependency chains on npm (dsh-paths404s), so this plugin declares the exact API surface it consumes instead — zero drift risk against user-installed harnesses.