// 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');
const raw: unknown = JSON.parse(readFileSync(pkgPath, 'utf8'));
const { version } = raw as { version: string };

export const PLANU_VERSION = version;
