(data: BridgeControlData)
| 63 | }; |
| 64 | |
| 65 | function handleFlashElements(data: BridgeControlData): void { |
| 66 | // Briefly highlight elements — used by the chat-canvas bridge |
| 67 | // to show what changed after an agent edit |
| 68 | const selectors = (data as Record<string, unknown>).selectors as string[] | undefined; |
| 69 | const duration = ((data as Record<string, unknown>).duration as number) || 800; |
| 70 | if (selectors) { |
| 71 | flashElements(selectors, duration); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | export function installRuntimeControlBridge(deps: BridgeDeps): (event: MessageEvent) => void { |
| 76 | const handler = (event: MessageEvent) => { |
no test coverage detected