// version.ts — reads from package.json at runtime; updated automatically by semantic-release
import { readFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
const pkgPath = join(dirname(fileURLToPath(import.meta.url)), '../../package.json');
let version = '0.0.0';
try {
    const raw = JSON.parse(readFileSync(pkgPath, 'utf8'));
    if (typeof raw === 'object' && raw !== null && 'version' in raw) {
        version = String(raw.version);
    }
}
catch {
    // Fallback to unknown version on parse error
}
export const PLANU_VERSION = version;
//# sourceMappingURL=version.js.map