mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-26 18:11:14 +00:00
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
// Internal task registry facade used by runtime modules without exposing public SDK surface.
|
|
import {
|
|
ensureTaskFlowRegistryReady,
|
|
reloadTaskFlowRegistryFromStore,
|
|
} from "./task-flow-runtime-internal.js";
|
|
import {
|
|
ensureTaskRegistryReady as ensureTaskRegistryReadyInternal,
|
|
reloadTaskRegistryFromStore as reloadTaskRegistryFromStoreInternal,
|
|
} from "./task-registry.js";
|
|
|
|
export function ensureTaskRuntimeStateReady(): void {
|
|
ensureTaskFlowRegistryReady();
|
|
ensureTaskRegistryReadyInternal();
|
|
}
|
|
|
|
export function reloadTaskRuntimeStateFromStore(): void {
|
|
reloadTaskFlowRegistryFromStore();
|
|
reloadTaskRegistryFromStoreInternal();
|
|
}
|
|
|
|
export {
|
|
assertTaskCancellationReadyById,
|
|
cancelTaskById,
|
|
createTaskRecord,
|
|
deleteTaskRecordById,
|
|
ensureTaskRegistryReady,
|
|
findTaskByRunId,
|
|
finalizeTaskRunByRunId,
|
|
getTaskById,
|
|
hasActiveTaskForChildSessionKey,
|
|
listFreshTasksForOwnerKey,
|
|
listTaskRecords,
|
|
listTaskRecordsUnsorted,
|
|
listTasksForFlowId,
|
|
listTasksForOwnerKey,
|
|
linkTaskToFlowById,
|
|
markTaskLostById,
|
|
markTaskRunningByRunId,
|
|
markTaskTerminalById,
|
|
maybeDeliverTaskTerminalUpdate,
|
|
recordTaskProgressByRunId,
|
|
resolveTaskForLookupToken,
|
|
isParentFlowLinkError,
|
|
setTaskCleanupAfterById,
|
|
setTaskRunDeliveryStatusByRunId,
|
|
updateTaskNotifyPolicyById,
|
|
} from "./task-registry.js";
|
|
export type { TaskRecord } from "./task-registry.types.js";
|