Budgets and checks: PERF_BUDGETS / perfBudgets / overBudget, the reference gate (both bundlers), the doctor's performance group (static, live, deep)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 13:51:43 +01:00
co-authored by Claude Opus 5.5
parent 21073d98d0
commit 801b897ea0
10 changed files with 674 additions and 6 deletions
+4
View File
@@ -13,6 +13,7 @@ export { planSkills } from '../modules/doctor/rules/agents.js'
export { DEFAULT_SRC_ALLOW, findFrontend } from '../modules/doctor/rules/layout.js'
export type { FrontendLayout } from '../modules/doctor/rules/layout.js'
export { createLiveFetcher } from '../modules/doctor/rules/live.js'
export { performanceRules } from '../modules/doctor/rules/performance.js'
export { AUDIT_RULE_MAP, parseToolOutput } from '../modules/doctor/rules/tooling.js'
export { applySettings, AUDIT_SKIP_RULES, doctorRules, globToRegExp, runDeepProbe, runDoctor } from '../modules/doctor/run.js'
export type { RunDoctorOptions } from '../modules/doctor/run.js'
@@ -29,6 +30,9 @@ export type {
DoctorStatus,
RuleFinding,
} from '../modules/doctor/types.js'
// Performance budgets (docs/performance.md): the defaults, a project's own on top, and the check the gate runs
export { IMAGE_RULES, overBudget, PERF_BUDGETS, perfBudgets, SERVER_BUDGET } from '../modules/performance/budgets.js'
export type { PerfBudget, PerfMeasurement, PerfProfile, ServerBudget } from '../modules/performance/budgets.js'
// routes:check — the site's public routes against the judged snapshot (docs/security.md "Routes nobody has judged")
export { runRouteCheck } from '../modules/security/routeCheck.js'
export type { RunRouteCheckOptions } from '../modules/security/routeCheck.js'