Files
ipal-kit/docs/agent/skills/ipal-upgrade/SKILL.md
T
Radosław SmolińskiandClaude Fable 5.2 de8362820f Overrides for Payload's mongoose and happy-dom advisories; doctor rule transitive-min
@payloadcms/db-mongodb pins mongoose 8.24.1 (one critical, two high, two moderate
advisories, fixed by 8.24.7) and @lexical/headless 0.50 brings happy-dom 20.x (two
high, fixed by 21.0.4). Payload 3.93.0 fixes neither.

- reference/package.json (and so the starter): pnpm.overrides for mongoose
  (~8.24.10) and happy-dom (^21.0.4); pnpm audit --prod on the reference is clean
- root package.json: the happy-dom override for the plugin's own dev tree
- ipal-doctor: transitive-min reports mongoose 8.x < 8.24.7 (error) and
  happy-dom < 21.0.4 (warning) from the lockfile and prints the override line;
  DoctorContext.installedAll(name)
- AGENT.md §4 item 12, ipal-setup, ipal-upgrade, doctor.md, README, CHANGELOG

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-17 00:01:58 +01:00

27 KiB
Raw Blame History

name, description
name description
ipal-upgrade Upgrades an existing project to the latest @intecion/ipal-kit and replaces hand-written code that the plugin now provides — proxy, route handlers, consent wrapper, language switcher, rich text parser, form logic, noindex, redirects, env validation, privacy link label, 404 page, CTA field zoo. Use when the user asks to update ipal-kit, migrate an older project, or clean up duplicated logic in a project.

ipal-upgrade

What changed in the version: node_modules/@intecion/ipal-kit/docs/CHANGELOG.md (the "Requires project changes" sections — do all of them). List of changes: …/docs/dev/PROGRAMISTA.md §6. Rule: when the plugin provides something the project has written by hand — remove the local version.

1. Update the package

pnpm add @intecion/ipal-kit@latest
pnpm payload generate:importmap   # new admin panel components from the plugin (e.g. RowLabel)
rm -rf .next

Copy the skills again (AGENT.md §14) — they may have changed. Postgres with migrations: new plugin fields (e.g. privacyLinkLabel) → pnpm payload migrate:create.

1a. AGENT.md §0b set

After the update, a full ipal-audit shows a "missing: …" section — the missing items of the MANDATORY SET (GEO: llms-full, Markdown, MCP; R2; Turnstile through getTurnstileConfig…). Wire each one according to PROGRAMISTA §2 — it is part of the update, not an extra. Skip one only with a client decision in AGENTS.md (ipal-audit-skip:).

1.8.x → 1.9.0 (PROGRAMISTA §6, items 17–21): twoFactor.plugin required; getTurnstileConfig instead of turnstileSiteKey (with both keys set the token is required — check that every form has the widget); clientIp(await headers()) in the form action + IPAL_IP_HEADER in the production env; buildR2Storage wired.

→ 1.9.2 (PROGRAMISTA §6, items 28–33) — import instead of code, start with item 28 (security): a custom FormRenderer passed the Emails tab (company addresses) to the HTML → a block with <RenderForm> + formClasses.ts, remove the renderer. Then: layout → SiteProviders, page and 404 → createPageRoute / createNotFoundPage, GEO routes → re-exports from lib/content, src/fields/section*.ts and lib/navigation.ts → buildSection*Field, resolveNav, resolveLink. Check every item in the browser (form: submission + email; page: 200, 404, metadata). Postgres: migrate:create (new form field types and texts in Notifications).

→ 1.11.0 (PROGRAMISTA §6, items 34–37): remove the workarounds — a copy of publicForm (→ RenderForm values / prepareBuilderForm), manual remotePatterns/dangerouslyAllowLocalIP (→ buildImagesConfig()), conditional storage in ipalEnvRules, a custom product JSON-LD graph (→ pageJsonLd.entries + buildProductJsonLd), a custom RenderBlocks for h1 (→ isFirst). Links to posts: buildLinkField({ relationTo: [...] }) with a data migration.

