feat(omo-codex): batch 102 (19 files)

This commit is contained in:
YeonGyu-Kim
2026-05-30 19:12:20 +09:00
parent 10e8671b5e
commit 20b0784811
19 changed files with 1596 additions and 0 deletions
@@ -0,0 +1,13 @@
import type { PostCompactClaimResult } from "./persistent-cache.js";
import type { PostCompactPendingKind } from "./post-compact-state.js";
export function claimedPostCompactKind<T extends PostCompactPendingKind>(
result: PostCompactClaimResult,
kind: T,
): T | undefined {
return result === "claimed" ? kind : undefined;
}
export function shouldSkipPostCompactClaim(result: PostCompactClaimResult, recoveryInProgress: boolean): boolean {
return result === "contended" || (result === "not-pending" && recoveryInProgress);
}