Smart Text Input Engine
Behavioral middleware that attaches to text inputs for trigger-based inline references. Host provides popover UI; engine provides detection, coordination, and tokens.
Textarea — @mentions and #resources
Type @ or # after a space. Arrow keys navigate, Enter selects, Escape cancels. Try \@ for a literal @.
ContentEditable — token pills
Same triggers. Tokens render as inline pills with atomic backspace deletion.
Static Token Rendering
Serialized text rendered as visual tokens via SmartTextInputEngine.renderTokens().