Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

407 B
Raw Blame
import type { AcceptanceBundle } from '@/services/verify';

type Round = AcceptanceBundle['rounds'][number];

/** A prepared flow remains inspectable until execution starts. */
export const flowPlanPhase = (
  round: { run: Pick<Round['run'], 'flowSnapshots' | 'status'> } | undefined,
) => {
  if (!round?.run.flowSnapshots?.length || round.run.status !== 'planned') return undefined;
  return 'draft';
};