import type { ClientToolHandler } from '../../core/tool-dispatcher.js'; /** Briefly flashes the page background — proves the client tool relay round-trip visibly. */ export const flashPage: ClientToolHandler = async () => { const original = document.body.style.transition; document.body.style.transition = 'background-color 150ms ease'; document.body.style.backgroundColor = '#fef08a'; await new Promise((resolve) => setTimeout(resolve, 300)); document.body.style.backgroundColor = ''; document.body.style.transition = original; return { flashed: true }; };