You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: migrate cron routes to Sanity config singletons
Ingest route: ENABLE_NOTEBOOKLM_RESEARCH, quality threshold, system
instruction now read from pipeline_config and content_config singletons.
Check-research route: stuck thresholds, quality threshold, system
instruction now configurable via Sanity.
Check-renders route: audited, no tweakable config (Remotion/ElevenLabs
config is in service layer).
All values use getConfigValue() with existing hardcoded values as
fallbacks for graceful degradation.
Co-authored-by: research <research@miriad.systems>
constSYSTEM_INSTRUCTION=`You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
495
+
// SYSTEM_INSTRUCTION fallback — used when content_config singleton doesn't exist yet in Sanity.
496
+
// The live value is fetched from getConfigValue() inside stepEnriching().
497
+
constSYSTEM_INSTRUCTION_FALLBACK=`You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
485
498
486
499
Your style is inspired by Cleo Abram's "Huge If True" — you make complex technical topics feel exciting, accessible, and important. Key principles:
487
500
- Start with a BOLD claim or surprising fact that makes people stop scrolling
@@ -813,7 +826,8 @@ export async function GET(request: NextRequest) {
813
826
constresults: StepResult[]=[];
814
827
815
828
// Phase 1: Stuck detection — runs FIRST, no external API calls
constSYSTEM_INSTRUCTION=`You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
115
+
// SYSTEM_INSTRUCTION fallback — used when content_config singleton doesn't exist yet in Sanity.
116
+
// The live value is fetched from getConfigValue() inside the GET handler.
117
+
constSYSTEM_INSTRUCTION_FALLBACK=`You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
115
118
116
119
Your style is inspired by Cleo Abram's "Huge If True" — you make complex technical topics feel exciting, accessible, and important. Key principles:
117
120
- Start with a BOLD claim or surprising fact that makes people stop scrolling
@@ -330,10 +333,11 @@ async function createSanityDocuments(
0 commit comments