ipal-doctor: one command that checks a site against the team rules
bin ipal-doctor + @intecion/ipal-kit/doctor: static rules (versions, Node 22, AGENT.md §3 layout and naming, database names, env rules, headers, X-Powered-By, CSP, 2FA, cookie scanner, adminMeta, AGENTS.md, skills, seeds, block library via blockLibraryManifest, ipal-audit --quick), registry rules (latest plugin, pnpm audit --prod), live rules (--url, ipal-seo-check), deep rules (--deep via payload run; GET /api/ipal/doctor, off until IPAL_DOCTOR_TOKEN). Human / JSON output, --strict, exit codes 0/1/2/3, --sites drift table, ipal-doctor.json with reasons, until, files, seen. Fixes found on the way: sitemap leaves out the System pages 404 page; ipal-audit finds array labels after fields, any form seed, runs grep in UTF-8; ipal-seo-check counts duplicate titles per language. Reference site at zero findings (static), CI steps on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0ab133fbd7
commit
a4e8cfeae8
@@ -18,6 +18,7 @@ import type { AdminMetaOptions, AgencyOption } from './modules/branding/adminMet
|
||||
import type { ConsentLogOptions } from './modules/consent/consentLog.js'
|
||||
import type { CookieScannerOptions } from './modules/consent/scanner/types.js'
|
||||
import type { ContentOption } from './modules/content/types.js'
|
||||
import type { DoctorEndpointOptions } from './modules/doctor/status.js'
|
||||
import type { FormsOption } from './modules/forms/types.js'
|
||||
import type { RevalidatePathFn } from './modules/hooks/buildRevalidateHook.js'
|
||||
import type { I18nConfig } from './modules/i18n/types.js'
|
||||
@@ -92,6 +93,14 @@ export type IpalOptions = {
|
||||
*/
|
||||
cookieScanner?: boolean | CookieScannerOptions
|
||||
|
||||
/**
|
||||
* GET /api/ipal/doctor — read-only counts for `ipal-doctor --url` (users without 2FA, cookies
|
||||
* waiting for approval, versions). Answers 404 until IPAL_DOCTOR_TOKEN (≥ 32 characters) is set;
|
||||
* then a `Bearer` token is required. `false` = no endpoint; `{ tokenVar, access }` to adapt it.
|
||||
* docs/doctor.md.
|
||||
*/
|
||||
doctor?: DoctorEndpointOptions | false
|
||||
|
||||
/**
|
||||
* `false` = plugin off without uninstalling: its collections, globals and
|
||||
* fields stay (DB schema and migrations unchanged), but it adds no endpoints,
|
||||
|
||||
Reference in New Issue
Block a user