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
+3 -2
View File
@@ -31,14 +31,15 @@ use the name in the middle column. `pnpm exec iapl-doctor` lists what is still o
| Before 1.17.0 | Now | In 1.x |
|---|---|---|
| `ipalKit()`, `IpalOptions` | `iapl()`, `IaplOptions` | both work, same function and type |
| `ipalEnvRules`, `IpalEnvFeatures` | `iaplEnvRules`, `IaplEnvFeatures` | both work |
| `ipalEnvRules`, `IpalEnvFeatures` | `iaplEnvRules`, `IaplEnvFeatures` | both work. Not the same list: `ipalEnvRules()` names the plugin's variables `IPAL_…` (alias `IAPL_…`), `iaplEnvRules()` names them `IAPL_…` (alias `IPAL_…`) — code that filters or maps the rules by `rule.name` keeps working. Constants `COOKIE_SCAN_URL_ENV` / `COOKIE_SCAN_TOKEN_ENV` keep the `IPAL_` values; the new ones are `IAPL_COOKIE_SCAN_URL_ENV` / `IAPL_COOKIE_SCAN_TOKEN_ENV` |
| `ipalT`, `ipalVar`, `IPAL_TOKENS`, `IPAL_BREAKPOINTS`, `IpalTokenName`, `IpalGlobalSlug` | `iaplT`, `iaplVar`, `IAPL_TOKENS`, `IAPL_BREAKPOINTS`, `IaplTokenName`, `IaplGlobalSlug` | both work |
| commands `ipal-kit`, `ipal-doctor`, `ipal-skills`, `ipal-tokens`, `ipal-blocks` | `iapl`, `iapl-doctor`, `iapl-skills`, `iapl-tokens`, `iapl-blocks` | both installed, same programs |
| env `IPAL_IP_HEADER`, `IPAL_NOINDEX`, `IPAL_COOKIE_SCAN_URL`, `IPAL_COOKIE_SCAN_TOKEN`, `IPAL_SEED_ALLOW_FULL`, `IPAL_SEED_ALLOW_PROD_UPDATE`, `IPAL_DOCTOR_TOKEN`, `IPAL_DOCTOR_IMPORT_MAP` (crawler service: `IPAL_CRAWLER_SITES`) | the same with `IAPL_` | `IAPL_…` is read first, `IPAL_…` when it is missing or empty; set one, not both |
| `ipal-doctor.json` | `iapl-doctor.json` | whichever exists is read and written; never keep both |
| `ipal-audit-skip:` lines in `AGENTS.md` | `iapl-audit-skip:` | both read |
| pointer block `<!-- ipal-kit:start -->` … `<!-- ipal-kit:end -->` | `<!-- iapl:start -->` … `<!-- iapl:end -->` | both recognised; `iapl-skills` rewrites the old one in place |
| skills `ipal-<name>` (16) | `iapl-<name>` | `iapl-skills` installs the new folders and removes the 16 old ones by name; a project's own `ipal-…` skill is left alone |
| skills `ipal-<name>` (16) | `iapl-<name>` | `iapl-skills` installs the new folders and removes the 16 old ones by name; a project's own `ipal-…` skill is left alone. A text that still names an `ipal-<name>` skill — the vendored `ext-*` skills say "the `ipal-reference` skill" — means `iapl-<name>` (`iapl-reference`) |
| files `node_modules/@intecion/ipal-kit/bin/ipal-*.mjs` | `bin/iapl*.mjs` | the old files are still there and run the new ones (older skills and CI call them by path) |
| log prefix `[ipal]` | `[iapl]` | changed (a log filter on `[ipal]` needs the new prefix) |
**Not renamed — write them exactly like this, in every project:**
@@ -245,7 +245,8 @@ Opt-in with `iapl({ cookieScanner: true })`; the plugin wires the collection, en
| `sendCrawlWarning({ payload, labels, siteUrl, summary, to })` | `@intecion/ipal-kit` | The warning e-mail through `payload.sendEmail` (the project's mail adapter); never throws. |
| `bearerMatches(header, token)` | `@intecion/ipal-kit` | Constant-time `Authorization: Bearer` check. |
| `COOKIE_CRAWL_SLUG` / `COOKIE_CRAWL_PATH` / `COOKIE_CRAWL_RESULTS_PATH` | `@intecion/ipal-kit` | `'cookie-crawl'` / `'/ipal/cookie-crawl'` / `'/ipal/cookie-crawl/results'`. |
| `COOKIE_SCAN_URL_ENV` / `COOKIE_SCAN_TOKEN_ENV` | `@intecion/ipal-kit` | `'IAPL_COOKIE_SCAN_URL'` / `'IAPL_COOKIE_SCAN_TOKEN'`. |
| `IAPL_COOKIE_SCAN_URL_ENV` / `IAPL_COOKIE_SCAN_TOKEN_ENV` | `@intecion/ipal-kit` | `'IAPL_COOKIE_SCAN_URL'` / `'IAPL_COOKIE_SCAN_TOKEN'` — the variables' names since 1.17.0; read with `readEnv` (falls back to the old spelling). |
| `COOKIE_SCAN_URL_ENV` / `COOKIE_SCAN_TOKEN_ENV` | `@intecion/ipal-kit` | `'IPAL_COOKIE_SCAN_URL'` / `'IPAL_COOKIE_SCAN_TOKEN'` — the names before 1.17.0 (values unchanged; still read by the plugin). |
**Types:** `CookieScannerOptions` (the option), `CookieDeclaration`, `CookieIntegration`, `CookieScanContext`, `CookieFinding`, `CookieFindingSource`, `CookieStorage`, `LocalizedText`, `CookieScanSummary`, `CookieReviewValues`, `CookieDatabaseIndex`, `CookieScanLabels`, `OpenCookieCategory`, `CookieObservation` (a name with `storage` / `domain` for `collectCookieFindings`), `CookieReviewEntryRef` (`applyCookieFindings` `entries`); crawl: `CookieCrawlOptions`, `ResolvedCrawlConfig`, `CrawlResult`, `CrawlObservation`, `CrawlRequest`, `CrawlViolation`, `CrawlIngestSummary`.