import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; const __filename = fileURLToPath(import.meta.url); const ROOT = dirname(dirname(__filename)); const __resourcesPath = join(ROOT, '..', 'resources'); export const RESOURCES = { path: __resourcesPath, prompts: join(__resourcesPath, 'prompts'), }; // Canonical path resolver - no more relative path heresy! export const fromRoot = (segments: string[]) => join(ROOT, '..', ...segments); export const resource = (...segments: string[]) => join(__resourcesPath, ...segments);