Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
// Bootstrap
export type { BootstrapSpec, WorkerHost } from "./bootstrap/bootstrap.js";
export { bootstrapWorkerPlugin } from "./bootstrap/bootstrap.js";
// Capability proxies
export type {
CapabilityProxy,
CapabilityProxyMap,
} from "./capability-proxies/capability-proxies.js";
export {
getCapability,
installCapabilityProxies,
} from "./capability-proxies/capability-proxies.js";
// Crash detection
export type {
CrashDetector,
CrashDetectorOptions,
ProcessLike,
} from "./crash-detection/crash-detection.js";
export { installCrashDetector } from "./crash-detection/crash-detection.js";
// Error codes
export type { WorkerHostCode } from "./error-codes/error-codes.js";
export {
WORKER_HOST_CODES,
WorkerHostError,
} from "./error-codes/error-codes.js";
// Lifecycle
export type {
LifecycleReceiver,
LifecycleReceiverOptions,
PluginLifecycleHooks,
WorkerLifecycleState,
} from "./lifecycle/lifecycle.js";
export { createLifecycleReceiver } from "./lifecycle/lifecycle.js";
export type {
CapabilityHandles,
CrashReport,
ErrorEnvelope,
LifecycleAck,
LifecycleCommand,
LifecycleCommandKind,
ManifestEnvelope,
WorkerReadyFrame,
} from "./protocol-extension/protocol-extension.js";
// Protocol extension
export {
capabilityHandlesSchema,
crashReportSchema,
errorEnvelopeSchema,
lifecycleAckErrSchema,
lifecycleAckOkSchema,
lifecycleAckSchema,
lifecycleCommandKindSchema,
lifecycleCommandSchema,
manifestEnvelopeSchema,
workerReadyFrameSchema,
} from "./protocol-extension/protocol-extension.js";
// Testing
export type {
WorkerHostConformanceHarness,
WorkerHostConformanceOptions,
} from "./testing/testing.js";
export { runWorkerHostConformance } from "./testing/testing.js";