diff --git a/docs/reports/hardening-inventory.json b/docs/reports/hardening-inventory.json index 1a238299..e810f90d 100644 --- a/docs/reports/hardening-inventory.json +++ b/docs/reports/hardening-inventory.json @@ -1,9 +1,9 @@ { "scope": "src/**/*.{ts,tsx,js,jsx,mjs,cjs}", "syncFs": { - "totalOccurrences": 2471, - "filesAffected": 261, - "hotpathOccurrences": 1186, + "totalOccurrences": 2514, + "filesAffected": 262, + "hotpathOccurrences": 1192, "hotpathFilesAffected": 155, "topHotpathFiles": [ { @@ -247,6 +247,21 @@ ], "markers": [] }, + { + "file": "src/cliproxy/binary/__tests__/binary-installer-atomic.test.ts", + "count": 37, + "calls": [ + "existsSync", + "mkdirSync", + "mkdtempSync", + "readdirSync", + "readFileSync", + "renameSync", + "rmSync", + "writeFileSync" + ], + "markers": [] + }, { "file": "src/cliproxy/executor/__tests__/variant-port-integration.test.js", "count": 36, @@ -286,22 +301,6 @@ "writeFileSync" ], "markers": [] - }, - { - "file": "src/utils/browser/mcp-installer.ts", - "count": 32, - "calls": [ - "chmodSync", - "copyFileSync", - "existsSync", - "mkdirSync", - "readFileSync", - "renameSync", - "statSync", - "unlinkSync", - "writeFileSync" - ], - "markers": [] } ] }, @@ -497,16 +496,16 @@ }, "maintainability": { "typedErrors": { - "totalThrows": 454, - "typedThrows": 83, - "plainThrows": 311, + "totalThrows": 455, + "typedThrows": 89, + "plainThrows": 306, "otherThrows": 60, - "adoptionRatio": 0.1828, + "adoptionRatio": 0.1956, "topSubdomainsByThrows": [ { "subdomain": "web-server", - "count": 103, - "typed": 16, + "count": 104, + "typed": 17, "plain": 45 }, { @@ -652,9 +651,9 @@ ] }, "hotpathConsoleErrors": { - "totalOccurrences": 592, + "totalOccurrences": 590, "exemptOccurrences": 326, - "hotpathOccurrences": 266, + "hotpathOccurrences": 264, "filesAffected": 81, "topFiles": [ { diff --git a/docs/reports/hardening-inventory.md b/docs/reports/hardening-inventory.md index 6928164e..90a6d9e1 100644 --- a/docs/reports/hardening-inventory.md +++ b/docs/reports/hardening-inventory.md @@ -6,9 +6,9 @@ Scope: `src/**/*.{ts,tsx,js,jsx,mjs,cjs}` | Metric | Value | |---|---:| -| Sync fs occurrences (all) | 2471 | -| Sync fs files affected (all) | 261 | -| Sync fs occurrences (runtime hotpaths) | 1186 | +| Sync fs occurrences (all) | 2514 | +| Sync fs files affected (all) | 262 | +| Sync fs occurrences (runtime hotpaths) | 1192 | | Sync fs files affected (runtime hotpaths) | 155 | | Legacy shim markers | 465 | | Legacy shim files affected | 176 | @@ -56,9 +56,9 @@ Scope: `src/**/*.{ts,tsx,js,jsx,mjs,cjs}` | Metric | Value | |---|---:| -| typed-error adoption (typed/total throws) | 18.3% (83/454) | +| typed-error adoption (typed/total throws) | 19.6% (89/455) | | typed-error adoption (P4 locked subdomains) | 93.3% (28/30), target 40% | -| hotpath console.error/warn occurrences | 266 (592 total, 326 CLI-UX exempt) | +| hotpath console.error/warn occurrences | 264 (590 total, 326 CLI-UX exempt) | | hotpath console.error/warn files | 81 | | files with createLogger | 65/764 | | subdomains with zero createLogger | 15 (api, bin, channels, cliproxy, cliproxy/accounts, cliproxy/ai-providers, cliproxy/binary, cliproxy/config, cliproxy/management, cliproxy/sync, cliproxy/types, config, dispatcher, shared, types) |