tarlatan
    Preparing search index...

    Function level

    • A window's level in points: the period's highest reading plus the points of every grant in counting for window. It filters grants by window only, so the caller passes one provider's grants (pace does).

      Parameters

      • period: WindowPeriod
      • counting: readonly {
            grantId: string & Brand<"GrantId">;
            points: number;
            provider: "claude" | "codex";
            window: "fiveHour" | "weekly";
        }[]
      • window: "fiveHour" | "weekly"

      Returns number