mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
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.
19 lines
603 B
TypeScript
19 lines
603 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
/**
|
|
* The packer ships TWO entries: the library (`index`) and the `dsh-pack-vfs-image`
|
|
* CLI (`bin`), the latter referenced by package.json `bin`. The root tsdown
|
|
* builds only `lib/types/index.js`, so this override adds `lib/types/bin.js`.
|
|
* Declarations come from `tsc -b` (dts: false), matching every package.
|
|
*/
|
|
export default defineConfig({
|
|
entry: ['lib/types/index.js', 'lib/types/bin.js', 'lib/types/invariant.js'],
|
|
outDir: 'lib',
|
|
format: ['esm'],
|
|
platform: 'node',
|
|
target: 'es2024',
|
|
fixedExtension: false,
|
|
dts: false,
|
|
clean: false,
|
|
})
|