SPB Git

Repository Public

index.ts 2.0 KB 40 lines typescript

1/**2 * @aos/kernel — durable execution on Postgres (CONTRACT §2).3 *4 * Every function takes an optional trailing `Kernel` (or `kernel` option); when omitted, the process-wide5 * default kernel is used (created lazily from DATABASE_URL / AOS_DATA_DIR, or set with configureKernel).6 */7export { createKernel, configureKernel, getKernel, closeKernel, withTx, EVENTS_CHANNEL, WAKE_CHANNEL } from './db.js';8export type { Kernel, KernelOptions, NewEvent, Tx } from './db.js';910export { migrate, findMigrationsDir } from './migrate.js';11export type { MigrateResult } from './migrate.js';1213export { createMission, createRun, requestCancel, postOwnerMessage, CreateMissionInput, CreateRunOptions } from './missions.js';14export { resolveWait, expireWaits } from './waits.js';15export type { ResolveResult, WaitActor, WaitRow } from './waits.js';1617export { runWorkerLoop } from './worker.js';18export type { WorkerLoopOptions } from './worker.js';19export { claimRun, heartbeat, releaseLease, DEFAULT_LEASE_MS, DEFAULT_HEARTBEAT_MS } from './lease.js';20export type { ClaimedRun } from './lease.js';21export { executeRun } from './executor.js';22export type { Execution, ExecuteOptions, Outcome } from './executor.js';2324export { listenEvents, readEvents, appendEvent, NOTIFY_MAX_BYTES } from './events.js';25export type { EventSubscription, ListenOptions } from './events.js';2627export { putArtifact, openArtifact, artifactPath } from './artifacts.js';28export type { OpenedArtifact, PutArtifactMeta } from './artifacts.js';2930export { RECONCILE_OPTIONS } from './types.js';31export type { RunContext, StepSpec, StepExec, RunLogic, ReconcileOutcome, KernelHooks, StepBoundary, DailyBudget } from './types.js';3233export {34  KernelError, NonDeterminismError, LeaseLostError, BudgetExhaustedError, StepError, KernelStorageError, WaitNotFoundError,35  isControlError,36} from './errors.js';37export type { BudgetReason, RecordedError } from './errors.js';3839export { canonicalJson, requestHash, idemKeyFor } from './canonical.js';40
Files main
Menu

Theme