Adds `withAnalytics(analytics, factory)` to packages/core-analytics — mirrors the `withAudit` pattern: thin forwarding closure that attaches the `__analyzed` brand via `attachBrand` from `@repo/core-shared/conformance` without mutating the original factory. Exports `Analyzed<F>` type and `withAnalytics` from the `@repo/core-analytics` root barrel. Adds `with-analytics.test.ts` asserting brand is present after wrapping, absent on the original fn, output passes through unchanged, and errors propagate. Adds `@repo/core-shared` as a production dependency. Also fixes `scripts/library-decisions/check.mjs` to exempt workspace-protocol entries (`workspace:*`) from the library trace requirement — internal monorepo packages are not third-party libraries and were incorrectly gated. Adds a regression test in `check.test.mjs` covering the exemption. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
105 lines
1.9 KiB
JSON
105 lines
1.9 KiB
JSON
{
|
|
"generatedAt": "2026-05-18T11:50:20.112Z",
|
|
"commit": "a5ab698",
|
|
"repo": {
|
|
"statements": 95.89,
|
|
"branches": 89.07,
|
|
"functions": 100,
|
|
"lines": 95.89,
|
|
"counts": {
|
|
"lf": 3140,
|
|
"lh": 3011,
|
|
"brf": 494,
|
|
"brh": 440,
|
|
"fnf": 149,
|
|
"fnh": 149
|
|
}
|
|
},
|
|
"byPackage": {
|
|
"@repo/auth": {
|
|
"statements": 93.81,
|
|
"branches": 90.82,
|
|
"functions": 100,
|
|
"lines": 93.81,
|
|
"counts": {
|
|
"lf": 791,
|
|
"lh": 742,
|
|
"brf": 98,
|
|
"brh": 89,
|
|
"fnf": 44,
|
|
"fnh": 44
|
|
}
|
|
},
|
|
"@repo/blog": {
|
|
"statements": 96.36,
|
|
"branches": 88.65,
|
|
"functions": 100,
|
|
"lines": 96.36,
|
|
"counts": {
|
|
"lf": 741,
|
|
"lh": 714,
|
|
"brf": 141,
|
|
"brh": 125,
|
|
"fnf": 29,
|
|
"fnh": 29
|
|
}
|
|
},
|
|
"@repo/core-analytics": {
|
|
"statements": 100,
|
|
"branches": 100,
|
|
"functions": 100,
|
|
"lines": 100,
|
|
"counts": {
|
|
"lf": 27,
|
|
"lh": 27,
|
|
"brf": 7,
|
|
"brh": 7,
|
|
"fnf": 7,
|
|
"fnh": 7
|
|
}
|
|
},
|
|
"@repo/marketing-pages": {
|
|
"statements": 95.64,
|
|
"branches": 83.93,
|
|
"functions": 100,
|
|
"lines": 95.64,
|
|
"counts": {
|
|
"lf": 711,
|
|
"lh": 680,
|
|
"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
|
|
}
|
|
}
|
|
}
|
|
}
|