import { readFileSync } from "node:fs"; import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), ".."); export function loadPromptGuidelines(fileName: string): string[] { const path = resolve(packageRoot, "prompts", fileName); return readFileSync(path, "utf8") .split(/\r?\n/) .map((line) => line.trim()) .filter(Boolean); }