mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 18:15:48 +00:00
chore(hardening): refresh Gemini auth inventory
This commit is contained in:
1 parent
c4fc5e8985
commit
8d7446e3ff
2 files changed
+28
-28
No files matched your search
@@ -300,8 +300,8 @@
|
||||
]
|
||||
},
|
||||
"legacyShim": {
|
||||
"totalMarkers": 456,
|
||||
"filesAffected": 171,
|
||||
"totalMarkers": 458,
|
||||
"filesAffected": 173,
|
||||
"topFiles": [
|
||||
{
|
||||
"file": "src/auth/profile-detector.ts",
|
||||
@@ -491,11 +491,11 @@
|
||||
},
|
||||
"maintainability": {
|
||||
"typedErrors": {
|
||||
"totalThrows": 446,
|
||||
"typedThrows": 74,
|
||||
"totalThrows": 452,
|
||||
"typedThrows": 80,
|
||||
"plainThrows": 312,
|
||||
"otherThrows": 60,
|
||||
"adoptionRatio": 0.1659,
|
||||
"adoptionRatio": 0.177,
|
||||
"topSubdomainsByThrows": [
|
||||
{
|
||||
"subdomain": "web-server",
|
||||
@@ -539,6 +539,12 @@
|
||||
"typed": 4,
|
||||
"plain": 17
|
||||
},
|
||||
{
|
||||
"subdomain": "cliproxy/auth",
|
||||
"count": 16,
|
||||
"typed": 16,
|
||||
"plain": 0
|
||||
},
|
||||
{
|
||||
"subdomain": "cliproxy/accounts",
|
||||
"count": 13,
|
||||
@@ -550,12 +556,6 @@
|
||||
"count": 12,
|
||||
"typed": 12,
|
||||
"plain": 0
|
||||
},
|
||||
{
|
||||
"subdomain": "cliproxy/ai-providers",
|
||||
"count": 12,
|
||||
"typed": 0,
|
||||
"plain": 12
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -566,15 +566,15 @@
|
||||
"web-server/routes",
|
||||
"auth"
|
||||
],
|
||||
"numerator": 22,
|
||||
"denominator": 24,
|
||||
"ratio": 0.9167,
|
||||
"numerator": 28,
|
||||
"denominator": 30,
|
||||
"ratio": 0.9333,
|
||||
"targetRatio": 0.4
|
||||
},
|
||||
"loggerCoverage": {
|
||||
"filesWithCreateLogger": 65,
|
||||
"totalSourceFiles": 756,
|
||||
"coverageRatio": 0.086,
|
||||
"totalSourceFiles": 758,
|
||||
"coverageRatio": 0.0858,
|
||||
"subdomainsWithZeroCreateLogger": [
|
||||
"api",
|
||||
"bin",
|
||||
@@ -608,6 +608,11 @@
|
||||
"count": 90,
|
||||
"withLogger": 1
|
||||
},
|
||||
{
|
||||
"subdomain": "cliproxy/auth",
|
||||
"count": 32,
|
||||
"withLogger": 1
|
||||
},
|
||||
{
|
||||
"subdomain": "management",
|
||||
"count": 32,
|
||||
@@ -618,11 +623,6 @@
|
||||
"count": 31,
|
||||
"withLogger": 5
|
||||
},
|
||||
{
|
||||
"subdomain": "cliproxy/auth",
|
||||
"count": 30,
|
||||
"withLogger": 1
|
||||
},
|
||||
{
|
||||
"subdomain": "config",
|
||||
"count": 27,
|
||||
@@ -727,7 +727,7 @@
|
||||
},
|
||||
{
|
||||
"file": "src/cliproxy/auth/oauth-handler.ts",
|
||||
"loc": 1467
|
||||
"loc": 1510
|
||||
},
|
||||
{
|
||||
"file": "src/cursor/cursor-executor.ts",
|
||||
|
||||
@@ -10,8 +10,8 @@ Scope: `src/**/*.{ts,tsx,js,jsx,mjs,cjs}`
|
||||
| Sync fs files affected (all) | 257 |
|
||||
| Sync fs occurrences (runtime hotpaths) | 1103 |
|
||||
| Sync fs files affected (runtime hotpaths) | 151 |
|
||||
| Legacy shim markers | 456 |
|
||||
| Legacy shim files affected | 171 |
|
||||
| Legacy shim markers | 458 |
|
||||
| Legacy shim files affected | 173 |
|
||||
|
||||
## Top Runtime Hotpath Sync fs Files
|
||||
|
||||
@@ -56,11 +56,11 @@ Scope: `src/**/*.{ts,tsx,js,jsx,mjs,cjs}`
|
||||
|
||||
| Metric | Value |
|
||||
|---|---:|
|
||||
| typed-error adoption (typed/total throws) | 16.6% (74/446) |
|
||||
| typed-error adoption (P4 locked subdomains) | 91.7% (22/24), target 40% |
|
||||
| typed-error adoption (typed/total throws) | 17.7% (80/452) |
|
||||
| typed-error adoption (P4 locked subdomains) | 93.3% (28/30), target 40% |
|
||||
| hotpath console.error/warn occurrences | 266 (571 total, 305 CLI-UX exempt) |
|
||||
| hotpath console.error/warn files | 82 |
|
||||
| files with createLogger | 65/756 |
|
||||
| files with createLogger | 65/758 |
|
||||
| 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) |
|
||||
| files > 400 LOC | 91 |
|
||||
| files > 600 LOC | 42 |
|
||||
@@ -91,7 +91,7 @@ Scope: `src/**/*.{ts,tsx,js,jsx,mjs,cjs}`
|
||||
|---|---:|
|
||||
| `src/web-server/usage/native-quota-collector.ts` | 1662 |
|
||||
| `src/web-server/routes/cliproxy-auth-routes.ts` | 1531 |
|
||||
| `src/cliproxy/auth/oauth-handler.ts` | 1467 |
|
||||
| `src/cliproxy/auth/oauth-handler.ts` | 1510 |
|
||||
| `src/cursor/cursor-executor.ts` | 1234 |
|
||||
| `src/web-server/model-pricing.ts` | 1127 |
|
||||
| `src/cliproxy/config/generator.ts` | 1109 |
|
||||
|
||||
Reference in new issue
Block a user