import type { ThreadCompactionReason } from "@best-agent/protocol";

export function resolveCompactionTrigger(
  reason: ThreadCompactionReason,
): "auto-budget" | "manual-user" | undefined {
  if (reason === "auto-budget" || reason === "manual-user") {
    return reason;
  }
  return undefined;
}