→ 1.11.1 (PROGRAMISTA §6, items 38–45): remove the workarounds (WORKAROUND ipal-kit comments) — the NEXT_RUNTIME condition around the revalidatePath injected into buildRevalidateHook (a global's own afterChange hook keeps it — ipal-nav), the form focus guard, a custom theme (→ ThemeScript/ThemeSwitcher), a custom table of contents (→ extractHeadings + TableOfContents + headingIds), catching notFound for a redirect (→ onMissing: 'redirectHome'), background colour only for JPEG in <Media>, a custom type instead of CmsLink['appearance'] (→ per-shape types from generate:types: CmsLink, CmsLinkPlain, CmsLinkNoLabel, CmsLinkPlainNoLabel; style: LinkAppearance). Cookie banner: buttons.save → buttons.savePreferences — in migrate:create choose rename for the column to keep the texts.

→ 1.12.3 (PROGRAMISTA §6, item 46): Postgres/SQLite: migrate:create (new Cookie banner group → detailLabels, only new columns — no rename). A custom cookie settings window or a cookie list added to the banner → <CookieBanner settings="detailed"> and remove the copy. With detailed: Cookies → Cookie list filled in (scan, ipal-consent-check) and Detail labels in every language.

→ 1.13.0 (PROGRAMISTA §6, item 47; CHANGELOG "What projects must update" — do all 7, in order):

  1. Project without access (no roles field): every logged-in account can now use the plugin's admin and editor features (Site integrations, settings globals, test e-mail, stats, consent records, forms, form submissions); before, nobody could through the API. Check who can log in (grep -rn "auth:" src/collections, open sign-up, customer accounts). Untrusted accounts → add access (roles), or narrow with globalOverrides, forms.formOverrides / forms.formSubmissionOverrides, consentLog.collectionOverrides, stats.collectionOverrides. Verify: log in as a non-staff account → GET /api/globals/site-integrations is 403.
  2. Project with access: plain user accounts can no longer edit Site settings, Cookie banner, Notifications or forms, or create/delete users. List staff accounts in the panel (Users → Roles) and give them editor / admin, or loosen with globalOverrides, forms.formOverrides.access, access.authAccess. Verify: an editor saves Site settings.
  3. Postgres/SQLite: pnpm payload migrate:create → migrate (Site settings → Search engines: search_verification_*, ai_crawlers_policy, the ai_crawlers_rules table, localized llms_intro). With enabled: false the migration now keeps (or restores) the plugin's tables — check it has no DROP TABLE. MongoDB: nothing.
  4. pnpm payload generate:importmap, pnpm ipal:skills, rm -rf .next.
  5. Behaviour to check (grep the project, fix what applies): getSettings / getSiteShell read at depth: 1 (code that reads a relation of a relation → createContentHelpers({ settingsDepth: 2 })); sitemap() throws at runtime instead of returning [] (sitemapRoute answers 503); a twoFactor.collectionSlug other than admin.user stops startup (allowCollectionMismatch: true); requests without a client IP share one limited bucket (proxy hides the IP → IPAL_IP_HEADER, or setUnknownIpFactor); RenderRichText turns unsafe link URLs into # (safeLinks).
  6. Review the new options with the user (AGENT.md §7.1): consentMode: 'basic', revalidatePath, turnstileHostnames, Site settings → Search engines (verification codes, or keep DNS verification), app/robots.ts → export { getRobots as default } + force-dynamic, createSearchRoute({ …, isPathVisible }), access.firstUserAdmin.
  7. Remove the workarounds: a plugin after ipalKit that adds afterChange or access to the plugin globals → ipalKit({ revalidatePath }) / globalOverrides; a hand-written global revalidation hook → buildGlobalRevalidateHook({ revalidatePath }); consentFieldName passed only because the option was ignored → forms.consentFieldName works now; your own seed guard / upsert code → @intecion/ipal-kit/seed (createSeeder).

Every upgrade — Next.js 16.4.5 or later (AGENT.md §4 item 11): pnpm ls next sharp; below 16.4.5 → pnpm add [email protected] [email protected] sharp@^0.35.5, rm -rf .next, build, redeploy on Coolify (a new image ships the fixed next and sharp). Check: pnpm exec ipal-doctor → no next-min finding; pnpm dev prints no security-upgrade warning.

Every upgrade — dependency advisories (AGENT.md §4 item 12): pnpm audit --prod; with payload 3.90.x add the dompurify, graphql-scalars, happy-dom, mongoose and undici overrides to pnpm.overrides, pnpm install, audit again. MongoDB sites need the mongoose one now: @payloadcms/db-mongodb pins 8.24.1 (up to Payload 3.93.0), which has a critical advisory (GHSA-pcrw-h46h-c93h) and four more, all fixed in 8.24.7:

"happy-dom@<21.0.4": "^21.0.4",
"mongoose@>=8 <8.24.7": "~8.24.10"

Then pnpm install, pnpm build, commit package.json and the lockfile, redeploy on Coolify (the new image ships the fixed packages; no data or schema change, no migration). Check: pnpm audit --prod → no high or critical (the deepmerge low has no fix yet); pnpm why mongoose happy-dom → 8.24.7 or later, 21.0.4 or later; pnpm exec ipal-doctor → no transitive-min finding; the panel opens and a document saves.

→ 1.14.0 (PROGRAMISTA §6, items 48–49; CHANGELOG "What projects must update" — do all 8, in order):

  1. pnpm payload generate:importmap — @intecion/ipal-kit/admin#FaviconCheck (hint under Site settings → Site icon) and the RowLabel entries are injected into every project; then pnpm ipal:skills, rm -rf .next. Check: pick a 32×32 PNG as the site icon → a warning appears under the field; saving still works.
  2. Node.js 20.9 or later (the plugin's nodemailer 10 needs it) — check the Coolify build image and .nvmrc / engines. Remove nodemailer and @types/nodemailer from the project's own package.json if someone added them (the plugin's copy is the one mailAdapter uses). Check: Site integrations → E-mail sending → send a test e-mail over SMTP (and over Microsoft Graph when the project uses it).
  3. Next.js — the "Every upgrade — Next.js" step above (today 16.4.5 or later, sharp@^0.35.5).
  4. Dependency advisories — the "Every upgrade — dependency advisories" step above (dompurify / graphql-scalars / undici overrides on payload 3.90.x). Check: pnpm audit --prod → no high or critical.
  5. Cookie list kept by hand → offer cookieScanner: true (+ crawl: true with IPAL_COOKIE_SCAN_URL, IPAL_COOKIE_SCAN_TOKEN and the site in the service's IPAL_CRAWLER_SITES, cookie-scanner.md); an own image modal → lightbox: true + <SiteProviders lightbox> (PROGRAMISTA item 48). Turning either on → Postgres/SQLite migrate:create → migrate. Without them: no schema change.
  6. Admin languages: English and Polish by default when the project sets no i18n.supportedLanguages. Ask the client; English only → i18n: { supportedLanguages: { en } }. Own admin texts → i18n.translations.<lang>.ipal.
  7. Frontend texts: validator messages are full sentences and pl locales get Polish fallbacks — grep the project's tests and code for the old strings ('required', 'invalid email') and update them.
  8. Sidebar: roles (users) and Cookies → Consent version moved to the sidebar — update editor instructions. Nothing else to change: the statistics tab title, the cookie scanner's integration names and the maintenance notice's close button follow the language by themselves.

→ 1.14.2 (PROGRAMISTA §6, item 51; 2FA setup loop; security.md) — required with 2FA on:

  1. pnpm payload generate:importmap — the plugin swaps @clocklimited/payload-2fa/rsc#TOTPProvider for @intecion/ipal-kit/admin#TotpRedirectProvider; commit importMap.js, rm -rf .next, redeploy on Coolify. Check: log in as a new admin (or a throwaway one) → /admin/setup-totp?back=%2Fadmin with the QR code, no reloading; after the code → back on /admin. A project that wrote its own x-pathname proxy rule for /admin as a workaround can drop it.

→ 1.14.1 (PROGRAMISTA §6, item 50; X-Powered-By, CSP; security.md) — nothing required, recommended in this order:

  1. Hide X-Powered-By — next.config.ts: export default withPayload(withSecurityConfig(nextConfig)) (import withSecurityConfig from @intecion/ipal-kit); remove a hand-written poweredByHeader: false or a header override if the project had one. Check: curl -sI localhost:3000/pl | grep -i x-powered-by → nothing (also on /admin and /api/health).
  2. CSP, report-only first — no CSP yet, or a hand-written one → buildSecurityHeaders({ csp: { mode: 'report-only', reportUri: '/api/csp-report', r2Url: process.env.R2_PUBLIC_URL, <flags for what the site loads> } }), the admin rule { source: '/admin/:path*', headers: buildAdminCspHeaders({ mode: 'report-only', reportUri: '/api/csp-report' }) } after the site-wide one, and src/app/api/csp-report/route.ts = export const POST = createCspReportRoute(). Flags: what the panel's Site integrations and the code load (analytics, metaPixel, linkedIn, tiktok, clarity, turnstile, youtube, googleMaps); anything else → extra. Check: curl -sI localhost:3000/pl | grep -iE 'content-security-policy-report-only|reporting-endpoints'; the main pages and /admin in a browser, accept the cookie banner → no [Report Only] lines in the console. Deploy.
  3. Enforce later — after a few days of clean [csp] lines in the Coolify logs: mode: 'enforce' in both places, redeploy, check the pages again. Record the date in AGENTS.md → "Project decisions".

→ 1.14.3 (PROGRAMISTA §6, item 52; cookie approval; cookie-scanner.md) — only with cookieScanner:

  1. pnpm payload generate:importmap — @intecion/ipal-kit/admin#CookieApprovalView and @intecion/ipal-kit/admin#CookieCrawlAlert (the dashboard reminder, also without crawl); commit importMap.js.
  2. Postgres/SQLite: pnpm payload migrate:create → migrate (cookie_review.change enum + index, cookie_review.needs_description); check the migration only adds columns. MongoDB: nothing.
  3. Tell the editors about Approve cookies (/admin/cookie-approval, linked from the scan box on Privacy → Cookie review and from the dashboard): tick, Approve and add, then describe the ones marked Needs description. The client wants the old entry-by-entry review → cookieScanner: { approval: false }; unknown cookies in another category → approval: { unknownCategory }.
  4. Behaviour: hand-typed Cookie list rows are looked up only while they have no review entry. Check: run a scan → the cookies appear on /admin/cookie-approval; approve one → it is in Cookies → Cookies in every language; the dashboard shows the reminder while cookies wait. Without cookieScanner: nothing.

→ 1.14.4 (PROGRAMISTA §6, item 53; cookie languages and one Cookies entry; consent.md, cookie-scanner.md):

  1. pnpm payload generate:importmap — with cookieScanner: @intecion/ipal-kit/admin#CookieReviewTab and (with crawl) @intecion/ipal-kit/admin#CookieSiteCheckTab; commit importMap.js. No migration.
  2. Ask the client about the two new defaults (both overridable): empty languages of the cookie texts fill themselves from the language an editor writes in (ipalKit({ fillEmptyLocales: false }) to turn it off); with cookieScanner the cookie screens become one Cookies entry with Review and approve and Site check tabs (cookieScanner: { adminLayout: 'separate' } for the old entries).
  3. Editor instructions and screenshots: Cookie banner is now Cookies. Check: one Cookies entry in the admin navigation; its tabs list the review entries and the site check; type a cookie purpose in one language and save → the other languages show it, and a language with its own text keeps it.

→ 1.14.6 (1.14.5 was never published; PROGRAMISTA §6, item 54; CHANGELOG 1.14.5 "What projects must update" — do all 7, in order):

  1. Cookie storage type (Postgres/SQLite): pnpm payload migrate:create cookie-storage-type → migrate (only adds cookie_settings_cookies.storage, default cookie, and cookie_settings_locales.detail_labels_storage). Existing rows become Cookie: set the type of local/session-storage rows by hand. MongoDB: nothing.
  2. Theme key: code that reads localStorage.getItem('ipal-theme') → THEME_STORAGE_KEY / documentThemeStorageKey(); a project that also runs next-themes and wants separate keys → ipalKit({ theme: { storageKey } }). Visitors keep their choice (moved before first paint).
  3. Cookie list: after the next Scan cookies, approve the new theme entry; remove an old ipal-theme row.
  4. Panel link preview (adminMeta, agency): nothing required. Remove a hand-written admin.meta that only set the panel title, description, openGraph or robots: noindex (your admin.meta keys still win). The credit reads "Technology support: Intecion.com" — agency: false or whiteLabel: { credit: false } to remove it. Check: curl -s $URL/admin/login | grep -E 'og:|robots', open $URL/api/ipal/admin-og, paste an /admin link in Slack.
  5. Dependency advisories: the "Every upgrade — dependency advisories" step above, now with the graphql-scalars override; Node.js 22 recommended with it.
  6. Title separator / GraphQL fix: Site settings → Title separator now stores names (pipe, endash, hyphen, middot, slash) instead of |, –… (which broke /api/graphql with 500). Postgres: pnpm payload migrate:create title-separator, then in the generated file add ${sql.raw(titleSeparatorSql())} right after the first ALTER TABLE "site_settings" ALTER COLUMN "title_separator" SET DATA TYPE text; in up and ${sql.raw(titleSeparatorSql({ direction: 'down' }))} at the same place in down (import { titleSeparatorSql } from '@intecion/ipal-kit'). Without it the migration fails with invalid input value for enum and rolls back. SQLite / MongoDB: nothing required. Old values keep working, and MongoDB is rewritten at start. A project with its own separator options (globalOverrides): use values matching /^[_A-Za-z][_A-Za-z0-9]*$/. Check: curl -s -X POST $URL/api/graphql -H 'content-type: application/json' -d '{"query":"{ SiteSetting { titleSeparator } }"}' → 200, and the browser tab shows the same separator. Project code that reads settings.titleSeparator itself now gets a name: use titleSeparatorChar(). → 1.15.0 design tokens (opt-in, design-tokens.md → "Migrating an existing site"): nothing breaks without it. To adopt: add the four @imports (§6.11) and src/design/tokens.ts (template .agents/skills/ipal-setup/resources/tokens.ts), map the current @theme colours/fonts/radius onto the roles, keep the old names as aliases in a marked legacy block, delete the --ipal-*-dark block kept only for the cookie banner, pnpm exec ipal-tokens, then replace old utilities and dark: colour classes file by file (ipal-audit lists them) and remove the legacy block. next/font variables become --font-family-body / --font-family-heading. Check: ipal-tokens --check, the site in both themes. Only with the owner's decision ("Project decisions": which sites migrate when).
  7. pnpm ipal:skills (new agent rules: architecture questions first, ipal-kit first). Optional with the owner's consent: pnpm exec ipal-skills --external.

→ 1.15.0 (PROGRAMISTA §6, item 55; CHANGELOG 1.15.0 "What projects must update" — do all 10, in order):

  1. Seeding after launch: production seed scripts and Coolify jobs need SEED_ONLY="pages:kontakt,…" (dry run first, back up); a run without it on production now stops. A full re-seed only with the owner's OK: IPAL_SEED_ALLOW_FULL=1. Update seed scripts copied from older templates (ipal-site, ipal-form).
  2. Optional: database names <domain without dots>_prod / _dev + ipalEnvRules({ databaseName: true }) (warns only).
  3. Optional: the design-token standard (design-tokens.md → "Migrating an existing site"). A site that styles the cookie banner only through --ipal-*-dark: check the banner in the dark theme.
  4. Optional: the block library, block by block (block-library.md); after turning blocks on: pnpm generate:types, pnpm payload generate:importmap, Postgres/SQLite migrate:create.
  5. CookieButton lifts above the footer — check a site with its own fixed footer bar; avoid={false} keeps it fixed.
  6. pnpm ipal:skills (new ipal-doctor; updated ipal-reference, ipal-setup, ipal-site, ipal-audit).
  7. Run pnpm exec ipal-doctor (and --url https://<site>), fix or silence each finding with a reason in ipal-doctor.json. IPAL_DOCTOR_TOKEN (≥ 32 characters) only if the deep check runs against production.
  8. Nothing for the exact dependency pins (nodemailer 10.3.1 and three more) beyond pnpm install.
  9. Pages saved before 1.15.0 keep their stored meta description: re-save a page whose description was empty (the section header now fills it).
  10. New sites: ipal-kit create (project-starter.md); single-language / non-pl default sites still go through ipal-setup. Check: pnpm exec ipal-doctor --strict → 0 errors, 0 warnings; pnpm build; a production seed without SEED_ONLY stops with "full seed refused".

→ 1.15.1 (PROGRAMISTA §6, item 56; seed exit guard; seeding.md) — nothing required, recommended:

  1. Every seed script: import { createSeeder, guardSeedExit } from '@intecion/ipal-kit/seed' and guardSeedExit() as the first statement, before getPayload(); the script ends with seed.summary() (the ipal-site / ipal-form templates show it). pnpm ipal:skills for the updated templates.
  2. Check: run the seed with SEED_DRY_RUN=1 locally → exit 0; in Coolify's Terminal after a seed, echo $? → 0 (a 1 with [seed] ended … means the run stopped early — run it again).

→ 1.15.2 (PROGRAMISTA §6, item 57; ipal-doctor route groups; doctor.md) — nothing required:

  1. pnpm ipal:skills; remove a temporary layout-required silence in ipal-doctor.json added for a route group with another name or a notFoundView.tsx.
  2. Two frontend candidates reported → "layout": { "frontend": "src/app/(<group>)" } in ipal-doctor.json. Check: pnpm exec ipal-doctor --strict → no layout-required finding for the site's own route group.

→ 1.15.3 (PROGRAMISTA §6, item 58; ipal-audit, bilingual panel labels; ipal-audit skill) — nothing required:

  1. pnpm ipal:skills, so the updated audit.sh and polish-literals.mjs reach the project.
  2. Remove a temporary i18n-literals silence or ipal-audit-skip added because of adminText() / { en, pl } labels. Check: pnpm exec ipal-doctor --strict → no i18n-literals finding for a schema file's bilingual labels; Polish text in a .tsx component is still reported.

→ 1.15.4 (PROGRAMISTA §6, item 59; seeding whole localized arrays; seeding.md) — nothing required:

  1. Did a seed write a whole localized array ({ pl: [...], en: [...] } for form fields, a page layout, a global array) and the panel shows only the last language? A plain re-run skips existing records (create-only): rewrite them locally with SEED_UPDATE=1 pnpm seed and check every language in the panel.
  2. Live site, only the affected records: SEED_ONLY="forms:<title>,pages:<slug>" SEED_UPDATE=1 IPAL_SEED_ALLOW_PROD_UPDATE=1 SEED_DRY_RUN=1 pnpm seed, back up the database (Coolify), then the same without SEED_DRY_RUN. Records an editor changed since seeding are skipped (skip (edited)) — fix them in the panel.
  3. A global array: fillGlobal fills empty fields only — clear the field in the panel before the run, or fix it by hand. Check: the panel shows the seeded rows in every language; a second run reports skip, not new rows.

→ 1.15.5 (PROGRAMISTA §6, item 60; required fields with references in seeds; seeding.md) — nothing required:

  1. A seed that failed with "The following field is invalid: … > Layout" for a page whose required layout links to another page or a form: run it again — the record is now created complete (SEED_DRY_RUN=1 first).
  2. The dry run is stricter: a { $form } / { $page } to a record that neither exists nor is seeded earlier in the run is an error. Seed that record first or create it in the panel.
  3. A "cycle of required links" error: make one of the two links optional, or seed one of the pages first. Check: SEED_DRY_RUN=1 pnpm seed reports 0 errors; the real run creates the same records.

→ 1.16.0 (PROGRAMISTA §6, item 61; files on forms, e-mailed and never stored; forms.md "Files") — nothing required:

  1. pnpm ipal:skills. Existing forms need nothing; without forms.attachments nothing changes. No import map change.
  2. Only if the site wants files on a form (ask the owner): ipalKit({ forms: { attachments: true } }), a File field on the form (panel or seed — ipal-form skill), one e-mail of that form with a fixed recipient (no {{field}}), pnpm generate:types; Postgres/SQLite: pnpm payload migrate:create (additive). Add the formClasses keys file, help, fileList, fileItem, fileRemove; fill Form messages → Files for languages other than en/pl.
  3. A hand-built upload path for a form (own collection, bucket, route): replace it with the File field and remove it (after the owner confirms nothing else uses the stored files).
  4. Deploy: a proxy body limit of at least 12 MB on /api/ipal/forms/submit (Coolify's Traefik: none by default; nginx: client_max_body_size 12m;). Mail: Graph needs Mail.ReadWrite limited to the forms mailbox for files of 3 MB and more, or SMTP settings in Site integrations; otherwise the limit is about 2.8 MB. Check: Site integrations → "Send test e-mail" with the 10 MB file arrives; a form submission with a file arrives with the attachment, and the submission shows File delivery: Sent; with Graph, no draft or Sent Items copy is left in the sender mailbox a minute later.

→ 1.16.1 (PROGRAMISTA §6, item 62; Next.js minimum 16.4.5, GHSA-mfr8-8qww-v76h; AGENT.md §4 item 11) — required for every site below Next.js 16.4.5:

  1. pnpm add [email protected] [email protected], rm -rf .next, pnpm build; commit package.json and the lockfile, redeploy on Coolify (the new image ships the fixed Next.js).
  2. pnpm ipal:skills (updated ipal-setup / ipal-upgrade). Check: pnpm ls next → 16.4.6; pnpm exec ipal-doctor → no next-min finding; pnpm dev prints no security warning.

2. Inventory (no code changes)

What changed for projects between your old and new plugin version is exactly the reference site's diff — git diff v<old> v<new> -- reference/ in the ipal-kit repo (or the two docs/agent/reference-site/INDEX.md files): every file a project must touch, already done once and tested in the plugin's CI. For every item in the PROGRAMISTA §6 table show evidence (grep / file) of whether it applies to the project. Run the ipal-audit skill (--quick) and attach the result. Result: a prioritised to-do list — carry it out right away. Stop only before an irreversible change (data migration with content → ipal-migrate-fields, changing published slugs).

3. Item by item

One item = one change = one commit:

  1. read the docs file it points to,
  2. replace the local code with the plugin function, remove the old code (do not keep both),
  3. pnpm build — it passes before you take the next item.

Items that rename fields in the database (e.g. the ctaLabel → links refactor) need a data migration before the old fields are removed — ask the user whether the project already has content.

4. Finish

A full ipal-audit with no errors, then pnpm exec ipal-doctor (after pnpm exec ipal-skills and pnpm payload generate:importmap): no new errors against the report before the upgrade (skill ipal-doctor; new rules come with new versions — read each finding, fix or record the owner's decision in ipal-doctor.json with a reason). Before the upgrade, pnpm dlx --package=@intecion/ipal-kit@latest ipal-doctor --offline shows what the newest rules will report. Then the list of things to check in the admin panel.