🎬 Open-source, self-hosted AI agent that runs a YouTube channel end to end: researches topics, writes scripts, generates narration, visuals and video, optimizes SEO, and publishes after your approval, then learns from analytics. Works with Gemini, OpenAI, OpenRouter, DeepSeek and more.
JavaScript ai-agentsautomationcontent-automationcontent-creationcontent-strategygoogle-geminijavascriptnodejsopenaiself-hostedseo-optimizationsocial-media-automationthumbnail-generatorvideo-generationyoutube-apiyoutube-automationyoutube-botyoutube-channelyoutube-shortsyoutube-uploader
fix: clean up mined test recommendation and silence staged scope constant
darkzOGx2ae9e2d9f97a
diff --git a/test.js b/test.jsindex 64b5b25..821fb16 100644--- a/test.js+++ b/test.js@@ -2602,6 +2602,7 @@ class SystemTest {if (results.synced !== 1 || results.skipped !== 1) throw new Error(`syncDueVideos counters are wrong: ${JSON.stringify(results)}`);if (analyzeCalls !== 0) throw new Error('A sync that fetched nothing must not trigger analysis');} finally {+ await db.executeQuery("DELETE FROM learning_recommendations WHERE category = 'audience_demand' AND evidence LIKE ?", [`%${videoId}%`]);await db.executeQuery('DELETE FROM audience_comments WHERE video_id LIKE ?', [`${videoId}%`]);await db.executeQuery('DELETE FROM engagement_insights WHERE video_id LIKE ?', [`${videoId}%`]);await db.close();diff --git a/utils/audience-engagement-service.js b/utils/audience-engagement-service.jsindex b1ba0fd..cb5ef2b 100644--- a/utils/audience-engagement-service.js+++ b/utils/audience-engagement-service.js@@ -1,6 +1,7 @@const crypto = require('crypto');const { Logger } = require('./logger');+// eslint-disable-next-line no-unused-vars -- consumed by postingEnabled() in the reply-posting task, which removes this directiveconst FORCE_SSL_SCOPE = 'https://www.googleapis.com/auth/youtube.force-ssl';const COMMENT_FLAGS = ['question', 'request', 'praise', 'correction', 'spam', 'scam', 'toxic'];const QUARANTINE_FLAGS = ['spam', 'scam', 'toxic'];