require('dotenv').config();
const { createClient } = require('@supabase/supabase-js');
const sb = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_KEY);
sb.from('tasks').select('id,title,source,created_at').eq('status','open').order('created_at',{ascending:true}).then(r=>{
  const old = r.data.filter(t => !t.source || !t.source.includes('seeder_v7'));
  console.log('Old tasks to delete:',old.length);
  old.forEach(t=>console.log(t.id,'|',t.source||'no-source','|',t.title.slice(0,50)));
});
