IAPL rename: readEnv exported, the MCP server name left as it was, legacy:site needs a database

- readEnv / legacyEnvName exported from the root and /env (a project's own code reads IAPL_* with the IPAL_* fallback);
  the name constants hold the IAPL_ spelling — changelog and env.md say so
- createMcpRoute: the default serverName stays 'ipal-site' (clients see it); the scripted step had changed it
- legacy:site: the builds read the database; the script and PROGRAMISTA say which

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:47:11 +01:00
co-authored by Claude Fable 5.2
parent 926ba4a67e
commit 3d5106bc4a
11 changed files with 20 additions and 7 deletions
+3
View File
@@ -32,6 +32,9 @@ 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()`.
- 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`)