import type { ArtifactPartProps, PlanToolResult } from "@/src/core"; /** * The probe→teach divider (vision §2 "Two phases, clearly separated"). * * Rendered by the artifact registry wherever the session's plan_init part * sits in the transcript — the plan call IS the transition marker, so the * divider marks the seam: probing above, teaching below. Deliberately quiet: * a hairline rule with a small chip, never a banner. * * Renders null until the tool's output is available AND the init succeeded — * a failed first plan_init must not mark the seam (the retry that succeeds * draws the divider at its own, correct spot). */ export function PlanDivider({ part }: ArtifactPartProps) { if (part.state !== "output-available") return null; const result = part.output as PlanToolResult | undefined; if (!result || result.ok !== true) return null; const nodeCount = result.tree?.nodes?.length ?? 0; return (