IAPL rename: instructions say 'pnpm exec iapl-skills', which works whatever the project's script is called
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
3d5106bc4a
commit
630b736344
@@ -68,7 +68,7 @@ the banner → `<CookieBanner settings="detailed">` and remove the copy. With `d
|
||||
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 iapl:skills`, `rm -rf .next`.
|
||||
4. `pnpm payload generate:importmap`, `pnpm exec iapl-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
|
||||
@@ -117,7 +117,7 @@ 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 iapl:skills`, `rm -rf .next`. **Check:** pick
|
||||
and the `RowLabel` entries are injected into every project; then `pnpm exec iapl-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
|
||||
@@ -218,7 +218,7 @@ and the browser tab shows the same separator.
|
||||
utilities and `dark:` colour classes file by file (`iapl-audit` lists them) and remove the legacy block. next/font
|
||||
variables become `--font-family-body` / `--font-family-heading`. Check: `iapl-tokens --check`, the site in both themes.
|
||||
Only with the owner's decision ("Project decisions": which sites migrate when).
|
||||
7. `pnpm iapl:skills` (new agent rules: architecture questions first, IAPL first). Optional with the owner's
|
||||
7. `pnpm exec iapl-skills` (new agent rules: architecture questions first, IAPL first). Optional with the owner's
|
||||
consent: `pnpm exec iapl-skills --external`.
|
||||
|
||||
**→ 1.15.0 (PROGRAMISTA §6, item 55; CHANGELOG 1.15.0 "What projects must update" — do all 10, in order):**
|
||||
@@ -231,7 +231,7 @@ and the browser tab shows the same separator.
|
||||
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 iapl:skills` (new **iapl-doctor**; updated iapl-reference, iapl-setup, iapl-site, iapl-audit).
|
||||
6. `pnpm exec iapl-skills` (new **iapl-doctor**; updated iapl-reference, iapl-setup, iapl-site, iapl-audit).
|
||||
7. Run `pnpm exec iapl-doctor` (and `--url https://<site>`), fix or silence each finding with a reason in
|
||||
`iapl-doctor.json`. `IAPL_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`.
|
||||
@@ -245,18 +245,18 @@ and the browser tab shows the same separator.
|
||||
**→ 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 `iapl-site` / `iapl-form`
|
||||
templates show it). `pnpm iapl:skills` for the updated templates.
|
||||
templates show it). `pnpm exec iapl-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; iapl-doctor route groups; doctor.md) — nothing required:**
|
||||
1. `pnpm iapl:skills`; remove a temporary `layout-required` silence in `iapl-doctor.json` added for a route group with
|
||||
1. `pnpm exec iapl-skills`; remove a temporary `layout-required` silence in `iapl-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 `iapl-doctor.json`.
|
||||
**Check:** `pnpm exec iapl-doctor --strict` → no `layout-required` finding for the site's own route group.
|
||||
|
||||
**→ 1.15.3 (PROGRAMISTA §6, item 58; iapl-audit, bilingual panel labels; iapl-audit skill) — nothing required:**
|
||||
1. `pnpm iapl:skills`, so the updated `audit.sh` and `polish-literals.mjs` reach the project.
|
||||
1. `pnpm exec iapl-skills`, so the updated `audit.sh` and `polish-literals.mjs` reach the project.
|
||||
2. Remove a temporary `i18n-literals` silence or `iapl-audit-skip` added because of `adminText()` / `{ en, pl }` labels.
|
||||
**Check:** `pnpm exec iapl-doctor --strict` → no `i18n-literals` finding for a schema file's bilingual labels; Polish
|
||||
text in a `.tsx` component is still reported.
|
||||
@@ -280,7 +280,7 @@ text in a `.tsx` component is still reported.
|
||||
**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 iapl:skills`. Existing forms need nothing; without `forms.attachments` nothing changes. No import map change.
|
||||
1. `pnpm exec iapl-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): `iapl({ forms: { attachments: true } })`, a **File** field on
|
||||
the form (panel or seed — `iapl-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`,
|
||||
@@ -298,7 +298,7 @@ sender mailbox a minute later.
|
||||
every site below Next.js 16.4.5:**
|
||||
1. `pnpm add next@16.4.6 eslint-config-next@16.4.6`, `rm -rf .next`, `pnpm build`; commit `package.json` and the lockfile,
|
||||
redeploy on Coolify (the new image ships the fixed Next.js).
|
||||
2. `pnpm iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
2. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
**Check:** `pnpm ls next` → 16.4.6; `pnpm exec iapl-doctor` → no `next-min` finding; `pnpm dev` prints no security warning.
|
||||
|
||||
**→ 1.16.2 (PROGRAMISTA §6, item 63; Payload's mongoose and happy-dom advisories; AGENT.md §4 item 12) — required for
|
||||
@@ -306,7 +306,7 @@ every site:**
|
||||
1. Add to `pnpm.overrides` in `package.json`: `"mongoose@>=8 <8.24.7": "~8.24.10"` (MongoDB sites only) and
|
||||
`"happy-dom@<21.0.4": "^21.0.4"` (every site). Then `pnpm install`, `pnpm build`; commit `package.json` and the
|
||||
lockfile, redeploy on Coolify. No data change, no migration.
|
||||
2. `pnpm iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
2. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
**Check:** `pnpm why mongoose happy-dom` → mongoose 8.24.10, happy-dom 21.0.4; `pnpm audit --prod` → no high or critical;
|
||||
`pnpm exec iapl-doctor` → no `transitive-min` finding; open the panel and save a document.
|
||||
|
||||
@@ -323,7 +323,7 @@ recommended, not required (the plugin's peer range stays `^3.90.2`):**
|
||||
`pnpm build`; commit `package.json` and the lockfile, redeploy on Coolify.
|
||||
3. Postgres/SQLite: `pnpm payload migrate:create`, commit it if it is not empty (3.94.1 changes long index and foreign
|
||||
key names). MongoDB: no migration.
|
||||
4. `pnpm iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
4. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
**Check:** `pnpm ls payload @payloadcms/ui @payloadcms/db-mongodb` → 3.94.1; `pnpm why dompurify happy-dom` → 3.4.17,
|
||||
21.0.4; `pnpm audit --prod` → no high or critical; `pnpm exec iapl-doctor` → no `versions` finding; Coolify Terminal
|
||||
`node -v` → 22.23.5 or later; the panel opens, a document saves, a form submission arrives.
|
||||
@@ -335,7 +335,7 @@ for every site:**
|
||||
owner's OK: logs everyone out, 2FA code again, API keys regenerate; deployment.md "`PAYLOAD_SECRET` — length and
|
||||
changing it"), or add `secretMinLength: 0` to `iaplEnvRules({ … })` for now and note it under "Project
|
||||
decisions" in AGENTS.md.
|
||||
1. Update the package, `pnpm install`, `pnpm iapl:skills`, build, redeploy on Coolify. No migration, no config
|
||||
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`, build, redeploy on Coolify. No migration, no config
|
||||
change for a site with one auth collection. `pnpm ls @clocklimited/payload-2fa` should show 3.0.0-beta.7 (tested: beta.1 and beta.7);
|
||||
another version may stop startup with `[iapl] twoFactor: the injected 2FA plugin did not add …`.
|
||||
2. `grep -rn "auth:" src/collections` — more than one auth collection? Then: `admin: { user: '<staff slug>' }` in
|
||||
@@ -380,7 +380,7 @@ gets `403` from the same addresses and from `POST /api/setup-totp`. The Coolify
|
||||
the code → you land on `/admin` (not on example.com); a normal login still returns to the page you came from.
|
||||
No option, env, schema or migration. A project that registered its own 2FA views, or wrote a proxy rule that
|
||||
strips `back`, can keep them (`twoFactor.safeBack: false` turns the plugin's check off).
|
||||
2. `pnpm iapl:skills`.
|
||||
2. `pnpm exec iapl-skills`.
|
||||
|
||||
**→ 1.16.6 — 2FA setup required (CHANGELOG 1.16.6; PROGRAMISTA §6, item 68; security.md "Setup required") — required with 2FA on:**
|
||||
**Not a routine patch, although the number is one.** From this version an account without 2FA can only set it up and is
|
||||
@@ -392,7 +392,7 @@ site without steps 1–3 and a deploy day agreed with the owner. Steps 2, 3 and
|
||||
Make sure at least one administrator (better two) has 2FA set up — otherwise nobody can reopen setup from the panel.
|
||||
The 72 hours of existing accounts start at the first start after the deploy and are counted once (restarts
|
||||
and redeploys do not extend them): agree the deploy day with the owner.
|
||||
2. Update the package, `pnpm install`, `pnpm iapl:skills`, `pnpm payload generate:types`,
|
||||
2. Update the package, `pnpm install`, `pnpm exec iapl-skills`, `pnpm payload generate:types`,
|
||||
**`pnpm payload generate:importmap`** (new: `TwoFactorStatusField`, `TwoFactorAlert`; commit `importMap.js`),
|
||||
then `pnpm exec iapl-doctor` before deploying.
|
||||
3. **Postgres/SQLite — required, same deploy, or nobody can log in:** `pnpm payload migrate:create` (adds the
|
||||
@@ -424,7 +424,7 @@ setup screen with "Set up two-step verification by …"; after the code it is in
|
||||
account → "Two-step verification: Set up." and the reset button; delete the account.
|
||||
|
||||
**→ 1.16.7 (hardening; CHANGELOG 1.16.7; PROGRAMISTA §6, item 69) — not a routine patch: agree the deploy with the owner, read every point, most sites change nothing:**
|
||||
1. Update the package, `pnpm install`, `pnpm iapl:skills`, `pnpm payload generate:types`. No import-map change, **no
|
||||
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`, `pnpm payload generate:types`. No import-map change, **no
|
||||
schema change and no migration** on any database (the verify count uses Payload's own `payload-kv`
|
||||
collection). `grep -n "staffCollections\|authCollection" src/payload.config.ts`: every slug there must be an
|
||||
auth collection of the config — with a wrong one Payload does not start (the slug is in the log; `/api/health`
|
||||
@@ -510,7 +510,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
|
||||
`"smtpPassword":"********"`; a test e-mail and a test form still work; an editor and an admin still log in.
|
||||
|
||||
**→ 1.16.8 (security follow-ups; CHANGELOG 1.16.8; PROGRAMISTA §6, item 71) — most sites: update, rebuild, read the start log:**
|
||||
1. Update the package, `pnpm install`, `pnpm iapl:skills`. No option, schema, migration or import-map change.
|
||||
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`. No option, schema, migration or import-map change.
|
||||
2. **Built with Turbopack?** `grep -n '"build"' package.json` — `next build` without `--webpack`: the old build serves
|
||||
the plugin's `package.json` under `/_next/static/media/` (registry and repository addresses, no secret).
|
||||
`rm -rf .next`, build, `find .next/static -name 'package*.json'` prints nothing; redeploy; purge a CDN or cache.
|
||||
@@ -537,7 +537,7 @@ Every name from before keeps working: `ipalKit()` and the other old exports, the
|
||||
ipal-kit"). **Do not rename anything in the project unless the owner asks.**
|
||||
1. Update the package, `pnpm install`. No option, schema, migration or import-map change (`pnpm payload generate:importmap`
|
||||
gives no diff).
|
||||
2. Refresh the skills: `pnpm exec iapl-skills` (or the project's `pnpm ipal:skills` script — the same program). It
|
||||
2. Refresh the skills: `pnpm exec iapl-skills` (the project's `ipal:skills` script, where it has one, runs the same program). It
|
||||
installs `iapl-*`, removes the 16 old `ipal-*` folders by name (a skill of the project's own named `ipal-…` stays),
|
||||
and rewrites the pointer block in `AGENTS.md` in place. Commit the result. Old skill names written by hand in
|
||||
`AGENTS.md` ("Project decisions") are not touched: update them when you edit that file anyway.
|
||||
|
||||
+16
-16
@@ -117,7 +117,7 @@ layout under `[locale]` (because `<html lang>` must know the language).
|
||||
"iapl:skills": "iapl-skills"
|
||||
}
|
||||
```
|
||||
Run `pnpm iapl:skills` after install and after every IAPL update; commit `.agents/skills/`.
|
||||
Run `pnpm exec iapl-skills` after install and after every IAPL update; commit `.agents/skills/`.
|
||||
(`iapl-skills` is the package `bin` — without the script: `pnpm exec iapl-skills`; options
|
||||
`--dest <dir>`, `--dry-run`, `--no-pointer`, `--external [ext-a,ext-b]`.)
|
||||
The command also adds to `AGENTS.md` a `<!-- iapl:start -->…<!-- iapl:end -->` block
|
||||
@@ -661,27 +661,27 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 51 | **1.14.2** — a new admin stuck on `/admin/setup-totp?back=null` (the page keeps redirecting to itself), or an own `x-pathname` rule on `/admin` added as a workaround | `pnpm payload generate:importmap` (`TotpRedirectProvider`), commit `importMap.js`, redeploy; delete the workaround; own redirect rules → `twoFactor.provider` | security.md → "The redirect to the 2FA screens", CHANGELOG |
|
||||
| 52 | **1.14.3** — editors open every Cookie review entry one by one to accept it | with `cookieScanner`: `pnpm payload generate:importmap` (`CookieApprovalView`, `CookieCrawlAlert`), Postgres/SQLite `migrate:create` (`change`, `needs_description`); editors use Approve cookies (`/admin/cookie-approval`, linked from Privacy → Cookie review); old flow: `cookieScanner: { approval: false }` | cookie-scanner.md, CHANGELOG 1.14.3 |
|
||||
| 53 | **1.14.4** — cookie texts retyped in every language; three cookie entries in the admin navigation | `pnpm payload generate:importmap` (`CookieReviewTab`, `CookieSiteCheckTab`); empty languages fill themselves (`fillEmptyLocales: false` to keep them empty); with `cookieScanner` one **Cookies** entry with tabs (`cookieScanner: { adminLayout: 'separate' }` for the old entries); Cookie banner is now called Cookies — update editor instructions; no migration | consent.md, cookie-scanner.md, hooks.md, CHANGELOG 1.14.4 |
|
||||
| 54 | **1.14.6** (1.14.5 never published) — `/api/graphql` answers 500; graphql-scalars high advisory; theme stored as `ipal-theme`; hand-written `admin.meta` for the panel preview | Postgres: `migrate:create` for the title separator **plus `${sql.raw(titleSeparatorSql())}` after the first `SET DATA TYPE text;`**, and the cookie storage type; `graphql-scalars` override (Node 22 recommended); `THEME_STORAGE_KEY` instead of `'ipal-theme'`; `titleSeparatorChar()` for a raw `settings.titleSeparator`; remove hand-written panel `admin.meta`; `pnpm iapl:skills` (`--external` optional) | CHANGELOG 1.14.6 + 1.14.5, seo.md, theme.md, white-label.md, consent.md |
|
||||
| 55 | **1.15.0** — a production seed runs everything; no design tokens / block library; no site check | `SEED_ONLY` for production seeds (full seed refused, `IAPL_SEED_ALLOW_FULL=1` with the owner's OK); optional tokens.css + the block library (block by block, `migrate:create`); CookieButton above the footer (`avoid={false}`); `pnpm iapl:skills`; `pnpm exec iapl-doctor` (`--url`); new sites with `iapl create` | CHANGELOG 1.15.0, seeding.md, design-tokens.md, block-library.md, doctor.md, project-starter.md |
|
||||
| 56 | **1.15.1** — a seed in Coolify's Terminal ends with exit 0 and no output (it stopped before Payload started) | `guardSeedExit()` first in every seed script, `seed.summary()` at the end; check `echo $?` after a seed; `pnpm iapl:skills` | CHANGELOG 1.15.1, seeding.md |
|
||||
| 57 | **1.15.2** — iapl-doctor reports missing routes for a site whose pages live in `app/(site)` (not `(frontend)`), or a `notFoundView.tsx` | nothing to change; remove the temporary `layout-required` silence; two candidates → `layout.frontend` in `iapl-doctor.json`; `pnpm iapl:skills` | CHANGELOG 1.15.2, doctor.md |
|
||||
| 58 | **1.15.3** — iapl-audit / iapl-doctor report `adminText()` or `{ en, pl }` panel labels as hardcoded Polish text | `pnpm iapl:skills`; remove a temporary `i18n-literals` silence added for such labels; public text is still reported | CHANGELOG 1.15.3, iapl-audit skill |
|
||||
| 54 | **1.14.6** (1.14.5 never published) — `/api/graphql` answers 500; graphql-scalars high advisory; theme stored as `ipal-theme`; hand-written `admin.meta` for the panel preview | Postgres: `migrate:create` for the title separator **plus `${sql.raw(titleSeparatorSql())}` after the first `SET DATA TYPE text;`**, and the cookie storage type; `graphql-scalars` override (Node 22 recommended); `THEME_STORAGE_KEY` instead of `'ipal-theme'`; `titleSeparatorChar()` for a raw `settings.titleSeparator`; remove hand-written panel `admin.meta`; `pnpm exec iapl-skills` (`--external` optional) | CHANGELOG 1.14.6 + 1.14.5, seo.md, theme.md, white-label.md, consent.md |
|
||||
| 55 | **1.15.0** — a production seed runs everything; no design tokens / block library; no site check | `SEED_ONLY` for production seeds (full seed refused, `IAPL_SEED_ALLOW_FULL=1` with the owner's OK); optional tokens.css + the block library (block by block, `migrate:create`); CookieButton above the footer (`avoid={false}`); `pnpm exec iapl-skills`; `pnpm exec iapl-doctor` (`--url`); new sites with `iapl create` | CHANGELOG 1.15.0, seeding.md, design-tokens.md, block-library.md, doctor.md, project-starter.md |
|
||||
| 56 | **1.15.1** — a seed in Coolify's Terminal ends with exit 0 and no output (it stopped before Payload started) | `guardSeedExit()` first in every seed script, `seed.summary()` at the end; check `echo $?` after a seed; `pnpm exec iapl-skills` | CHANGELOG 1.15.1, seeding.md |
|
||||
| 57 | **1.15.2** — iapl-doctor reports missing routes for a site whose pages live in `app/(site)` (not `(frontend)`), or a `notFoundView.tsx` | nothing to change; remove the temporary `layout-required` silence; two candidates → `layout.frontend` in `iapl-doctor.json`; `pnpm exec iapl-skills` | CHANGELOG 1.15.2, doctor.md |
|
||||
| 58 | **1.15.3** — iapl-audit / iapl-doctor report `adminText()` or `{ en, pl }` panel labels as hardcoded Polish text | `pnpm exec iapl-skills`; remove a temporary `i18n-literals` silence added for such labels; public text is still reported | CHANGELOG 1.15.3, iapl-audit skill |
|
||||
| 59 | **1.15.4** — a seeded form / layout / global array shows only the last language (whole localized arrays) | nothing to change in the seed; repair: `SEED_UPDATE=1` locally, on production `SEED_ONLY` + `SEED_UPDATE=1` + `IAPL_SEED_ALLOW_PROD_UPDATE=1` after a backup; edited records and global arrays by hand | CHANGELOG 1.15.4, seeding.md |
|
||||
| 60 | **1.15.5** — a seeded page with a required layout linking to a page or form fails validation ("… > Layout") | nothing to change in the seed; run it again (dry run first); a missing `$form` / `$page` is now an error in the dry run too; a required link cycle: make one link optional | CHANGELOG 1.15.5, seeding.md |
|
||||
| 61 | **1.16.0 — files on forms** — a CV / drawing field built by hand (own upload collection, bucket, `<input type="file">` posting to an own route), or "send the file by e-mail" asked for and refused | `forms: { attachments: true }` + a **File** field (panel or seed) + one e-mail with a fixed recipient; Postgres/SQLite `migrate:create`; `generate:types`; `formClasses` keys `file`, `help`, `fileList`, `fileItem`, `fileRemove`; proxy body limit (nginx `client_max_body_size 12m`); Graph: `Mail.ReadWrite` limited to the forms mailbox, or SMTP settings, or ~2.8 MB; test e-mail with the 10 MB file; delete the hand-built upload path; `pnpm iapl:skills` | CHANGELOG 1.16.0, forms.md "Files", email.md "Attachments", deployment.md "Form files" |
|
||||
| 62 | **1.16.1** — `pnpm dev` warns "Next.js 16.4.3 is affected by a known security vulnerability"; iapl-doctor `next-min` error below 16.4.5 (GHSA-mfr8-8qww-v76h) | `pnpm add [email protected] [email protected]`, `rm -rf .next`, build, commit the lockfile, redeploy on Coolify; `pnpm iapl:skills`; no option, migration or import map change | CHANGELOG 1.16.1, AGENT.md §4 item 11 |
|
||||
| 63 | **1.16.2** — `pnpm audit --prod` shows `mongoose` (critical, via `@payloadcms/db-mongodb`) or `happy-dom` (high, via `@payloadcms/richtext-lexical`); iapl-doctor `transitive-min` | `pnpm.overrides`: `"mongoose@>=8 <8.24.7": "~8.24.10"` (MongoDB sites) and `"happy-dom@<21.0.4": "^21.0.4"`; `pnpm install`, build, commit the lockfile, redeploy on Coolify; `pnpm iapl:skills`; no migration | CHANGELOG 1.16.2, AGENT.md §4 item 12 |
|
||||
| 64 | **1.16.3** — the reference site and the starter run Payload 3.94.1; the site is still on 3.90–3.93, or `node -v` (locally or in the Coolify app's Terminal) is below 22.23.5 | Recommended, not required (the plugin still accepts `^3.90.2`). First make sure Node is 22.23.5 or later everywhere, Coolify included (Nixpacks picks the patch: check `node -v`, update Coolify if lower). Then every `payload` / `@payloadcms/*` 3.94.1 (in `dependencies` and `pnpm.overrides`), `react` / `react-dom` 19.3.1, `"engines": { "node": ">=22.23.5 <23" }`; overrides: keep `dompurify` and `happy-dom`, drop `mongoose`, `undici` and `graphql-scalars`; `pnpm install`, `generate:types`, `generate:importmap`, `rm -rf .next`, build, redeploy; Postgres/SQLite: `migrate:create`; `pnpm iapl:skills` | CHANGELOG 1.16.3, AGENT.md §4 items 11–12, iapl-upgrade "Every upgrade — Payload" |
|
||||
| 65 | **1.16.4 — security** — with 2FA on, a login with the password only gets `200` from `/api/globals/site-integrations` or `/api/form-submissions`; or the project has a second auth collection (`customers`) | Upgrade and redeploy (no config change with one auth collection). With the owner: change the SMTP password and the Turnstile secret, review Site settings / Site integrations / each form's Emails tab for values nobody set. Second auth collection: `admin: { user }` in `buildConfig`, `adminOrSelfIn('<slug>')`, `access.staffCollections` only for a second STAFF collection. Every account must have 2FA set up (`iapl-doctor --url` → 0 without). Own endpoints: `secondFactorPassed(req)`; own `overrideAccess: false` calls: `user` from `payload.auth()`. `pnpm iapl:skills`; no migration | CHANGELOG 1.16.4, security.md "What the second factor covers", access.md "Who is staff" |
|
||||
| 61 | **1.16.0 — files on forms** — a CV / drawing field built by hand (own upload collection, bucket, `<input type="file">` posting to an own route), or "send the file by e-mail" asked for and refused | `forms: { attachments: true }` + a **File** field (panel or seed) + one e-mail with a fixed recipient; Postgres/SQLite `migrate:create`; `generate:types`; `formClasses` keys `file`, `help`, `fileList`, `fileItem`, `fileRemove`; proxy body limit (nginx `client_max_body_size 12m`); Graph: `Mail.ReadWrite` limited to the forms mailbox, or SMTP settings, or ~2.8 MB; test e-mail with the 10 MB file; delete the hand-built upload path; `pnpm exec iapl-skills` | CHANGELOG 1.16.0, forms.md "Files", email.md "Attachments", deployment.md "Form files" |
|
||||
| 62 | **1.16.1** — `pnpm dev` warns "Next.js 16.4.3 is affected by a known security vulnerability"; iapl-doctor `next-min` error below 16.4.5 (GHSA-mfr8-8qww-v76h) | `pnpm add [email protected] [email protected]`, `rm -rf .next`, build, commit the lockfile, redeploy on Coolify; `pnpm exec iapl-skills`; no option, migration or import map change | CHANGELOG 1.16.1, AGENT.md §4 item 11 |
|
||||
| 63 | **1.16.2** — `pnpm audit --prod` shows `mongoose` (critical, via `@payloadcms/db-mongodb`) or `happy-dom` (high, via `@payloadcms/richtext-lexical`); iapl-doctor `transitive-min` | `pnpm.overrides`: `"mongoose@>=8 <8.24.7": "~8.24.10"` (MongoDB sites) and `"happy-dom@<21.0.4": "^21.0.4"`; `pnpm install`, build, commit the lockfile, redeploy on Coolify; `pnpm exec iapl-skills`; no migration | CHANGELOG 1.16.2, AGENT.md §4 item 12 |
|
||||
| 64 | **1.16.3** — the reference site and the starter run Payload 3.94.1; the site is still on 3.90–3.93, or `node -v` (locally or in the Coolify app's Terminal) is below 22.23.5 | Recommended, not required (the plugin still accepts `^3.90.2`). First make sure Node is 22.23.5 or later everywhere, Coolify included (Nixpacks picks the patch: check `node -v`, update Coolify if lower). Then every `payload` / `@payloadcms/*` 3.94.1 (in `dependencies` and `pnpm.overrides`), `react` / `react-dom` 19.3.1, `"engines": { "node": ">=22.23.5 <23" }`; overrides: keep `dompurify` and `happy-dom`, drop `mongoose`, `undici` and `graphql-scalars`; `pnpm install`, `generate:types`, `generate:importmap`, `rm -rf .next`, build, redeploy; Postgres/SQLite: `migrate:create`; `pnpm exec iapl-skills` | CHANGELOG 1.16.3, AGENT.md §4 items 11–12, iapl-upgrade "Every upgrade — Payload" |
|
||||
| 65 | **1.16.4 — security** — with 2FA on, a login with the password only gets `200` from `/api/globals/site-integrations` or `/api/form-submissions`; or the project has a second auth collection (`customers`) | Upgrade and redeploy (no config change with one auth collection). With the owner: change the SMTP password and the Turnstile secret, review Site settings / Site integrations / each form's Emails tab for values nobody set. Second auth collection: `admin: { user }` in `buildConfig`, `adminOrSelfIn('<slug>')`, `access.staffCollections` only for a second STAFF collection. Every account must have 2FA set up (`iapl-doctor --url` → 0 without). Own endpoints: `secondFactorPassed(req)`; own `overrideAccess: false` calls: `user` from `payload.auth()`. `pnpm exec iapl-skills`; no migration | CHANGELOG 1.16.4, security.md "What the second factor covers", access.md "Who is staff" |
|
||||
| 66 | **1.16.4** — production `PAYLOAD_SECRET` shorter than 32 characters (the site would stop at `assertEnv`) | Before deploying 1.16.4, check the length in Coolify (`node -e 'console.log(process.env.PAYLOAD_SECRET.length)'`). Shorter: a random 32+ character secret (logs everyone out, asks for 2FA again, breaks stored API keys), or `iaplEnvRules({ secretMinLength: 0 })` for now | CHANGELOG 1.16.4, deployment.md "PAYLOAD_SECRET — length and changing it" |
|
||||
| 67 | **1.16.5 — security** — with 2FA on, `/admin/verify-totp?back=https%3A%2F%2Fexample.com%2F` sends the user to example.com after the code (and `back=javascript:…` runs script in the panel) | Upgrade and, **in ONE deploy**, `pnpm payload generate:importmap` (adds `@intecion/ipal-kit/admin#SafeTotpView`), commit `importMap.js`, `rm -rf .next`, redeploy on Coolify — with the old map the 2FA screens have no code form and nobody can sign in (run `pnpm exec iapl-doctor` before deploying; the start log says so too); check: the link above ends on `/admin`. `pnpm iapl:skills`. No option, env or migration; off / own rule: `twoFactor.safeBack` | CHANGELOG 1.16.5, security.md "The `back` link of the 2FA screens" |
|
||||
| 68 | **1.16.6 — 2FA setup required** (not a routine patch: a new default that can lock accounts out) — an account that has not set 2FA up still reads data over the API with its password; or after the upgrade an account "can do nothing" / is blocked | Before upgrading: `iapl-doctor --url` → accounts without 2FA set it up or are removed; one admin (better two) must have 2FA; deploy day agreed with the owner. Then, in ONE deploy: update, `generate:types`, `generate:importmap` (`TwoFactorStatusField`, `TwoFactorAlert`), **Postgres/SQLite: `migrate:create` and the migration applied in the same deploy when the new container starts — `prodMigrations` or `pnpm payload migrate && pnpm start`, never a pre-deployment command (deployment.md §4.3) — (column `totp_setup_from`); without it every login answers 500**, build, redeploy. Existing accounts get 72 h from the first start; blocked later → admin: account page → "Reopen setup". Password-login integrations: API key or `requireSetup.exempt`. `pnpm iapl:skills` | CHANGELOG 1.16.6, security.md "Setup required" |
|
||||
| 69 | **1.16.7 — hardening** (not a routine patch: stricter defaults) — an account with only the role `user` sees "Unauthorized" in the panel; or the API returns `"smtpPassword":"********"`; or a form with a File field is refused while Turnstile is misconfigured; or "The password must have at least 12 characters."; or "Enter the password again…" on the SMTP password; or `403` "Not allowed from this origin." on the 2FA code | Update, `generate:types`, redeploy; no import map, schema or migration. Every slug in `access.staffCollections` must be an auth collection (otherwise Payload does not start: `/api/health` 503, the old container keeps serving). Set `serverURL` (a proxy that rewrites `Host` otherwise blocks the 2FA code; the log names the origin). Read the start log (`N account(s) … cannot open the admin panel`) and give panel users `editor`. Own code that read the two secrets over the API → Local API on the server. `TURNSTILE_SECRET_KEY` is deprecated: with the owner move the key into the panel. Own staff collection without rules: an admin (update: or the account itself; roles only by an admin; read by staff only) where the roles are the plugin's, accounts of that collection where they are the project's own — write that collection's own rules. Existing short passwords keep working. Switches: `accounts`, `secrets`, `forms.turnstileOnConfigError`, `twoFactor.sameOrigin`, `dashboardAlerts`. `pnpm iapl:skills` | CHANGELOG 1.16.7, access.md "Account rules", security.md "Stored secrets", turnstile.md |
|
||||
| 67 | **1.16.5 — security** — with 2FA on, `/admin/verify-totp?back=https%3A%2F%2Fexample.com%2F` sends the user to example.com after the code (and `back=javascript:…` runs script in the panel) | Upgrade and, **in ONE deploy**, `pnpm payload generate:importmap` (adds `@intecion/ipal-kit/admin#SafeTotpView`), commit `importMap.js`, `rm -rf .next`, redeploy on Coolify — with the old map the 2FA screens have no code form and nobody can sign in (run `pnpm exec iapl-doctor` before deploying; the start log says so too); check: the link above ends on `/admin`. `pnpm exec iapl-skills`. No option, env or migration; off / own rule: `twoFactor.safeBack` | CHANGELOG 1.16.5, security.md "The `back` link of the 2FA screens" |
|
||||
| 68 | **1.16.6 — 2FA setup required** (not a routine patch: a new default that can lock accounts out) — an account that has not set 2FA up still reads data over the API with its password; or after the upgrade an account "can do nothing" / is blocked | Before upgrading: `iapl-doctor --url` → accounts without 2FA set it up or are removed; one admin (better two) must have 2FA; deploy day agreed with the owner. Then, in ONE deploy: update, `generate:types`, `generate:importmap` (`TwoFactorStatusField`, `TwoFactorAlert`), **Postgres/SQLite: `migrate:create` and the migration applied in the same deploy when the new container starts — `prodMigrations` or `pnpm payload migrate && pnpm start`, never a pre-deployment command (deployment.md §4.3) — (column `totp_setup_from`); without it every login answers 500**, build, redeploy. Existing accounts get 72 h from the first start; blocked later → admin: account page → "Reopen setup". Password-login integrations: API key or `requireSetup.exempt`. `pnpm exec iapl-skills` | CHANGELOG 1.16.6, security.md "Setup required" |
|
||||
| 69 | **1.16.7 — hardening** (not a routine patch: stricter defaults) — an account with only the role `user` sees "Unauthorized" in the panel; or the API returns `"smtpPassword":"********"`; or a form with a File field is refused while Turnstile is misconfigured; or "The password must have at least 12 characters."; or "Enter the password again…" on the SMTP password; or `403` "Not allowed from this origin." on the 2FA code | Update, `generate:types`, redeploy; no import map, schema or migration. Every slug in `access.staffCollections` must be an auth collection (otherwise Payload does not start: `/api/health` 503, the old container keeps serving). Set `serverURL` (a proxy that rewrites `Host` otherwise blocks the 2FA code; the log names the origin). Read the start log (`N account(s) … cannot open the admin panel`) and give panel users `editor`. Own code that read the two secrets over the API → Local API on the server. `TURNSTILE_SECRET_KEY` is deprecated: with the owner move the key into the panel. Own staff collection without rules: an admin (update: or the account itself; roles only by an admin; read by staff only) where the roles are the plugin's, accounts of that collection where they are the project's own — write that collection's own rules. Existing short passwords keep working. Switches: `accounts`, `secrets`, `forms.turnstileOnConfigError`, `twoFactor.sameOrigin`, `dashboardAlerts`. `pnpm exec iapl-skills` | CHANGELOG 1.16.7, access.md "Account rules", security.md "Stored secrets", turnstile.md |
|
||||
| 70 | **1.16.7** — `next build --webpack`: `'server-only' cannot be imported from a Client Component module`, from a `'use client'` file that imports `isAdmin`, `isEditor` or `hasMinimumRole` | Import them from `@intecion/ipal-kit/client` in client components, keep the second argument (`isAdmin(user, config)`); `import type` may stay on the main entry | CHANGELOG 1.16.7, access.md |
|
||||
| 71 | **1.16.8 — security** — a site built with Turbopack (`next build` without `--webpack`) serves `/_next/static/media/package.<hash>.json`; or the project has a staff collection of its own without access rules; or a plugin listed after iapl copies a staff collection or sets `admin.user`; or the start log says `No staff account holds the role "admin", so NOBODY can …` | Update, `pnpm iapl:skills`, `rm -rf .next`, rebuild; no option, schema, migration or import map. Turbopack: `find .next/static -name 'package*.json'` empty, purge a CDN. Own staff collection: a `roles` list that can hold `editor` / `admin` → only an admin manages its accounts (write own rules otherwise; one account must hold `admin`); a single select with only `user` / `editor` / `admin` → its accounts manage each other again (own rules if your code goes by the value). A copy: `access.update: adminOrSelfIn('copy')`, or `custom.ipal.accountRules: false` | CHANGELOG 1.16.8, access.md "Account rules" |
|
||||
| 71 | **1.16.8 — security** — a site built with Turbopack (`next build` without `--webpack`) serves `/_next/static/media/package.<hash>.json`; or the project has a staff collection of its own without access rules; or a plugin listed after iapl copies a staff collection or sets `admin.user`; or the start log says `No staff account holds the role "admin", so NOBODY can …` | Update, `pnpm exec iapl-skills`, `rm -rf .next`, rebuild; no option, schema, migration or import map. Turbopack: `find .next/static -name 'package*.json'` empty, purge a CDN. Own staff collection: a `roles` list that can hold `editor` / `admin` → only an admin manages its accounts (write own rules otherwise; one account must hold `admin`); a single select with only `user` / `editor` / `admin` → its accounts manage each other again (own rules if your code goes by the value). A copy: `access.update: adminOrSelfIn('copy')`, or `custom.ipal.accountRules: false` | CHANGELOG 1.16.8, access.md "Account rules" |
|
||||
| 72 | **1.17.0 — the plugin is called IAPL** — you see `iapl()`, `iapl-doctor`, `IAPL_IP_HEADER`, `iapl-doctor.json`, `[iapl]` in docs and logs and wonder whether the project must change | No. Every old name works through 1.x (`ipalKit`, `ipal-*` commands, `IPAL_*` env, `ipal-doctor.json`, `ipal-audit-skip`, the old pointer block); the package is still `@intecion/ipal-kit`. Run `pnpm exec iapl-skills` (or the project's `ipal:skills` script) and commit; change a log filter on `[ipal]` to `[iapl]`. Rename the rest only when the owner asks (`iapl-upgrade` "→ 1.17.0", AGENT.md "Names: IAPL and ipal-kit"). Never set `storageNames: 'iapl'` on an existing site |
|
||||
|
||||
After updating the package: `pnpm iapl:skills` (new skill versions), `pnpm payload generate:importmap`, `rm -rf .next`, restart dev, grep for the new symbol in
|
||||
After updating the package: `pnpm exec iapl-skills` (new skill versions), `pnpm payload generate:importmap`, `rm -rf .next`, restart dev, grep for the new symbol in
|
||||
`node_modules/@intecion/ipal-kit/dist`.
|
||||
|
||||
---
|
||||
|
||||
@@ -68,7 +68,7 @@ the banner → `<CookieBanner settings="detailed">` and remove the copy. With `d
|
||||
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 iapl:skills`, `rm -rf .next`.
|
||||
4. `pnpm payload generate:importmap`, `pnpm exec iapl-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
|
||||
@@ -117,7 +117,7 @@ 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 iapl:skills`, `rm -rf .next`. **Check:** pick
|
||||
and the `RowLabel` entries are injected into every project; then `pnpm exec iapl-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
|
||||
@@ -218,7 +218,7 @@ and the browser tab shows the same separator.
|
||||
utilities and `dark:` colour classes file by file (`iapl-audit` lists them) and remove the legacy block. next/font
|
||||
variables become `--font-family-body` / `--font-family-heading`. Check: `iapl-tokens --check`, the site in both themes.
|
||||
Only with the owner's decision ("Project decisions": which sites migrate when).
|
||||
7. `pnpm iapl:skills` (new agent rules: architecture questions first, IAPL first). Optional with the owner's
|
||||
7. `pnpm exec iapl-skills` (new agent rules: architecture questions first, IAPL first). Optional with the owner's
|
||||
consent: `pnpm exec iapl-skills --external`.
|
||||
|
||||
**→ 1.15.0 (PROGRAMISTA §6, item 55; CHANGELOG 1.15.0 "What projects must update" — do all 10, in order):**
|
||||
@@ -231,7 +231,7 @@ and the browser tab shows the same separator.
|
||||
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 iapl:skills` (new **iapl-doctor**; updated iapl-reference, iapl-setup, iapl-site, iapl-audit).
|
||||
6. `pnpm exec iapl-skills` (new **iapl-doctor**; updated iapl-reference, iapl-setup, iapl-site, iapl-audit).
|
||||
7. Run `pnpm exec iapl-doctor` (and `--url https://<site>`), fix or silence each finding with a reason in
|
||||
`iapl-doctor.json`. `IAPL_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`.
|
||||
@@ -245,18 +245,18 @@ and the browser tab shows the same separator.
|
||||
**→ 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 `iapl-site` / `iapl-form`
|
||||
templates show it). `pnpm iapl:skills` for the updated templates.
|
||||
templates show it). `pnpm exec iapl-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; iapl-doctor route groups; doctor.md) — nothing required:**
|
||||
1. `pnpm iapl:skills`; remove a temporary `layout-required` silence in `iapl-doctor.json` added for a route group with
|
||||
1. `pnpm exec iapl-skills`; remove a temporary `layout-required` silence in `iapl-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 `iapl-doctor.json`.
|
||||
**Check:** `pnpm exec iapl-doctor --strict` → no `layout-required` finding for the site's own route group.
|
||||
|
||||
**→ 1.15.3 (PROGRAMISTA §6, item 58; iapl-audit, bilingual panel labels; iapl-audit skill) — nothing required:**
|
||||
1. `pnpm iapl:skills`, so the updated `audit.sh` and `polish-literals.mjs` reach the project.
|
||||
1. `pnpm exec iapl-skills`, so the updated `audit.sh` and `polish-literals.mjs` reach the project.
|
||||
2. Remove a temporary `i18n-literals` silence or `iapl-audit-skip` added because of `adminText()` / `{ en, pl }` labels.
|
||||
**Check:** `pnpm exec iapl-doctor --strict` → no `i18n-literals` finding for a schema file's bilingual labels; Polish
|
||||
text in a `.tsx` component is still reported.
|
||||
@@ -280,7 +280,7 @@ text in a `.tsx` component is still reported.
|
||||
**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 iapl:skills`. Existing forms need nothing; without `forms.attachments` nothing changes. No import map change.
|
||||
1. `pnpm exec iapl-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): `iapl({ forms: { attachments: true } })`, a **File** field on
|
||||
the form (panel or seed — `iapl-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`,
|
||||
@@ -298,7 +298,7 @@ sender mailbox a minute later.
|
||||
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 iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
2. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
**Check:** `pnpm ls next` → 16.4.6; `pnpm exec iapl-doctor` → no `next-min` finding; `pnpm dev` prints no security warning.
|
||||
|
||||
**→ 1.16.2 (PROGRAMISTA §6, item 63; Payload's mongoose and happy-dom advisories; AGENT.md §4 item 12) — required for
|
||||
@@ -306,7 +306,7 @@ every site:**
|
||||
1. Add to `pnpm.overrides` in `package.json`: `"mongoose@>=8 <8.24.7": "~8.24.10"` (MongoDB sites only) and
|
||||
`"happy-dom@<21.0.4": "^21.0.4"` (every site). Then `pnpm install`, `pnpm build`; commit `package.json` and the
|
||||
lockfile, redeploy on Coolify. No data change, no migration.
|
||||
2. `pnpm iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
2. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
**Check:** `pnpm why mongoose happy-dom` → mongoose 8.24.10, happy-dom 21.0.4; `pnpm audit --prod` → no high or critical;
|
||||
`pnpm exec iapl-doctor` → no `transitive-min` finding; open the panel and save a document.
|
||||
|
||||
@@ -323,7 +323,7 @@ recommended, not required (the plugin's peer range stays `^3.90.2`):**
|
||||
`pnpm build`; commit `package.json` and the lockfile, redeploy on Coolify.
|
||||
3. Postgres/SQLite: `pnpm payload migrate:create`, commit it if it is not empty (3.94.1 changes long index and foreign
|
||||
key names). MongoDB: no migration.
|
||||
4. `pnpm iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
4. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
|
||||
**Check:** `pnpm ls payload @payloadcms/ui @payloadcms/db-mongodb` → 3.94.1; `pnpm why dompurify happy-dom` → 3.4.17,
|
||||
21.0.4; `pnpm audit --prod` → no high or critical; `pnpm exec iapl-doctor` → no `versions` finding; Coolify Terminal
|
||||
`node -v` → 22.23.5 or later; the panel opens, a document saves, a form submission arrives.
|
||||
@@ -335,7 +335,7 @@ for every site:**
|
||||
owner's OK: logs everyone out, 2FA code again, API keys regenerate; deployment.md "`PAYLOAD_SECRET` — length and
|
||||
changing it"), or add `secretMinLength: 0` to `iaplEnvRules({ … })` for now and note it under "Project
|
||||
decisions" in AGENTS.md.
|
||||
1. Update the package, `pnpm install`, `pnpm iapl:skills`, build, redeploy on Coolify. No migration, no config
|
||||
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`, build, redeploy on Coolify. No migration, no config
|
||||
change for a site with one auth collection. `pnpm ls @clocklimited/payload-2fa` should show 3.0.0-beta.7 (tested: beta.1 and beta.7);
|
||||
another version may stop startup with `[iapl] twoFactor: the injected 2FA plugin did not add …`.
|
||||
2. `grep -rn "auth:" src/collections` — more than one auth collection? Then: `admin: { user: '<staff slug>' }` in
|
||||
@@ -380,7 +380,7 @@ gets `403` from the same addresses and from `POST /api/setup-totp`. The Coolify
|
||||
the code → you land on `/admin` (not on example.com); a normal login still returns to the page you came from.
|
||||
No option, env, schema or migration. A project that registered its own 2FA views, or wrote a proxy rule that
|
||||
strips `back`, can keep them (`twoFactor.safeBack: false` turns the plugin's check off).
|
||||
2. `pnpm iapl:skills`.
|
||||
2. `pnpm exec iapl-skills`.
|
||||
|
||||
**→ 1.16.6 — 2FA setup required (CHANGELOG 1.16.6; PROGRAMISTA §6, item 68; security.md "Setup required") — required with 2FA on:**
|
||||
**Not a routine patch, although the number is one.** From this version an account without 2FA can only set it up and is
|
||||
@@ -392,7 +392,7 @@ site without steps 1–3 and a deploy day agreed with the owner. Steps 2, 3 and
|
||||
Make sure at least one administrator (better two) has 2FA set up — otherwise nobody can reopen setup from the panel.
|
||||
The 72 hours of existing accounts start at the first start after the deploy and are counted once (restarts
|
||||
and redeploys do not extend them): agree the deploy day with the owner.
|
||||
2. Update the package, `pnpm install`, `pnpm iapl:skills`, `pnpm payload generate:types`,
|
||||
2. Update the package, `pnpm install`, `pnpm exec iapl-skills`, `pnpm payload generate:types`,
|
||||
**`pnpm payload generate:importmap`** (new: `TwoFactorStatusField`, `TwoFactorAlert`; commit `importMap.js`),
|
||||
then `pnpm exec iapl-doctor` before deploying.
|
||||
3. **Postgres/SQLite — required, same deploy, or nobody can log in:** `pnpm payload migrate:create` (adds the
|
||||
@@ -424,7 +424,7 @@ setup screen with "Set up two-step verification by …"; after the code it is in
|
||||
account → "Two-step verification: Set up." and the reset button; delete the account.
|
||||
|
||||
**→ 1.16.7 (hardening; CHANGELOG 1.16.7; PROGRAMISTA §6, item 69) — not a routine patch: agree the deploy with the owner, read every point, most sites change nothing:**
|
||||
1. Update the package, `pnpm install`, `pnpm iapl:skills`, `pnpm payload generate:types`. No import-map change, **no
|
||||
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`, `pnpm payload generate:types`. No import-map change, **no
|
||||
schema change and no migration** on any database (the verify count uses Payload's own `payload-kv`
|
||||
collection). `grep -n "staffCollections\|authCollection" src/payload.config.ts`: every slug there must be an
|
||||
auth collection of the config — with a wrong one Payload does not start (the slug is in the log; `/api/health`
|
||||
@@ -510,7 +510,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
|
||||
`"smtpPassword":"********"`; a test e-mail and a test form still work; an editor and an admin still log in.
|
||||
|
||||
**→ 1.16.8 (security follow-ups; CHANGELOG 1.16.8; PROGRAMISTA §6, item 71) — most sites: update, rebuild, read the start log:**
|
||||
1. Update the package, `pnpm install`, `pnpm iapl:skills`. No option, schema, migration or import-map change.
|
||||
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`. No option, schema, migration or import-map change.
|
||||
2. **Built with Turbopack?** `grep -n '"build"' package.json` — `next build` without `--webpack`: the old build serves
|
||||
the plugin's `package.json` under `/_next/static/media/` (registry and repository addresses, no secret).
|
||||
`rm -rf .next`, build, `find .next/static -name 'package*.json'` prints nothing; redeploy; purge a CDN or cache.
|
||||
@@ -537,7 +537,7 @@ Every name from before keeps working: `ipalKit()` and the other old exports, the
|
||||
ipal-kit"). **Do not rename anything in the project unless the owner asks.**
|
||||
1. Update the package, `pnpm install`. No option, schema, migration or import-map change (`pnpm payload generate:importmap`
|
||||
gives no diff).
|
||||
2. Refresh the skills: `pnpm exec iapl-skills` (or the project's `pnpm ipal:skills` script — the same program). It
|
||||
2. Refresh the skills: `pnpm exec iapl-skills` (the project's `ipal:skills` script, where it has one, runs the same program). It
|
||||
installs `iapl-*`, removes the 16 old `ipal-*` folders by name (a skill of the project's own named `ipal-…` stays),
|
||||
and rewrites the pointer block in `AGENTS.md` in place. Commit the result. Old skill names written by hand in
|
||||
`AGENTS.md` ("Project decisions") are not touched: update them when you edit that file anyway.
|
||||
|
||||
Reference in New Issue
Block a user