Replaced by an explicit list of forms only (ten exported names, runtime env names, project file names and marks, commands, skill names, the log prefix, the brand in prose). Package name, import paths, routes, CSS tokens, data attributes, custom keys, context flags, the cookie and kv keys are not touched. package.json keeps the five old bin names beside the five new ones. The old names stop working in this commit and come back as aliases in the next; docs follow. Co-Authored-By: Claude Fable 5.2 <[email protected]>
18 lines
1.0 KiB
JavaScript
Executable File
18 lines
1.0 KiB
JavaScript
Executable File
#!/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 }))
|