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:
co-authored by
Claude Fable 5.2
parent
03452376f9
commit
38b903fcfa
+12
-4
@@ -20,7 +20,12 @@ once there are more than 20.
|
||||
- **Nothing.** Recommended after the update: `pnpm exec iapl-skills` (or the project's `ipal:skills` script) and commit —
|
||||
the skills are named `iapl-*` now; the 16 old `ipal-*` folders are removed by name, a project's own `ipal-…` skill
|
||||
stays, and the pointer block in `AGENTS.md` is rewritten in place.
|
||||
- **A log filter or alert on `[ipal]`:** the log prefix is `[iapl]`.
|
||||
- **A log filter or alert on `[ipal]`, or a script that reads the doctor's output:** the log prefix is `[iapl]`; the
|
||||
doctor's summary line starts `iapl-doctor:` (was `ipal-doctor:`), and its internal status line is
|
||||
`IAPL_DOCTOR_STATUS`. The rate-limit scope of `GET /api/ipal/doctor` was renamed with it (one fresh minute).
|
||||
- **CI that runs the doctor with `--strict`:** until the skills are refreshed it exits 1 with two warnings
|
||||
(`agents-md`, `skills-current`: the skills and the pointer block are older than the plugin) — as after every
|
||||
upgrade. Run `pnpm exec iapl-skills` and commit in the same change as the version bump.
|
||||
|
||||
### Changed
|
||||
- **New names beside the old ones** (the old ones are deprecated and go in 2.0):
|
||||
@@ -32,9 +37,12 @@ once there are more than 20.
|
||||
- **Not renamed:** the package and its import paths, import-map paths, routes `/api/ipal/*`, CSS tokens `--ipal-*`,
|
||||
`data-ipal` hooks, `config.custom.ipal`, `req.context` flags, the `ipal` translation namespace, the header
|
||||
`X-Ipal-Cookie-Crawler`. They change, with a migration path, in 2.0.
|
||||
- The exported name constants `SITE_NOINDEX_ENV`, `COOKIE_SCAN_URL_ENV` and `COOKIE_SCAN_TOKEN_ENV` hold the `IAPL_`
|
||||
spelling. The plugin reads both spellings itself; code of your own that does `process.env[SITE_NOINDEX_ENV]` should
|
||||
call `readEnv(SITE_NOINDEX_ENV)` (new, from `/env` or the root) or `isSiteNoindex()`.
|
||||
- `ipalEnvRules()` still returns its rules under the `IPAL_` names (the `IAPL_` ones as aliases), and the constants
|
||||
`COOKIE_SCAN_URL_ENV` / `COOKIE_SCAN_TOKEN_ENV` keep their values, so code that adapts the rules by name or reads
|
||||
`process.env[COOKIE_SCAN_URL_ENV]` works as before. New: `iaplEnvRules()` (names `IAPL_…`, old ones as aliases),
|
||||
`IAPL_COOKIE_SCAN_URL_ENV`, `IAPL_COOKIE_SCAN_TOKEN_ENV`, and `readEnv` / `legacyEnvName` (from `/env` or the root)
|
||||
for code of your own.
|
||||
- The files `bin/ipal-*.mjs` are still in the package and run the new commands (older skills and CI call them by path).
|
||||
- Docs, the agent guide and the skills use the new names; `AGENT.md` has one table of old and new names
|
||||
("Names: IAPL and ipal-kit").
|
||||
- Audit findings whose titles named a command (`iapl-tokens --check`, "forms in iapl", `IAPL_IP_HEADER in .env.example`)
|
||||
|
||||
+3
-2
@@ -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`.
|
||||
|
||||
|
||||
@@ -398,8 +398,8 @@ token; the results endpoint — the bearer token only, and only for the running
|
||||
| `POST /api/ipal/cookie-crawl` | starts a crawl → `202`; `403`, `409` (one is running), `503` (not configured), `502` (service unreachable — the global says why) |
|
||||
| `POST /api/ipal/cookie-crawl/results` | the service's callback: `Authorization: Bearer <token>`, body = the wire format (`CrawlResult`) → `200`; `401`, `400`, `409` (not the running job) |
|
||||
|
||||
Paths: `COOKIE_CRAWL_PATH`, `COOKIE_CRAWL_RESULTS_PATH`; env names: `COOKIE_SCAN_URL_ENV`,
|
||||
`COOKIE_SCAN_TOKEN_ENV`; global slug `COOKIE_CRAWL_SLUG`.
|
||||
Paths: `COOKIE_CRAWL_PATH`, `COOKIE_CRAWL_RESULTS_PATH`; env names: `IAPL_COOKIE_SCAN_URL_ENV`,
|
||||
`IAPL_COOKIE_SCAN_TOKEN_ENV` (`COOKIE_SCAN_URL_ENV`, `COOKIE_SCAN_TOKEN_ENV` hold the `IPAL_` names from before 1.17.0); global slug `COOKIE_CRAWL_SLUG`.
|
||||
|
||||
### Scanner service on Coolify
|
||||
|
||||
|
||||
+11
-3
@@ -99,9 +99,17 @@ name the same way. `ipalEnvRules` is the old name of `iaplEnvRules` and still ex
|
||||
|
||||
Reading one of the plugin's variables in your own code: `readEnv('IAPL_NOINDEX')` (from `@intecion/ipal-kit/env` or the
|
||||
root) returns the `IAPL_` value, else the `IPAL_` one; `legacyEnvName('IAPL_NOINDEX')` is `'IPAL_NOINDEX'`. The exported
|
||||
name constants (`SITE_NOINDEX_ENV`, `COOKIE_SCAN_URL_ENV`, `COOKIE_SCAN_TOKEN_ENV`) hold the `IAPL_` spelling since
|
||||
1.17.0, so `process.env[SITE_NOINDEX_ENV]` alone no longer sees a variable set under the old name — use `readEnv`
|
||||
(or `isSiteNoindex()`).
|
||||
name constants `COOKIE_SCAN_URL_ENV` and `COOKIE_SCAN_TOKEN_ENV` keep their values (`'IPAL_COOKIE_SCAN_URL'`,
|
||||
`'IPAL_COOKIE_SCAN_TOKEN'`): they are the old names. The new ones are `IAPL_COOKIE_SCAN_URL_ENV` and
|
||||
`IAPL_COOKIE_SCAN_TOKEN_ENV`; read them with `readEnv`, which falls back.
|
||||
|
||||
An **empty** new variable does not switch the old one off: `IAPL_NOINDEX=` beside `IPAL_NOINDEX=1` is still noindex
|
||||
(empty counts as not set, and the old name is read). When a staging copy becomes production, remove the variable
|
||||
under **both** spellings.
|
||||
|
||||
`ipalEnvRules()` and `iaplEnvRules()` are not the same list: the old one names the plugin's variables `IPAL_<NAME>`
|
||||
(alias `IAPL_<NAME>`), the new one the other way round, so project code that adapts the rules by `rule.name` keeps
|
||||
finding the names it was written for. Both accept both spellings in the environment.
|
||||
|
||||
The plugin also reads (outside the preset — add your own rules if you want to validate them):
|
||||
`INDEXNOW_KEY` (seo.md), `IAPL_NOINDEX` (`1`/`true`/`yes` — staging, seo.md), `IAPL_DOCTOR_TOKEN` (≥ 32 characters —
|
||||
|
||||
Reference in New Issue
Block a user