Files
deepseek-harness/packages/experimental/webworker-runtime/src/node/external_packages/ripgrep.ts
T
imccyu f47b1ecac2 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.
2026-08-21 20:35:32 +08:00

16 lines
643 B
TypeScript

/**
* `@vscode/ripgrep` stub. The package's only export is the binary path, read at
* module scope by search plugins; the path stays a plain string so construction
* succeeds, and the loud failure comes from the child_process stub when something
* tries to run it.
*/
/** Path the search plugins would spawn; nothing can execute it in a browser. */
export const rgPath = '/dsh/bin/rg'
/** CommonJS interop marker: the worker loader hands `default` to default imports (see ./builtins.ts). */
export const __esModule = true
/** CommonJS default export: the members `require()` hands a caller of this module. */
export default { rgPath }