// ========================================================================== // Views: ThreadView (chat + canvas of artifacts), AgentsView (scheduled). // Each view is a real functional component driven by the store. // ========================================================================== // ---- Render a single artifact (type-dispatched) ---- function Artifact({ artifact }) { const { regenerateVariant, setToast } = useStore(); const [selectedVariant, setSelectedVariant] = React.useState(null); switch (artifact.kind) { case 'parsed-files': return ( <>
{briefing.summary}