Merge claude/cookie-scanner-eef8a8: cookie scanner phases 1 and 2

cookieScanner option: cookie-review collection, Scan cookies (declarations +
bundled Open Cookie Database), opt-in browser crawl through
services/cookie-crawler with the cookie-crawl global and dashboard alert.

Overlap with claude/test-no-typegen, resolved here: one test-config fix.
- the six real-Payload tests keep buildTestConfig and drop the branch's
  duplicate typescript: { autoGenerate: false } lines;
- cookieScannerIntegration and cookieCrawlIntegration use buildTestConfig
  instead of buildConfig + their own flag (testConfig.test.ts guard passes).
This commit is contained in:
Radosław Smoliński
2026-10-27 15:26:44 +01:00
54 changed files with 6925 additions and 7 deletions
+12
View File
@@ -15,6 +15,7 @@ export type TotpPluginFactory = (options: {
import type { GlobalOverrides } from './globals/overrides.js'
import type { AccessOption } from './modules/access/types.js'
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 { FormsOption } from './modules/forms/types.js'
import type { RevalidatePathFn } from './modules/hooks/buildRevalidateHook.js'
@@ -63,6 +64,17 @@ export type IpalOptions = {
*/
content?: ContentOption
/**
* Cookie scanner (docs/cookie-scanner.md): the `cookie-review` collection, a
* "Scan cookies" action above its list and GET/POST /api/ipal/cookie-scan. A
* scan lists the cookies of the integrations this project switches on, plus
* names looked up in the bundled Open Cookie Database, as drafts an editor
* accepts (→ Cookie Settings → Cookies), edits or rejects. Never deletes,
* never overwrites edited text, never publishes by itself.
* `true` or CookieScannerOptions. Default off.
*/
cookieScanner?: boolean | CookieScannerOptions
/**
* `false` = plugin off without uninstalling: its collections, globals and
* fields stay (DB schema and migrations unchanged), but it adds no endpoints,