#!/usr/bin/env node // iapl-doctor — checks a site against the IAPL team rules and lists every gap with a fix hint // (docs/doctor.md). Static by default: reads files, writes nothing (except a first-seen date in // iapl-doctor.json outside CI). // pnpm exec iapl-doctor → this project, human-readable // pnpm exec iapl-doctor --strict --offline → CI on a new site: any finding fails // pnpm exec iapl-doctor --deep --url http://localhost:3000 // pnpm exec iapl-doctor --json > doctor.json // pnpm dlx --package=@intecion/ipal-kit@latest iapl-doctor → the newest rules // Exit: 0 ok · 1 findings · 2 could not run · 3 a rule crashed. import { dirname, join } from 'node:path' import { fileURLToPath, pathToFileURL } from 'node:url' const pkgRoot = join(dirname(fileURLToPath(import.meta.url)), '..') const { runDoctorCli } = await import(pathToFileURL(join(pkgRoot, 'dist', 'modules', 'doctor', 'cli.js')).href) process.exit(await runDoctorCli(process.argv.slice(2), { packageRoot: pkgRoot }))