import fs from "node:fs"; /** --follow-ups 로 받은 JSON 파일(문자열 배열)을 읽는다. 없으면 빈 배열. */ export function readFollowUps(file) { if (!file || file === true) return []; const v = JSON.parse(fs.readFileSync(file, "utf8")); if (!Array.isArray(v) || !v.every((x) => typeof x === "string")) throw new Error(`--follow-ups 는 문자열 배열 JSON 이어야 한다: ${file}`); return v; }