Skip to content

dsh-context v0.4.0

Choose a tag to compare

@bowenliang123 bowenliang123 released this 14 Aug 11:03
· 37 commits to main since this release

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 for connection/sessions/sessionQuery via declare module augmentation.
  • src/client.cts: typed client bundle — React types (@types/react), locale/slots/connection contracts, typed component props. CJS-flavored so esbuild keeps require/module.exports semantics despite type: 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 typecheck added to npm 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-paths 404s), so this plugin declares the exact API surface it consumes instead — zero drift risk against user-installed harnesses.

📦 npm: https://www.npmjs.com/package/dsh-context