{"agent":"claude","input":"Add a scheduled cleanup job with pg_cron to this Supabase project and open a pull request. Read supabase/config.toml, every file in supabase/migrations, nextjs/src/lib/types.ts, nextjs/src/app/app/table/page.tsx and README.md first. Write one new migration that enables pg_cron with create extension if not exists, adds public.purge_done_todos(retention interval default '30 days') as a security definer function with an empty search_path that deletes todo_list rows where done is true and done_at is older than the retention and returns the count, revokes execute from anon and authenticated, and schedules it with cron.schedule('purge-done-todos', '0 3 * * *', ...). Leave rows with a null done_at alone and say why in the pull request. Add supabase/tests/purge_done_todos.test.sql with pgTAP assertions for the extension, the job row, a run with a zero retention that removes only an old finished row, and the revoked grant. Regenerate nextjs/src/lib/types.ts with supabase gen types typescript --local. Run supabase start, supabase db reset, supabase test db and a psql query of cron.job, and paste the job row and the test output in the pull request. Do not change existing migrations or the Next.js UI.","resources":[{"url":"https://github.com/your-org/your-app"}]}