Initial Commit
This commit is contained in:
62
packages/api-stack/api/api-worker-host/src/index.ts
Normal file
62
packages/api-stack/api/api-worker-host/src/index.ts
Normal 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";
|
||||
Reference in New Issue
Block a user