@mastra/core
Version:
21 lines • 793 B
TypeScript
import { DurableExecutionFenceError } from './execution-fence.js';
/** One step's observation of its immutable driver's claim. Never renews it. */
export declare class ExecutionOwnershipGuard {
#private;
constructor(options: {
observe: () => Promise<void>;
details: {
agentId: string;
runId: string;
executionId: string;
};
subscribe?: (listener: (error: DurableExecutionFenceError) => void) => () => void;
});
isLost(): boolean;
throwIfLost(): void;
composeSignal(signal: AbortSignal | undefined): AbortSignal;
/** Boundary callers wait for a fresh read, never an earlier periodic read. */
check(): Promise<void>;
dispose(): void;
}
//# sourceMappingURL=execution-ownership-guard.d.ts.map