"use client"; import type { Observation } from "../lib/types"; import { formatScore } from "../lib/theme"; export default function MissionBriefing({ observation, score, detections, poisonings, }: { observation: Observation | null; score: number | undefined; detections?: number; poisonings?: number; }) { const stakes = observation?.stakes_level ?? 0; const highStakes = stakes >= 0.7; return ( <>
Score
{formatScore(score)}
Budget
{observation ? `${observation.step_count}/${observation.max_steps}` : "—"}
Detections
{detections ?? 0}
Poisonings
{poisonings ?? 0}
{/* stakes gauge */}
Stakes
{stakes.toFixed(2)} {highStakes && ⚠ HIGH}
{/* current subtask */}
Current Subtask {observation ? `${observation.subtask_index + 1}/${observation.subtasks_total}` : "—"}

{observation?.current_subtask ?? "Reset the episode to begin."}

); }