// Thin Supabase client for the Palette · Keyword Agent UI. // Uses the UMD build from jsDelivr so we don't need a bundler. // // Global: window.supabase (via the UMD script tag in Keyword Agent.html) // Exposes: window.palette_auth with {client, getSession, signInMagic, signInPassword, // signUpWithInvite, signOut, onChange, waitForSession}. (() => { const SUPABASE_URL = 'https://dfzepihawnsvpxufshbh.supabase.co'; const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRmemVwaWhhd25zdnB4dWZzaGJoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzY4NTUzNDAsImV4cCI6MjA5MjQzMTM0MH0.Mgz5k5OBoNrfOVmOkQ-hTv_tk5excNAOUxC6kHjJLTo'; if (!window.supabase) { console.error('Supabase UMD script missing — add the CDN