@oss-autopilot/core - v3.42.2
    Preparing search index...

    Function checkImplementationClaim

    • Check whether an implementation claim may start (#1856): at most maxConcurrentImplementations implementations run at once (0 = no cap), and no two live implementations share a checkout (the same directory on the same machine; see isSameCheckout). A claim already held on the same item is being renewed or taken over, so it never blocks itself. Returns null when the claim may proceed.

      Parameters

      • claims: readonly KnownKeys<
            {
                branch?: string;
                expiresAt: string;
                finishedAt?: string;
                host?: string;
                kind: string & {}
                | "implementation"
                | "pr";
                machineId?: string;
                runId?: string;
                session: string;
                startedAt: string;
                status: "finished" | "running" | string & {};
                url: string;
                worktree?: string;
                [key: string]: unknown;
            },
        >[]
      • next: { url: string } & CheckoutLocation
      • maxConcurrentImplementations: number
      • nowMs: number = ...

      Returns ImplementationClaimConflict | null