@reddoorla/maintenance 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -122,7 +122,7 @@ Each audit is `(ctx) => Promise<AuditResult>` and is exported from the package e
122
122
  | Name | What it checks |
123
123
  | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
124
124
  | `deps` | Diffs site's `package.json` against `src/configs/baseline-versions.ts`. Surfaces deps that drift from the canonical version map. |
125
- | `lighthouse` | Runs `@lhci/cli autorun` using the canonical `lighthouserc.json`. |
125
+ | `lighthouse` | Runs `@lhci/cli autorun` using the canonical `lighthouserc.json`. Hits `/dev/a11y-fixtures` by default; sites without that route can set `package.json#reddoor.lighthouseUrl` to override. |
126
126
  | `a11y` | Spawns Playwright + `@axe-core/playwright` against a canonical set of a11y routes. |
127
127
  | `security` | `pnpm audit --json --prod` with automatic fall-through to `npm audit` when pnpm can't run (missing lockfile, error envelope, etc.). Normalises advisory shapes from both tools into a single `AdvisoryEntry[]`. |
128
128
  | `lint` | ESLint + Prettier using the canonical configs (re-exported via `@reddoorla/maintenance/configs/eslint` and `@reddoorla/maintenance/configs/prettier`). |
@@ -258,7 +258,13 @@ RESEND_WEBHOOK_SECRET=whsec_XXXX # only for the deployed webhook
258
258
 
259
259
  ### Operator flow
260
260
 
261
- 0. **Prereq: keep Lighthouse scores fresh on the Websites row.** From each site's checkout, run `reddoor-maint audit lighthouse` and paste the four numbers (Performance, Accessibility, Best Practices, SEO) into the Websites row's `pScore` / `rScore` / `bpScore` / `seoScore` fields. The report orchestrator copies these into the new Reports row — drafting a report for a site missing scores fails with a clear error.
261
+ 0. **Prereq: refresh Lighthouse scores on each Websites row.** From each site's checkout:
262
+
263
+ ```bash
264
+ reddoor-maint audit lighthouse --write-airtable
265
+ ```
266
+
267
+ This runs Lighthouse and writes the 4 scores directly to the matching Websites row (slug auto-derived from `package.json#name`; pass `--write-airtable=<slug>` to override), along with a `Last lighthouse audit at` timestamp. The report orchestrator copies these into the new Reports row — drafting a report for a site missing scores fails with a clear error.
262
268
 
263
269
  1. **Draft overdue reports**
264
270