import { Badge } from "@tutti-os/ui-system"; import { InspectIcon } from "@tutti-os/ui-system/icons"; import { registerAgentCustomMentionKind } from "../../custom-mention"; import { browserElementMentionKind, presentBrowserElementMention } from "./browserElementMention"; /** Registers browser DOM references before the first AgentGUI surface mounts. */ export function registerBrowserElementMention(): void { registerAgentCustomMentionKind({ kind: browserElementMentionKind, materializePromptText: (mention) => { const context = mention.scope?.context?.trim(); return context ? `\n${context}\n` : null; }, present: presentBrowserElementMention, renderChip: ({ name }) => ( ) }); }