mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
client-hmr is a normal plugin package composed into dev graphs only. It listens on /plugins/events and reloads one plugin per rebuilt frame, serialized: invalidate, prefetch (fresh factory registers while the old fiber still serves), registry.delete before touching the fiber, drain disposers, drop owned style tags, entry.refresh(), fiber.await() loud. Dependency cascade costs zero client code — fiber activation epochs re-load dependents through cordis itself. Reload is coarse by design; no rollback in v1; self-reload works with a frame gap the next rebuild heals. scripts/dev-web.ts (pnpm run dev:web) is the convenience watch-build: it discovers its package list by scanning packages/*/*/package.json for dshClient platform "web" at startup — no hardcoded roster — and talks no protocol to the host. Gate bookkeeping rides along: knip entries for the new packages, README model-experience allowlist rows.
10 lines
391 B
TypeScript
10 lines
391 B
TypeScript
/**
|
|
* HMR plugin, node half. The package IS a dshClient plugin (dev-only row in
|
|
* the host graph): the reload driver lives in its client half in full
|
|
* (src/client/); the empty apply exists so the plugin appears in the host
|
|
* Loader (lifecycle governance + dshClient discovery).
|
|
*/
|
|
|
|
/** Host plugin body — no host-side behavior for the HMR plugin. */
|
|
export function apply(): void {}
|