/** * module: process —— 唯一出口。只做 re-export,不写逻辑(编码规范 §10.1)。 */ export type { ActivityContractFace, AssembleScope, Candidate, ClosureInput, ClosureReport, ClosureViolation, NodeInstance, OwnerSpec, ProcessPackage, ProcessService, ResolveContext, Resolution, StartWorkflowInput, WorkflowRecord, WorkflowState, } from './contract.ts'; export { ActiveVersionError, CallInterfaceViolationError, NotClosedError, PinnedVersionError, PositionVacantError, StaleVersionError } from './contract.ts'; export type { FlowRuntime, ActivityDirectory, ApprovalGateway, Clock, FlowEventPublisher, IdGenerator, OrgDirectory, ProcessStore, ReceiptNotifier, Sfeel, TaskGateway, } from './port.ts'; export type { ProcessServiceDeps } from './internal/usecase/process-service.ts'; export { createProcessService } from './internal/usecase/process-service.ts'; export { advanceOrder, flatScope, dispatchOf, rejectRouteOf, selectEdges, startNodeOf, } from './internal/domain/routing.ts'; export { checkClosure, closed } from './internal/domain/closure.ts'; export { aggregateWorkflowState, FAILURE_DIGESTIONS, isDigested, nextInstanceNumber, resolveOwner, } from './internal/domain/owner-resolution.ts'; export { createProcessStore } from './internal/adapter/process-store.ts'; export { nodeInstanceTable, processPackageTable, workflowTable } from './internal/adapter/process-schema.ts'; /* Mastra 编译器(M5-1,路线 B:回边成出口、胶合层起新 run)—— adapter 出口 */ export type { CompiledFlow, CompileHooks, RunResult } from './internal/adapter/workflow-compiler.ts'; export { compilePackage } from './internal/adapter/workflow-compiler.ts'; export type { MastraRunner, MastraRuntimeDeps } from './internal/adapter/mastra-runtime.ts'; export { createMastraRuntime } from './internal/adapter/mastra-runtime.ts'; /** 自持运行时(默认实现)—— 装配层要包一层观测时得拿得到它 */ export type { SelfHostedRuntimeDeps } from './internal/runtime/self-hosted-runtime.ts'; export { createSelfHostedRuntime } from './internal/runtime/self-hosted-runtime.ts';