// Stage 01 — tokenization. // Shows the raw prompt breaking apart into token chips with integer IDs. // Active token (the one currently being processed) glows amber. function StageTokenize({ tokens, activeIdx, progress, active, onExplain }) { return (
{tokens.length === 0 && (
waiting for prompt…
)} {tokens.map((t, i) => { const isActive = active && i === activeIdx; const isPast = active && i < activeIdx; const tokLabel = t.text.replace(/ /g, '␣'); return (
{tokLabel}
#{String(t.id).padStart(5, '0')}
); })}
); } window.StageTokenize = StageTokenize;