import { getPaths } from "yt-dlp-transcript-common/lib/paths"; import { armResearchAutoContinue } from "yt-dlp-transcript-common/controller/researchAutoContinue"; import { createCorpusTools } from "yt-dlp-transcript-mcp/callTool"; import { researchEditor } from "./_researchEditor"; // AN `auto` RESEARCH RUN CONTINUES BY ITSELF (release 28 F1), armed by // instrumentation.ts below the idle gate: the job-end listener and a boot // scan now, the heartbeat's scan from then on. The deps are the report-draft // route's own, so a continuation is the job "Continue into a sweep" posts. // See common/controller/researchAutoContinue.ts. export function armAutoContinue(): boolean { return armResearchAutoContinue( { paths: getPaths(), corpusTools: (source) => createCorpusTools({ source }), researchEditor }, { log: (line) => console.log(line) }, ); }