The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
import { UlwLoopError } from "./types.js";
export declare const ULW_LOOP_LOCK_TIMEOUT_CODE = "ULW_LOOP_LOCK_TIMEOUT";
export interface StateLockClock {
readonly now: () => number;
readonly schedule: (fn: () => void, ms: number) => {
unref(): void;
cancel(): void;
};
}
export interface StateLockOptions {
readonly timeoutMs?: number;
readonly staleMs?: number;
readonly leaseMs?: number;
readonly heartbeatMs?: number;
readonly clock?: StateLockClock;
}
export declare function withStateLock<T>(lockPath: string, fn: (token: string) => Promise<T>, options?: StateLockOptions): Promise<T>;
export declare function withStateLockSync<T>(lockPath: string, fn: () => T, options?: StateLockOptions): T;
export declare function isStateLockTimeout(error: unknown): error is UlwLoopError;