Docs: fix doc/code drift found against 1.16.3 (docs only)
Verified the IAWL summary's "Doc/code" notes against the code and swept
CLI flags, option names/defaults and env vars. Fixed in the docs:
admin groups (consent-records, cookie-review → Privacy; Form messages
global → Forms), tab labels (More, Spam protection, E-mail sending,
Search engines; Sending method), construction field labels, {field} =
label, globalOverrides instead of "a plugin after ipalKit", enabled:false
keeps globals, pages role labels en+pl, switchLocalePath prefix,
accessibility cookie (necessary), seeding summary() shape, prepublishOnly
chain, doctor --strict --offline in the starter, package files list,
ipal-skills --external in PROGRAMISTA, DATABASE_URI (not _URL),
uploadsCollection exists, SiteProviders nonce, buildLinksField labels,
MCP list_pages limit wording, IPAL_DOCTOR_TOKEN in the env table; shipped
seo-check message "Search engines". Reference skills copy refreshed.
Open questions (not changed): forms over-long text, PAYLOAD_SECRET
length, Site settings update access, doctor seen in CI, bare
`ipal-kit create --external`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e603561de4
commit
37592764b5
@@ -119,7 +119,7 @@ layout under `[locale]` (because `<html lang>` must know the language).
|
||||
```
|
||||
Run `pnpm ipal:skills` after install and after every ipal-kit update; commit `.agents/skills/`.
|
||||
(`ipal-skills` is the package `bin` — without the script: `pnpm exec ipal-skills`; options
|
||||
`--dest <dir>`, `--dry-run`, `--no-pointer`.)
|
||||
`--dest <dir>`, `--dry-run`, `--no-pointer`, `--external [ext-a,ext-b]`.)
|
||||
The command also adds to `AGENTS.md` a `<!-- ipal-kit:start -->…<!-- ipal-kit:end -->` block
|
||||
with a pointer to AGENT.md and the `ipal-reference` / `ipal-setup` skills, and creates a missing
|
||||
`CLAUDE.md` with the line `@AGENTS.md`. On later runs it replaces only the text between the
|
||||
@@ -555,7 +555,7 @@ Test without a database: `DATABASE_URI=mongodb://invalid-host:27017/x pnpm build
|
||||
|
||||
### 4.6 Email — SMTP or Graph
|
||||
Client on M365/Exchange → Graph (SMTP AUTH is often turned off). Own SMTP/Gmail →
|
||||
SMTP. The switch is in the admin panel (Site integrations → SMTP → Email Transport).
|
||||
SMTP. The switch is in the admin panel (Site integrations → E-mail sending → Sending method).
|
||||
Graph, one-time: App registration in Azure, the `Mail.Send` application permission
|
||||
+ **Grant admin consent**, the `GRAPH_*` variables. `from.address` always =
|
||||
`GRAPH_SENDER` (otherwise `ErrorSendAsDenied`); sender name from the admin panel; the
|
||||
@@ -620,8 +620,8 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 15j | the form front end sends `fetch('/api/form-submissions')` (from this version REST returns 403 for anonymous users) | rewrite as a server action + `submitForm` (skill `ipal-form`) | forms.md |
|
||||
| 15k | Turnstile secret saved by code (`updateGlobal` in `onInit` / an action) or own `verify` without `remoteip` | delete the workaround: secret in the admin panel or env `TURNSTILE_SECRET_KEY`; the plugin does not send `remoteip` and logs the rejection reason | turnstile.md |
|
||||
| 15l | a Turnstile outage blocked forms | nothing in the project: on an error on our side the plugin accepts the submission and shows an alert in the admin panel; `generate:importmap`, Postgres: `migrate:create` | turnstile.md |
|
||||
| 15m | own plugin moving Notifications into a group; `formOverrides`/`formSubmissionOverrides` only for labels and the admin group | delete — the plugin itself puts Form messages → Settings, and forms → the "Forms" group with labels (`forms.adminGroup`) | forms.md |
|
||||
| 15n | mail errors visible only in logs | nothing in the project: `mailAdapter()` shows the send error on the dashboard and in Site integrations → SMTP; `generate:importmap`, Postgres: `migrate:create` | email.md |
|
||||
| 15m | own plugin moving Notifications into a group; `formOverrides`/`formSubmissionOverrides` only for labels and the admin group | delete — the plugin itself puts Form messages in the "Forms" group, and forms → the "Forms" group with labels (`forms.adminGroup`) | forms.md |
|
||||
| 15n | mail errors visible only in logs | nothing in the project: `mailAdapter()` shows the send error on the dashboard and in Site integrations → E-mail sending; `generate:importmap`, Postgres: `migrate:create` | email.md |
|
||||
| 16 | Hard-coded 404 | 404 role in System pages + `getNotFoundPage` | pages.md |
|
||||
| 16a | `privacyPolicy: { label: 'Polityka prywatności', … }` in the layout | delete the whole parameter; enter the text in Cookies → Privacy link label | consent.md |
|
||||
| 17 | **AI/GEO (mandatory since 1.9.0)** | llms.txt + llms-full.txt, the `/md/…` route, `markdownAlternate: true`, `prefersMarkdown` in the proxy, `/api/mcp`, `buildSummaryField`, AI bots allowed — AGENT.md §0b | content.md, seo.md, mcp.md |
|
||||
@@ -745,9 +745,9 @@ a missing export in `src/index.ts` (`is not a function` in the project), `pnpm a
|
||||
dev is running.
|
||||
|
||||
`dist/` **is not in git** (`.gitignore`). `prepublishOnly` runs `pnpm clean && pnpm build &&
|
||||
pnpm test:int` before every `npm publish`, so you cannot release a stale dist or a
|
||||
version with red tests (`pnpm clean && pnpm build` above is only a grep check before the
|
||||
commit). `prepare` (`pnpm build`) builds the package on install from git and on `pnpm install` in the repo.
|
||||
pnpm build:starter && pnpm test:int && pnpm starter:gate` before every `npm publish`, so you cannot release a stale
|
||||
dist, a version with red tests or a starter that does not produce a working site
|
||||
(docs/project-starter.md; `pnpm clean && pnpm build` above is only a grep check before the commit). `prepare` (`pnpm build`) builds the package on install from git and on `pnpm install` in the repo.
|
||||
`typecheck` and `lint` are **not** in `prepublishOnly` — before a commit: `pnpm typecheck && pnpm lint &&
|
||||
pnpm test:int` (CI in `.gitea/workflows/ci.yml` runs typecheck, lint, test:int and build on push and PR).
|
||||
|
||||
@@ -794,7 +794,8 @@ an empty project (only errors) and a complete one (0 errors). CI (`.gitea/workfl
|
||||
typecheck, lint, tests and build on every push.
|
||||
|
||||
### 8.2 Plugin package.json
|
||||
- `"files": ["dist", "docs", "bin"]` — **the docs and the `ipal-skills` command ship in the package**; agents in projects
|
||||
- `"files": ["dist", "docs", "bin", "src/modules/block-library"]` — **the docs and the `ipal-skills` command ship in the package**
|
||||
(the block-library source is what `ipal-blocks eject` copies); agents in projects
|
||||
read `node_modules/@intecion/ipal-kit/docs/agent/AGENT.md`. Without `docs` they have nothing.
|
||||
- One `exports` block, all paths to `./dist/` (not `./src/`).
|
||||
- `payload`, `@payloadcms/*`, `next`, `react` → **`peerDependencies`**
|
||||
|
||||
Reference in New Issue
Block a user