import type { PodLearningLoop } from '@podman/shared'; import { BLUE } from './encoding.js'; /** * The continual-learning loop rail: observe → store → predict → outcome → adapt. * The active stage (most-recent activity) gets a pulsing accent bar + ring. */ export function LearningLoop({ loop }: { loop: PodLearningLoop }) { return (

Learning loop

{loop.steps.map((s, i) => { const active = s.status === 'active' || s.key === loop.activeStep; return (

{String(i + 1).padStart(2, '0')} {s.label}

{s.value}

{s.detail}

{i < loop.steps.length - 1 && (

)}
); })}
); }