Files
UHD_Media_Tool/packages/tasks/src/index.ts
T

47 lines
1.0 KiB
TypeScript

// @umt/tasks 公开入口:TaskEngine 端口 + OpenWorkflow 实现、任务注册表、outbox 中继、操作账本 fencing
export const PACKAGE_NAME = "@umt/tasks";
export { FencingError, TaskCanceledError, UnknownTaskError } from "./errors.ts";
export {
consoleSink,
createLogger,
type LogLevel,
type LogRecord,
type LogSink,
redact,
silentSink,
type TaskLogger,
} from "./logger.ts";
export {
type AttemptInfo,
assertAttemptToken,
getOperation,
type OpLedgerRow,
type WithAttemptTokenOptions,
withAttemptToken,
} from "./op-ledger.ts";
export {
ENGINE_SCHEMA,
migrateEngineSchema,
OpenWorkflowEngine,
type OpenWorkflowEngineOptions,
signalName,
} from "./openworkflow-engine.ts";
export {
type OutboxEvent,
OutboxRelay,
type OutboxRelayOptions,
type OutboxRoute,
type OutboxRouteFn,
} from "./outbox-relay.ts";
export {
DEFAULT_TASK_LANE,
defineTask,
laneOf,
TASK_LANES,
type TaskDefinition,
type TaskLane,
TaskRegistry,
} from "./registry.ts";
export type * from "./types.ts";