IAPL rename: docs, agent guide, skills, reference site and starter on the new names; changelog draft

- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms);
  past CHANGELOG entries and the proposals in docs/dev are not rewritten
- AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames
- iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required
- env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup
- skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were
- reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:36:09 +01:00
co-authored by Claude Fable 5.2
parent 425fac14fb
commit b91984fbcd
149 changed files with 1930 additions and 1747 deletions
+7 -7
View File
@@ -44,7 +44,7 @@ the path of the deleted document.
Limits (code state, `src/modules/hooks/buildRevalidateHook.ts`):
- **Collections only** — these are collection `afterChange`/`afterDelete` hooks. Globals are
handled by `buildGlobalRevalidateHook` / `ipalKit({ revalidatePath })` — see below.
handled by `buildGlobalRevalidateHook` / `iapl({ revalidatePath })` — see below.
- The slug in the hook is usually a string in the saved locale, so the same slug goes into the path
of every locale (`/pl/o-nas`, `/en/o-nas`); the real address in another locale (`/en/about`) is not
refreshed. A change to a non-localized field (e.g. an image) stays stale in other locales until
@@ -59,7 +59,7 @@ migrations — there is no `process.env.NEXT_RUNTIME`. Before, Next threw `Invar
and the seed failed. Deliberate skip (bulk import in the app): `context: { disableRevalidate: true }`
in the Local API call.
### Globals — buildGlobalRevalidateHook / `ipalKit({ revalidatePath })`
### Globals — buildGlobalRevalidateHook / `iapl({ revalidatePath })`
A global (Site settings, Cookie banner, the project's menu) feeds the layout of **every** page — logo, menu,
consent texts, analytics IDs. Without revalidation, ISR pages kept the old values until the end of the
@@ -68,14 +68,14 @@ consent texts, analytics IDs. Without revalidation, ISR pages kept the old value
```ts
// payload.config.ts — the plugin's globals (Site settings, Site integrations, Cookie banner, Notifications)
import { revalidatePath } from 'next/cache'
ipalKit({ …, revalidatePath })
iapl({ …, revalidatePath })
// the project's own global (e.g. a menu)
import { buildGlobalRevalidateHook } from '@intecion/ipal-kit'
hooks: { afterChange: [buildGlobalRevalidateHook({ revalidatePath })] }
```
- With `revalidatePath` passed to `ipalKit()`, the plugin appends the hook itself to `afterChange` of
- With `revalidatePath` passed to `iapl()`, the plugin appends the hook itself to `afterChange` of
`site-settings`, `site-integrations`, `cookie-settings` and `notifications`
(`src/plugin.ts`). Without the option, the plugin's globals are not revalidated.
- The project's own globals (Header/Footer menu etc.) need the hook wired by hand, as above.
@@ -236,7 +236,7 @@ A sync error is logged; the save does not fail.
The text counterpart of `buildCrossLocaleFieldSync`: text saved in one language goes to every
language where that field is still empty; a language with its own text is never overwritten. The
plugin adds it to the cookie list and the cookie review (`ipalKit({ fillEmptyLocales })`, consent.md).
plugin adds it to the cookie list and the cookie review (`iapl({ fillEmptyLocales })`, consent.md).
On your own global or collection:
```ts
@@ -298,8 +298,8 @@ setPublishedAt; everything with a URL: revalidate + slugHistory; Pages: + preven
## Turn off, override, extend
- The plugin does not wire these collection hooks itself (exceptions: `seo` → meta auto-fill, `indexNow` → the IndexNow hook) — you add each one in the project's collection, so turning one off = not adding it.
- Global revalidation: the plugin adds `buildGlobalRevalidateHook` to its own globals only when you pass `ipalKit({ revalidatePath })`; leave the option out to turn it off.
- `globalOverrides` (`ipalKit({ globalOverrides: { 'site-settings': …, 'site-integrations': …, 'cookie-settings': …, notifications: … } })`): an object merges over the plugin's global — `access`, `admin` and `hooks` key by key (your access rules win, your hooks run after the plugin's), any other key replaces the plugin's value; a function gets the plugin's global and returns the one to use (full control, e.g. drop the plugin's revalidate hook, add `buildValidateUniqueRole` to the role fields, or use `revalidateTag`).
- Global revalidation: the plugin adds `buildGlobalRevalidateHook` to its own globals only when you pass `iapl({ revalidatePath })`; leave the option out to turn it off.
- `globalOverrides` (`iapl({ globalOverrides: { 'site-settings': …, 'site-integrations': …, 'cookie-settings': …, notifications: … } })`): an object merges over the plugin's global — `access`, `admin` and `hooks` key by key (your access rules win, your hooks run after the plugin's), any other key replaces the plugin's value; a function gets the plugin's global and returns the one to use (full control, e.g. drop the plugin's revalidate hook, add `buildValidateUniqueRole` to the role fields, or use `revalidateTag`).
- Skip revalidation per call: `context: { disableRevalidate: true }`.
- Configurable: `homeSlug` (revalidate), `settingsSlug`/`roleFields` (preventDelete), `siblingFields` (unique role), `arrayField`/`guardFlag`/`fields` (cross-locale sync).
- Fixed: the field name `slugHistory` in `trackSlugHistoryHook` and `publishedAt`/`_status` in `setPublishedAtHook` — other names need your own hook.