index.ts 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * Browser-only host runtime: the harness Cordis tree inside a dedicated Web Worker.
  3. * @module @deepseek-ai/dsh-experimental-webworker-runtime
  4. */
  5. export {
  6. createAlsRuntime,
  7. type AlsCausality, type AlsRuntime, type AlsSnapshot, type AlsToken,
  8. } from './polyfill/async-context/als-runtime.ts'
  9. export {
  10. parseInboundFrame,
  11. type TunnelAbortFrame, type TunnelInboundFrame, type TunnelOutboundFrame, type TunnelRequestFrame,
  12. type TunnelRequestId, type TunnelResponseChunkFrame, type TunnelResponseEndFrame,
  13. type TunnelResponseErrorFrame, type TunnelResponseFrame, type TunnelResponseHeadFrame,
  14. type TunnelStreamEndFrame, type TunnelStreamErrorFrame, type TunnelStreamItemFrame,
  15. type TunnelStreamOpenFrame,
  16. } from './transport/frames.ts'
  17. export {
  18. DEFAULT_CONDITIONS, requireActiveModuleLoader, setActiveModuleLoader, WorkerModuleLoader,
  19. type Resolution, type StaticModuleFactory, type WorkerModuleLoaderOptions, type WorkerRequire,
  20. } from './module-system/module-loader.ts'
  21. export * as posixPath from './module-system/posix-path.ts'
  22. export { MODULE_PROXIES, MODULE_PROXY_PREFIXES } from './module-proxies.ts'
  23. export { REPLACED_EXTERNAL_PACKAGES } from './node/external_packages/replaced-externals.ts'
  24. export {
  25. createSyntheticExchange,
  26. type RequestListener, type ResponseSink, type SyntheticExchange,
  27. } from './transport/synthetic-http.ts'
  28. export { lowerModuleSource, type LoweredModule } from './compile/transform.ts'
  29. export {
  30. API_PREFIX, SYNTHETIC_HOST, TunnelServer,
  31. type TunnelPort, type TunnelSeams, type TunnelServerOptions,
  32. } from './transport/tunnel.ts'
  33. export { installProcessGlobal, type ProcessShim, type ProcessShimOptions } from './node/globals/process.ts'
  34. export {
  35. createWorkerHost, type WorkerHost, type WorkerHostOptions,
  36. } from './worker-host.ts'
  37. export {
  38. DEFAULT_ROOT, IMAGE_CONFIG_PATH, IMAGE_EMPTY_DIRECTORIES, IMAGE_FILE_NAME, IMAGE_HOME_DIRECTORY,
  39. IMAGE_MANIFEST_PATH, IMAGE_OVERLAY_DIRECTORIES, LOWERING_VERSION, WRAPPER_PARAMS,
  40. } from './image-layout.ts'
  41. export {
  42. parsePreviewFixtureManifest, PREVIEW_FIXTURE_MANIFEST_FILE, PREVIEW_FIXTURE_MANIFEST_VERSION,
  43. type PreviewFixtureManifest, type PreviewFixtureManifestEntry,
  44. } from './fixture-manifest.ts'
  45. export { loadVfsImage, loadVfsOverlay, MemoryVfs } from './storage/memory.ts'
  46. export { inflateImage, inflateImageStream } from './storage/image-gzip.ts'
  47. export { packTar, parseTar, type TarEntry } from './storage/tar.ts'
  48. export { requireActiveVfs, setActiveVfs } from './storage/active.ts'
  49. export {
  50. type VfsDir, type VfsDirent, type VfsEncoding, type VfsError, type VfsFileHandle,
  51. type VfsReadOptions, type VfsStats, type VfsWriteOptions,
  52. } from './storage/types.ts'