{"agent":"claude","input":"Add a database webhook to this Supabase app so my server is notified when a todo is created or marked done. Read supabase/config.toml, every migration, the Next.js app's supabase client files, its API routes and its env template first. Write one migration that enables pg_net, creates a todo_events table readable only by service_role, defines a security definer trigger function with an empty search_path that reads the webhook URL and secret from Vault, posts type, table, record and old_record as JSON with a bearer Authorization header and a short timeout, and records the request; attach it as an after insert or update of done trigger on todo_list. Create the Vault secrets only if absent with placeholder values and say in the pull request how to set the real ones. Add a Next.js route handler that verifies the bearer token in constant time, marks the delivery in todo_events through the admin client, and returns 204 or 401; add the secret to the env template and regenerate the database types. Install Docker, start the local stack, reset the database to apply every migration, lint it, write a pgTAP test for the trigger, the function's security settings, the table's grants and the queued request, and run it. Build and lint the Next.js app. Open a pull request that says no delivery to a real server was made.","resources":[{"url":"https://github.com/your-org/your-app"}]}