Files
agentic-dev/coverage/summary.json
Danijel Martinek b61bb0c11e feat(auth): add signIn rate-limit backfill with dual ip/account budgets
Wires the rate-limit primitive end-to-end through auth.signIn as the
canonical credential-stuffing defence example:

- manifest: rateLimit [ip 5/1m, account 10/1h] on signIn use case
- use case: rateLimit: IRateLimit dep; dual consume + TooManyRequestsError
- binders: ctx.rateLimit ?? new NoopRateLimit() in bind-production + bind-dev-seed
- tRPC: TooManyRequestsError → TOO_MANY_REQUESTS error code in authProcedure
- tests: RecordingRateLimit dual-consume assertion; InMemoryRateLimit
  budget-1 ip + account rejection; coverage 100% on use-cases layer
- ESLint: _manifest-ast.js extractRateLimitNames handles RateLimitBudget
  objects ({name,window,budget}) in addition to plain string literals,
  no-undeclared-rate-limit passes on both "ip" and "account" call sites

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 09:22:41 +00:00

175 lines
3.2 KiB
JSON

{
"generatedAt": "2026-05-20T09:21:52.321Z",
"commit": "91d7a24",
"repo": {
"statements": 97.38,
"branches": 92.39,
"functions": 97.21,
"lines": 97.38,
"counts": {
"lf": 5948,
"lh": 5792,
"brf": 1196,
"brh": 1105,
"fnf": 359,
"fnh": 349
}
},
"byPackage": {
"@repo/auth": {
"statements": 93.81,
"branches": 92.5,
"functions": 100,
"lines": 93.81,
"counts": {
"lf": 872,
"lh": 818,
"brf": 120,
"brh": 111,
"fnf": 46,
"fnh": 46
}
},
"@repo/blog": {
"statements": 96.35,
"branches": 88.65,
"functions": 100,
"lines": 96.35,
"counts": {
"lf": 739,
"lh": 712,
"brf": 141,
"brh": 125,
"fnf": 29,
"fnh": 29
}
},
"@repo/core-analytics": {
"statements": 100,
"branches": 100,
"functions": 100,
"lines": 100,
"counts": {
"lf": 52,
"lh": 52,
"brf": 12,
"brh": 12,
"fnf": 10,
"fnh": 10
}
},
"@repo/core-api": {
"statements": 100,
"branches": 100,
"functions": 100,
"lines": 100,
"counts": {
"lf": 17,
"lh": 17,
"brf": 0,
"brh": 0,
"fnf": 0,
"fnh": 0
}
},
"@repo/core-consent": {
"statements": 99.72,
"branches": 94.85,
"functions": 97.06,
"lines": 99.72,
"counts": {
"lf": 351,
"lh": 350,
"brf": 97,
"brh": 92,
"fnf": 34,
"fnh": 33
}
},
"@repo/core-dsr": {
"statements": 100,
"branches": 92.48,
"functions": 97.44,
"lines": 100,
"counts": {
"lf": 697,
"lh": 697,
"brf": 133,
"brh": 123,
"fnf": 39,
"fnh": 38
}
},
"@repo/core-shared": {
"statements": 98.21,
"branches": 96.19,
"functions": 92.98,
"lines": 98.21,
"counts": {
"lf": 1176,
"lh": 1155,
"brf": 341,
"brh": 328,
"fnf": 114,
"fnh": 106
}
},
"@repo/core-ui": {
"statements": 100,
"branches": 91.35,
"functions": 100,
"lines": 100,
"counts": {
"lf": 412,
"lh": 412,
"brf": 104,
"brh": 95,
"fnf": 18,
"fnh": 18
}
},
"@repo/marketing-pages": {
"statements": 95.93,
"branches": 83.93,
"functions": 100,
"lines": 95.93,
"counts": {
"lf": 762,
"lh": 731,
"brf": 112,
"brh": 94,
"fnf": 32,
"fnh": 32
}
},
"@repo/media": {
"statements": 97.15,
"branches": 90.63,
"functions": 100,
"lines": 97.15,
"counts": {
"lf": 561,
"lh": 545,
"brf": 96,
"brh": 87,
"fnf": 24,
"fnh": 24
}
},
"@repo/navigation": {
"statements": 98.06,
"branches": 95,
"functions": 100,
"lines": 98.06,
"counts": {
"lf": 309,
"lh": 303,
"brf": 40,
"brh": 38,
"fnf": 13,
"fnh": 13
}
}
}
}