feat(webworker): browser worker host runtime and the vfs image packer

Two private experimental packages run the whole harness tree inside one
dedicated Web Worker. dsh-experimental-webworker-runtime owns the in-memory
VFS (BigInt stats with per-path identity and strictly increasing mtimes),
the CommonJS wrapper loader over a lazily-evaluated builtin table whose
shims typecheck against Node's own module types, the postMessage tunnel
speaking plain HTTP, the AsyncLocalStorage runtime, and the worker
assembly. dsh-experimental-webworker-packer lowers every module body at
pack time against the shared wrapper contract, sweeps the profile closure
by static reachability, and writes a deterministically gzip-compressed tar
the worker inflates through the browser's native DecompressionStream while
it downloads.
This commit is contained in:
imccyu
2026-08-21 20:35:32 +08:00
parent b150a551b8
commit f47b1ecac2
113 changed files with 13126 additions and 47 deletions
+1
View File
@@ -263,6 +263,7 @@
{ "path": "./packages/test-support/acp-snapshot" },
{ "path": "./packages/test-support/loader-smoke" },
{ "path": "./packages/test-support/llm-mock-server" },
{ "path": "./packages/experimental/webworker-packer" },
{ "path": "./packages/subagent/subagent" },
{ "path": "./packages/subagent/tool-subagent" },
{ "path": "./packages/subagent/tool-subagent-control" },