IAPL rename, review fixes I-1 to I-11

I-1  ipalEnvRules() keeps the IPAL_ rule names (IAPL_ as aliases); iaplEnvRules() the other way round; the IAPL_ value
     is the one checked when both are set
I-2  COOKIE_SCAN_URL_ENV / COOKIE_SCAN_TOKEN_ENV (and the internal SITE_NOINDEX_ENV) keep their old values;
     IAPL_COOKIE_SCAN_URL_ENV / IAPL_COOKIE_SCAN_TOKEN_ENV added
I-3  bin/ipal-*.mjs: five files that run the new ones (1.16's audit skill and CI call them by path); legacy:site checks it
I-4  storage-names sees <SiteProviders … stats> when a JSX prop comes first (the reference layout's shape)
I-5  AGENT.md: a text naming an ipal-<name> skill means iapl-<name> (the vendored ext-* skills)
I-6  leftover text in the skills-current message
I-7  iapl-skills removes the old pointer block when both are in AGENTS.md
I-8, I-11  changelog: the doctor's summary line, IAPL_DOCTOR_STATUS, --strict in CI until the skills are refreshed
I-9  env.md: an empty IAPL_ variable does not switch the IPAL_ one off
I-10 verifyLimit.keyPrefix undefined or empty is 'not given'

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 18:45:36 +01:00
co-authored by Claude Fable 5.2
parent 03452376f9
commit 38b903fcfa
25 changed files with 202 additions and 33 deletions
+12 -1
View File
@@ -5,7 +5,8 @@
* The reference site as it was at a tag (default v1.16.7: `ipalKit()`, `ipal-tokens`, `ipal-doctor.json`, `ipal-*`
* skills, the old pointer block) is unpacked next to the plugin and installed against the plugin built from this
* tree. Nothing in it is changed. Then:
* 1. the old commands run: `ipal-tokens --check`, `ipal-doctor` (no error; the warnings are printed);
* 1. the old commands run, by name and by file path (`bin/ipal-*.mjs`): `ipal-tokens --check`, `ipal-doctor`
* (no error; the warnings are printed); the site's own 1.16 audit skill still finds the tokens command;
* 2. `payload generate:importmap` leaves the committed import map byte for byte as it was;
* 3. `tsc --noEmit`: the old names still type-check;
* 4. a production build with webpack and one with Turbopack.
@@ -80,6 +81,16 @@ results.push(`site of ${tag}, plugin ${installed} from this tree`)
sh('old command: ipal-tokens --check', 'pnpm', ['exec', 'ipal-tokens', '--check'])
results.push('ipal-tokens --check: ok')
// 1.16's own audit skill and CI scripts call the commands by file path
sh('old file path: bin/ipal-tokens.mjs --check', 'node', ['node_modules/@intecion/ipal-kit/bin/ipal-tokens.mjs', '--check'])
sh('old file path: bin/ipal-doctor.mjs --help', 'node', ['node_modules/@intecion/ipal-kit/bin/ipal-doctor.mjs', '--help'], { capture: true })
const audit = sh("the old site's own audit skill (.agents/skills/ipal-audit, --quick)", 'bash', ['.agents/skills/ipal-audit/scripts/audit.sh', '--quick'], { allowFail: true, capture: true })
if (/ipal-tokens not installed/.test(audit.stdout)) {
console.error('[legacy:site] ✗ the 1.16 audit skill no longer finds bin/ipal-tokens.mjs')
finish(1)
}
results.push('old file paths (bin/ipal-*.mjs) and the 1.16 audit skill: ok')
const doctor = sh('old command: ipal-doctor (static, offline)', 'pnpm', ['exec', 'ipal-doctor', '.', '--offline', '--json'], { allowFail: true, capture: true })
let report
try {