{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"page.ProviderDetailPage (cyclomatic 364): page.ProviderDetailPage has cyclomatic complexity 364 (threshold 15). Of this number, 106 points are the body\u0027s own statements and 258 belong to 74 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ea382a1a277274049bd78d5b5af2e4ece5632eaad1eaf62f68ec9f1341485a"}},{"ruleId":"D1","level":"warning","message":{"text":"page.ProfilePage (cyclomatic 245): page.ProfilePage has cyclomatic complexity 245 (threshold 15). Of this number, 78 points are the body\u0027s own statements and 167 belong to 31 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22cf9bbfe9597293045f8b65bc6cbb17a198065c0cefd3dceb386299fb80780"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderLimits (cyclomatic 237): ProviderLimits has cyclomatic complexity 237 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 188 belong to 118 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a2d849445213311b4e73e5f77fd4f7552a136702404e233b59c5dd82f4c147"}},{"ruleId":"D1","level":"warning","message":{"text":"EndpointPageClient.APIPageClient (cyclomatic 223): EndpointPageClient.APIPageClient has cyclomatic complexity 223 (threshold 15). Of this number, 62 points are the body\u0027s own statements and 161 belong to 41 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"252d85b9b426a642f7af04814f52b41eaa9f9771c49a84cdd55970f9fd0402cc"}},{"ruleId":"D1","level":"warning","message":{"text":"OAuthModal.OAuthModal (cyclomatic 205): OAuthModal.OAuthModal has cyclomatic complexity 205 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 160 belong to 18 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7484a6c8c7e1575eb2b68b0cae321c373780212ecf6ab029bca27a2463f06b"}},{"ruleId":"D1","level":"warning","message":{"text":"KiroExecutor.transformEventStreamToSSE (cyclomatic 172): KiroExecutor.transformEventStreamToSSE has cyclomatic complexity 172 (threshold 15). Most of this is not in the body itself: 3 of the 172 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 792, 996, 925, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cad0b05beb0e4dafe9fc09ba8bdeb67f920e648d93a6509fb4692df34fc7740"}},{"ruleId":"D1","level":"warning","message":{"text":"handleChatCore (cyclomatic 172): handleChatCore has cyclomatic complexity 172 (threshold 15). Of this number, 165 points are the body\u0027s own statements and 7 belong to 13 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"815fade5d965357cc4a182a79ba1765fb4603c9cc358080f7a5f46bbf3849ed0"}},{"ruleId":"D1","level":"warning","message":{"text":"parseQuotaData (cyclomatic 169): parseQuotaData has cyclomatic complexity 169 (threshold 15). Of this number, 60 points are the body\u0027s own statements and 109 belong to 34 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1714b3034550d8e6ecb6dc74d1905eb2301abffd24a44be518f10837fe718d"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicChatPageClient.BasicChatPageClient (cyclomatic 168): BasicChatPageClient.BasicChatPageClient has cyclomatic complexity 168 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 150 belong to 37 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf90c9cd3223205f53ffc65e5d0216ebf56a9b66ca8734e8c9660cff866b87fa"}},{"ruleId":"D1","level":"warning","message":{"text":"usageRepo.getUsageStats (cyclomatic 162): usageRepo.getUsageStats has cyclomatic complexity 162 (threshold 15). Of this number, 149 points are the body\u0027s own statements and 13 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"35106f04904493239131f20eaf4fee452d277b7cf777d268d1771a8d452a08cf"}},{"ruleId":"D1","level":"warning","message":{"text":"stream.createSSEStream (cyclomatic 148): stream.createSSEStream has cyclomatic complexity 148 (threshold 15). Of this number, 131 points are the body\u0027s own statements and 17 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5343abbff3a2e6626d54a8cecde98c29d6ab73ab80af808a0baf84fa83337c47"}},{"ruleId":"D1","level":"warning","message":{"text":"GenericExampleCard.GenericExampleCard (cyclomatic 141): GenericExampleCard.GenericExampleCard has cyclomatic complexity 141 (threshold 15). Of this number, 81 points are the body\u0027s own statements and 60 belong to 14 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66f9941cb90df794361259c3ce2178c6f7821fd822f9003eb54af670d5e2ae5"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 138): route.POST has cyclomatic complexity 138 (threshold 15). Of this number, 134 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26724888ba6a20268f9fbcd4a22cd05278c065334eb675a0eb3bb736d37aa9c"}},{"ruleId":"D1","level":"warning","message":{"text":"page.ProxyPoolsPage (cyclomatic 135): page.ProxyPoolsPage has cyclomatic complexity 135 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 100 belong to 30 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"391f9a8fe74054a9caa7f6646bff010a9ca1f386983f39f28567453ac4774c57"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenSaverClient (cyclomatic 133): TokenSaverClient has cyclomatic complexity 133 (threshold 15). Of this number, 59 points are the body\u0027s own statements and 74 belong to 84 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a591bee8cecbe307ac095579e588adfe872bdbcaec3c7fd4f574b9afa368a214"}},{"ruleId":"D1","level":"warning","message":{"text":"TtsExampleCard.TtsExampleCard (cyclomatic 123): TtsExampleCard.TtsExampleCard has cyclomatic complexity 123 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 69 belong to 18 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"69862877f9c2438322158f56221708bc92f6110f02f2f9f11ce01e874374e819"}},{"ruleId":"D1","level":"warning","message":{"text":"ProvidersPage (cyclomatic 116): ProvidersPage has cyclomatic complexity 116 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 86 belong to 68 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0552e44ed911477f995d42fa42f0089d4eca990434bb6620747640594c139ef"}},{"ruleId":"D1","level":"warning","message":{"text":"execute (cyclomatic 113): execute has cyclomatic complexity 113 (threshold 15). Most of this is not in the body itself: 13 of the 113 points are its own statements and the rest belongs to 15 function items inside it that branch (start::(anonymous), start, start::finish, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cd366b6fc43f6ae010452b29da61e2fb1f510949309a21c1c4926d6c9f4862"}},{"ruleId":"D1","level":"warning","message":{"text":"GenericCliToolCard (cyclomatic 110): GenericCliToolCard has cyclomatic complexity 110 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 74 belong to 44 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GenericCliToolCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4f2c3bd9cf34e7b302cb98c30a3e5ade7ed4851192fbd0b338599240ac59b4"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSelectModal.ModelSelectModal (cyclomatic 108): ModelSelectModal.ModelSelectModal has cyclomatic complexity 108 (threshold 15). Most of this is not in the body itself: 5 of the 108 points are its own statements and the rest belongs to 33 function literals inside it that branch (lines 232, 583, 449, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ModelSelectModal.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b61c016ff5e7f5fe0a58192c363f06eede7592d81b6b7f488177254480e451"}},{"ruleId":"D1","level":"warning","message":{"text":"AddApiKeyModal.AddApiKeyModal (cyclomatic 102): AddApiKeyModal.AddApiKeyModal has cyclomatic complexity 102 (threshold 15). Of this number, 70 points are the body\u0027s own statements and 32 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b5036cc0ab1e25da8a5aaa34d883ecf568efb335debbc94385a0183a3be3ae"}},{"ruleId":"D1","level":"warning","message":{"text":"route.buildModelsList (cyclomatic 100): route.buildModelsList has cyclomatic complexity 100 (threshold 15). Of this number, 77 points are the body\u0027s own statements and 23 belong to 9 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/route.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc9d85f6e8fbd660e30efa8515eca53835fb4097f1e48a5856ef34de0797133"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexToolCard.CodexToolCard (cyclomatic 94): CodexToolCard.CodexToolCard has cyclomatic complexity 94 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 54 belong to 21 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"87046d121b4e6d054333331a31e5dfe9e0bcd761f474c1778ebf2a1816659f55"}},{"ruleId":"D1","level":"warning","message":{"text":"createSSEStream::transform (cyclomatic 94): createSSEStream::transform has cyclomatic complexity 94 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"df87c78a66423c3f0ba0b02b7acd53af44d321a0059c88bc1b233aeae8ac72f3"}},{"ruleId":"D1","level":"warning","message":{"text":"CoworkToolCard.CoworkToolCard (cyclomatic 93): CoworkToolCard.CoworkToolCard has cyclomatic complexity 93 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 57 belong to 22 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bc040b1bd9ac15792097a508233ff52f95867112ff8a33a54e8349d016e62b"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeToolCard.OpenCodeToolCard (cyclomatic 89): OpenCodeToolCard.OpenCodeToolCard has cyclomatic complexity 89 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 55 belong to 18 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a883a4a334f711771be2d854a01d4e5b1ab23fef180c5f9f122aee0b7e4dff9"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionRow (cyclomatic 87): ConnectionRow has cyclomatic complexity 87 (threshold 15). Of this number, 68 points are the body\u0027s own statements and 19 belong to 23 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd14f9f8b2c241da6e4f6244dda10ab99cd8b2096550f1b170816f5c64c25b0b"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.getProviderCredentials (cyclomatic 86): auth.getProviderCredentials has cyclomatic complexity 86 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 33 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/auth.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bcb3dca52922d192712265bf310ff6a9881d73fc4b7cc476e46bafb6e9d835"}},{"ruleId":"D1","level":"warning","message":{"text":"ZedAuthModal (cyclomatic 86): ZedAuthModal has cyclomatic complexity 86 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 67 belong to 21 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ZedAuthModal.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6137baa73b5dfe3a758d012aa797d84ceafb72a883f9a9eae72f464ac42282d3"}},{"ruleId":"D1","level":"warning","message":{"text":"page.ComboDetailPage (cyclomatic 84): page.ComboDetailPage has cyclomatic complexity 84 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 55 belong to 12 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc26ec7f89323910f624e886ad61a71c093e5517c106d3b5acb1ead7c38d42e"}},{"ruleId":"D1","level":"warning","message":{"text":"startServer (cyclomatic 82): startServer has cyclomatic complexity 82 (threshold 15). Of this number, 69 points are the body\u0027s own statements and 13 belong to 7 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9a0670e2a812b95baf8d0fb7b90ac62c61c9b0687d9be641fb44e4721e040a"}},{"ruleId":"D1","level":"warning","message":{"text":"applyFormat (cyclomatic 79): applyFormat has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/thinkingUnified.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8196581386184b94004d12139fb4c9feb22ddfce205cc9a1d7d63e48ca9da956"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeToolCard.ClaudeToolCard (cyclomatic 78): ClaudeToolCard.ClaudeToolCard has cyclomatic complexity 78 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 52 belong to 22 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b279d9aec2023dbb3e7c614e2cee5d2bb535736d86ab1cdc89b55117d9a8d69c"}},{"ruleId":"D1","level":"warning","message":{"text":"CombosPage (cyclomatic 78): CombosPage has cyclomatic complexity 78 (threshold 15). Most of this is not in the body itself: 11 of the 78 points are its own statements and the rest belongs to 63 function items inside it that branch (handleGeneratePresets, fetchData, handleBulkSetStrategy, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2aff5319337a34f7a8f6684f711172def00dc709b6d1f0cb2a84503271b9f8"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiResponsesToOpenAIResponse (cyclomatic 74): openaiResponsesToOpenAIResponse has cyclomatic complexity 74 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"6515f0b062480460bd2b77a2a00a1f8ac4b82728dabbf5fd8bf2aab0a5d0ba26"}},{"ruleId":"D1","level":"warning","message":{"text":"parseGrokCliBilling (cyclomatic 74): parseGrokCliBilling has cyclomatic complexity 74 (threshold 15). Of this number, 70 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/grok-cli.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"beda5c8729eab8ee8aee80f0787df4718d17590ad83473ce4b8c72db5abd7629"}},{"ruleId":"D1","level":"warning","message":{"text":"handleForcedSSEToJson (cyclomatic 72): handleForcedSSEToJson has cyclomatic complexity 72 (threshold 15). Of this number, 69 points are the body\u0027s own statements and 3 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"778835e1479c1797b755f5aeef61fdd049334cf31d65c9f10f90fc7490d598ff"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-kiro.convertMessages (cyclomatic 71): openai-to-kiro.convertMessages has cyclomatic complexity 71 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 15 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-kiro.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5ca29a72ee82b2ee446a3daf4b30113ce294fe1f2007c5e8a9ea671a548b08"}},{"ruleId":"D1","level":"warning","message":{"text":"DroidToolCard.DroidToolCard (cyclomatic 71): DroidToolCard.DroidToolCard has cyclomatic complexity 71 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 45 belong to 16 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d572460b87304e4d74094cf466185d6f26ea5f3dfbd4f1b66c9d9623441f71cd"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenClawToolCard.OpenClawToolCard (cyclomatic 71): OpenClawToolCard.OpenClawToolCard has cyclomatic complexity 71 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 43 belong to 16 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2d4798787eaea7026059009542e1b36134585fc366f0329225f53896e2e55c"}},{"ruleId":"D1","level":"warning","message":{"text":"GrokBuildToolCard.GrokBuildToolCard (cyclomatic 71): GrokBuildToolCard.GrokBuildToolCard has cyclomatic complexity 71 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 37 belong to 12 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cc249ac262848b2ed811f647c6dbf4eec9df6553cee9cfb67b915a33e3b5b9"}},{"ruleId":"D1","level":"warning","message":{"text":"JcodeToolCard.JcodeToolCard (cyclomatic 70): JcodeToolCard.JcodeToolCard has cyclomatic complexity 70 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 44 belong to 14 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb21cdd832d4986851a852f752532afe33ea12b3ba2ab4a27802a2054745bc8"}},{"ruleId":"D1","level":"warning","message":{"text":"EditConnectionModal.EditConnectionModal (cyclomatic 70): EditConnectionModal.EditConnectionModal has cyclomatic complexity 70 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 44 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/EditConnectionModal.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee79f954c1815071920f17f95452ff6316c787f610174a6a8cf729af5ed2870"}},{"ruleId":"D1","level":"warning","message":{"text":"translateNonStreamingResponse (cyclomatic 70): translateNonStreamingResponse has cyclomatic complexity 70 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"21705987b90424005c44b6e9d7b1b083d28a2912126e717e80dcf9555f6275b4"}},{"ruleId":"D1","level":"warning","message":{"text":"HermesToolCard.HermesToolCard (cyclomatic 69): HermesToolCard.HermesToolCard has cyclomatic complexity 69 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 41 belong to 15 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b958cb8adf2fbe1e097542ffdb57ecd5bf04191558e7380d11096b7cec6a6dfc"}},{"ruleId":"D1","level":"warning","message":{"text":"transformEventStreamToSSE::processEvent (cyclomatic 69): transformEventStreamToSSE::processEvent has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3951455baf83a423c1d5334eb079ebf5148406ad65c0505151740a058482cfb"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiResponsesToOpenAIRequest (cyclomatic 68): openaiResponsesToOpenAIRequest has cyclomatic complexity 68 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 21 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-responses.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa42098e8275cc9039307dd614b8175576e82f954671a0e5e431b4afad1fcf82"}},{"ruleId":"D1","level":"warning","message":{"text":"claude.prepareClaudeRequest (cyclomatic 67): claude.prepareClaudeRequest has cyclomatic complexity 67 (threshold 15). Of this number, 61 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85f8bd2ff94c36f3e51aacd8a6fead647cdcd3098395f1087e3f074aef974f0"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-gemini.openaiToGeminiBase (cyclomatic 67): openai-to-gemini.openaiToGeminiBase has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-gemini.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"63beeecd4b957bab2b92e4a2218c112ac30274bfc77cb00a494dcedce4514708"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 67): route.POST has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c3e9c5748afaded830bc18ba7277ee7ef44b296b5d5923ec55256c80798f20"}},{"ruleId":"D1","level":"warning","message":{"text":"AntigravityToolCard.AntigravityToolCard (cyclomatic 65): AntigravityToolCard.AntigravityToolCard has cyclomatic complexity 65 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 40 belong to 16 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/AntigravityToolCard.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e9f6265530ad8335fb9c253a75d7f04dd3488cf3f7686c482734f1e72e8e01"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageStats (cyclomatic 64): UsageStats has cyclomatic complexity 64 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 41 belong to 37 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e1c823486bf77c8a51b4e06ca2c5e80b3c0e4323514bcdd48d06b8f06b0b54"}},{"ruleId":"D1","level":"warning","message":{"text":"page.MediaProviderDetailPage (cyclomatic 63): page.MediaProviderDetailPage has cyclomatic complexity 63 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 9 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"462e498befb1a1e08e6aa9f664f57b4c956ece38703785a21b06cfca827b9074"}},{"ruleId":"D1","level":"warning","message":{"text":"executeAgent (cyclomatic 63): executeAgent has cyclomatic complexity 63 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 44 belong to 9 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ef77e2899a8d5bfc9b971b8bda3be171cd9ac67663bae179cad8cebcec5a28"}},{"ruleId":"D1","level":"warning","message":{"text":"SttExampleCard.SttExampleCard (cyclomatic 62): SttExampleCard.SttExampleCard has cyclomatic complexity 62 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 25 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/SttExampleCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76c277f11790cdb0dc661e9e5ac2f6c61a948311fbdc1b5bd5ce96f2bd619cc"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepSeekTuiToolCard.DeepSeekTuiToolCard (cyclomatic 61): DeepSeekTuiToolCard.DeepSeekTuiToolCard has cyclomatic complexity 61 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 36 belong to 13 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"885d76c1890d21ee035e944ad3832d02dbe78d6fc3a0c3e2d328fd8be3d30581"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 61): route.GET has cyclomatic complexity 61 (threshold 15). Of this number, 60 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab34ffb7c4d0ac89c6360044a3bfb05015005fd94f1d0c79c5006a9339086df"}},{"ruleId":"D1","level":"warning","message":{"text":"ClineToolCard.ClineToolCard (cyclomatic 60): ClineToolCard.ClineToolCard has cyclomatic complexity 60 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 32 belong to 12 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3418457b1fcc246c155adbc53d4d6e45109f43adb663c3f258ddefbe64ddcf"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-to-kiro.convertClaudeMessagesToKiro (cyclomatic 58): claude-to-kiro.convertClaudeMessagesToKiro has cyclomatic complexity 58 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-kiro.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b68fe21be20995ca7d065b51c9e9d2074efb88810b37ab35987af928299717e"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 58): route.POST has cyclomatic complexity 58 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 10 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/xiaomi-mimo/api-key/route.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc05af51c6180884fa1cbbe842deff192cbb85275cf5fdcf9b906da4d467b7a"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-to-openai.claudeToOpenAIResponse (cyclomatic 57): claude-to-openai.claudeToOpenAIResponse has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/claude-to-openai.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e8b711f3d5ea9b83099ef10dbdfb02065f2b741bda70ee3414f6e3d9ef67ab"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexExecutor.transformRequest (cyclomatic 56): CodexExecutor.transformRequest has cyclomatic complexity 56 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8fe348d4615dddb26e5333a17a4d00a9a049c58deadfa1f35495f05bcaf7ea"}},{"ruleId":"D1","level":"warning","message":{"text":"combo.detectRequiredCapabilities (cyclomatic 56): combo.detectRequiredCapabilities has cyclomatic complexity 56 (threshold 15). Most of this is not in the body itself: 7 of the 56 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 141, 117, 109, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"56aa35d089b433320d45de6ab4d37e6cba533bb3d719c6e7725d2454baac403e"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotToolCard.CopilotToolCard (cyclomatic 56): CopilotToolCard.CopilotToolCard has cyclomatic complexity 56 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 39 belong to 14 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75140e71c92b01784d982ffdc0dac18ff0b5442d8689bf9d61a9bf55dbebc5d"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionsCard.ConnectionRow (cyclomatic 56): ConnectionsCard.ConnectionRow has cyclomatic complexity 56 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 9 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a70a33c551a7c76056097596d2145faa0ed70722bd2a0dc745da11c022d6865"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolDetailClient.ToolDetailClient (cyclomatic 54): ToolDetailClient.ToolDetailClient has cyclomatic complexity 54 (threshold 15). Most of this is not in the body itself: 3 of the 54 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 129, 31, 74, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f699ff3eece8dcc1d6dbeb04fad20def0bb2334d527fbeeafe1874406e78ff"}},{"ruleId":"D1","level":"warning","message":{"text":"XiaomiMimoAuthModal.XiaomiMimoAuthModal (cyclomatic 54): XiaomiMimoAuthModal.XiaomiMimoAuthModal has cyclomatic complexity 54 (threshold 15). Most of this is not in the body itself: 15 of the 54 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 131, 102, 148, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/XiaomiMimoAuthModal.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cd4ac2aaff392b81ca9384185f87c871bd70e050fb6ca50e15c90ee0b40734"}},{"ruleId":"D1","level":"warning","message":{"text":"MitmServerCard (cyclomatic 54): MitmServerCard has cyclomatic complexity 54 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 27 belong to 20 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d20c2a74fffa0edcd9756ec427addce3bafaf6e956a2ac01349c3ec2cc7edfd"}},{"ruleId":"D1","level":"warning","message":{"text":"importLegacyMain (cyclomatic 54): importLegacyMain has cyclomatic complexity 54 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 34 belong to 10 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/migrate.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2341dcef96b77737f0b37c0d588ca939e0dd53353e4a60f5638c489742a849"}},{"ruleId":"D1","level":"warning","message":{"text":"McpMarketplaceModal (cyclomatic 54): McpMarketplaceModal has cyclomatic complexity 54 (threshold 15). Most of this is not in the body itself: 5 of the 54 points are its own statements and the rest belongs to 34 function items inside it that branch ((anonymous), (anonymous)::(anonymous), fetchTools, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/McpMarketplaceModal.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"508d112f0b6a96a42c558dd3d4ebc158e5eb5b7c5d1a389413e0aa53bc130296"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-cursor.convertMessages (cyclomatic 53): openai-to-cursor.convertMessages has cyclomatic complexity 53 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-cursor.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e88d311f2d9d2511dbfb77d3c382e156a9f3b490936c5a1ae1490fdc6f7b702"}},{"ruleId":"D1","level":"warning","message":{"text":"KiloToolCard.KiloToolCard (cyclomatic 52): KiloToolCard.KiloToolCard has cyclomatic complexity 52 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 27 belong to 11 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c040ce44ce2b4092abca5c521f7044ab068fa248fcf78c398fb8cdb2b20d96"}},{"ruleId":"D1","level":"warning","message":{"text":"page.LoginPage (cyclomatic 52): page.LoginPage has cyclomatic complexity 52 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 20 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/login/page.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d0fd9c2bd7419544a2b5e95e0be26c516eaf751875fcd16177e6800e8e3a45"}},{"ruleId":"D1","level":"warning","message":{"text":"AntigravityExecutor.transformRequest (cyclomatic 51): AntigravityExecutor.transformRequest has cyclomatic complexity 51 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 17 belong to 3 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/antigravity.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc9dcb1cd4427e035adad1f48b2ead0cfdc7e3df9031a237ce53b8d38692d24"}},{"ruleId":"D1","level":"warning","message":{"text":"attachments.rewriteBlock (cyclomatic 51): attachments.rewriteBlock has cyclomatic complexity 51 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/attachments.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8db5ee2696662325b794953770bed1671cd7dff35995fff71cce8ce1adf6c2"}},{"ruleId":"D1","level":"warning","message":{"text":"kiro-to-openai.kiroToOpenAIResponse (cyclomatic 50): kiro-to-openai.kiroToOpenAIResponse has cyclomatic complexity 50 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-openai.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d22f556de086dbdb90d113229f1be5a4bb10f69aa4d62f5d00d1d08133d5ee1"}},{"ruleId":"D1","level":"warning","message":{"text":"responsesTransformer.createResponsesApiTransformStream (cyclomatic 50): responsesTransformer.createResponsesApiTransformStream has cyclomatic complexity 50 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 12 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/transformer/responsesTransformer.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1eeb61a4ba4984119f4014cc1747c1027cc6929ff3d08a7757997fbe08607c"}},{"ruleId":"D1","level":"warning","message":{"text":"OAuthModal::startOAuthFlow (cyclomatic 50): OAuthModal::startOAuthFlow has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b850e87eb1143a3b08cdfb3efaaf775611ccdf299aa1a78494f3d9cff5181b"}},{"ruleId":"D1","level":"warning","message":{"text":"index.importDb (cyclomatic 49): index.importDb has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 4 of the 49 points are its own statements and the rest belongs to one function literal inside it that branches (line 102). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/index.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcca7577783572e594dea80c3dfa00d2208a3d8bf99cea130f227e1238cf278"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeClaudePassthrough (cyclomatic 49): normalizeClaudePassthrough has cyclomatic complexity 49 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 9 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efe4f49003b982a97fcf3eb24caaf101309c2f42c7d37ddccaffae9d00050bb"}},{"ruleId":"D1","level":"warning","message":{"text":"openai.filterToOpenAIFormat (cyclomatic 48): openai.filterToOpenAIFormat has cyclomatic complexity 48 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 18 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/openai.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b2ecf392b9cec818c334a16984cf54df53c9097f5b0a6dd3611a94243d0491"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-responses.openaiToOpenAIResponsesRequest (cyclomatic 48): openai-responses.openaiToOpenAIResponsesRequest has cyclomatic complexity 48 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 11 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-responses.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"4337e1a799ad5d8538db6ab88450f9be4b7b32cab133dd469bd739bad068dd88"}},{"ruleId":"D1","level":"warning","message":{"text":"commandcode-to-openai.commandCodeToOpenAIResponse (cyclomatic 48): commandcode-to-openai.commandCodeToOpenAIResponse has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/commandcode-to-openai.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"994a464d5a936bc9c97c5031ac270cab1c9710305ee529e9aca048c37d4f45ea"}},{"ruleId":"D1","level":"warning","message":{"text":"imageGenerationCore.handleImageGenerationCore (cyclomatic 48): imageGenerationCore.handleImageGenerationCore has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageGenerationCore.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a034325ab0be517c17b9f8bce54c39dac8c21da8f032c62df2bbd762400544"}},{"ruleId":"D1","level":"warning","message":{"text":"KiroAuthModal (cyclomatic 48): KiroAuthModal has cyclomatic complexity 48 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 22 belong to 24 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/KiroAuthModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6851285b4e5537583a270cb7b892448f3c8b078f632c4c14b25cdcbc83e98c2"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-gemini.wrapInCloudCodeEnvelopeForClaude (cyclomatic 47): openai-to-gemini.wrapInCloudCodeEnvelopeForClaude has cyclomatic complexity 47 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-gemini.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3a275215a8e1c11a7c5562a610f8793d8fc91d4618ceb5e78c2756653ad818"}},{"ruleId":"D1","level":"warning","message":{"text":"geminiLiveStt.transcribeGeminiLive (cyclomatic 47): geminiLiveStt.transcribeGeminiLive has cyclomatic complexity 47 (threshold 15). Most of this is not in the body itself: 6 of the 47 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 218, 127, 179, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/geminiLiveStt.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9663835bb73c26bb0ad3f8900180682cdf02090df15fdc63ae344a8e125e22"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeGrokCliTools (cyclomatic 47): normalizeGrokCliTools has cyclomatic complexity 47 (threshold 15). Most of this is not in the body itself: 15 of the 47 points are its own statements and the rest belongs to one function literal inside it that branches (line 251). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-cli.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea9c142017466abd98385b1de5a1b713b7d5a19b6f416951344004cc47a4a6c"}},{"ruleId":"D1","level":"warning","message":{"text":"modelSelector.selectModelFromList (cyclomatic 46): modelSelector.selectModelFromList has cyclomatic complexity 46 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/modelSelector.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3822e14a4d0a8d36c0533bbf6059126c81f7c8e1e68b10aa37100a67e4dd28"}},{"ruleId":"D1","level":"warning","message":{"text":"extractContent (cyclomatic 46): extractContent has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1048f387cfa7c50075bf683933bb65361891b9799a69d6d8ece37e6a0a0d714"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultToolCard.DefaultToolCard (cyclomatic 44): DefaultToolCard.DefaultToolCard has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 4 of the 44 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 147, 106, 20, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DefaultToolCard.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b13a16a385dcdbf2cf836262881a4eef0b76f36f147ac870e98f025abfa007d"}},{"ruleId":"D1","level":"warning","message":{"text":"EmbeddingExampleCard.EmbeddingExampleCard (cyclomatic 44): EmbeddingExampleCard.EmbeddingExampleCard has cyclomatic complexity 44 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 20 belong to 8 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/EmbeddingExampleCard.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c306ac411827ad527f2a1902d02ca22eb7254fe96a07a641f048dbebcd1b100"}},{"ruleId":"D1","level":"warning","message":{"text":"MitmToolCard (cyclomatic 44): MitmToolCard has cyclomatic complexity 44 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 24 belong to 22 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9280aeb87a2c478421afaba542936980296dfd6c7fce5d2069397d46b0a8c0"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionsCard.ConnectionsCard (cyclomatic 43): ConnectionsCard.ConnectionsCard has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 5 of the 43 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 309, 330, 410, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"400912430d49601d0fe9dced9fc5ceec18b900edf94e52edbb00f76c041f233b"}},{"ruleId":"D1","level":"warning","message":{"text":"sendMessage (cyclomatic 43): sendMessage has cyclomatic complexity 43 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 10 belong to 17 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef112b9ecebbe23690ae51b8a7109e85b5f112e0022ad210a37505975a2a3f2"}},{"ruleId":"D1","level":"warning","message":{"text":"handleSingleModelChat (cyclomatic 43): handleSingleModelChat has cyclomatic complexity 43 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 3 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/chat.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c44d255f68268eaf363190c381a2946e0c7c463a94333635f88be1e9973adbc"}},{"ruleId":"D1","level":"warning","message":{"text":"codex.normalizeCodexTools (cyclomatic 42): codex.normalizeCodexTools has cyclomatic complexity 42 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 26 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb02503c854319c0b350b725a868bb6c929613695d93e45ad05e2c1093f1649"}},{"ruleId":"D1","level":"warning","message":{"text":"transformEventStreamToSSE::finish (cyclomatic 42): transformEventStreamToSSE::finish has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c6c4a90bde46094b1f96e1f00de88b63d3756fcfd8b1011cb09dfd832b9dda"}},{"ruleId":"D1","level":"warning","message":{"text":"handleNonStreamingResponse (cyclomatic 42): handleNonStreamingResponse has cyclomatic complexity 42 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f55fd2c06d90f4f738e9239dc4601b232e76b830a554d8db74a2e362900b5d"}},{"ruleId":"D1","level":"warning","message":{"text":"createProviderConnection (cyclomatic 42): createProviderConnection has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 1 of the 42 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 140, 161, 192). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/connectionsRepo.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b7610af9aa3ae879718cafb27e45d3e870ccd27e7a7c3ce33010f6fd66e1b5"}},{"ruleId":"D1","level":"warning","message":{"text":"buildOutput.buildOutput (cyclomatic 41): buildOutput.buildOutput has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/buildOutput.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff46615868885623a48189a59fbf1f2393a415968c66c0073f25de61067ef3d7"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestDetailsTab.RequestDetailsTab (cyclomatic 41): RequestDetailsTab.RequestDetailsTab has cyclomatic complexity 41 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 12 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e66e69f766b2d39bcbb99dde1ce6c942fdf31aab5192c523b7d256ac46e785"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiToClaudeRequest (cyclomatic 41): openaiToClaudeRequest has cyclomatic complexity 41 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 2 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-claude.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"82831a1a7f551a56cfd3427e47e07282b7f6e33293bc0c1ba0326e229d71a0c3"}},{"ruleId":"D1","level":"warning","message":{"text":"kiroToClaudeResponse (cyclomatic 41): kiroToClaudeResponse has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-claude.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfcc9d8b75543d4c888cae18c5887a7bb6853a35390898bd13b79b5a929f890"}},{"ruleId":"D1","level":"warning","message":{"text":"PxpipeClient.PxpipeClient (cyclomatic 40): PxpipeClient.PxpipeClient has cyclomatic complexity 40 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 15 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/pxpipe/PxpipeClient.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac5112c364b8e8b9af71a7d8922eddd07db803604bba9b3191595c9cdcf9003"}},{"ruleId":"D1","level":"warning","message":{"text":"openaiToClaudeResponse (cyclomatic 40): openaiToClaudeResponse has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-to-claude.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc8a55ed64658eb90d98710b25f3217e162dd87289791e57e0b64f995d20bb0"}},{"ruleId":"D1","level":"warning","message":{"text":"QuotaTable.QuotaTable (cyclomatic 39): QuotaTable.QuotaTable has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 11 of the 39 points are its own statements and the rest belongs to one function literal inside it that branches (line 152). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaTable.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bb837674dec833730b38cad194170913a8c49dcc4bd1a768283c426ab4944d"}},{"ruleId":"D1","level":"warning","message":{"text":"usageTracking.extractUsage (cyclomatic 38): usageTracking.extractUsage has cyclomatic complexity 38 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/usageTracking.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95b1c2a8d3ab5e2ae5fae210bcd187cfb73c23f2ee2c8a31050ed51590b2a3b"}},{"ruleId":"D1","level":"warning","message":{"text":"qoder.wrapQoderSSE (cyclomatic 38): qoder.wrapQoderSSE has cyclomatic complexity 38 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 15 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea240225b56aa5ba98e36dda6f40928dc5f29775384dd032b651fa2aececbd2"}},{"ruleId":"D1","level":"warning","message":{"text":"page.TranslatorPage (cyclomatic 38): page.TranslatorPage has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 136, 232, 49, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/translator/page.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"067ec010192da6e7a7080d2d645b85c8ea184c7ec46fca5e8cb73f095ee5887d"}},{"ruleId":"D1","level":"warning","message":{"text":"startServer (cyclomatic 38): startServer has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 4 of the 38 points are its own statements and the rest belongs to 26 function items inside it that branch ((anonymous), tryRestart, cleanup, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4903bde833d5605b0d17fc511b3da5c3b0c3b3e93d737e4a2168415935e08dc"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini-to-openai.geminiToOpenAIResponse (cyclomatic 37): gemini-to-openai.geminiToOpenAIResponse has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/gemini-to-openai.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f80a62041f1723c16ab1224d7501b2c9698d669faab8b1d71249c66db04e32b"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-antigravity.openaiToAntigravityResponse (cyclomatic 37): openai-to-antigravity.openaiToAntigravityResponse has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-to-antigravity.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad74cc071e25b3455f75fd33375803c7f19ec7feedadfeb7263a723ea08b5a9a"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 37): route.POST has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/codex/bulk-import/route.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd44e22f4e46b889457ff9626ddb610eb4466dfcc55e45d9e62266df9a6ecb4e"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 37): route.POST has cyclomatic complexity 37 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/grok-cli/bulk-import/route.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"297ca385754af7604950f93d71fca9a5f5e42d352f19e907202a89d9582ded2b"}},{"ruleId":"D1","level":"warning","message":{"text":"config.normalizeLocale (cyclomatic 37): config.normalizeLocale has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/i18n/config.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe6a8c3775aa2fd50dbd22b9ab7cd899eb677074d6cbe3d6d84e770810c15c3"}},{"ruleId":"D1","level":"warning","message":{"text":"usageRepo.getChartData (cyclomatic 37): usageRepo.getChartData has cyclomatic complexity 37 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 14 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e6054ce26193867810f8620e8e1b0d4dcffe7231bdf0df2d9c93bda5893fab"}},{"ruleId":"D1","level":"warning","message":{"text":"createResponsesApiTransformStream::transform (cyclomatic 37): createResponsesApiTransformStream::transform has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/transformer/responsesTransformer.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"be77e7e033290091dac64010de2c061d7037e779d1456ce0afb34893166d3d49"}},{"ruleId":"D1","level":"warning","message":{"text":"getAntigravityUsage (cyclomatic 37): getAntigravityUsage has cyclomatic complexity 37 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 9 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/google.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd41af7d072ab448ab59466af72e531c1281b2c6e0c8ecc4047eec2fa68ef8e"}},{"ruleId":"D1","level":"warning","message":{"text":"gitStatus.gitStatus (cyclomatic 36): gitStatus.gitStatus has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/gitStatus.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f181e471222c1902910b5af926ce5727256a2ece2429d1ed9b4d2a7bc43504a4"}},{"ruleId":"D1","level":"warning","message":{"text":"parseSSEToOpenAIResponse (cyclomatic 36): parseSSEToOpenAIResponse has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"056a80b2dd7cf11921a3deafe155dd2e8d02cdef4caf8d7e021682f98040d9de"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-claude.getContentBlocksFromMessage (cyclomatic 35): openai-to-claude.getContentBlocksFromMessage has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-claude.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d312ef05dd44fd91f0fc4444a1937cc45e6a138c0e8886187b77e2255413a8f8"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravity-to-openai.convertContent (cyclomatic 35): antigravity-to-openai.convertContent has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/antigravity-to-openai.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b943463a327306de4642f8425956fa82147bbb0de7607896218f6d5fb085ee8f"}},{"ruleId":"D1","level":"warning","message":{"text":"sse.createQoderSseCoalescer (cyclomatic 35): sse.createQoderSseCoalescer has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 149, 127, 141, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/sse.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab69df36d0e306a7292a77308e91747688354daba2a12c7cf2f6e334d23cef9a"}},{"ruleId":"D1","level":"warning","message":{"text":"TraeExecutor.execute (cyclomatic 35): TraeExecutor.execute has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 15 of the 35 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 216, 201, 226, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/trae.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19e920682b3c653e674fbca74e2ca9321c2ddf3a987f5a3f109bb589884371a"}},{"ruleId":"D1","level":"warning","message":{"text":"index.compressMessages (cyclomatic 35): index.compressMessages has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/index.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b22fa47a67d2cd6a79d252730a3a3fce60c6c821a3957d4fdd8b15703d3d48"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 35): route.POST has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/route.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a964979f444317493d347c24b08d593543b24b73100f66cd3bb6d8f5d12c77d"}},{"ruleId":"D1","level":"warning","message":{"text":"createSSEStream::flush (cyclomatic 35): createSSEStream::flush has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0a27aa243d410c8534c7969fcc9cfc4bc5240e88cfb365cd0cab84025c1624"}},{"ruleId":"D1","level":"warning","message":{"text":"checkAndRefreshToken (cyclomatic 35): checkAndRefreshToken has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/tokenRefresh.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b634bc27117db0f9cf8817c44cef4e54f50697cd2c48a3ed0f5bc51b630bce94"}},{"ruleId":"D1","level":"warning","message":{"text":"provider.detectFormat (cyclomatic 34): provider.detectFormat has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/provider.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d9e18ca595cdd19d4622b453985deb993b924c38640b68f18a9b567e21a604"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom.compressWithHeadroom (cyclomatic 34): headroom.compressWithHeadroom has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/headroom.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80d336d327f193f41996432b8fb1495caeddcea8b5bbb6e539663741e09f5fb"}},{"ruleId":"D1","level":"warning","message":{"text":"combo.handleComboChat (cyclomatic 34): combo.handleComboChat has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bec47e5bdd78c71fab0ee0f8070362146d407c3131dbe9532ec985f3fff4998"}},{"ruleId":"D1","level":"warning","message":{"text":"handleRun (cyclomatic 34): handleRun has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31bbf5a541e43da5ebb73ad60dcd143d700f94db19a1f10488c7ce5ee2fd8d7"}},{"ruleId":"D1","level":"warning","message":{"text":"extractThinking (cyclomatic 34): extractThinking has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/thinkingUnified.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dea0aae224dee0120bfbfa18a7951041b08480c087f9f0ca94ef865688999b"}},{"ruleId":"D1","level":"warning","message":{"text":"parseCommandCodeError (cyclomatic 34): parseCommandCodeError has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/commandcode.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c64b221c786b7b071c591d30ad0419b85c7730f29e0d1070f562c925b8a4be7"}},{"ruleId":"D1","level":"warning","message":{"text":"paramSupport.stripUnsupportedParams (cyclomatic 33): paramSupport.stripUnsupportedParams has cyclomatic complexity 33 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/paramSupport.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"52da56eff46cc4b68386aeb901753c6c4f18435c1a3ce3fee857ccceb9d93779"}},{"ruleId":"D1","level":"warning","message":{"text":"qoder.normalizeContent (cyclomatic 33): qoder.normalizeContent has cyclomatic complexity 33 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"47654f9f199434824841155adf14c381d3e55939e5835d605e3d9e2df0d7c462"}},{"ruleId":"D1","level":"warning","message":{"text":"nonStreamingHandler.openAICompletionToResponses (cyclomatic 33): nonStreamingHandler.openAICompletionToResponses has cyclomatic complexity 33 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"80872dd07e595773efd077cf2e2afa13ff39fb08a5201b2f5c4ddcef62628f74"}},{"ruleId":"D1","level":"warning","message":{"text":"BulkImportGrokCliModal.BulkImportGrokCliModal (cyclomatic 33): BulkImportGrokCliModal.BulkImportGrokCliModal has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 11 of the 33 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 136, 74, 78, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/BulkImportGrokCliModal.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"505a39c3bc893010fb297c9b0432645b1d1ad21891f23231f0b8aedeb8e7205e"}},{"ruleId":"D1","level":"warning","message":{"text":"transformRequest (cyclomatic 33): transformRequest has cyclomatic complexity 33 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-cli.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"2defa5d22b502f925034236a342d436e4656e967f187972ba06b0a3839eee4ff"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-to-openai.convertClaudeMessage (cyclomatic 32): claude-to-openai.convertClaudeMessage has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-openai.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9ca54fc78c67fac1ae739c60b50b025459c447b0f66e502d379df70b576af0"}},{"ruleId":"D1","level":"warning","message":{"text":"CursorExecutor.transformProtobufToSSE (cyclomatic 32): CursorExecutor.transformProtobufToSSE has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"083c58cde5df9d1e51422542e28b9ecc2807e1de4823765ac0c37a331a14f164"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravity-weekly.parseWeeklyQuotaSummary (cyclomatic 32): antigravity-weekly.parseWeeklyQuotaSummary has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/antigravity-weekly.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57b0fbe9ea6f7dae1830acf4c2a322aff57c6c6a6af9b3d69b04e779b86f31c"}},{"ruleId":"D1","level":"warning","message":{"text":"kimi.getKimiUsage (cyclomatic 32): kimi.getKimiUsage has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/kimi.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffeed117f2cd468762394b3b34e56f0ee27887add91a0f48f90785d6d8aad541"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseUrlSelect.BaseUrlSelect (cyclomatic 32): BaseUrlSelect.BaseUrlSelect has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 7 of the 32 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 90, 118, 68, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/BaseUrlSelect.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"101a8e1af8c764ac95b6861b10dc2be4c5e3f2f2e2a34cf324c3a2e6b700da45"}},{"ruleId":"D1","level":"warning","message":{"text":"CompatibleModelsSection.CompatibleModelsSection (cyclomatic 32): CompatibleModelsSection.CompatibleModelsSection has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 9 of the 32 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 125, 106, 81, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/CompatibleModelsSection.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d70ee86b9e53c1747d7d98b3e73b645f126e8c68094a612850868f0b4737aca"}},{"ruleId":"D1","level":"warning","message":{"text":"EditCompatibleNodeModal.EditCompatibleNodeModal (cyclomatic 32): EditCompatibleNodeModal.EditCompatibleNodeModal has cyclomatic complexity 32 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 14 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/EditCompatibleNodeModal.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f257fecc44fa43f41413313ca9a92ecbb1f0adcc24eda508877703156c4b88d1"}},{"ruleId":"D1","level":"warning","message":{"text":"AddCustomEmbeddingModal.AddCustomEmbeddingModal (cyclomatic 32): AddCustomEmbeddingModal.AddCustomEmbeddingModal has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 12 of the 32 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 39, 23, 91, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/AddCustomEmbeddingModal.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc6801523b17b11826ad44a58cefd7be0cc1109ee07ff1309006c9d725c4175"}},{"ruleId":"D1","level":"warning","message":{"text":"buildPromptText (cyclomatic 32): buildPromptText has cyclomatic complexity 32 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66488f3d7816c44af82b1e277c12ae8a30bb9926f172befc143edeadc903599"}},{"ruleId":"D1","level":"warning","message":{"text":"convertOpenAIToKiro (cyclomatic 32): convertOpenAIToKiro has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/kiro.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"762fb898fd6dbd25f949baf765ffd657b323e256d2d6da311949db40467b31ca"}},{"ruleId":"D1","level":"warning","message":{"text":"handleVideoProxyCore (cyclomatic 32): handleVideoProxyCore has cyclomatic complexity 32 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 8 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/videoCore.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8806ac60dc751d46f0478f6b167894352258b6925eae31562a8599e08e58d02"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-to-kiro.claudeToKiroRequest (cyclomatic 31): claude-to-kiro.claudeToKiroRequest has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-kiro.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c13cbb2d2d48999a149dcaf4e845dffc428a3bd67d819f0eba2c9b2266a15bf"}},{"ruleId":"D1","level":"warning","message":{"text":"prefetch.collectImageRefs (cyclomatic 31): prefetch.collectImageRefs has cyclomatic complexity 31 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 13 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/prefetch.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5377ce0cacdb11351c0a6ed71cf00d71e1e530f9626f0cef04bdc9e5f057f5fe"}},{"ruleId":"D1","level":"warning","message":{"text":"getMiniMaxUsage (cyclomatic 31): getMiniMaxUsage has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/minimax.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1fdc643a46e6acd459f196ab5ec24f920f05d2958499ee9618d40ce3d81cd1"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultExecutor.buildHeaders (cyclomatic 30): DefaultExecutor.buildHeaders has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/default.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"9874f8f8554f042f41cf8643825bc4a4b45fd5bbf0dd6e49764a9be8cc95f727"}},{"ruleId":"D1","level":"warning","message":{"text":"responsesApi.convertResponsesApiFormat (cyclomatic 30): responsesApi.convertResponsesApiFormat has cyclomatic complexity 30 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/responsesApi.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b592f215f97520c447570010e1cc5bca32878fd86821ba0aed1ab4299b46476a"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode.normalizeResponsesTools (cyclomatic 30): opencode.normalizeResponsesTools has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 313). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0713866b46b5f54d45b2f24c051e145c4eb407a5d49350eade56afcb67ff02f7"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode-go.normalizeResponsesTools (cyclomatic 30): opencode-go.normalizeResponsesTools has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 55). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-go.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f0ec659018b2c40116d52f78d54d8376f6aa079aa62bc09ce3c7a764de8696"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode-zen.normalizeResponsesTools (cyclomatic 30): opencode-zen.normalizeResponsesTools has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 171). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-zen.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d30bb0bca69fbd713ec1bc9cb29896605a1fcd05595344a1789d4d5e558203"}},{"ruleId":"D1","level":"warning","message":{"text":"sseToJsonHandler.chatCompletionToResponses (cyclomatic 30): sseToJsonHandler.chatCompletionToResponses has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f927fd778addc4f525c915d68c4646f301a0a0305abe96c54f60fe638186f7"}},{"ruleId":"D1","level":"warning","message":{"text":"sync.build (cyclomatic 30): sync.build has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelCatalog/sync.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"814a73f410ecff17e1c9874420d8db55fe2718da4f171f79c5b7662673315bde"}},{"ruleId":"D1","level":"warning","message":{"text":"server.passthroughHttp2 (cyclomatic 30): server.passthroughHttp2 has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 8 of the 30 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 212, 230, 200, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/server.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e2651ea13eb16a1cdf590fec96213b974cdca417d048db09124473bebc9bbd"}},{"ruleId":"D1","level":"warning","message":{"text":"readIntegrityAttempt (cyclomatic 30): readIntegrityAttempt has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b17ff155c9b7e3122341ad058ce32cb09d7ec00e09bb2e61802bfe141049e9"}},{"ruleId":"D1","level":"warning","message":{"text":"OAuthModal::handleManualSubmit (cyclomatic 30): OAuthModal::handleManualSubmit has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"606cf23d08d64b2f34792b743d7d868ca1aca49489b63cd9b0fbaa615c372e15"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar (cyclomatic 30): Sidebar has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 13 of the 30 points are its own statements and the rest belongs to 27 function items inside it that branch ((anonymous), isActive, handleCopyAndShutdown::(anonymous), \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Sidebar.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02340a345d7b0b6a46043ffd5c91769ccf7d4ff1af6ef8465ba94d3346dd552"}},{"ruleId":"D1","level":"warning","message":{"text":"acquireViaDesktopPhases (cyclomatic 30): acquireViaDesktopPhases has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/mimoAccount.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6163098a746178175260e0293ad8bf5a39a1145d93bf42724f6abd8e0ad0ba39"}},{"ruleId":"D1","level":"warning","message":{"text":"opencodeFingerprint.restoreToolNames (cyclomatic 29): opencodeFingerprint.restoreToolNames has cyclomatic complexity 29 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 14 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/opencodeFingerprint.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb66005044bf84a7bafb02b8996b19d2c85dd78dc7f99620a29f727db5a46e15"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-kiro.openaiToKiroRequest (cyclomatic 29): openai-to-kiro.openaiToKiroRequest has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-kiro.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba84a26f7e544ee70f3a77049cf6fb26625596a5fb9cd4053b613d41e9b00067"}},{"ruleId":"D1","level":"warning","message":{"text":"finishReason.toOpenAIFinish (cyclomatic 29): finishReason.toOpenAIFinish has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/finishReason.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b81ee444de1750957500383ad5d7907275cf2c427631595a92bb08e51ed431c"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderLimitCard.ProviderLimitCard (cyclomatic 29): ProviderLimitCard.ProviderLimitCard has cyclomatic complexity 29 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/ProviderLimitCard.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed261d251ef581db774a535a0a0686038b86e56292b86fb4c073a3a28c3d1fc"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 29): route.GET has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/models/route.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"efea68ace545fa37ba55976bf571571742331be854a4b44b4bb6b88d6081f762"}},{"ruleId":"D1","level":"warning","message":{"text":"mimoLoginSession.proxyAccountRequest (cyclomatic 29): mimoLoginSession.proxyAccountRequest has cyclomatic complexity 29 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96b48d574dd104d1d538bf393f30c7a64e1b7688a4ef9c937a1ff98fa4d01ce"}},{"ruleId":"D1","level":"warning","message":{"text":"ComboFormModal.ComboFormModal (cyclomatic 29): ComboFormModal.ComboFormModal has cyclomatic complexity 29 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 13 belong to 9 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ComboFormModal.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1e07d0fb251c6527f5e82dbe508fb006725cd73a8205677cdd197d32c84c46"}},{"ruleId":"D1","level":"warning","message":{"text":"Header.getPageInfo (cyclomatic 29): Header.getPageInfo has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Header.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5776125953321bc5db31ee237e598cff7677c6509e313e9aea4274dba0c3882"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.killAllAppProcesses (cyclomatic 28): cli.killAllAppProcesses has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 290, 316, 266, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddce370d218e10885002d5c0e9e8d848accc51a14d868af487da0be042113ffe"}},{"ruleId":"D1","level":"warning","message":{"text":"toolCall.ensureToolCallIds (cyclomatic 28): toolCall.ensureToolCallIds has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/toolCall.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d0224fe4a6045e11b704a9c3649da54cd03a10f4de21e90a128870718f7c49"}},{"ruleId":"D1","level":"warning","message":{"text":"commandcode.inspectAndWrapCommandCodeResponse (cyclomatic 28): commandcode.inspectAndWrapCommandCodeResponse has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/commandcode.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"408520c421304428d89e5f2a610a58e8c471f0a3c6651b9e30bdf992461f314f"}},{"ruleId":"D1","level":"warning","message":{"text":"cursorProtobuf.encodeRequest (cyclomatic 28): cursorProtobuf.encodeRequest has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/cursorProtobuf.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"760fd7ab3d488811e0061a4c63c01ce3a7dc7c655c9fdb580ad2ad340a615588"}},{"ruleId":"D1","level":"warning","message":{"text":"kimchiModels.normalizeKimchiModel (cyclomatic 28): kimchiModels.normalizeKimchiModel has cyclomatic complexity 28 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/kimchiModels.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8dccde63680cf24bb5a0351562d5b10cc41c91b3ef718aa64ad1779120d478"}},{"ruleId":"D1","level":"warning","message":{"text":"WindsurfExecutor.transformToSSE (cyclomatic 28): WindsurfExecutor.transformToSSE has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 13 of the 28 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 455, 495). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/windsurf.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"b883b2d8c4a9a0a4b566426fcf765cfa54f2449ef99b06b85a2e2c566dfa1fd6"}},{"ruleId":"D1","level":"warning","message":{"text":"streamHandler.createDisconnectAwareStream (cyclomatic 28): streamHandler.createDisconnectAwareStream has cyclomatic complexity 28 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/streamHandler.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7d7f2e20c9b1ca11e087e0f8460ddea9b8f387700dcb47d45bd1155bd4398e"}},{"ruleId":"D1","level":"warning","message":{"text":"systemone.handleSystemone (cyclomatic 28): systemone.handleSystemone has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/systemone.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc0f0f7416bcce454b804a3fa002461c7a015a4aa1a766b08a2499795cca155"}},{"ruleId":"D1","level":"warning","message":{"text":"runConnect (cyclomatic 28): runConnect has cyclomatic complexity 28 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 2 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/connect.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1deb942170f5d5da032b3338dd5a84201e061e1b8d1c144d29c3c9e51e21fa74"}},{"ruleId":"D1","level":"warning","message":{"text":"POST (cyclomatic 28): POST has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/provider-nodes/validate/route.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e858e85eff55e3301eee14442ac5938baa746a1d133e76383d4344f3e4c4ec"}},{"ruleId":"D1","level":"warning","message":{"text":"xaiVideo.run (cyclomatic 27): xaiVideo.run has cyclomatic complexity 27 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/xaiVideo.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"533c0d29ede9826efe4c11709fb4e78653de0452a39588d6f187fd4bcdb110ae"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode.bodyHasSessionHints (cyclomatic 27): opencode.bodyHasSessionHints has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dead51536aa107298bbdc02e91115ddbb9df2d2c0644b248b7365318d961e12"}},{"ruleId":"D1","level":"warning","message":{"text":"kiroModels.resolveKiroModels (cyclomatic 27): kiroModels.resolveKiroModels has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/kiroModels.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efdae2c90158b3a15c22b94fee0464149cc3b2baf10cacbc1d554420b24f408"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeySelect.ApiKeySelect (cyclomatic 27): ApiKeySelect.ApiKeySelect has cyclomatic complexity 27 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 8 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ApiKeySelect.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7113dcc046b21bda8895844ec323801d00d09af751a43a910aff3f882c841044"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomConfigCard.CustomConfigCard (cyclomatic 27): CustomConfigCard.CustomConfigCard has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 8 of the 27 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 42, 24, 111, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/CustomConfigCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed501db44b1dfa73145ace27e3ad486e2dd4b9d2e6607d797e41879daffe2482"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsCard.ModelsCard (cyclomatic 27): ModelsCard.ModelsCard has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 6 of the 27 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 123, 182, 138, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelsCard.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f000feb1ec52a777c7b5358326e5c0f12ac333e57376bdcf36a833384c8981"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboardGuard.proxy (cyclomatic 27): dashboardGuard.proxy has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dashboardGuard.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"425a8411ef644cb0127fd3d12d244fbfe3f3d6a0c2e4ed014aea022892698489"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 27): (anonymous) has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d336648c6f6f5f0b043ac47142266ca35859d49e3b7717c2ef464b8d48c2f2"}},{"ruleId":"D1","level":"warning","message":{"text":"extractClientToolResults (cyclomatic 27): extractClientToolResults has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1319d55af07799507b6ed5b88c9f41c316119722007a4dbeb8a0cdd2a20b6f"}},{"ruleId":"D1","level":"warning","message":{"text":"flattenToolHistory (cyclomatic 27): flattenToolHistory has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 24, 30, 23, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d5a6351117239a36f16c965ea77efac2ce87d6773d784f58c25466e000d9ec"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaProviderKindPage (cyclomatic 27): MediaProviderKindPage has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 10 of the 27 points are its own statements and the rest belongs to 28 function items inside it that branch ((anonymous), handleCreateCombo, (anonymous), \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/page.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"45144ef04f1063803e2ff29cecc847131603fdd2dbe092d7ac69dcb3b3d77c68"}},{"ruleId":"D1","level":"warning","message":{"text":"thoughtSignatureStore.getGeminiThoughtSignature (cyclomatic 26): thoughtSignatureStore.getGeminiThoughtSignature has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/thoughtSignatureStore.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"395873d355b39f84410f20b7af4dffd94146afb533dc009408111d1bd414f801"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-responses.openaiToOpenAIResponsesResponse (cyclomatic 26): openai-responses.openaiToOpenAIResponsesResponse has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcddcb23457a8c9eeeb9f70f7aa161b8467b86634124ce56cd013ed6f3f08478"}},{"ruleId":"D1","level":"warning","message":{"text":"kiro.parseEventFrame (cyclomatic 26): kiro.parseEventFrame has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"340d341c952a9f87d7af6fd5c09ba6ee782bb7e11cc8276744df5b980bc4bd8d"}},{"ruleId":"D1","level":"warning","message":{"text":"bypassHandler.handleBypassRequest (cyclomatic 26): bypassHandler.handleBypassRequest has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/bypassHandler.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"777ffd8f7ab82d5e49649b4e3182604d00139f485a14d141968f267d1e467da5"}},{"ruleId":"D1","level":"warning","message":{"text":"gitDiff.gitDiff (cyclomatic 26): gitDiff.gitDiff has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/gitDiff.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00a1c64fe3e3f1283dd74384393f8fd2d5851bfe30b753a2117ec8cf136dac2"}},{"ruleId":"D1","level":"warning","message":{"text":"zed.parseZedAuthenticatedUserUsage (cyclomatic 26): zed.parseZedAuthenticatedUserUsage has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/zed.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdce50d9ae94835796f583d4e2576d4e4d621bbda3356384bc50c22e3f1473c9"}},{"ruleId":"D1","level":"warning","message":{"text":"route.probeMediaProvider (cyclomatic 26): route.probeMediaProvider has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6f7b676b181e0842bc8750225b7363c5bdc3326fc2d9d4b9f1b538e1a3bf3d"}},{"ruleId":"D1","level":"warning","message":{"text":"route.forwardGeminiNativeRequest (cyclomatic 26): route.forwardGeminiNativeRequest has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1beta/models/[...path]/route.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f4aa3daf08b3037e581f3431fc3933137aaf2661737c94dec17c52a8854437"}},{"ruleId":"D1","level":"warning","message":{"text":"zedCredentials.readLinuxCredentials (cyclomatic 26): zedCredentials.readLinuxCredentials has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/zedCredentials.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb53783292012aa680e0c82c4a03b7975fdeb0b27b0b6f3ae99194ddf5cbafb0"}},{"ruleId":"D1","level":"warning","message":{"text":"stt.handleStt (cyclomatic 26): stt.handleStt has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/stt.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d732dc02984736e2efa110e0b0e0e78e2c9945a654544bf192bc9b7943e43b"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeGrokCliInputItem (cyclomatic 26): normalizeGrokCliInputItem has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-cli.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb8f5983cfa69495d9a6d2d4b0535794f90e4bceea11f33461fd1ce230aa2bf"}},{"ruleId":"D1","level":"warning","message":{"text":"kiroExternalIdp.normalizeKiroExternalIdpAuth (cyclomatic 25): kiroExternalIdp.normalizeKiroExternalIdpAuth has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/kiroExternalIdp.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeec5b9426d598b81d61ff64682b7dd395a610ce128d2dc0389a0961c450d4f2"}},{"ruleId":"D1","level":"warning","message":{"text":"CursorExecutor.transformProtobufToJSON (cyclomatic 25): CursorExecutor.transformProtobufToJSON has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e2f684dd06af7dbce330869dd62fb67d6f51c1c1c71ce59875c2377c64a69e"}},{"ruleId":"D1","level":"warning","message":{"text":"page.ComboFormModal (cyclomatic 25): page.ComboFormModal has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 1026, 1037, 1052, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad6fe7bde68fc998eb0ff2c1d9481d852f686c17f142ee9710f9d82c047d2d5"}},{"ruleId":"D1","level":"warning","message":{"text":"AddCompatibleModal.AddCompatibleModal (cyclomatic 25): AddCompatibleModal.AddCompatibleModal has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 64, 115, 54, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/AddCompatibleModal.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6168af7379eebfdbfdbf044761fd90093b8284abe8c36eeb5dce0ca6831dd54f"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 25): route.GET has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 284, 271, 284, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/cowork-settings/route.js"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0caf6277b2d35c871e9bbb720aa891f504a25df414dfb602acd59c107a4b04"}},{"ruleId":"D1","level":"warning","message":{"text":"appUpdater.collectAppPids (cyclomatic 25): appUpdater.collectAppPids has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 6 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 79, 50, 70). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/appUpdater.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b75b0c9fb648445429bebaa3299757319e1fbb48b9115b4eed1b7f706c568f3"}},{"ruleId":"D1","level":"warning","message":{"text":"usageRepo.saveRequestUsage (cyclomatic 25): usageRepo.saveRequestUsage has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 257). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8133fb682017783e772b8820fbb69e2f8594ff8ddb72846c6a5ad4960c8b0d"}},{"ruleId":"D1","level":"warning","message":{"text":"Header.Header (cyclomatic 25): Header.Header has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 192, 247, 218). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Header.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3317a0734085248b066074f15e941b2b325ac4ba4afedbadf1f75d57da3c798"}},{"ruleId":"D1","level":"warning","message":{"text":"videoGeneration.handleVideoCreate (cyclomatic 25): videoGeneration.handleVideoCreate has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/videoGeneration.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"03dffd3b7bc8937aa5f09a4f76a30149a7f8c9e549b6bbce192d646949f214e8"}},{"ruleId":"D1","level":"warning","message":{"text":"renderModelsSection (cyclomatic 25): renderModelsSection has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 9 belong to 28 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"50db890f3e84a475f4313969b9d4298e9d95494fcdcf7a49007e24da79a986b2"}},{"ruleId":"D1","level":"warning","message":{"text":"socksFetch (cyclomatic 25): socksFetch has cyclomatic complexity 25 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 12 belong to 7 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"2429071a4b5ae68211c83f079566ea5a94e0c11b8c7fd731ece8792ed32b8b88"}},{"ruleId":"D1","level":"warning","message":{"text":"extractAnswer (cyclomatic 25): extractAnswer has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"07889505bda3e1c7c2d8a701fac221a5a88c9408145e45520a5557f5edb8e612"}},{"ruleId":"D1","level":"warning","message":{"text":"createDisconnectAwareStream::pull (cyclomatic 25): createDisconnectAwareStream::pull has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/streamHandler.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dda3b97f3f19d2f24a898085ffb49d539c3bad1ce545ed005d8e38df06f213a"}},{"ruleId":"D1","level":"warning","message":{"text":"tryDedicatedProvider (cyclomatic 25): tryDedicatedProvider has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/index.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c4d9d99a2661a099c0732fe5478fd8352cc1991aa6fd5a8f412b006e0f60d7"}},{"ruleId":"D1","level":"warning","message":{"text":"xaiVideo.parseArgs (cyclomatic 24): xaiVideo.parseArgs has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/xaiVideo.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"179b828da7b41aa9b935f69b4e9d440f6fc402a5522173deccbb6bc86d9bf788"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseExecutor.execute (cyclomatic 24): BaseExecutor.execute has cyclomatic complexity 24 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/base.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3369b7d09e06774a4940dd2f26dea09d5d6facee86f453a7070ac65c06b690"}},{"ruleId":"D1","level":"warning","message":{"text":"claude.anchorClaudeCache (cyclomatic 24): claude.anchorClaudeCache has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef603b3f6be37a9da4345a416f422e2dde525117d073d44dd4a57c584923c9f"}},{"ruleId":"D1","level":"warning","message":{"text":"antigravity-to-openai.antigravityToOpenAIRequest (cyclomatic 24): antigravity-to-openai.antigravityToOpenAIRequest has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/antigravity-to-openai.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c2e8b10b67b4591140a97c3ab2592f3fa770fc05c2047463317972d515c7db"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-ollama.normalizeMessages (cyclomatic 24): openai-to-ollama.normalizeMessages has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-ollama.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ff68ba5ba40b0e880c1e059123d363b146895322cbad1d90f431ab83aca0d6"}},{"ruleId":"D1","level":"warning","message":{"text":"devin-cli.resolveWorkspaceCwd (cyclomatic 24): devin-cli.resolveWorkspaceCwd has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 213, 199, 209). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d287854e127749832ffc254817674d9e53480d3ae0a1b3fd641b177186fa3e99"}},{"ruleId":"D1","level":"warning","message":{"text":"commandcode.getCommandCodeUsage (cyclomatic 24): commandcode.getCommandCodeUsage has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/commandcode.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad95e12a7d9ef1f3c70fd0fb4f9a3e6b93b45af4b1770ca30447f0eeffc04dd"}},{"ruleId":"D1","level":"warning","message":{"text":"page.getConnectionErrorTag (cyclomatic 24): page.getConnectionErrorTag has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"21612dae92549c80ac4f16e3b7930adfe4093c10882503f0e01eeaac774fe1ed"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 24): route.GET has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/auth/status/route.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e70fa6178dcdccc8cdd0f85723d0550320acd1831a5f8cbea59f8bf7ec35099"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 24): route.GET has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/kiro/auto-import/route.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bd824dfc9bd21f5fbd8acad5b236582e2aa8da4be8043978f2d345784d8136"}},{"ruleId":"D1","level":"warning","message":{"text":"route.transformOpenAISSEToGeminiSSE (cyclomatic 24): route.transformOpenAISSEToGeminiSSE has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1beta/models/[...path]/route.js"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"267298b830683b787d71f1da082a676ebb1e6e1a2b1e99c1782873fbdf9bca5f"}},{"ruleId":"D1","level":"warning","message":{"text":"cloudflared.spawnQuickTunnel (cyclomatic 24): cloudflared.spawnQuickTunnel has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 374, 338, 308, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/cloudflare/cloudflared.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"04503071370e9290b5d59cb5a4a9c32d09dfd407a473250807c912db23b06d54"}},{"ruleId":"D1","level":"warning","message":{"text":"embeddings.handleEmbeddings (cyclomatic 24): embeddings.handleEmbeddings has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/embeddings.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b64954a45ceb61f0ab249cca31c48f17214e9cd97a7b3598c275efa91ba01f"}},{"ruleId":"D1","level":"warning","message":{"text":"extractAnswer (cyclomatic 24): extractAnswer has cyclomatic complexity 24 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aa2a78f4acd078978ac4d9dbce946d7509427388eb93b6aceb14a2f6981389"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeTransformedSSE (cyclomatic 24): pipeTransformedSSE has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/base.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fc96b9d20200c02abaa5b1eeacb8bc727a215310ce1d259b85d2d17bb1cea8"}},{"ruleId":"D1","level":"warning","message":{"text":"image.isPrivateIp (cyclomatic 23): image.isPrivateIp has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/image.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b676a0d64856e6ea0348f2695e44d89fb792fd525f441f815c0f3c19875032"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-commandcode.convertMessages (cyclomatic 23): openai-to-commandcode.convertMessages has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-commandcode.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a1d63f94884ee30af4c843a1c2f3cf61861ee3f174e42381176e6ad243ede5"}},{"ruleId":"D1","level":"warning","message":{"text":"qoder.buildQoderRequestBody (cyclomatic 23): qoder.buildQoderRequestBody has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e1be1ed627310eaf9477db786faf3021f1c2117004e7355deeb135dfa59fc0"}},{"ruleId":"D1","level":"warning","message":{"text":"KiroExecutor.runIntegrityRecovery (cyclomatic 23): KiroExecutor.runIntegrityRecovery has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b40a591284f87f78d291cac35c54f70e675fff21d32eaacb38bf09dd237ed2"}},{"ruleId":"D1","level":"warning","message":{"text":"PerplexityWebExecutor.execute (cyclomatic 23): PerplexityWebExecutor.execute has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"276fe44c09ca6d81948ad3ef3cd4c240345a716f75b5ad40c8ffff602a6e64b5"}},{"ruleId":"D1","level":"warning","message":{"text":"nonStreamingHandler.openAICompletionToClaudeMessage (cyclomatic 23): nonStreamingHandler.openAICompletionToClaudeMessage has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8452eaf2601cce4ad6d2d50eaf7475710a5ab6e3dae5bd3760edc9d178952264"}},{"ruleId":"D1","level":"warning","message":{"text":"NoAuthProxyCard.NoAuthProxyCard (cyclomatic 23): NoAuthProxyCard.NoAuthProxyCard has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 38, 28, 26, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/NoAuthProxyCard.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"00949dd500a3f46f63e41b3a3c44d24b7d4a6ecac51a66c09ec09563bc28c3c8"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.handleChat (cyclomatic 23): chat.handleChat has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/chat.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b2d1192ac629316ed4034cc694366a0a5450f7dfd82099b18819485a7f88c4"}},{"ruleId":"D1","level":"warning","message":{"text":"fetch.handleSingleProviderFetch (cyclomatic 23): fetch.handleSingleProviderFetch has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/fetch.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c215e8d94344f0a6bafc7842e6fc698e88bb8bbf93e2447edde7274ec63c2549"}},{"ruleId":"D1","level":"warning","message":{"text":"search.handleSingleProviderSearch (cyclomatic 23): search.handleSingleProviderSearch has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/search.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aaf4a173c3a20e7646c38614482f3a5e95eb54dd97fb403bf10b0842b47692f"}},{"ruleId":"D1","level":"warning","message":{"text":"detectRequiredCapabilities::scanMessage (cyclomatic 23): detectRequiredCapabilities::scanMessage has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5369a75b48d017119fe6a4f95004023c373f09a144f3f01f54d9b30275983a"}},{"ruleId":"D1","level":"warning","message":{"text":"handleSttCore (cyclomatic 23): handleSttCore has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/sttCore.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d706f5a004bfdf2762b053272784471bded2422f96f580035ea9ac59a82602"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini.convertOpenAIContentToParts (cyclomatic 22): gemini.convertOpenAIContentToParts has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"391bd35c5c6aa1a260cbdd21332e0828bdbde8fa7a03a6e2bf41f4f21c54cd01"}},{"ruleId":"D1","level":"warning","message":{"text":"kiroConversation.reconcileToolPair (cyclomatic 22): kiroConversation.reconcileToolPair has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/kiroConversation.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c401350818cf8b12efd433c8d33c4be14fec92dc87c32235d67082142942fae7"}},{"ruleId":"D1","level":"warning","message":{"text":"ollama-to-openai.ollamaToOpenAIResponse (cyclomatic 22): ollama-to-openai.ollamaToOpenAIResponse has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/ollama-to-openai.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c3db4dd8fa3d5d9e1460ca4f50fe49732e2dcc69f7bfd9df8e01e9d5f85e57"}},{"ruleId":"D1","level":"warning","message":{"text":"index.translateRequest (cyclomatic 22): index.translateRequest has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/index.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bb3adf11fc02bbaf62b15ee21f4c110d85732c96c36e1b510797df2d85e65e"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeExecutor.transformRequest (cyclomatic 22): OpenCodeExecutor.transformRequest has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c63adff930a1847f31316cedbf2ca8b2fd947541ca4ab3d2eebfb460cf83b7"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom.collectKiroHeadroomMessages (cyclomatic 22): headroom.collectKiroHeadroomMessages has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 126, 113, 115, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/headroom.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6985b7fc131fadee5f5563a140fd65e84bb15b3235f2627f722dc5632f93f57d"}},{"ruleId":"D1","level":"warning","message":{"text":"pxpipe.compressWithPxpipe (cyclomatic 22): pxpipe.compressWithPxpipe has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/pxpipe.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e85d2d256488a75ce122c9feaaa5fb05a05c7145543b0d716653bca0f10592c"}},{"ruleId":"D1","level":"warning","message":{"text":"embeddingsCore.handleEmbeddingsCore (cyclomatic 22): embeddingsCore.handleEmbeddingsCore has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/embeddingsCore.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f31bc716142daac0c9e301364e6816deb29fb1e3c9d15214b4b7f0210a5ed2"}},{"ruleId":"D1","level":"warning","message":{"text":"codex.parseStream (cyclomatic 22): codex.parseStream has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/codex.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc18968c97797c8faa4d8afa8e6b7ee85284dae84192f8833c0f107a6981bd61"}},{"ruleId":"D1","level":"warning","message":{"text":"chatSearch.handleChatSearch (cyclomatic 22): chatSearch.handleChatSearch has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a8c539ec34eb4258c3722e5bb4bcf653ed39e639a8b2658fdd8102222fdd25"}},{"ruleId":"D1","level":"warning","message":{"text":"kiro.getKiroUsage (cyclomatic 22): kiro.getKiroUsage has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/kiro.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d981aee5992c39ffc088d03bd08d26d2495da10f5e1904db87b58e81c114f53c"}},{"ruleId":"D1","level":"warning","message":{"text":"codebuddy-cn.getCodeBuddyUsage (cyclomatic 22): codebuddy-cn.getCodeBuddyUsage has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/codebuddy-cn.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"993ff33a730f4e8ac1180ec2da5157c033bc65c06f1efbcd25bdecb0567ee546"}},{"ruleId":"D1","level":"warning","message":{"text":"xiaomi-mimo.getXiaomiMimoUsage (cyclomatic 22): xiaomi-mimo.getXiaomiMimoUsage has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/xiaomi-mimo.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bbc6eb4dc8eca505dc5b13ab0b5b90c4d86ddd3c753ac201e67a0f4a2bfeb0"}},{"ruleId":"D1","level":"warning","message":{"text":"migrate-registry.migrateEntry (cyclomatic 22): migrate-registry.migrateEntry has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/migrate-registry.mjs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"254f37bed087c5d493f2823a859b6d72a785f4a203ea3e65a818c90125fdde72"}},{"ruleId":"D1","level":"warning","message":{"text":"page.CapacityAdapterCap (cyclomatic 22): page.CapacityAdapterCap has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 826, 739, 745, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f4afbb16eac11e374ca2e7ad083d174be7c4c09c487a2c461a83e3bd5d5d9f"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionsCard.AddApiKeyModal (cyclomatic 22): ConnectionsCard.AddApiKeyModal has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f9e760d8b93cf51ff96ec1a8014937c2e1be9767749d133e8e5d2f82c7cbb0"}},{"ruleId":"D1","level":"warning","message":{"text":"route.fetchAll (cyclomatic 22): route.fetchAll has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/cowork-mcp-registry/route.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d29ef66de39fd8d08e849035212bad445e2c4c55bb219e64a76259a2b21c70"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 22): route.POST has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/codex/import-token/route.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2003562bc5a533f7e1a28bbb0adddbb5a7c80d5fa4829448fc99f387a20246"}},{"ruleId":"D1","level":"warning","message":{"text":"route.PATCH (cyclomatic 22): route.PATCH has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/settings/route.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb9d5bf2696b04a2b0342888586c9d8246e54e101c63048ba2e691b7387b0a3"}},{"ruleId":"D1","level":"warning","message":{"text":"route.refreshAndUpdateCredentials (cyclomatic 22): route.refreshAndUpdateCredentials has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/usage/[connectionId]/route.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f310e3294f462d18ff50325303435ffc25778fe7800f40e5845f1d997146adce"}},{"ruleId":"D1","level":"warning","message":{"text":"usageRepo.aggregateEntryToDay (cyclomatic 22): usageRepo.aggregateEntryToDay has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c0ed62504b2013823894c9d5b68cf379721ed088a51e02617c520bd636d981"}},{"ruleId":"D1","level":"warning","message":{"text":"requestDetailsRepo.getObservabilityConfig (cyclomatic 22): requestDetailsRepo.getObservabilityConfig has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/requestDetailsRepo.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b20d604fd1e8fd79c3ccbbca95b7235f47f542ca2d7cc6159c166e216444b03"}},{"ruleId":"D1","level":"warning","message":{"text":"CursorAuthModal.CursorAuthModal (cyclomatic 22): CursorAuthModal.CursorAuthModal has cyclomatic complexity 22 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 10 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/CursorAuthModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4efb1f3cf3d9079bc2ea90f5ce06879b3816913274ef377f6c65784a27d0a80"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfilePage::testOidcConnection (cyclomatic 22): ProfilePage::testOidcConnection has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63e2cda0fb784666eb140180f886444217d837a188c4aed19ad36a4025c7027"}},{"ruleId":"D1","level":"warning","message":{"text":"APIPageClient::handleConnectTailscale (cyclomatic 22): APIPageClient::handleConnectTailscale has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aab2fd6a4a4ec8164f04de0b0cd66b14f9505c1a9ac522a84c3a7f60e71460c"}},{"ruleId":"D1","level":"warning","message":{"text":"transformOpenAISSEToGeminiSSE::transform (cyclomatic 22): transformOpenAISSEToGeminiSSE::transform has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1beta/models/[...path]/route.js"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91a60cfc9d0cc8670da344a98c2e8337d9bf5b1db8b0cbd05239caf26b0ef96"}},{"ruleId":"D1","level":"warning","message":{"text":"proxyAwareFetch (cyclomatic 22): proxyAwareFetch has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/proxyFetch.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8941964e108843cbd3e67df45b09a37cce2ef79061ececc47a079fccf162eea"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchQoderCatalogRaw (cyclomatic 22): fetchQoderCatalogRaw has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/qoderModels.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd5a0e41b60039018d73656d4cd9ec0845bf1406b606902530628f7f8b63ffc"}},{"ruleId":"D1","level":"warning","message":{"text":"getOllamaUsage (cyclomatic 22): getOllamaUsage has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/misc.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"08426d947754ebeb8fb0fa89e723de5dcc89d75e137e007653141ba8cef69a99"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeTransformedEventStream (cyclomatic 22): pipeTransformedEventStream has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/base.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87d18b1f8dc18a6d5298abfe8d382a9ca0ba60c7e0837b54bbcc1e1c0a2e7de"}},{"ruleId":"D1","level":"warning","message":{"text":"custom-server.http.createServer (cyclomatic 21): custom-server.http.createServer has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 56, 81, 94, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"custom-server.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"781317ee4e3b1519fabd39444c88ae8994ab98d0aaac81567ba35a06e135995a"}},{"ruleId":"D1","level":"warning","message":{"text":"oauthCredentialManager.mergeRefreshedCredentials (cyclomatic 21): oauthCredentialManager.mergeRefreshedCredentials has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/oauthCredentialManager.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a22b2f7d55f07329415ccd7b244b40dba0c7801501df3aaa8033f2e0ff076d1"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini.cleanJSONSchemaForAntigravity (cyclomatic 21): gemini.cleanJSONSchemaForAntigravity has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6410693d40be0f174fbdb35d78bbe18d3e8f2d9b3c8f99d5c01dbc4ff85892"}},{"ruleId":"D1","level":"warning","message":{"text":"migrate.importLegacyUsage (cyclomatic 21): migrate.importLegacyUsage has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/migrate.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e41e32d70dd8db49c23359a9a60a97bcaeb81ac016d080b1a2c1e768b548aa"}},{"ruleId":"D1","level":"warning","message":{"text":"GrokCliExecutor.buildHeaders (cyclomatic 21): GrokCliExecutor.buildHeaders has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-cli.js"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"321ac73cb94e40c478c80037b91546cfb8ebdc75889fd01f43cca6992eda22bd"}},{"ruleId":"D1","level":"warning","message":{"text":"clientDetector.detectClientTool (cyclomatic 21): clientDetector.detectClientTool has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/clientDetector.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"20340b871d42d2fb61c35c4b70aeb52d7c01de346437ffc9a2738b2a2cb0baa2"}},{"ruleId":"D1","level":"warning","message":{"text":"gitLog.gitLog (cyclomatic 21): gitLog.gitLog has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/gitLog.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"8062ae7ec22204fbf4fa0404ccc63b0c1da60bc8cc276f8c25c212533f6e2c4f"}},{"ruleId":"D1","level":"warning","message":{"text":"kimi.formatKimiUsageError (cyclomatic 21): kimi.formatKimiUsageError has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/kimi.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"930ef0eddffa0970f87eb2404fe7683af16e7e73012c063ded67f0ee432711c9"}},{"ruleId":"D1","level":"warning","message":{"text":"ollamaTransform.transformToOllama (cyclomatic 21): ollamaTransform.transformToOllama has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/ollamaTransform.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24331bf83eca8f7632d877c87c1b4d82943b21b3a975fa7f8c933f950b60931"}},{"ruleId":"D1","level":"warning","message":{"text":"AddCustomModelModal.AddCustomModelModal (cyclomatic 21): AddCustomModelModal.AddCustomModelModal has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 30, 50, 20, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddCustomModelModal.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53e34de8cf91df35acae756bc47b90c9113324a62dc676517b3c9f4a0331505"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelAvailabilityBadge.ModelAvailabilityBadge (cyclomatic 21): ModelAvailabilityBadge.ModelAvailabilityBadge has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 87, 29, 51, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelAvailabilityBadge.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e029fb53d2c3aa17134e642d4d1a18907ba21d89717c095b9b1516b3c457eb40"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 21): route.POST has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/auth/login/route.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"870f90afcf9d4fc802f105919d52448993e2993abc21dac5e6f037412c84d99a"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 21): route.POST has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/openclaw-settings/route.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a8a205324dcf1d9ee78012a1e4d70c18ea7c57de3191f33d50ae0201b90c2b"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 21): route.GET has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/deepgram/voices/route.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e353cf9c88baf2253897ea8897651ec9cba730cb5c83ece7b5dda9f1ad9aa45"}},{"ruleId":"D1","level":"warning","message":{"text":"route.PUT (cyclomatic 21): route.PUT has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/route.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd17842562de9038cdf3afe3ee12afffdd167f3e8e103430ccae58700fe45eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfilePage::saveOidcSettings (cyclomatic 21): ProfilePage::saveOidcSettings has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cbed60a3e4b9cd9d4f3a050a1b108a15c380ead6147755457d31ff7ef82148"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::loadData (cyclomatic 21): (anonymous)::loadData has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"570347cbd8b8fcadf3f53f0268a20c42f1c2435a2f82602b510ba46e796cf52f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 21): (anonymous) has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 5 belong to 13 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c067b8f770a1d8c1ba99b08b5e33c85046b62896929746b18a6b62250a52df25"}},{"ruleId":"D1","level":"warning","message":{"text":"detectRequiredCapabilities::scanBlock (cyclomatic 21): detectRequiredCapabilities::scanBlock has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5434a8618f99243ca76ec10f94fdf80b8181c9d48bd8ce9228c917162d91f482"}},{"ruleId":"D1","level":"warning","message":{"text":"extractAnswer (cyclomatic 21): extractAnswer has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"0991ee2c6d0101ff5ab0a421281d6b0943f2aaa9a2bbba7b9cb0fc491a901ceb"}},{"ruleId":"D1","level":"warning","message":{"text":"pollToken (cyclomatic 21): pollToken has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/providers/glm.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f76e8b28572d5841b3bbea263914ceadddc4e448b21a4896c87f6efba1950a7"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchClaudeUsageRaw (cyclomatic 21): fetchClaudeUsageRaw has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/claude.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ae3e3b4b633fd4676be09b93cec0077bfc562d10a33c8c3929b639cf532230"}},{"ruleId":"D1","level":"warning","message":{"text":"input.selectMenu (cyclomatic 20): input.selectMenu has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 135, 100, 113, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/input.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f969f27d5c363f3ebd96c3fed4aca87a01aab6a7da79777cb0e14804bfd4a08"}},{"ruleId":"D1","level":"warning","message":{"text":"build-cli.buildCliPackage (cyclomatic 20): build-cli.buildCliPackage has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/scripts/build-cli.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b20cb6f22ed8a263bf7dfeecb282c87e1eb503c2c999008799ccfb330020a93"}},{"ruleId":"D1","level":"warning","message":{"text":"server.startZedProxy (cyclomatic 20): server.startZedProxy has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 681, 672, 759). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/server.js"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f3744ba5ad8d51e1d39af0561cac4da2b2bed079992d20cd3aa196f68fd4aa"}},{"ruleId":"D1","level":"warning","message":{"text":"AntigravityExecutor.cloakTools (cyclomatic 20): AntigravityExecutor.cloakTools has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/antigravity.js"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec9eebe50cb49ceca508a1031ff04d44479b2ca396878c1410e320f33c5498f"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-to-openai.claudeToOpenAIRequest (cyclomatic 20): claude-to-openai.claudeToOpenAIRequest has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-openai.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed38f2f1ff5ef4a93338b4c4f94f753bd649d924a52b01b767e23de71190b9e1"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-responses.buildReasoningInputItem (cyclomatic 20): openai-responses.buildReasoningInputItem has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-responses.js"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"25be062224e30b16f1391aa0245b57b83469bada728e479049814b875cd7759b"}},{"ruleId":"D1","level":"warning","message":{"text":"attachments.rewriteQoderMessageAttachments (cyclomatic 20): attachments.rewriteQoderMessageAttachments has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/attachments.js"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ef3aec53e0a516c7ba26ac99cfd0a7fd2667e4273ecd324ac9d0102c5a7a2b"}},{"ruleId":"D1","level":"warning","message":{"text":"combo.handleFusionChat (cyclomatic 20): combo.handleFusionChat has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"da69c57072abb9f06ef26b276266a774b5e5e15547bf8764152d669a0a5b0dcf"}},{"ruleId":"D1","level":"warning","message":{"text":"BulkImportCodexModal.BulkImportCodexModal (cyclomatic 20): BulkImportCodexModal.BulkImportCodexModal has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 40, 32). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/BulkImportCodexModal.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e02b24338f7c554253414eefdaf76457772959ca020e1bd2f5371c82d8f9dc"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 20): route.POST has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/pi-settings/route.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bcfb35624a9552a5a5fc366c211dd2619a4c26aade83ea5ecba44fe136b970"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 20): route.GET has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/minimax/voices/route.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8935128fd37d27c3f237790e9dfcf3f733a4929ae015984d81fbaa61bc2118"}},{"ruleId":"D1","level":"warning","message":{"text":"tailscale.startDaemonWithPassword (cyclomatic 20): tailscale.startDaemonWithPassword has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"160f49cf22dc3aab530bfbd77dbcd17ed43b384f55f43ec09af861e3791bc284"}},{"ruleId":"D1","level":"warning","message":{"text":"kiro.convertUserInputMessage (cyclomatic 20): kiro.convertUserInputMessage has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/kiro.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80d50f4904d864b9d02793a5cacb1496002e0637cdf99368e66515a79b32971"}},{"ruleId":"D1","level":"warning","message":{"text":"tts.handleSingleModelTts (cyclomatic 20): tts.handleSingleModelTts has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/tts.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b762ee258ad404045236523a4db1fd1fe0f5170f2e33fa2619214dd504ad14"}},{"ruleId":"D1","level":"warning","message":{"text":"renderServerLogin (cyclomatic 20): renderServerLogin has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/XiaomiMimoAuthModal.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ebd3207c21daaeed922faafdcc65033ad9b414835d5a0ea387b4b39cfc4e08"}},{"ruleId":"D1","level":"warning","message":{"text":"renderGuideSteps (cyclomatic 20): renderGuideSteps has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 10 belong to 7 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DefaultToolCard.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8d9fd070b020341d750eb1384c71619562c1f9ba1b4e68c5035ada1aaba6dd"}},{"ruleId":"D1","level":"warning","message":{"text":"kiroToClaudeNonStreaming (cyclomatic 20): kiroToClaudeNonStreaming has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-claude.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f00e6ef03800e578a38adc95af6ebd1305bc6a7a1a629ea12d29e172707a4d4"}},{"ruleId":"D1","level":"warning","message":{"text":"getQoderUsage (cyclomatic 20): getQoderUsage has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/misc.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7af5b922ea2eccfaaae1cbdd5cb65d3a701887b7a734ad512b93f2f7582b2fa"}},{"ruleId":"D1","level":"warning","message":{"text":"handleStreamingResponse (cyclomatic 20): handleStreamingResponse has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/streamingHandler.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"feffb521f7cde1eb0f345d86424005b14d2192f00b56c03feea73f7af6eb6bc4"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.refreshTraeToken (cyclomatic 19): providers.refreshTraeToken has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 628). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/tokenRefresh/providers.js"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dfe64383eaf8d49109e1f5b33a30ee95602daa6afb07aeb4e7dc01914dbd02"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini.mergeAllOf (cyclomatic 19): gemini.mergeAllOf has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bfa6271be3804db0053d79c3575109db2f2bb805deeb5dbbf7c5358f1078a4"}},{"ruleId":"D1","level":"warning","message":{"text":"codexToolSchema.stripNode (cyclomatic 19): codexToolSchema.stripNode has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/codexToolSchema.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1dffbc8c00061793c891fe5b65c8234a9d493faa3a5630e9ee6b67ed651c12"}},{"ruleId":"D1","level":"warning","message":{"text":"CursorExecutor.openAgentHttp2Stream (cyclomatic 19): CursorExecutor.openAgentHttp2Stream has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"244e31b3b8173d591d1d997af2c12fca4eccaf4361ba4e806adb3bfe0cdd12be"}},{"ruleId":"D1","level":"warning","message":{"text":"QoderExecutor.execute (cyclomatic 19): QoderExecutor.execute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ae6353a1d2fd829b833185bc038a41b495c218a9b8bb64bf10eb4420322db4"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode.lastUserText (cyclomatic 19): opencode.lastUserText has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e75e9ca8ab4ca43bf48f255cbcfbfa857acedd5ab6633a922c6dcbb700689b"}},{"ruleId":"D1","level":"warning","message":{"text":"perplexity-web.readPplxSseEvents (cyclomatic 19): perplexity-web.readPplxSseEvents has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c98d4d78d0cf097b3b6357b84b65b66eb591c3ac2e4d9b64e64b56250075aca"}},{"ruleId":"D1","level":"warning","message":{"text":"ls.ls (cyclomatic 19): ls.ls has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/ls.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1940b46580f07a9fa9af73ce767d7584c03cf089fc0d5f9d71dc7d2168601c"}},{"ruleId":"D1","level":"warning","message":{"text":"autodetect.autoDetectFilter (cyclomatic 19): autodetect.autoDetectFilter has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/autodetect.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a3405689682f3aa5ed2f2d1b9781d26d7ac3b4b2a915f0e43acf58ccf6f89b"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizers.normalizeXquik (cyclomatic 19): normalizers.normalizeXquik has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 218). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/normalizers.js"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e607773190af7f3d2300ae05056cb418ce84c45462ded49cfb2d28201814dc7"}},{"ruleId":"D1","level":"warning","message":{"text":"systemoneCore.handleSystemoneCore (cyclomatic 19): systemoneCore.handleSystemoneCore has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/systemoneCore.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"6305d5e5ec45130bbe7064217e4c27edccd4ad85e0d00068643217799686e771"}},{"ruleId":"D1","level":"warning","message":{"text":"accountFallback.checkFallbackError (cyclomatic 19): accountFallback.checkFallbackError has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/accountFallback.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"335d47e613d46d30b30501712ac320c910ede3ac87023380ffca35268beacb4f"}},{"ruleId":"D1","level":"warning","message":{"text":"copilotModels.resolveCopilotModels (cyclomatic 19): copilotModels.resolveCopilotModels has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/copilotModels.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ac490af98e1a0d54903dbf4bbe25b5c8090e56b8f4ab9572b98685d3d14011"}},{"ruleId":"D1","level":"warning","message":{"text":"migrate-registry.formatEntry (cyclomatic 19): migrate-registry.formatEntry has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/migrate-registry.mjs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0aaf0beb6499bd6a329ad8441f61ae6e32247a0f57650afe30514cf8ef059cd"}},{"ruleId":"D1","level":"warning","message":{"text":"page.MediaProviderCard (cyclomatic 19): page.MediaProviderCard has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 38, 28, 27, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/page.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a46ba0499d4242cc0632d51178c7a888eb1928258224ac2f9dd4dc3a310d2db"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRow.ModelRow (cyclomatic 19): ModelRow.ModelRow has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ModelRow.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"673ad986c1c9a375e0d3cbc83abb30d8c468d1b74b3e7e2750e1b990bdec9e97"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 19): route.POST has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/opencode-settings/route.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5be351fee31a10ea1eb5c555825957056b68f18f3c47d95b9e665d98c9d6956"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 19): route.GET has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/voices/route.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa4b5f35a7ee85f2c8de61541daf7c2126a6c7dc9834682aa506a4f4d5d58ae"}},{"ruleId":"D1","level":"warning","message":{"text":"usageRepo.getActiveRequests (cyclomatic 19): usageRepo.getActiveRequests has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 219, 228). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8022509502c15f9e55c5f35d9fc49aef057b33f78edef413c762706053b308"}},{"ruleId":"D1","level":"warning","message":{"text":"mimoLoginSession.parseSetCookie (cyclomatic 19): mimoLoginSession.parseSetCookie has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b305d96985bc26e66d15e88a7adab4ce6492add015b8c6c50c9eefedda3fdb9"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.buildProviderEntry (cyclomatic 19): providers.buildProviderEntry has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/constants/providers.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c99c8e99d781add8d7fd115bda8ca0b92e8b60032fee749a8aee97f57a302b9"}},{"ruleId":"D1","level":"warning","message":{"text":"manager.stopServer (cyclomatic 19): manager.stopServer has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bd44ab07d7da5368379b76db4b89e15c47f33f7a5f5f888299d381ac0bc77d"}},{"ruleId":"D1","level":"warning","message":{"text":"GitLabAuthModal.GitLabAuthModal (cyclomatic 19): GitLabAuthModal.GitLabAuthModal has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/GitLabAuthModal.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dabed60a737b04e29798b7fcce9643b5a4a73727fb48221756e3c3b937bc042"}},{"ruleId":"D1","level":"warning","message":{"text":"KiroSocialOAuthModal.KiroSocialOAuthModal (cyclomatic 19): KiroSocialOAuthModal.KiroSocialOAuthModal has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 60, 30, 27, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/KiroSocialOAuthModal.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a29b0bd8cac3d9ad22763ba61fb67cbb587e0ac4cec3785592c255f4361146"}},{"ruleId":"D1","level":"warning","message":{"text":"tokenRefresh.updateProviderCredentials (cyclomatic 19): tokenRefresh.updateProviderCredentials has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/tokenRefresh.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bd102db8b5f7654e00375805d9e06c7a1e04e4d6114742a01fc4c0e678cbf7"}},{"ruleId":"D1","level":"warning","message":{"text":"imageGeneration.handleSingleModelImage (cyclomatic 19): imageGeneration.handleSingleModelImage has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/imageGeneration.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae1c8f563d2f49d5310c53f33e1dc8454e03d6c07346e44114e459abf2b892a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 495, 507, 494, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"720ea1cc8aefe38f8fe6dab205e1d572c936f503d0de8e8df12931897990b758"}},{"ruleId":"D1","level":"warning","message":{"text":"extractAnswer (cyclomatic 19): extractAnswer has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d65bac7b30ccb7e7072f1707291b89950dca6dc242294f75307aa2730cbe47"}},{"ruleId":"D1","level":"warning","message":{"text":"getGrokCliUsage (cyclomatic 19): getGrokCliUsage has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/grok-cli.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcee4bf3198a8d8dbcd66971f5123b112d7dfd41cc1f16c8290b5282fb83273e"}},{"ruleId":"D1","level":"warning","message":{"text":"handleRun (cyclomatic 19): handleRun has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/SttExampleCard.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"700dcc7f61b179c47baa7d0508b86d2323c004fcf0e5f27dfdbffc5fa0eb1b74"}},{"ruleId":"D1","level":"warning","message":{"text":"handleFetchCore (cyclomatic 19): handleFetchCore has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/fetch/index.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c991329d303fc361faae8d89debb10371c19e295dcd661e9acb7632d89d0b0"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini.normalizeGeminiContents (cyclomatic 18): gemini.normalizeGeminiContents has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd253f3d902e0c958d34636814f865da6482ea794a11b89a979c67f133638e2d"}},{"ruleId":"D1","level":"warning","message":{"text":"claude.capCacheControlBlocks (cyclomatic 18): claude.capCacheControlBlocks has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a1d4a2dfd74c8cf290e1136f248c0d2e8d7f8a098c6fc63f0f27a75d2df1a5"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini-to-openai.geminiToOpenAIRequest (cyclomatic 18): gemini-to-openai.geminiToOpenAIRequest has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/gemini-to-openai.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c9b30de862568def6313417c9c9d0a8e04087f40f1fd6a258302bfc0b98759"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini-to-openai.convertGeminiContent (cyclomatic 18): gemini-to-openai.convertGeminiContent has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/gemini-to-openai.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"812c87b807f3f97009c65a38f942ae59f533fbb2fe01293fd018ac171e9420f4"}},{"ruleId":"D1","level":"warning","message":{"text":"kiroConversation.normalizeTurns (cyclomatic 18): kiroConversation.normalizeTurns has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/kiroConversation.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"73927494f0dfcd7b5a543a03167a508a9dd9eb8af028187f2e8d46e3c185b34b"}},{"ruleId":"D1","level":"warning","message":{"text":"streamHelpers.hasValuableContent (cyclomatic 18): streamHelpers.hasValuableContent has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/streamHelpers.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1777887d42058b3631cebc06c6cf9cec37734e71ae1e0d89b0e714d985c91069"}},{"ruleId":"D1","level":"warning","message":{"text":"GrokWebExecutor.execute (cyclomatic 18): GrokWebExecutor.execute has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-web.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b22b43c186785ae48ee831e5331ee4f51625cf6c24104404aef1a88ac3dffb1"}},{"ruleId":"D1","level":"warning","message":{"text":"zed.wrapZedCompletionStream (cyclomatic 18): zed.wrapZedCompletionStream has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 165, 157). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/zed.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca207430db90c79c14ed07d6009f97cad1cc40be6fd41ceb178d6a14ccb7495"}},{"ruleId":"D1","level":"warning","message":{"text":"claude.parseClaudeResetGrants (cyclomatic 18): claude.parseClaudeResetGrants has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/claude.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab42331c167308300c5e8a60806ec2ea5aeaa5043e2c5f0935217a37a6818ec8"}},{"ruleId":"D1","level":"warning","message":{"text":"codex.getCodexReviewRateLimit (cyclomatic 18): codex.getCodexReviewRateLimit has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/codex.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf123c0c627e2f454b2e81e32059e5d336584a4620f458e4ad3773b2ab308db0"}},{"ruleId":"D1","level":"warning","message":{"text":"MitmPageClient.MitmPageClient (cyclomatic 18): MitmPageClient.MitmPageClient has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 24, 34, 44, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/mitm/MitmPageClient.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd654c8af23f423185fccafbd3313293f23d59fab1342a72132d78768f6a4741"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsCard.ModelRow (cyclomatic 18): ModelsCard.ModelRow has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelsCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db880bc8e64223357c0ed16e635adeca88261086308540193d0fe3770395206"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderTopology.buildLayout (cyclomatic 18): ProviderTopology.buildLayout has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 301, 294). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderTopology.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a43ab4b7bf199c468c2da2796832b85ddca0575c7e864c34ebdb4174584ada"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderTopology.ProviderTopology (cyclomatic 18): ProviderTopology.ProviderTopology has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 374, 391, 366, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderTopology.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5914ed635509c285023124f34a739c722efc20aa22404d23efe569ed5c59cca"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 18): route.POST has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/droid-settings/route.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c85ac46d40c15b4a0597fac18222f1720ab20f5c74318a7dceda2bc27ee06e9"}},{"ruleId":"D1","level":"warning","message":{"text":"route.probeMcp (cyclomatic 18): route.probeMcp has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/cowork-mcp-tools/route.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c802bc2ee1c15d258f8dd76e1d726875af686c2bd20727e1bc4a338e9996084"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 18): route.GET has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/inworld/voices/route.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8439060f31211cbfb9311fea47609c9d28bea1a5ae585de851d1e2f38d8c256e"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 18): route.POST has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/xiaomi-mimo/login/start/route.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e5f1d4184a459fcfc611ecaf2e8ca4116d97ec95767da91c49de56cab37e5b"}},{"ruleId":"D1","level":"warning","message":{"text":"usageRepo.trackPendingRequest (cyclomatic 18): usageRepo.trackPendingRequest has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a23ea6f1069d375b7ee3e7c752656158627deb3fd2176dbe6ab8d1f9610a49"}},{"ruleId":"D1","level":"warning","message":{"text":"requestDetailsRepo.flushToDatabase (cyclomatic 18): requestDetailsRepo.flushToDatabase has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 99). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/requestDetailsRepo.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2609f61f589e476e25c802d21a9db516a35cc5947638a4cd72870375da21e39"}},{"ruleId":"D1","level":"warning","message":{"text":"PricingModal.PricingModal (cyclomatic 18): PricingModal.PricingModal has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 75, 17, 38, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/PricingModal.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60ce7de95204d7926c23d9a29829cbd4f17c1e780fc69f15f1d7638d261bd18"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageStats.sortData (cyclomatic 18): UsageStats.sortData has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 93, 107). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a798d8bddfcceb377a30d44e3d8d12f67bc8bdb4310b81a2e0e93658b360f82"}},{"ruleId":"D1","level":"warning","message":{"text":"providerCustomModels.getProviderCustomModelRows (cyclomatic 18): providerCustomModels.getProviderCustomModelRows has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/utils/providerCustomModels.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"295b883e70130eaf9cb0b03756247b810f50931bdc0eb2ad32ee7dfd17c6f164"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.clearAccountError (cyclomatic 18): auth.clearAccountError has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/auth.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de5bfb880000b46e815ac6fb5a80a2d37bfa69c877e10277dc76936645e3a1c"}},{"ruleId":"D1","level":"warning","message":{"text":"backgroundTokenRefresh.runBackgroundTokenRefreshTick (cyclomatic 18): backgroundTokenRefresh.runBackgroundTokenRefreshTick has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/backgroundTokenRefresh.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"820f6a8d66c5291b568e801e58a5fd84769a15e604a45119725e529d5bbce6bf"}},{"ruleId":"D1","level":"warning","message":{"text":"handleImportQoderModels (cyclomatic 18): handleImportQoderModels has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"18030f8d08bbd18c3c977931229eda6a277a060116c7ce2ec86959ec95c5362f"}},{"ruleId":"D1","level":"warning","message":{"text":"handleImportClineModels (cyclomatic 18): handleImportClineModels has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d824998b19d27517e8f178845eed4e955d83df4981774d83e3a86dd257cb590"}},{"ruleId":"D1","level":"warning","message":{"text":"wrapQoderSSE::start (cyclomatic 18): wrapQoderSSE::start has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aea759fd8673bd7eff12979e35f473fc4fb70e7c01e9e38399f18625ad32acb"}},{"ruleId":"D1","level":"warning","message":{"text":"handleTest (cyclomatic 18): handleTest has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bca93f30bf0b2d527393cacc5cbecee095de8b9c5896f90393a4c3f8bcab657"}},{"ruleId":"D1","level":"warning","message":{"text":"markAccountUnavailable (cyclomatic 18): markAccountUnavailable has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/auth.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a764a160326002d29ac0a4cb0e55da0326349eb93573f4a495a908e62d786a"}},{"ruleId":"D1","level":"warning","message":{"text":"stripHistoryForContext (cyclomatic 18): stripHistoryForContext has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/capacityAdapter.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec9b73104397cd0fb1d7522778212a3a26e4b2e3900df52a222a4d9caebddf3"}},{"ruleId":"D1","level":"warning","message":{"text":"connect.parseArgs (cyclomatic 17): connect.parseArgs has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/connect.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"31060d17a78d4e4a7a4738b7b9d1454cb8536e6b77af2a4e92f4277868d81f0f"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.showSettingsMenu (cyclomatic 17): settings.showSettingsMenu has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 26, 52, 90, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/menus/settings.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"379f071ebe1005fa4d7554f1c9b83348992325cc67f81d2083e5686903cbffb7"}},{"ruleId":"D1","level":"warning","message":{"text":"pricing.calculateCostFromTokens (cyclomatic 17): pricing.calculateCostFromTokens has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/pricing.js"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"b199f0ece4036d2b42ee515ce2c66db4514bcf0a2dbc3386cb36482ba3b959e0"}},{"ruleId":"D1","level":"warning","message":{"text":"qoder.createQoderProvider (cyclomatic 17): qoder.createQoderProvider has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 85, 38). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/providers/qoder.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e24c873d8b905a9d113bce297b10df65b4e45586a09889c073496269cdf9e2"}},{"ruleId":"D1","level":"warning","message":{"text":"index.backfillCodexEmails (cyclomatic 17): index.backfillCodexEmails has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/providers/index.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf20093c3ccc4bdec1787f39da49bc645a6e8e5d78989d943d0ab813fb254b17"}},{"ruleId":"D1","level":"warning","message":{"text":"migrate.runMigrationOnce (cyclomatic 17): migrate.runMigrationOnce has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/migrate.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb309f71a7a201e94f506ad6487901244adfbc7537eb8d096e99bb867f251ca3"}},{"ruleId":"D1","level":"warning","message":{"text":"image.fetchImageAsBase64 (cyclomatic 17): image.fetchImageAsBase64 has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/image.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb09150da4b578b5a288d20b53048a9ce7cae34fba1a5dff85054e66a9f81645"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexExecutor._peekSseTransientError (cyclomatic 17): CodexExecutor._peekSseTransientError has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc06917d30f46bd9ee512163c425aae48a63bbb48624053bcba5eee3543abf1"}},{"ruleId":"D1","level":"warning","message":{"text":"claude.fixToolUseOrdering (cyclomatic 17): claude.fixToolUseOrdering has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1821a7dbdb2b816f235f6499b9a54d890e2aa1ce8415e50f50de6319ea8f8096"}},{"ruleId":"D1","level":"warning","message":{"text":"index.translateResponse (cyclomatic 17): index.translateResponse has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/index.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f988f1598227c03502a74639afa07bf413e5b6b6c6170adc5cbb2c093918e54"}},{"ruleId":"D1","level":"warning","message":{"text":"error.parseUpstreamError (cyclomatic 17): error.parseUpstreamError has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/error.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"de77d3ff64d9768c6c6fa6fc366667ffb48c20bf086ad1ccf6b67c44e3297244"}},{"ruleId":"D1","level":"warning","message":{"text":"VertexExecutor.buildUrl (cyclomatic 17): VertexExecutor.buildUrl has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/vertex.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50887b680b4b4529422fc15a4abef8dea00e8722297d1a9c0388d7d562a57f2"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeZenExecutor.transformRequest (cyclomatic 17): OpenCodeZenExecutor.transformRequest has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-zen.js"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ce344e6d0af86dcf7323d6f664863e7f47421a8192b915ab4970f81197aa14"}},{"ruleId":"D1","level":"warning","message":{"text":"streamToJsonConverter.processSSEMessage (cyclomatic 17): streamToJsonConverter.processSSEMessage has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/transformer/streamToJsonConverter.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad101da95c8938c2890226683e609bdb0a77b406a27296db521fca6b1dd5723"}},{"ruleId":"D1","level":"warning","message":{"text":"minimax.minimaxTts (cyclomatic 17): minimax.minimaxTts has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/ttsProviders/minimax.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a232dd300f8687420f26d25233e21dea563ce120165b2d864b7727707a83c100"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.sortVisibleConnections (cyclomatic 17): utils.sortVisibleConnections has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 87, 58, 74, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0da83656260b10244e5a8c6acbb469c63541d521cc1a9d90834c48c6a79c89"}},{"ruleId":"D1","level":"warning","message":{"text":"route.PATCH (cyclomatic 17): route.PATCH has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/antigravity-mitm/route.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"030f0c828e797e7fe7543cf36a4a5863ebb9d6f3960c195af57bc190086319b3"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 17): route.GET has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/elevenlabs/voices/route.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24d4c851db22d1ec6d3d1ccb52f8c60367351b9fe68c72a51fa6c5ea65808df"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 17): route.POST has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/tunnel/tailscale-install/route.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"12301c99ef7d34a2c1976ce3d2e9dcd12483c7bbcf8d5be86443143e0cd206d3"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 17): route.GET has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/audio/voices/route.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cfa6ce266d75276ee836e2ce8b57136133e73d1078802ef90fd52d3d329787"}},{"ruleId":"D1","level":"warning","message":{"text":"route.comboSeatLimits (cyclomatic 17): route.comboSeatLimits has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/route.js"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfa92efaf96e4636ef9eca65ae2f8b23d13d265c0f7895731bcb2c9c1364bab"}},{"ruleId":"D1","level":"warning","message":{"text":"tailscale.startLogin (cyclomatic 17): tailscale.startLogin has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 717, 689, 646, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"9907816841db51f29b54b2516138e93f70eaa1c81907bc19291d2293728d7b6d"}},{"ruleId":"D1","level":"warning","message":{"text":"tailscale.startFunnel (cyclomatic 17): tailscale.startFunnel has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 771, 757, 799, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"5353ddc2a7c6eb841f69cb7a23765118022d3aec1fa2acdb30e757b821c3b0ef"}},{"ruleId":"D1","level":"warning","message":{"text":"DonateModal.DonateModal (cyclomatic 17): DonateModal.DonateModal has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/DonateModal.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8da5ac0f92f47b2450e22a4bf1683c92ad3cf90659f47e96671485afe42c624"}},{"ruleId":"D1","level":"warning","message":{"text":"fetch.handleFetch (cyclomatic 17): fetch.handleFetch has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/fetch.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0551fcd460e27610b28da62780267481d09caa57e4e5d19870bf4a31a715b323"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfilePage::saveSamlSettings (cyclomatic 17): ProfilePage::saveSamlSettings has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ce951b5470329edccb91f79ff8a5021185e5deea98e13f6c69b8c0ae3bce16"}},{"ruleId":"D1","level":"warning","message":{"text":"getRecentLogs (cyclomatic 17): getRecentLogs has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 797). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e606043acf483a55c89aa1bc652ad0b7bb95dba3dd8639647a0bc3e8f971d6"}},{"ruleId":"D1","level":"warning","message":{"text":"extractPanelText (cyclomatic 17): extractPanelText has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a487118eb2566a72f37fa6953e005f1905262234e1e26ecda4037d74e97f2ba4"}},{"ruleId":"D1","level":"warning","message":{"text":"emitToolCall (cyclomatic 17): emitToolCall has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"55619b7f2079929ce3579cb28bf2d1da5042bf64752833a47b7ea486e623496b"}},{"ruleId":"D1","level":"warning","message":{"text":"startSessionLogin (cyclomatic 17): startSessionLogin has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 148). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/XiaomiMimoAuthModal.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fd31623034b033a5ad1477d2465ab6f3b8e940ac7b7338f5184b36c523b630"}},{"ruleId":"D1","level":"warning","message":{"text":"resolveZedModels (cyclomatic 17): resolveZedModels has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 384, 396, 404). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/zedAuth.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9c9150a9361f833e3f662ebb49526742090eca45d24fb3a29e9884b5d2378a"}},{"ruleId":"D1","level":"warning","message":{"text":"GET (cyclomatic 17): GET has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/usage/[connectionId]/route.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65a41586a974b8cf28b420d04ecfd9de709cf8737409605f0e70684025d2d4a"}},{"ruleId":"D1","level":"warning","message":{"text":"xaiVideo.pollUntilDone (cyclomatic 16): xaiVideo.pollUntilDone has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/xaiVideo.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7d511d991c6281482bbca1ed8b71c3d6b8a74239841f2d32437bb351750b86"}},{"ruleId":"D1","level":"warning","message":{"text":"tray.killTray (cyclomatic 16): tray.killTray has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 7 belong to 6 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/tray/tray.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d779485b92d645f9676585d95a694ea4ea92c3895fdad9aee8edfa27d1c2d05"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.killProxyByPidFile (cyclomatic 16): cli.killProxyByPidFile has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"642a9895a8935f57cb42ebda453cf3edfa2eb1e973de1ccec06da1ced7582eb4"}},{"ruleId":"D1","level":"warning","message":{"text":"index.pollForToken (cyclomatic 16): index.pollForToken has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/providers/index.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa432baa2fe4f11929ae57a0f0729a9462eaa09f577bfd114e87b89bd81ed4c5"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini.flattenAnyOfOneOf (cyclomatic 16): gemini.flattenAnyOfOneOf has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f6c33a9ca6a563525a2570da9764ae98de40238320ca31f6fc7a06b4f18d7c"}},{"ruleId":"D1","level":"warning","message":{"text":"sqljsAdapter.createSqlJsAdapter (cyclomatic 16): sqljsAdapter.createSqlJsAdapter has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/adapters/sqljsAdapter.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3b04762c88d8eaf0852c06eb6cc0fee2cc2cb4a838e4ad0f4ce124bdc87233"}},{"ruleId":"D1","level":"warning","message":{"text":"codex.findNestedMessage (cyclomatic 16): codex.findNestedMessage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"92848fcfe664d7f664dfb937b2a0d03224bd09dab2ea9b9d545f91db67975829"}},{"ruleId":"D1","level":"warning","message":{"text":"opencodeFingerprint.retargetToolChoice (cyclomatic 16): opencodeFingerprint.retargetToolChoice has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/opencodeFingerprint.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0cb10002516dfc6e97e520b3fc7c5da2d9934e80bb30d793c1c37dc1f15cba"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-to-claude.openaiToClaudeRequestForAntigravity (cyclomatic 16): openai-to-claude.openaiToClaudeRequestForAntigravity has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-claude.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a87254b331a91ff7a8b9fefd72bb8ebe197ecd65a127244a07f5ae4cf4324e0"}},{"ruleId":"D1","level":"warning","message":{"text":"kiroConversation.validateKiroConversation (cyclomatic 16): kiroConversation.validateKiroConversation has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/kiroConversation.js"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d451240f61c775c188b9ecb050637444a14759b2e97e0d6b3f3ed606950888"}},{"ruleId":"D1","level":"warning","message":{"text":"usageTracking.logUsage (cyclomatic 16): usageTracking.logUsage has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/usageTracking.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"d737dfb81263f9df081bfac5e318ad9141ebdcb565a15f9a05f292ba9aeb07a6"}},{"ruleId":"D1","level":"warning","message":{"text":"qoderModels.resolveQoderModels (cyclomatic 16): qoderModels.resolveQoderModels has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/qoderModels.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c8ed2524425e8fb70c903e9347a99cd671f301c948270f47d99621ed8ad94f"}},{"ruleId":"D1","level":"warning","message":{"text":"sse.canonicalizeQoderUsage (cyclomatic 16): sse.canonicalizeQoderUsage has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/sse.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd9a4342cee61258882fc50cd7d1ff75961009ea451d2c0cad20fde5a79917c"}},{"ruleId":"D1","level":"warning","message":{"text":"systemInject.injectSystemPrompt (cyclomatic 16): systemInject.injectSystemPrompt has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"35839e3a74ccc9e447b4bc98753554cf81095304175323af3d4a5cf1664b71bc"}},{"ruleId":"D1","level":"warning","message":{"text":"systemInject.injectClaudeSystem (cyclomatic 16): systemInject.injectClaudeSystem has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad072972f47943ecb04aea3f06b62ac7cb02ee588c02d4db0cd6a48b6fb2ffb"}},{"ruleId":"D1","level":"warning","message":{"text":"vertex.toVertexBody (cyclomatic 16): vertex.toVertexBody has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/videoProviders/vertex.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e49d214bbe2f487db2ed918d7596f71a052261922762eacd53835b774241080"}},{"ruleId":"D1","level":"warning","message":{"text":"codex.getCodexSparkRateLimit (cyclomatic 16): codex.getCodexSparkRateLimit has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/codex.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d4a9afe1a3c89d9f40be4faca236add3738449b6f37fff6f2c436bfd9df28a"}},{"ruleId":"D1","level":"warning","message":{"text":"deepseek.getDeepseekUsage (cyclomatic 16): deepseek.getDeepseekUsage has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/deepseek.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ef990abef37f1a87157f22fb4a4fbe0cacbdae96244319ccc2abf4b3473038"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode-go.getOpenCodeGoUsage (cyclomatic 16): opencode-go.getOpenCodeGoUsage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/opencode-go.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41a03324b617c58d062a24b23e76c941ddf3d12038de6d00f910c1909c9cbeb"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode-zen.getOpenCodeZenUsage (cyclomatic 16): opencode-zen.getOpenCodeZenUsage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/opencode-zen.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"63da53a84f621920e43f8fa6a4be3de7175564ee973c9e927d6b8ff42cd7006b"}},{"ruleId":"D1","level":"warning","message":{"text":"glm.parseGlmQuotaResponse (cyclomatic 16): glm.parseGlmQuotaResponse has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/glm.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7416be1f063a61534381269f3e562aa4308684ad5b9ca6db5e2feb9c0abcb61e"}},{"ruleId":"D1","level":"warning","message":{"text":"page.ComboCard (cyclomatic 16): page.ComboCard has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"487133148a976f88f349d998380834d63262fb72b5302dacf3e6cbe939e77b3b"}},{"ruleId":"D1","level":"warning","message":{"text":"page.ApiKeyProviderCard (cyclomatic 16): page.ApiKeyProviderCard has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf314af8a48279d294eb88087f14fc1f3899a60935ff6c9867d07fd58e08829"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 16): route.POST has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/antigravity-mitm/route.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5554e3ce2a85cc50a92f269a8dfef75b938f201a8c798952c11cf87089410c1"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 16): route.POST has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/iflow/cookie/route.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7379c1fe6a9fbc7bf2a7fa310718fe995acb3a25c68523c5db73929336080872"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 16): route.POST has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/kiro/import/route.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ad1cdf1cd6b8527c50464dcf90f6a8d6a50ce1e3696b5d9ba21234931bd390"}},{"ruleId":"D1","level":"warning","message":{"text":"route.PUT (cyclomatic 16): route.PUT has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/provider-nodes/[id]/route.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93053b551d14b374cf047b745fd79f9bdce56b373e51b3c3f288ae3a22ec285"}},{"ruleId":"D1","level":"warning","message":{"text":"route.probeWebProvider (cyclomatic 16): route.probeWebProvider has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f936faf575e92db59b3b2d09e907971a1bddb39361fa5dbd74efa792d2d2e5"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 16): route.GET has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/usage/request-details/route.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b53c94b76b1821ec7eec19a64a724cb72a9bcd957daad8348f48182da46a01"}},{"ruleId":"D1","level":"warning","message":{"text":"manager.enableTailscale (cyclomatic 16): manager.enableTailscale has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/manager.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1969349f3b99bd8085e307964d61cc45e4461b100b6e0571bb6af9de7be069"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.proxy (cyclomatic 16): proxy.proxy has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/proxy.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a00c3321cffc38fc3b2a3f64836aa465c92c0917f8e5a666775fb76146cc1e"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageSwitcher.LanguageSwitcher (cyclomatic 16): LanguageSwitcher.LanguageSwitcher has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 67, 80, 92, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/LanguageSwitcher.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec8635fbc86d57774e5860b89f57a4b9517cca37eff320b3a019a8f01cd4f81"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageStats.groupDataByKey (cyclomatic 16): UsageStats.groupDataByKey has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 131). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"40aab855582b493684197c9b6a44fc80385573df92c4ec07080b1ffb8420e6b9"}},{"ruleId":"D1","level":"warning","message":{"text":"coworkPlugins.buildManagedMcpServers (cyclomatic 16): coworkPlugins.buildManagedMcpServers has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/constants/coworkPlugins.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a56ead867b43733d8d343c3a81818fbc852b02af114a1318d6fcfd24e23799e"}},{"ruleId":"D1","level":"warning","message":{"text":"quotaAutoPing.pingConnection (cyclomatic 16): quotaAutoPing.pingConnection has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/services/quotaAutoPing.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7757ff559d829203ba8154c10857ecd816b21816fe66f56123e696cddc1b333"}},{"ruleId":"D1","level":"warning","message":{"text":"search.handleSearch (cyclomatic 16): search.handleSearch has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/search.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde7894b015735d7cf4b4e72dbc4d0f60d40cf32da28751295ff6754d33316c9"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderTestResultsView (cyclomatic 16): ProviderTestResultsView has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"00aa76bdc94275f522ef35789d2977dbf690cf5cf61ab3ff45cf8c1e3cc8d1b0"}},{"ruleId":"D1","level":"warning","message":{"text":"resolveKiroThinkingBudget (cyclomatic 16): resolveKiroThinkingBudget has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/kiroConstants.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bde3be269d884379ed860e7e9726a36cd8b3dc706f616a34af0b4da6df3d01b"}},{"ruleId":"D1","level":"warning","message":{"text":"buildBody (cyclomatic 16): buildBody has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/codex.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4644207d5d4e9391fec89ab4cc205ae958381df166e896373d89e9b2b29dcec"}},{"ruleId":"D2","level":"warning","message":{"text":"page.ProviderDetailPage (cognitive 383): page.ProviderDetailPage has cognitive complexity 383 (threshold 15). Drivers by points: boolean chains 132, if/else 103 (128 pts), ternaries 49 (80 pts), error handling 29 (32 pts), loops 9 (11 pts) (nesting depth added 61). Of this number, 108 points are the body\u0027s own statements and 275 belong to 74 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c33dd669912fb6b97eca27e6358aacbb2af41b8a8e0866fc21209b49a46bc20"}},{"ruleId":"D2","level":"warning","message":{"text":"EndpointPageClient.APIPageClient (cognitive 338): EndpointPageClient.APIPageClient has cognitive complexity 338 (threshold 15). Drivers by points: if/else 84 (147 pts), boolean chains 78, ternaries 31 (68 pts), error handling 21 (33 pts), loops 8 (12 pts) (nesting depth added 116). Of this number, 72 points are the body\u0027s own statements and 266 belong to 41 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbfc797f51965f783c21f1744d0243160fce0a107518625306660e25a0ad47f"}},{"ruleId":"D2","level":"warning","message":{"text":"stream.createSSEStream (cognitive 280): stream.createSSEStream has cognitive complexity 280 (threshold 15). Drivers by points: if/else 76 (194 pts), boolean chains 42, loops 11 (33 pts), ternaries 4 (6 pts), error handling 2 (5 pts) (nesting depth added 145). Of this number, 261 points are the body\u0027s own statements and 19 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad75eca67b0fd6664aaa8f9d590c5650eeed04f30b687bb7b51cea23d0d4e57c"}},{"ruleId":"D2","level":"warning","message":{"text":"getUsageStats (cognitive 268): getUsageStats has cognitive complexity 268 (threshold 15). Drivers by points: if/else 37 (112 pts), boolean chains 91, ternaries 11 (33 pts), loops 15 (29 pts), error handling 3 (nesting depth added 111). Of this number, 257 points are the body\u0027s own statements and 11 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"38aefa818a657307809d87192d980214ccd196c93f27e4a846315f13439ae6f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderLimits (cognitive 259): ProviderLimits has cognitive complexity 259 (threshold 15). Drivers by points: if/else 61 (85 pts), boolean chains 75, ternaries 57 (58 pts), error handling 18 (21 pts), loops 4 (12 pts), other 8 (nesting depth added 36). Of this number, 44 points are the body\u0027s own statements and 215 belong to 118 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"196605cd73441445093841313a59489f7744b70d049981c5f9449e4d4402dac7"}},{"ruleId":"D2","level":"warning","message":{"text":"page.ProfilePage (cognitive 228): page.ProfilePage has cognitive complexity 228 (threshold 15). Drivers by points: boolean chains 118, if/else 48, ternaries 27 (43 pts), error handling 19 (nesting depth added 16). Of this number, 64 points are the body\u0027s own statements and 164 belong to 31 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9e0bc871aa2984e9a2a4bc5f1047a13144f45626e420b2148dd2d95f09a72b"}},{"ruleId":"D2","level":"warning","message":{"text":"KiroExecutor.transformEventStreamToSSE (cognitive 226): KiroExecutor.transformEventStreamToSSE has cognitive complexity 226 (threshold 15). Drivers by points: if/else 71 (116 pts), boolean chains 54, ternaries 19 (42 pts), error handling 6 (9 pts), loops 4 (5 pts) (nesting depth added 72). Most of this is not in the body itself: 2 of the 226 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 792, 996, 925, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c15953f48bc84007a865d7b05ae23caaa60e29b2130734d6e45d374c00520c"}},{"ruleId":"D2","level":"warning","message":{"text":"OAuthModal.OAuthModal (cognitive 219): OAuthModal.OAuthModal has cognitive complexity 219 (threshold 15). Drivers by points: if/else 79 (101 pts), boolean chains 62, ternaries 18 (39 pts), error handling 12 (16 pts), loops 1 (nesting depth added 47). Of this number, 23 points are the body\u0027s own statements and 196 belong to 18 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39c144ec5d84480ee6ab37f60515c74f4a8ed283ba51d788a881f2a2432b330"}},{"ruleId":"D2","level":"warning","message":{"text":"handleChatCore (cognitive 213): handleChatCore has cognitive complexity 213 (threshold 15). Drivers by points: if/else 59 (87 pts), boolean chains 64, ternaries 18 (35 pts), error handling 14 (27 pts) (nesting depth added 58). Of this number, 203 points are the body\u0027s own statements and 10 belong to 13 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9495fae679874f72660d087db4e729dec124e54a8903bc5a99fbec96fb72e32"}},{"ruleId":"D2","level":"warning","message":{"text":"buildModelsList (cognitive 201): buildModelsList has cognitive complexity 201 (threshold 15). Drivers by points: if/else 42 (135 pts), boolean chains 35, loops 8 (15 pts), error handling 6 (9 pts), ternaries 2 (7 pts) (nesting depth added 108). Of this number, 160 points are the body\u0027s own statements and 41 belong to 21 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/route.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f16502246bb5d31274a9a72cb2a9d07cc4736789a1e36134b81a186826fa9d"}},{"ruleId":"D2","level":"warning","message":{"text":"createSSEStream::transform (cognitive 201): createSSEStream::transform has cognitive complexity 201 (threshold 15). Drivers by points: if/else 51 (150 pts), boolean chains 25, loops 6 (20 pts), error handling 1 (4 pts), ternaries 1 (2 pts) (nesting depth added 117). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"be86ea3d7b6ef61cdce1efad97324d85bd9e6739db46cc392a0bc122910edac7"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicChatPageClient.BasicChatPageClient (cognitive 199): BasicChatPageClient.BasicChatPageClient has cognitive complexity 199 (threshold 15). Drivers by points: if/else 54 (73 pts), boolean chains 55, ternaries 37 (55 pts), error handling 6 (8 pts), loops 6 (8 pts) (nesting depth added 41). Of this number, 17 points are the body\u0027s own statements and 182 belong to 37 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf2c7fb29f1093c957a4d48394a8c980122a9777298f63b2e9f2eb7c044652a"}},{"ruleId":"D2","level":"warning","message":{"text":"parseQuotaData (cognitive 199): parseQuotaData has cognitive complexity 199 (threshold 15). Drivers by points: boolean chains 88, if/else 39 (78 pts), ternaries 7 (23 pts), other 8, error handling 1, match/switch 1 (nesting depth added 55). Of this number, 73 points are the body\u0027s own statements and 126 belong to 34 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"978d5430d6aeeadb8113e65457960724786d88944b92a0a01de49b6c3a8e7e2e"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiToGeminiBase (cognitive 175): openaiToGeminiBase has cognitive complexity 175 (threshold 15). Drivers by points: if/else 34 (111 pts), loops 7 (23 pts), ternaries 4 (21 pts), boolean chains 20 (nesting depth added 110). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-gemini.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"21829791bf543c1578907c7cccbdb6bf8cda73a567e4b93c640af77d7d5bebfd"}},{"ruleId":"D2","level":"warning","message":{"text":"execute (cognitive 160): execute has cognitive complexity 160 (threshold 15). Drivers by points: if/else 45 (88 pts), boolean chains 32, ternaries 13 (27 pts), error handling 6 (9 pts), other 3, loops 1 (nesting depth added 60). Most of this is not in the body itself: 15 of the 160 points are its own statements and the rest belongs to 15 function items inside it that branch (start::(anonymous), start::(anonymous), start::finish, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"693794c8ac5a892420cc1fd8986383dee6495c5712165856f85815dc62ebf284"}},{"ruleId":"D2","level":"warning","message":{"text":"page.ProxyPoolsPage (cognitive 158): page.ProxyPoolsPage has cognitive complexity 158 (threshold 15). Drivers by points: if/else 48 (55 pts), ternaries 31 (42 pts), boolean chains 36, error handling 14 (19 pts), loops 5 (6 pts) (nesting depth added 24). Of this number, 26 points are the body\u0027s own statements and 132 belong to 30 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"50836e2a93836c1f8cb706af0a5bc97ec7aa8700625453e222859b76c6db92b9"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericExampleCard.GenericExampleCard (cognitive 154): GenericExampleCard.GenericExampleCard has cognitive complexity 154 (threshold 15). Drivers by points: boolean chains 61, if/else 25 (39 pts), ternaries 26 (37 pts), loops 4 (10 pts), error handling 3 (7 pts) (nesting depth added 35). Of this number, 68 points are the body\u0027s own statements and 86 belong to 14 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abff53c14457065586bbd824f138630e20b1bd5e9645f0d530c3bea019f18f1"}},{"ruleId":"D2","level":"warning","message":{"text":"convertMessages (cognitive 152): convertMessages has cognitive complexity 152 (threshold 15). Drivers by points: if/else 39 (95 pts), ternaries 6 (27 pts), boolean chains 23, loops 4 (7 pts) (nesting depth added 80). Of this number, 115 points are the body\u0027s own statements and 37 belong to 9 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-kiro.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f5792ac92e79a6cdff6f1c77ebdc2b3481ac2fb40e5cb69dbd54ad27bc26b7"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenSaverClient.TokenSaverClient (cognitive 147): TokenSaverClient.TokenSaverClient has cognitive complexity 147 (threshold 15). Drivers by points: ternaries 33 (72 pts), boolean chains 38, if/else 22 (24 pts), error handling 13 (nesting depth added 41). Of this number, 90 points are the body\u0027s own statements and 57 belong to 28 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"847dfeac4420f8e58579bdd9e9bf8b1b8be8e45cd89dec81ff7e14cb81dfcd00"}},{"ruleId":"D2","level":"warning","message":{"text":"startServer (cognitive 143): startServer has cognitive complexity 143 (threshold 15). Drivers by points: if/else 47 (81 pts), error handling 14 (31 pts), boolean chains 22, ternaries 3 (8 pts), loops 1 (nesting depth added 56). Of this number, 119 points are the body\u0027s own statements and 24 belong to 7 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0677d38752906d437e9ae2b78fe019d8f7a5e6f3c80ea574cae07fd42e7c3b"}},{"ruleId":"D2","level":"warning","message":{"text":"prepareClaudeRequest (cognitive 140): prepareClaudeRequest has cognitive complexity 140 (threshold 15). Drivers by points: if/else 34 (95 pts), boolean chains 25, loops 5 (18 pts), ternaries 1 (2 pts) (nesting depth added 75). Of this number, 123 points are the body\u0027s own statements and 17 belong to 4 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ba1b9dc91f11a74060dafff7946ac794aa45b38098f5111a429a1a0ebf29de"}},{"ruleId":"D2","level":"warning","message":{"text":"convertClaudeMessagesToKiro (cognitive 132): convertClaudeMessagesToKiro has cognitive complexity 132 (threshold 15). Drivers by points: if/else 35 (85 pts), loops 6 (18 pts), boolean chains 16, ternaries 2 (13 pts) (nesting depth added 73). Of this number, 120 points are the body\u0027s own statements and 12 belong to 4 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-kiro.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c54ec14c143a2893cb16966c936784e3dc1cbcbd121391523e395f99f3e8c3f"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 128): route.POST has cognitive complexity 128 (threshold 15). Drivers by points: if/else 38 (59 pts), boolean chains 35, ternaries 12 (23 pts), error handling 6 (10 pts), match/switch 1 (nesting depth added 36). Of this number, 120 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0c56469166d3dd2b292b723acfaa85931d134e1b7bbd22c03868ca1fb527f2"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSelectModal.ModelSelectModal (cognitive 127): ModelSelectModal.ModelSelectModal has cognitive complexity 127 (threshold 15). Drivers by points: if/else 37 (53 pts), boolean chains 40, ternaries 13 (29 pts), error handling 4, loops 1 (nesting depth added 32). Most of this is not in the body itself: 3 of the 127 points are its own statements and the rest belongs to 33 function literals inside it that branch (lines 232, 583, 449, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ModelSelectModal.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"032baa1c1fa733739d2607970f6365817d6882493708d48a1b89370896d59300"}},{"ruleId":"D2","level":"warning","message":{"text":"TtsExampleCard.TtsExampleCard (cognitive 126): TtsExampleCard.TtsExampleCard has cognitive complexity 126 (threshold 15). Drivers by points: boolean chains 62, if/else 27 (34 pts), ternaries 18 (26 pts), error handling 2, loops 1 (2 pts) (nesting depth added 16). Of this number, 49 points are the body\u0027s own statements and 77 belong to 18 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbef89e78f7c1a352eabbbbc84736e1f7d134abbaf87e5f0d100662eee459339"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiResponsesToOpenAIRequest (cognitive 123): openaiResponsesToOpenAIRequest has cognitive complexity 123 (threshold 15). Drivers by points: if/else 39 (74 pts), ternaries 8 (22 pts), boolean chains 14, loops 4 (11 pts), other 2 (nesting depth added 56). Of this number, 92 points are the body\u0027s own statements and 31 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-responses.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a895a8eab8bf6b87e81cbc72fc8bceb6b3710faab7adc630a8b5bfc9638b59"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericCliToolCard (cognitive 121): GenericCliToolCard has cognitive complexity 121 (threshold 15). Drivers by points: if/else 32 (46 pts), boolean chains 40, ternaries 19 (28 pts), error handling 4 (5 pts), match/switch 2 (nesting depth added 24). Of this number, 31 points are the body\u0027s own statements and 90 belong to 44 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GenericCliToolCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f774a87e0513a4d6f26a061b2d04067781ec63019324215570b0577e8e5f78c"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 113): route.POST has cognitive complexity 113 (threshold 15). Drivers by points: if/else 27 (51 pts), ternaries 10 (27 pts), boolean chains 21, error handling 6 (14 pts) (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2d2d3d7ec85b170384b0905960936f4d729477101ed76852092657e95fb107"}},{"ruleId":"D2","level":"warning","message":{"text":"wrapInCloudCodeEnvelopeForClaude (cognitive 110): wrapInCloudCodeEnvelopeForClaude has cognitive complexity 110 (threshold 15). Drivers by points: if/else 20 (51 pts), ternaries 5 (29 pts), loops 6 (17 pts), boolean chains 13 (nesting depth added 66). Of this number, 103 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-gemini.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a9a518505f7177cba52d4c73cd78cee13aca5d5061dc890166eff3a8bcdb9e"}},{"ruleId":"D2","level":"warning","message":{"text":"executeAgent (cognitive 109): executeAgent has cognitive complexity 109 (threshold 15). Drivers by points: if/else 40 (80 pts), boolean chains 14, error handling 6 (7 pts), ternaries 3 (5 pts), loops 2 (3 pts) (nesting depth added 44). Of this number, 25 points are the body\u0027s own statements and 84 belong to 9 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f370b835c936178a51769f0b4dd679a306cd50df8c1bd006b1038239e65bea4"}},{"ruleId":"D2","level":"warning","message":{"text":"extractContent (cognitive 104): extractContent has cognitive complexity 104 (threshold 15). Drivers by points: if/else 18 (59 pts), loops 6 (23 pts), other 13, boolean chains 9 (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e103b6932aea48169beaacd4134090f915bd16533081b00a08633ff9d9c49ec2"}},{"ruleId":"D2","level":"warning","message":{"text":"applyFormat (cognitive 103): applyFormat has cognitive complexity 103 (threshold 15). Drivers by points: if/else 22 (43 pts), ternaries 15 (33 pts), boolean chains 24, other 2, match/switch 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/thinkingUnified.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ca6d9f4b4b43c20dcf2f9888b4275ae50cd01581bf622bc4dcdaf1fe86b26e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProvidersPage (cognitive 102): ProvidersPage has cognitive complexity 102 (threshold 15). Drivers by points: boolean chains 37, ternaries 32 (33 pts), if/else 20 (21 pts), other 9, error handling 2 (nesting depth added 2). Of this number, 23 points are the body\u0027s own statements and 79 belong to 68 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"250ffb633ea74a97f76d5abf4b7ac4828bea7659dfc51b670f413083a7058711"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 101): route.GET has cognitive complexity 101 (threshold 15). Drivers by points: if/else 46 (75 pts), ternaries 6 (15 pts), boolean chains 7, error handling 2 (4 pts) (nesting depth added 40). Of this number, 99 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5c3d87294086e13e1746912f99932a2db0180fcf542c3f7c060a27ba0b8cb2"}},{"ruleId":"D2","level":"warning","message":{"text":"transformEventStreamToSSE::processEvent (cognitive 101): transformEventStreamToSSE::processEvent has cognitive complexity 101 (threshold 15). Drivers by points: if/else 34 (62 pts), boolean chains 22, ternaries 6 (13 pts), loops 1 (2 pts), other 2 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"0253bdaf829f67b750f121d4b1bc47ac829b4c870c39f482008a38b963276e46"}},{"ruleId":"D2","level":"warning","message":{"text":"responsesTransformer.createResponsesApiTransformStream (cognitive 100): responsesTransformer.createResponsesApiTransformStream has cognitive complexity 100 (threshold 15). Drivers by points: if/else 28 (73 pts), boolean chains 13, loops 6 (12 pts), error handling 1 (2 pts) (nesting depth added 52). Of this number, 88 points are the body\u0027s own statements and 12 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/transformer/responsesTransformer.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c407c53584cd95b2d598218729e8dc80e796b1d632943a04a6d008fd696c721"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeClaudePassthrough (cognitive 99): normalizeClaudePassthrough has cognitive complexity 99 (threshold 15). Drivers by points: if/else 23 (57 pts), ternaries 6 (18 pts), boolean chains 11, loops 5 (11 pts), other 2 (nesting depth added 52). Of this number, 86 points are the body\u0027s own statements and 13 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"488bf7e9772569f78b227ebef52cf41937a9495cd8eb3773bff3bee3375d93a9"}},{"ruleId":"D2","level":"warning","message":{"text":"nonStreamingHandler.translateNonStreamingResponse (cognitive 97): nonStreamingHandler.translateNonStreamingResponse has cognitive complexity 97 (threshold 15). Drivers by points: if/else 31 (60 pts), boolean chains 32, loops 2 (5 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68ddfbd6bf15669aae6cc15df67920cedf4ccd3d782b7e300ac5188c3c3077e"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-cursor.convertMessages (cognitive 96): openai-to-cursor.convertMessages has cognitive complexity 96 (threshold 15). Drivers by points: if/else 20 (58 pts), boolean chains 26, loops 5 (12 pts) (nesting depth added 45). Of this number, 89 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-cursor.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"984d7b777c38bb15b3b4216c2dac999e3b3941654056d8561c94afd63db85dbe"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-responses.openaiToOpenAIResponsesRequest (cognitive 95): openai-responses.openaiToOpenAIResponsesRequest has cognitive complexity 95 (threshold 15). Drivers by points: if/else 27 (58 pts), ternaries 6 (25 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 52). Of this number, 67 points are the body\u0027s own statements and 28 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-responses.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba685713cb03b192e1ac33afbb197824949dc97c5bc9c04c3d073f55bd63f05"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.getProviderCredentials (cognitive 94): auth.getProviderCredentials has cognitive complexity 94 (threshold 15). Drivers by points: if/else 27 (44 pts), boolean chains 41, ternaries 6 (9 pts) (nesting depth added 20). Of this number, 53 points are the body\u0027s own statements and 41 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/auth.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae263ab4d980fdb4aca74ef0529d0f235337d09ef695c41ea5d2f30ab81be77"}},{"ruleId":"D2","level":"warning","message":{"text":"selectModelFromList (cognitive 94): selectModelFromList has cognitive complexity 94 (threshold 15). Drivers by points: if/else 29 (75 pts), boolean chains 12, loops 2 (4 pts), ternaries 3 (nesting depth added 48). Of this number, 91 points are the body\u0027s own statements and 3 belong to 7 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/modelSelector.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8f60ea59df0dadd26399489bf7e7002155b6625c15b7190df406f25a9b2312"}},{"ruleId":"D2","level":"warning","message":{"text":"AddApiKeyModal.AddApiKeyModal (cognitive 93): AddApiKeyModal.AddApiKeyModal has cognitive complexity 93 (threshold 15). Drivers by points: boolean chains 44, ternaries 17 (25 pts), if/else 15 (17 pts), error handling 4 (6 pts), loops 1 (nesting depth added 12). Of this number, 55 points are the body\u0027s own statements and 38 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba823b270452a5b3c2dc8ab9f0d0cd07abe400da528a6cb5771b128ce97b56c7"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeToOpenAIResponse (cognitive 91): claudeToOpenAIResponse has cognitive complexity 91 (threshold 15). Drivers by points: if/else 20 (43 pts), ternaries 10 (28 pts), boolean chains 19, match/switch 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/claude-to-openai.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e01cd2f2e460c701988ed2e2eb23b9387ee118a17dd2d1b4c1b12b40e9a822d"}},{"ruleId":"D2","level":"warning","message":{"text":"createResponsesApiTransformStream::transform (cognitive 90): createResponsesApiTransformStream::transform has cognitive complexity 90 (threshold 15). Drivers by points: if/else 22 (67 pts), loops 4 (10 pts), boolean chains 7, ternaries 1 (3 pts), error handling 1 (2 pts), other 1 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/transformer/responsesTransformer.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9ae53744321ceec26690185ede90e9289eee58ab8edfe21693a2da08815301"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiResponsesToOpenAIResponse (cognitive 88): openaiResponsesToOpenAIResponse has cognitive complexity 88 (threshold 15). Drivers by points: boolean chains 42, if/else 25 (42 pts), other 2, ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d38aab38d7e81ec22589e28912aaf14ac891c6944db24728d2c9b5e07bf2ab"}},{"ruleId":"D2","level":"warning","message":{"text":"handleForcedSSEToJson (cognitive 87): handleForcedSSEToJson has cognitive complexity 87 (threshold 15). Drivers by points: boolean chains 36, if/else 15 (23 pts), ternaries 9 (20 pts), error handling 4 (6 pts), loops 1 (2 pts) (nesting depth added 22). Of this number, 83 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c913763a2ca7e6a2d686fef5fe97810432a05160326f843cee37b31d9d67c867"}},{"ruleId":"D2","level":"warning","message":{"text":"imageGenerationCore.handleImageGenerationCore (cognitive 86): imageGenerationCore.handleImageGenerationCore has cognitive complexity 86 (threshold 15). Drivers by points: if/else 19 (31 pts), ternaries 8 (26 pts), error handling 7 (15 pts), boolean chains 14 (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageGenerationCore.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2326b506d4e3cf32205e90e6f240f4336a94bd0c461d5ea2b0db67f424b8811"}},{"ruleId":"D2","level":"warning","message":{"text":"page.CombosPage (cognitive 86): page.CombosPage has cognitive complexity 86 (threshold 15). Drivers by points: boolean chains 27, if/else 21 (24 pts), ternaries 17 (22 pts), error handling 10, loops 3 (nesting depth added 8). Most of this is not in the body itself: 11 of the 86 points are its own statements and the rest belongs to 26 function literals inside it that branch (lines 96, 156, 330, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"201d9f926d9c7b508c57fc2f2359c72b374aae486d0596bc7ecd55452c175e5b"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionRow (cognitive 84): ConnectionRow has cognitive complexity 84 (threshold 15). Drivers by points: boolean chains 34, ternaries 29 (31 pts), if/else 15, error handling 1 (2 pts), other 2 (nesting depth added 3). Of this number, 64 points are the body\u0027s own statements and 20 belong to 23 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dda8c27b308a0f2facda7e53c2bff7ca496cf723c89eb40502df4e826835188"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexToolCard.CodexToolCard (cognitive 82): CodexToolCard.CodexToolCard has cognitive complexity 82 (threshold 15). Drivers by points: boolean chains 41, if/else 21 (24 pts), ternaries 7 (9 pts), error handling 8 (nesting depth added 5). Of this number, 27 points are the body\u0027s own statements and 55 belong to 21 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"90aadeccc63afc68b5648e8f38edcf78524edbab6c1f3c29e9b6e6d2604638bf"}},{"ruleId":"D2","level":"warning","message":{"text":"page.ComboDetailPage (cognitive 82): page.ComboDetailPage has cognitive complexity 82 (threshold 15). Drivers by points: boolean chains 36, if/else 27, ternaries 10 (12 pts), error handling 4 (6 pts), loops 1 (nesting depth added 4). Of this number, 23 points are the body\u0027s own statements and 59 belong to 12 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfc1eb24df185df49e37dce91ee38a51b442282bd79018acc14268cccdfd68a"}},{"ruleId":"D2","level":"warning","message":{"text":"ZedAuthModal (cognitive 82): ZedAuthModal has cognitive complexity 82 (threshold 15). Drivers by points: boolean chains 30, if/else 29 (30 pts), ternaries 10 (11 pts), error handling 8 (10 pts), loops 1 (nesting depth added 4). Most of this is not in the body itself: 15 of the 82 points are its own statements and the rest belongs to 21 function items inside it that branch ((anonymous), (anonymous)::(anonymous), (anonymous)::tick, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ZedAuthModal.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95004b63e654a2dd4f5e953a6be5ee04286cb407552636613aeab5b1deea18c"}},{"ruleId":"D2","level":"warning","message":{"text":"transformRequest (cognitive 76): transformRequest has cognitive complexity 76 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 21, ternaries 7 (16 pts), loops 4 (7 pts) (nesting depth added 23). Of this number, 73 points are the body\u0027s own statements and 3 belong to 9 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"138d624f6089d6b8d805bc2af9764b2bdb5e91d7e35651c3c6abfdc5656ccad3"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiToClaudeRequest (cognitive 76): openaiToClaudeRequest has cognitive complexity 76 (threshold 15). Drivers by points: if/else 21 (46 pts), loops 5 (12 pts), boolean chains 10, ternaries 2 (7 pts), other 1 (nesting depth added 37). Of this number, 73 points are the body\u0027s own statements and 3 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-claude.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b959b4a51789a7e5ae9163cabed7ab712a34bf907ea70e170e6023101251edd"}},{"ruleId":"D2","level":"warning","message":{"text":"CoworkToolCard.CoworkToolCard (cognitive 75): CoworkToolCard.CoworkToolCard has cognitive complexity 75 (threshold 15). Drivers by points: boolean chains 42, if/else 22, ternaries 6 (7 pts), error handling 4 (nesting depth added 1). Of this number, 26 points are the body\u0027s own statements and 49 belong to 22 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef358609116ab467f0c53d04d445ac6542c5727401cf568c3f7674a4a7d32d69"}},{"ruleId":"D2","level":"warning","message":{"text":"rewriteBlock (cognitive 74): rewriteBlock has cognitive complexity 74 (threshold 15). Drivers by points: if/else 22 (44 pts), boolean chains 20, ternaries 5 (10 pts) (nesting depth added 27). Of this number, 70 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/attachments.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b585778dc451701ef9dd540fb6d445afbe8c083c01843cb1bc093691b3bb4c5"}},{"ruleId":"D2","level":"warning","message":{"text":"EditConnectionModal.EditConnectionModal (cognitive 72): EditConnectionModal.EditConnectionModal has cognitive complexity 72 (threshold 15). Drivers by points: boolean chains 26, ternaries 13 (21 pts), if/else 15 (20 pts), error handling 3 (5 pts) (nesting depth added 15). Most of this is not in the body itself: 15 of the 72 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 116, 32, 91, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/EditConnectionModal.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf5f145f97fd3b9ab9d588c33db9a0a799181bc97fcfe078b18d67491645b46"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageStats (cognitive 72): UsageStats has cognitive complexity 72 (threshold 15). Drivers by points: ternaries 17 (26 pts), boolean chains 21, if/else 15 (18 pts), error handling 3, other 2, loops 1, match/switch 1 (nesting depth added 12). Of this number, 22 points are the body\u0027s own statements and 50 belong to 37 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ffa200b683f2703405cb13e57d89e661cb8ab70f42f0e986a8e2e1232b7576"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeToolCard.ClaudeToolCard (cognitive 71): ClaudeToolCard.ClaudeToolCard has cognitive complexity 71 (threshold 15). Drivers by points: boolean chains 31, if/else 24 (29 pts), ternaries 6 (7 pts), error handling 4 (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 54 belong to 22 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"12abcc8e25616566b52eb59e976d3b86b17cc7b2f10e8503599e4818e243d32a"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenClawToolCard.OpenClawToolCard (cognitive 71): OpenClawToolCard.OpenClawToolCard has cognitive complexity 71 (threshold 15). Drivers by points: boolean chains 34, if/else 19 (26 pts), ternaries 6 (7 pts), error handling 4 (nesting depth added 8). Of this number, 21 points are the body\u0027s own statements and 50 belong to 16 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c277c917767880a487b91d4d62cb314830d0a20af55109aa90f7386d5cf61b4"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeToolCard.OpenCodeToolCard (cognitive 70): OpenCodeToolCard.OpenCodeToolCard has cognitive complexity 70 (threshold 15). Drivers by points: boolean chains 34, if/else 15 (16 pts), ternaries 12 (15 pts), error handling 5 (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 49 belong to 18 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82c2c6fe7a29cb98fd24bc02e314e34ba962fe05340ff47c74345908f857280"}},{"ruleId":"D2","level":"warning","message":{"text":"OAuthModal::startOAuthFlow (cognitive 69): OAuthModal::startOAuthFlow has cognitive complexity 69 (threshold 15). Drivers by points: if/else 26 (38 pts), boolean chains 15, ternaries 6 (11 pts), error handling 3 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c7b3b881de58ff3fcfaa2835ac0b8e80074c7b6b15b4d5b36c00e9734b2160"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-claude.getContentBlocksFromMessage (cognitive 66): openai-to-claude.getContentBlocksFromMessage has cognitive complexity 66 (threshold 15). Drivers by points: if/else 22 (46 pts), loops 3 (9 pts), boolean chains 8, ternaries 1 (3 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-claude.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d096cc0aba10d97f6659d80869301487bb7a3f716981be8e9f5946374935d3"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesToolCard.HermesToolCard (cognitive 66): HermesToolCard.HermesToolCard has cognitive complexity 66 (threshold 15). Drivers by points: boolean chains 29, if/else 21 (26 pts), ternaries 4 (5 pts), error handling 4, loops 1 (2 pts) (nesting depth added 7). Of this number, 19 points are the body\u0027s own statements and 47 belong to 15 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"825fa8dcdb125d335b10f103ad2010cece6f0bc44c61c37a356789285a18793d"}},{"ruleId":"D2","level":"warning","message":{"text":"index.compressMessages (cognitive 65): index.compressMessages has cognitive complexity 65 (threshold 15). Drivers by points: if/else 18 (42 pts), loops 5 (14 pts), boolean chains 5, ternaries 2 (3 pts), error handling 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/index.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89ca4bcdd380618bf65992b96c5c13def9e6898abd05caff77d5fdcf817f507"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidToolCard.DroidToolCard (cognitive 65): DroidToolCard.DroidToolCard has cognitive complexity 65 (threshold 15). Drivers by points: boolean chains 32, if/else 17 (21 pts), ternaries 7 (8 pts), error handling 4 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 48 belong to 16 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f859ecf85fdf949630fe393ae2bd39fa6b935422a763c1a56011132937d6ed"}},{"ruleId":"D2","level":"warning","message":{"text":"handleSingleModelChat (cognitive 65): handleSingleModelChat has cognitive complexity 65 (threshold 15). Drivers by points: if/else 13 (32 pts), boolean chains 22, ternaries 3 (6 pts), error handling 1 (4 pts), loops 1 (nesting depth added 25). Of this number, 59 points are the body\u0027s own statements and 6 belong to 6 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/chat.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea3fbf17c7c8b937938b0e94e2c34202880d38bf48de6bf422ff4101c30d29c"}},{"ruleId":"D2","level":"warning","message":{"text":"kiroToClaudeResponse (cognitive 65): kiroToClaudeResponse has cognitive complexity 65 (threshold 15). Drivers by points: if/else 20 (38 pts), boolean chains 10, ternaries 4 (7 pts), loops 2 (5 pts), other 3, error handling 1 (2 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-claude.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e63efd2cabd2fa736ba06ea76d0a90ee72b23600473ebc76e5d89db7431b1f8"}},{"ruleId":"D2","level":"warning","message":{"text":"JcodeToolCard.JcodeToolCard (cognitive 64): JcodeToolCard.JcodeToolCard has cognitive complexity 64 (threshold 15). Drivers by points: boolean chains 29, if/else 17 (23 pts), ternaries 7 (8 pts), error handling 4 (nesting depth added 7). Of this number, 18 points are the body\u0027s own statements and 46 belong to 14 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe493085d0403eae2cbda6da0f0e911176cfa9365424d0263ecaff9ac738903"}},{"ruleId":"D2","level":"warning","message":{"text":"transformRequest (cognitive 64): transformRequest has cognitive complexity 64 (threshold 15). Drivers by points: boolean chains 23, if/else 14 (21 pts), loops 5 (12 pts), ternaries 4 (8 pts) (nesting depth added 18). Of this number, 50 points are the body\u0027s own statements and 14 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/antigravity.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8596694de1f22ac33499475e26f0c749baf065cf9faf96a24a275e529b9501bd"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiToClaudeResponse (cognitive 64): openaiToClaudeResponse has cognitive complexity 64 (threshold 15). Drivers by points: if/else 18 (39 pts), boolean chains 11, ternaries 5 (9 pts), loops 2 (4 pts), other 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-to-claude.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56812e47c1f42c8c7da9045b8602b72081ff3b60df0eeafe5a689ab1840d602"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini-to-openai.geminiToOpenAIResponse (cognitive 63): gemini-to-openai.geminiToOpenAIResponse has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (37 pts), boolean chains 14, ternaries 3 (10 pts), loops 1 (2 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/gemini-to-openai.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9725de728794596b63e46d3c3c23e5789a8e2b00007ea36cd3ff7ee09472660"}},{"ruleId":"D2","level":"warning","message":{"text":"CursorExecutor.transformProtobufToSSE (cognitive 63): CursorExecutor.transformProtobufToSSE has cognitive complexity 63 (threshold 15). Drivers by points: if/else 18 (44 pts), ternaries 3 (8 pts), boolean chains 6, error handling 1 (3 pts), loops 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"76eb5a01e9c2b536b1b23626ede060c0530b8e6e8821bbc21978a5afd57f1fd0"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokBuildToolCard.GrokBuildToolCard (cognitive 62): GrokBuildToolCard.GrokBuildToolCard has cognitive complexity 62 (threshold 15). Drivers by points: boolean chains 32, if/else 14 (16 pts), ternaries 5 (8 pts), error handling 4, loops 2 (nesting depth added 5). Of this number, 28 points are the body\u0027s own statements and 34 belong to 12 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e023a35965247732a940cad746833ae2f8985a656a27f0a79a027b818ff2ee73"}},{"ruleId":"D2","level":"warning","message":{"text":"convertClaudeMessage (cognitive 62): convertClaudeMessage has cognitive complexity 62 (threshold 15). Drivers by points: if/else 16 (38 pts), ternaries 3 (8 pts), loops 2 (7 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-openai.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a339d52ff21b9be26d44f6dd2bc852495af37b14bbfad50d8ae31ad40a3d31"}},{"ruleId":"D2","level":"warning","message":{"text":"handleRun (cognitive 61): handleRun has cognitive complexity 61 (threshold 15). Drivers by points: if/else 19 (33 pts), error handling 4 (9 pts), loops 3 (9 pts), boolean chains 6, ternaries 1 (4 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5076b055a3e360a9d94b788f740c99972acfb43f9c1129cbb363801c61644dc"}},{"ruleId":"D2","level":"warning","message":{"text":"paramSupport.stripUnsupportedParams (cognitive 60): paramSupport.stripUnsupportedParams has cognitive complexity 60 (threshold 15). Drivers by points: if/else 13 (36 pts), loops 5 (13 pts), boolean chains 11 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/paramSupport.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0437cf796a6a3c485ab13d970fc0d1ede8cda335c1b5b2a5d49bd23f61ec2bee"}},{"ruleId":"D2","level":"warning","message":{"text":"kiro-to-openai.kiroToOpenAIResponse (cognitive 60): kiro-to-openai.kiroToOpenAIResponse has cognitive complexity 60 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 16, ternaries 5 (10 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 16). Of this number, 56 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-openai.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"389a509c125343dd9a2606aaf2e47e3b9e52505766bec720987265c1ec3df4ca"}},{"ruleId":"D2","level":"warning","message":{"text":"combo.detectRequiredCapabilities (cognitive 60): combo.detectRequiredCapabilities has cognitive complexity 60 (threshold 15). Drivers by points: if/else 30 (37 pts), boolean chains 16, loops 5 (7 pts) (nesting depth added 9). Most of this is not in the body itself: 6 of the 60 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 141, 117, 109, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7742a221211a4f460560a094229d0666606cf13d41f364ea58eb793e4b277e00"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeCodexTools (cognitive 60): normalizeCodexTools has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (27 pts), ternaries 10 (15 pts), boolean chains 14, loops 2 (4 pts) (nesting depth added 19). Most of this is not in the body itself: 14 of the 60 points are its own statements and the rest belongs to one function literal inside it that branches (line 84). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e784cbb850b8590521dc5304f23afcd4c2d45ed8ed4128a25f62c7b4a4b78863"}},{"ruleId":"D2","level":"warning","message":{"text":"parseGrokCliBilling (cognitive 60): parseGrokCliBilling has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 9 (20 pts), boolean chains 17, if/else 8 (11 pts), other 11, loops 1 (nesting depth added 14). Of this number, 56 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/grok-cli.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"218f2671ab7b7736f25ed2434b2f581796db1588358ff8a960673c8c12264c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"extractClientToolResults (cognitive 58): extractClientToolResults has cognitive complexity 58 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 4 (10 pts), ternaries 2 (10 pts), boolean chains 8, other 2 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb512fee01afc77c73c584f952db12793636ebe2a870b41230733cdd9f3b0f87"}},{"ruleId":"D2","level":"warning","message":{"text":"parseSSEToOpenAIResponse (cognitive 58): parseSSEToOpenAIResponse has cognitive complexity 58 (threshold 15). Drivers by points: if/else 18 (38 pts), boolean chains 11, loops 3 (5 pts), error handling 1 (2 pts), other 1, ternaries 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed7afe2b233f657853a62132a87b0c353e4bb3795286ad6fabde69f26e826f3"}},{"ruleId":"D2","level":"warning","message":{"text":"createSSEStream::flush (cognitive 57): createSSEStream::flush has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (33 pts), loops 4 (12 pts), boolean chains 11, error handling 1 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b032ad9146e85d1b00b2e7bbdc45b02c26e099cf339a44359cdd05c0bab9139"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotToolCard.CopilotToolCard (cognitive 56): CopilotToolCard.CopilotToolCard has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 23, if/else 13 (15 pts), ternaries 10 (13 pts), error handling 5 (nesting depth added 5). Most of this is not in the body itself: 12 of the 56 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 114, 66, 163, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4837b4246d8bb61754d75cf473272b0a08f8f953174b366bdc704fedd878be32"}},{"ruleId":"D2","level":"warning","message":{"text":"ClineToolCard.ClineToolCard (cognitive 56): ClineToolCard.ClineToolCard has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 29, if/else 12 (13 pts), ternaries 8 (10 pts), error handling 4 (nesting depth added 3). Of this number, 19 points are the body\u0027s own statements and 37 belong to 12 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0146913067310156a3bd3da85257411eb84c3279a28b807e0111d9a70ae237d7"}},{"ruleId":"D2","level":"warning","message":{"text":"sendMessage (cognitive 56): sendMessage has cognitive complexity 56 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 13, ternaries 7 (12 pts), error handling 4 (8 pts), loops 2 (3 pts) (nesting depth added 19). Of this number, 41 points are the body\u0027s own statements and 15 belong to 17 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5d2cc010f7785a7a143a78fe46d14db781e76dbdb578659aad7d2841cdc28a"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravity-weekly.parseWeeklyQuotaSummary (cognitive 55): antigravity-weekly.parseWeeklyQuotaSummary has cognitive complexity 55 (threshold 15). Drivers by points: if/else 9 (25 pts), ternaries 5 (13 pts), boolean chains 11, loops 3 (6 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/antigravity-weekly.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c5a470946a62e249b40dde4a0111131315847ce308329f14bd2f55cf3152bd"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeGrokCliTools (cognitive 55): normalizeGrokCliTools has cognitive complexity 55 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 18, ternaries 11 (14 pts), loops 1, other 1 (nesting depth added 8). Of this number, 21 points are the body\u0027s own statements and 34 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-cli.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0ce0e7490511f10328cb10ac00ffb65f0a42975fcb533463690d15f072011d"}},{"ruleId":"D2","level":"warning","message":{"text":"responsesApi.convertResponsesApiFormat (cognitive 54): responsesApi.convertResponsesApiFormat has cognitive complexity 54 (threshold 15). Drivers by points: if/else 17 (37 pts), loops 3 (7 pts), ternaries 2 (6 pts), boolean chains 4 (nesting depth added 28). Of this number, 40 points are the body\u0027s own statements and 14 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/responsesApi.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"371c210d919ea11859470aef08e2171ed0b3868774794b0c7140a34d3ca1f31a"}},{"ruleId":"D2","level":"warning","message":{"text":"commandcode.inspectAndWrapCommandCodeResponse (cognitive 54): commandcode.inspectAndWrapCommandCodeResponse has cognitive complexity 54 (threshold 15). Drivers by points: if/else 9 (24 pts), error handling 5 (12 pts), ternaries 4 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/commandcode.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d9cfec0b1df6c178119f922d719bd3de585715f574e25bde1ac87c4b7780d4"}},{"ruleId":"D2","level":"warning","message":{"text":"SttExampleCard.SttExampleCard (cognitive 54): SttExampleCard.SttExampleCard has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 28, ternaries 16 (17 pts), if/else 8, error handling 1 (nesting depth added 1). Of this number, 31 points are the body\u0027s own statements and 23 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/SttExampleCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc07306eaf8af4bc6a4b32b5d5b6dad8d3adc6b123fc904b06eecff34ae29dd"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 54): route.POST has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 27, ternaries 12 (17 pts), if/else 6 (7 pts), error handling 2 (3 pts) (nesting depth added 7). Of this number, 48 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/xiaomi-mimo/api-key/route.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d98886a94d8e70a4d1bb7162ae69ddab499085d1104acff76788bc3565b5f63"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityToolCard.AntigravityToolCard (cognitive 53): AntigravityToolCard.AntigravityToolCard has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (23 pts), boolean chains 22, error handling 6, ternaries 2 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 37 belong to 16 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/AntigravityToolCard.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53316b60efe8ec1acc3f13b566e4f40ce2d8e27bf424d99e312cba2dc844ca0"}},{"ruleId":"D2","level":"warning","message":{"text":"page.LoginPage (cognitive 53): page.LoginPage has cognitive complexity 53 (threshold 15). Drivers by points: boolean chains 23, if/else 12 (16 pts), ternaries 7 (11 pts), error handling 3 (nesting depth added 8). Of this number, 26 points are the body\u0027s own statements and 27 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/login/page.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"45574e320f72ab61e2ef5a33e15eef795fccd50f95b2516e2c16b5d18b9127df"}},{"ruleId":"D2","level":"warning","message":{"text":"sync.build (cognitive 53): sync.build has cognitive complexity 53 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 6 (12 pts), boolean chains 10, ternaries 2 (5 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelCatalog/sync.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30f33954c612282af1e5d00eedf4bb688232804ecc0b79f56e8b8d883539c65"}},{"ruleId":"D2","level":"warning","message":{"text":"importLegacyMain (cognitive 53): importLegacyMain has cognitive complexity 53 (threshold 15). Drivers by points: boolean chains 33, other 11, loops 4, ternaries 3, if/else 2. Of this number, 19 points are the body\u0027s own statements and 34 belong to 10 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/migrate.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"973e4480ba6a7bddf06ba829ea40a53398051fdd38cb578dac41bdc84f7802a8"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravity-to-openai.convertContent (cognitive 52): antigravity-to-openai.convertContent has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (38 pts), boolean chains 10, ternaries 2 (3 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/antigravity-to-openai.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff102e949041b38064071f7460032d8ce6fbd430dc4897d93d7ccfc5ae147b0"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-antigravity.openaiToAntigravityResponse (cognitive 52): openai-to-antigravity.openaiToAntigravityResponse has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (33 pts), boolean chains 12, loops 2 (4 pts), error handling 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-to-antigravity.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e5888a6b25562c1921efffa4899d4a39f01c81b27a0a52c915cf342e0b0945"}},{"ruleId":"D2","level":"warning","message":{"text":"gitStatus.gitStatus (cognitive 52): gitStatus.gitStatus has cognitive complexity 52 (threshold 15). Drivers by points: if/else 22 (38 pts), boolean chains 7, loops 4 (7 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/gitStatus.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"95941fefe1e03b82e86955b9590785a27c494348f93a81295e79857549f8350c"}},{"ruleId":"D2","level":"warning","message":{"text":"commandcode-to-openai.commandCodeToOpenAIResponse (cognitive 51): commandcode-to-openai.commandCodeToOpenAIResponse has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 13, ternaries 7 (13 pts), error handling 1 (2 pts), match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/commandcode-to-openai.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d707b447f507ca35e6bba842c98aaa6dc3820029367b7110a9ee4498855116b6"}},{"ruleId":"D2","level":"warning","message":{"text":"qoder.wrapQoderSSE (cognitive 51): qoder.wrapQoderSSE has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (25 pts), ternaries 4 (8 pts), boolean chains 7, error handling 5 (7 pts), loops 3 (4 pts) (nesting depth added 15). Of this number, 33 points are the body\u0027s own statements and 18 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7cfd8144bc24bd027cd9e8f5a3df474055d52442f18e55fbd9aee924a86a9b"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepSeekTuiToolCard.DeepSeekTuiToolCard (cognitive 51): DeepSeekTuiToolCard.DeepSeekTuiToolCard has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 25, if/else 15 (17 pts), ternaries 4 (5 pts), error handling 4 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 34 belong to 13 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bde6e411ae32a0ea11e5675f1c51773806eaa25991fdf47852503e2433f99b7"}},{"ruleId":"D2","level":"warning","message":{"text":"getAntigravityUsage (cognitive 51): getAntigravityUsage has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 16, ternaries 3 (7 pts), error handling 2, loops 1 (2 pts), other 2 (nesting depth added 15). Of this number, 38 points are the body\u0027s own statements and 13 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/google.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3491d4b6b3087d66fd576e5d30e9da0380779edc460073467598a920c2b96163"}},{"ruleId":"D2","level":"warning","message":{"text":"importDb (cognitive 51): importDb has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 34, loops 9, ternaries 3 (6 pts), if/else 2 (nesting depth added 3). Most of this is not in the body itself: 3 of the 51 points are its own statements and the rest belongs to one function literal inside it that branches (line 102). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/index.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb41ab98c3211932d7b304a87644b7afdacd79dc58cefb7b9ee0c5e24599ee2"}},{"ruleId":"D2","level":"warning","message":{"text":"buildOutput.buildOutput (cognitive 50): buildOutput.buildOutput has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (38 pts), boolean chains 8, loops 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/buildOutput.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a805800c7aef171aecfcd0d8cc9d8930f96b7939023b17a36e9e04ef19f98f95"}},{"ruleId":"D2","level":"warning","message":{"text":"codex.parseStream (cognitive 50): codex.parseStream has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (30 pts), error handling 2 (8 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/codex.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"efaaa5882531edf2270d128bb40781384ba436a545645a5cc84dbba50ae9a869"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionsCard.ConnectionRow (cognitive 50): ConnectionsCard.ConnectionRow has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 24, ternaries 16 (20 pts), if/else 4, error handling 1 (2 pts) (nesting depth added 5). Of this number, 42 points are the body\u0027s own statements and 8 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12958cb04e0538c14d19c32799fd4d8f29484d319816d166049413f3249e7e2"}},{"ruleId":"D2","level":"warning","message":{"text":"usageRepo.getChartData (cognitive 50): usageRepo.getChartData has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 17, if/else 7 (14 pts), ternaries 8 (12 pts), loops 4 (7 pts) (nesting depth added 14). Of this number, 33 points are the body\u0027s own statements and 17 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"1161c5f910abce0753539d21a1ed8d0fac50a185b838b3c04788ded93c4e89f3"}},{"ruleId":"D2","level":"warning","message":{"text":"buildPromptText (cognitive 50): buildPromptText has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (24 pts), ternaries 3 (11 pts), boolean chains 7, loops 2 (4 pts), other 4 (nesting depth added 21). Of this number, 45 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d670e638818fca022f712ba582eddb034bb838a10f4621b985b01066279110"}},{"ruleId":"D2","level":"warning","message":{"text":"startServer (cognitive 50): startServer has cognitive complexity 50 (threshold 15). Drivers by points: if/else 25 (33 pts), error handling 6 (9 pts), boolean chains 3, ternaries 2 (3 pts), loops 1, other 1 (nesting depth added 12). Most of this is not in the body itself: 4 of the 50 points are its own statements and the rest belongs to 26 function items inside it that branch ((anonymous), tryRestart, cleanup, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"7854f57a9ae44c36389c0dc5817fa8b82883c5f5494ee9b5cb5eca173d6ccc0b"}},{"ruleId":"D2","level":"warning","message":{"text":"handleNonStreamingResponse (cognitive 50): handleNonStreamingResponse has cognitive complexity 50 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 17, error handling 3 (5 pts), loops 2 (5 pts), ternaries 1 (nesting depth added 12). Of this number, 49 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8a118e59f3fa5cd209454baf84c770466f8d369a9c92515fec5e8664025743"}},{"ruleId":"D2","level":"warning","message":{"text":"kiroModels.resolveKiroModels (cognitive 49): kiroModels.resolveKiroModels has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 10, error handling 3 (10 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/kiroModels.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd1a1467b8542ed4aa88607b34f91f67888c1eeada6bd34e3c2d5819a03e05c"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboardGuard.proxy (cognitive 49): dashboardGuard.proxy has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (33 pts), ternaries 2 (8 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dashboardGuard.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"471d42b669cdb327a2a3c65c5ed76730b1cf0d6f42d3d5bf56bb8640b1b0e414"}},{"ruleId":"D2","level":"warning","message":{"text":"flattenToolHistory (cognitive 49): flattenToolHistory has cognitive complexity 49 (threshold 15). Drivers by points: if/else 9 (23 pts), ternaries 4 (12 pts), boolean chains 9, loops 1 (3 pts), other 2 (nesting depth added 24). Most of this is not in the body itself: 0 of the 49 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 24, 30, 23, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b34425b60cbc1b70be5580e6dbdb608db16cda8977e30dbca09fad6ad3dac24"}},{"ruleId":"D2","level":"warning","message":{"text":"createProviderConnection (cognitive 49): createProviderConnection has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 19, ternaries 3, loops 1, other 1 (nesting depth added 9). Most of this is not in the body itself: 0 of the 49 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 140, 161, 192). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/connectionsRepo.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a38ebc3d6c86230b2b948ae86cd861493168e2d0892f68f76ccf05965815bc"}},{"ruleId":"D2","level":"warning","message":{"text":"transcribeGeminiLive (cognitive 49): transcribeGeminiLive has cognitive complexity 49 (threshold 15). Drivers by points: if/else 26 (27 pts), boolean chains 9, ternaries 6 (8 pts), error handling 4, loops 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 49 points are its own statements and the rest belongs to 15 function items inside it that branch ((anonymous)::open::onMessage, (anonymous)::shutdown, (anonymous)::open::onClose, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/geminiLiveStt.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e51fcd360c681f353645788f7bdc4acf84783b675442c141c44b5ea26c037dd"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom.compressWithHeadroom (cognitive 48): headroom.compressWithHeadroom has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (38 pts), boolean chains 6, ternaries 2 (3 pts), error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/headroom.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9c84c3f97b28f9b6c1cb32a47fdacaa4fe83663f4a5fda0a29acd19a9556cb"}},{"ruleId":"D2","level":"warning","message":{"text":"KiloToolCard.KiloToolCard (cognitive 48): KiloToolCard.KiloToolCard has cognitive complexity 48 (threshold 15). Drivers by points: boolean chains 24, if/else 10 (11 pts), ternaries 7 (9 pts), error handling 4 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 32 belong to 11 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5799edf1252ad8a0030dfe80724d154ef653f132cc3072114ac4ae99e16298"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 48): route.POST has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 14, error handling 2 (3 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/codex/bulk-import/route.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"37046de38a1b6834ed570dd095669f17df41e1ad00897aa710fcbe2e612d848b"}},{"ruleId":"D2","level":"warning","message":{"text":"KiroAuthModal (cognitive 48): KiroAuthModal has cognitive complexity 48 (threshold 15). Drivers by points: boolean chains 26, if/else 11 (12 pts), error handling 4, loops 3, ternaries 3 (nesting depth added 1). Of this number, 24 points are the body\u0027s own statements and 24 belong to 24 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/KiroAuthModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94b70fcbe3af756d9e03d20bded1a3679cb5db454a1dc394ff35960cdb161ca"}},{"ruleId":"D2","level":"warning","message":{"text":"PxpipeClient.PxpipeClient (cognitive 47): PxpipeClient.PxpipeClient has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 31 (39 pts), boolean chains 7, error handling 1 (nesting depth added 8). Of this number, 31 points are the body\u0027s own statements and 16 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/pxpipe/PxpipeClient.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7ada9f8debfe6c5baa01e381dfe71061084d97025c37eb90f775e18160bdc0"}},{"ruleId":"D2","level":"warning","message":{"text":"extractThinking (cognitive 47): extractThinking has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (34 pts), boolean chains 11, other 1, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/thinkingUnified.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d140ae4b0077bbcc5d20fd5f9ed8dc5451b9aed17dde943ce3f8ec846cf9509b"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeTransformedSSE (cognitive 47): pipeTransformedSSE has cognitive complexity 47 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (9 pts), error handling 3 (6 pts), ternaries 2 (6 pts), boolean chains 4 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/base.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89773047d76897ab416d57e79e75001a9626ae89f5fa17dea4f1a2b5d6e195d"}},{"ruleId":"D2","level":"warning","message":{"text":"CursorExecutor.transformProtobufToJSON (cognitive 46): CursorExecutor.transformProtobufToJSON has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (34 pts), boolean chains 5, error handling 1 (3 pts), loops 2, ternaries 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c3d331028375d16f47b76b1a0b07b2f3eba119625c042eed64a45eab3c95a3"}},{"ruleId":"D2","level":"warning","message":{"text":"TraeExecutor.execute (cognitive 46): TraeExecutor.execute has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 14, error handling 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 11). Of this number, 16 points are the body\u0027s own statements and 30 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/trae.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0d30370b86d3695f5ef813a58fa1bbaced8cddf6ad43907ecac3316eddcc3a"}},{"ruleId":"D2","level":"warning","message":{"text":"prefetch.collectImageRefs (cognitive 46): prefetch.collectImageRefs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 6 (11 pts), boolean chains 5, ternaries 1 (4 pts), match/switch 1 (nesting depth added 25). Most of this is not in the body itself: 15 of the 46 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 21, 34, 27). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/prefetch.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f626545505bbe4bcca684908bf18e89af162f9c0356fc773acda0d1219b4e5a"}},{"ruleId":"D2","level":"warning","message":{"text":"MitmServerCard.MitmServerCard (cognitive 46): MitmServerCard.MitmServerCard has cognitive complexity 46 (threshold 15). Drivers by points: boolean chains 25, if/else 11 (13 pts), ternaries 5 (6 pts), error handling 2 (nesting depth added 3). Of this number, 22 points are the body\u0027s own statements and 24 belong to 8 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8a076cc861001782eebb6fc1ce67db8f34e4a075b71fa8d57e4bf2b42199d8"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaTable.QuotaTable (cognitive 46): QuotaTable.QuotaTable has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 23 (34 pts), boolean chains 11, if/else 1 (nesting depth added 11). Most of this is not in the body itself: 10 of the 46 points are its own statements and the rest belongs to one function literal inside it that branches (line 152). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaTable.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0ddfd33c71c57ea62de001b6556cf5fe23334c8420293952f3ecff8de017c0"}},{"ruleId":"D2","level":"warning","message":{"text":"checkAndRefreshToken (cognitive 46): checkAndRefreshToken has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 7 (17 pts), boolean chains 14, if/else 8 (13 pts), error handling 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/tokenRefresh.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ddbf57676bfec68b8b18aa16f791a6f0d8877d95b586931b8ee41d179e34f6"}},{"ruleId":"D2","level":"warning","message":{"text":"toolCall.ensureToolCallIds (cognitive 45): toolCall.ensureToolCallIds has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (27 pts), boolean chains 11, loops 3 (7 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/toolCall.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"672bf78496f89f6042cd11922ca8fd2f465dc6a55b8707d54a9135a65135c1fa"}},{"ruleId":"D2","level":"warning","message":{"text":"gitDiff.gitDiff (cognitive 45): gitDiff.gitDiff has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 7, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/gitDiff.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"038174234293eec4bfa7e235316527b7ec8991cf919109bff3c8091d48c66584"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionsCard.ConnectionsCard (cognitive 45): ConnectionsCard.ConnectionsCard has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 14, if/else 13, ternaries 8 (10 pts), error handling 8 (nesting depth added 2). Most of this is not in the body itself: 4 of the 45 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 309, 330, 410, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b78d5236ffd0ee2253d88a2b2f9a8ec71f53bd883512357ccde6449f24474c"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeTransformedEventStream (cognitive 45): pipeTransformedEventStream has cognitive complexity 45 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 4 (9 pts), error handling 3 (6 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/base.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c1cb6721e24c1282737666290b8e87deb6d7edba0a66299d48b64a2495029d"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravity-to-openai.antigravityToOpenAIRequest (cognitive 44): antigravity-to-openai.antigravityToOpenAIRequest has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 3 (8 pts), boolean chains 6 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/antigravity-to-openai.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af3634ebcccb98350fbe70710502d2e0f3da9858f1d5c5a561df3a5d5e420d4"}},{"ruleId":"D2","level":"warning","message":{"text":"buildHeaders (cognitive 44): buildHeaders has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 14, loops 2 (4 pts), ternaries 1 (nesting depth added 15). Of this number, 43 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/default.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"29901dda5dd23ccf40863c5f89b0ec9c546d341d2e473833c21638539e641a47"}},{"ruleId":"D2","level":"warning","message":{"text":"MitmToolCard (cognitive 44): MitmToolCard has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (12 pts), ternaries 8, error handling 3, other 1 (nesting depth added 1). Of this number, 18 points are the body\u0027s own statements and 26 belong to 22 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68a56c07079f415c4c10f05b1ed32e2a33f27896209eaafc1a73e6a84440756"}},{"ruleId":"D2","level":"warning","message":{"text":"handleVideoProxyCore (cognitive 44): handleVideoProxyCore has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (18 pts), error handling 6 (12 pts), boolean chains 8, ternaries 6 (nesting depth added 12). Of this number, 36 points are the body\u0027s own statements and 8 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/videoCore.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f333b0a15b4958c5a5caab1118231e08cb0e14afe15cd2fe3c436a6aa41173b1"}},{"ruleId":"D2","level":"warning","message":{"text":"POST (cognitive 44): POST has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (27 pts), error handling 4 (8 pts), ternaries 2 (5 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/provider-nodes/validate/route.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f017d971d8bd954ecced5508eb2e4b08e1ec9db56bc3174995e8bea977e75e3"}},{"ruleId":"D2","level":"warning","message":{"text":"combo.handleComboChat (cognitive 43): combo.handleComboChat has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 12, error handling 3 (7 pts), loops 1, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e2d3e0877c99aa1a450d4f0995555d68d601c2bd57ddbb0a83abe979f08f34"}},{"ruleId":"D2","level":"warning","message":{"text":"XiaomiMimoAuthModal.XiaomiMimoAuthModal (cognitive 43): XiaomiMimoAuthModal.XiaomiMimoAuthModal has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 28, if/else 8 (9 pts), error handling 3, ternaries 2 (3 pts) (nesting depth added 2). Most of this is not in the body itself: 8 of the 43 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 131, 102, 192, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/XiaomiMimoAuthModal.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"924a60823bb6bb793aa431cfd2be23f8a6050822928eb5a98b8bf0c9e8346da0"}},{"ruleId":"D2","level":"warning","message":{"text":"convertOpenAIToKiro (cognitive 43): convertOpenAIToKiro has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 10, ternaries 2 (4 pts), loops 1 (2 pts), other 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/kiro.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"224bf5bbc9c391beb477a95c91ca91ab0d876dba44339a7b88dc62b503cc8e77"}},{"ruleId":"D2","level":"warning","message":{"text":"McpMarketplaceModal (cognitive 43): McpMarketplaceModal has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 22, if/else 9, ternaries 9, error handling 2, loops 1. Most of this is not in the body itself: 4 of the 43 points are its own statements and the rest belongs to 34 function items inside it that branch ((anonymous), (anonymous)::(anonymous), fetchTools, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/McpMarketplaceModal.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01517668d67160ac6df36b6b93a99386e8fb581a3bd6b50ef707c2f2ec3f7bc"}},{"ruleId":"D2","level":"warning","message":{"text":"claude.anchorClaudeCache (cognitive 42): claude.anchorClaudeCache has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (26 pts), loops 5 (12 pts), boolean chains 4 (nesting depth added 17). Of this number, 33 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aebc044866291b5f41e112caa25f6794b409beaba8497f457bdcd9eb4913009"}},{"ruleId":"D2","level":"warning","message":{"text":"qoder.normalizeContent (cognitive 42): qoder.normalizeContent has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 11, ternaries 3 (9 pts), loops 1 (nesting depth added 10). Of this number, 34 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a0892dfd0f17c9ce9276dbbc3c5ab10ae79e8c5e756d47660d60f7afac3a80"}},{"ruleId":"D2","level":"warning","message":{"text":"ollamaTransform.transformToOllama (cognitive 42): ollamaTransform.transformToOllama has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (27 pts), error handling 2 (6 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 22). Of this number, 37 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/ollamaTransform.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4691bc4f6cb0802d01fe2cf6577a4d4ff0446389ab3ccfdacf515c172cb6c5"}},{"ruleId":"D2","level":"warning","message":{"text":"page.MediaProviderDetailPage (cognitive 42): page.MediaProviderDetailPage has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 25, if/else 10, ternaries 5 (6 pts), error handling 1 (nesting depth added 1). Of this number, 33 points are the body\u0027s own statements and 9 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fd3cc9babd21700bd4a2a1a669c02d3e1c3ce094a6131709428919d560ffd5"}},{"ruleId":"D2","level":"warning","message":{"text":"transformRequest (cognitive 42): transformRequest has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 14, ternaries 2 (5 pts), loops 1, other 1 (nesting depth added 9). Of this number, 37 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-cli.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"82558da4d259bd982dc0b2317a128581eaab51b9d42e9493603c185d07f0ceed"}},{"ruleId":"D2","level":"warning","message":{"text":"provider.detectFormat (cognitive 41): provider.detectFormat has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 13 (nesting depth added 16). Of this number, 38 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/provider.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"61065fcdc289c22063d35c1c7ff567c681019deaec0cd2162b95420f9496e3e8"}},{"ruleId":"D2","level":"warning","message":{"text":"readIntegrityAttempt (cognitive 41): readIntegrityAttempt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 6 (12 pts), boolean chains 10, error handling 3 (6 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a7c8a3b813b29ad2d631e459d8fd99ee2e2bddc8692847d8b007514ddbf368"}},{"ruleId":"D2","level":"warning","message":{"text":"extractAnswer (cognitive 41): extractAnswer has cognitive complexity 41 (threshold 15). Drivers by points: if/else 5 (14 pts), ternaries 5 (12 pts), loops 5 (10 pts), boolean chains 5 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ffa2928bc3e23710a5600d9694b336c705a3449519e0b3d952312c2e5b573c"}},{"ruleId":"D2","level":"warning","message":{"text":"getMiniMaxUsage (cognitive 41): getMiniMaxUsage has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 7, error handling 2 (5 pts), other 4, loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/minimax.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adc6d4f9152a96a9f9160f478f4467e3c8140ac8f56ab8a035fea9e7db3987f"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-commandcode.convertMessages (cognitive 40): openai-to-commandcode.convertMessages has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 9, ternaries 2 (6 pts), loops 2 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-commandcode.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96d568dd70122a24cfad1be1e6c231bd9e0073911bcbb3d565828dc78136f2a"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolDetailClient.ToolDetailClient (cognitive 40): ToolDetailClient.ToolDetailClient has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 16, error handling 1, match/switch 1, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 40 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 31, 74, 122, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce7295cdd4cd57d18643c165a0f71578177cdf5d03dc3263a5bb41c15a6fa45"}},{"ruleId":"D2","level":"warning","message":{"text":"transformEventStreamToSSE::finish (cognitive 40): transformEventStreamToSSE::finish has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 11 (18 pts), boolean chains 12, if/else 9, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a7cc7c61bb90090200debe017b8208879e9b60865016a7313358c617cde4bb"}},{"ruleId":"D2","level":"warning","message":{"text":"APIPageClient::handleConnectTailscale (cognitive 40): APIPageClient::handleConnectTailscale has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 9, ternaries 2 (8 pts), error handling 2 (4 pts), loops 1 (2 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32edb5a83b6fa6a9970020319b8093c816f3aef310f514e2194907bdacd9d1d"}},{"ruleId":"D2","level":"warning","message":{"text":"extractAnswer (cognitive 40): extractAnswer has cognitive complexity 40 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 10, loops 3 (7 pts), ternaries 3 (6 pts), error handling 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac61ceb23e8af1c1189c517f105dd29b58c0163e38c697fb59250b54317133e"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseExecutor.execute (cognitive 39): BaseExecutor.execute has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 8, ternaries 2 (5 pts), error handling 1 (2 pts), loops 1 (nesting depth added 16). Of this number, 31 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/base.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f80942b3f3c0da6987e8e4ac72a092bad9bc180d855cb9f7c0be40b08ede19"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini.mergeAllOf (cognitive 39): gemini.mergeAllOf has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 3 (7 pts), boolean chains 5 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc2dff22ff62a1082e93efa1d51041bf17533a7467b4d30a3c908c5009a69ae"}},{"ruleId":"D2","level":"warning","message":{"text":"cursorProtobuf.encodeRequest (cognitive 38): cursorProtobuf.encodeRequest has cognitive complexity 38 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 9, ternaries 7 (8 pts), loops 3 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/cursorProtobuf.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"d230f5413f89669ad0248986f404ac547d12636b92f2f2443973b6f7a7e07026"}},{"ruleId":"D2","level":"warning","message":{"text":"page.TranslatorPage (cognitive 38): page.TranslatorPage has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 14, error handling 6, ternaries 2, loops 1 (nesting depth added 2). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 136, 232, 49, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/translator/page.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f3062f164c9f468c6ea717a44c0168bde065bc05cc0fcd4ad6f399c2aad2f2"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiToOpenAIResponsesResponse (cognitive 38): openaiToOpenAIResponsesResponse has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 6, loops 3 (6 pts), ternaries 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0aa8455428e13135d8adb7bdc95f497138e463618857d08cf16bfab29f0980"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestDetailsTab (cognitive 38): RequestDetailsTab has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 23, ternaries 10, if/else 3, error handling 2. Of this number, 26 points are the body\u0027s own statements and 12 belong to 18 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e2ae079bdb4ad3abe5e1130d556f7a6109c39ed3201f5f2cf24a3178bbe59c"}},{"ruleId":"D2","level":"warning","message":{"text":"bodyHasSessionHints (cognitive 38): bodyHasSessionHints has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 9, loops 2 (7 pts), ternaries 2, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0ea01398ea54eab68a6f781da2e23374f51ca6d7e467fccc29da23cd410b3b"}},{"ruleId":"D2","level":"warning","message":{"text":"runConnect (cognitive 38): runConnect has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12, ternaries 4 (8 pts), loops 4 (7 pts), boolean chains 5, error handling 2 (5 pts), other 1 (nesting depth added 10). Of this number, 36 points are the body\u0027s own statements and 2 belong to 6 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/connect.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"021f2e638cef071f5afd621d72f2dd86258c0c046fbe2c2ef95cbffb5b311e9c"}},{"ruleId":"D2","level":"warning","message":{"text":"sse.createQoderSseCoalescer (cognitive 37): sse.createQoderSseCoalescer has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 13, ternaries 2 (3 pts) (nesting depth added 4). Most of this is not in the body itself: 0 of the 37 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 149, 127, 141, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/sse.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf067ec945b05b973e8b2d106624b4c0bca5d0d3a28dad12baef3b6b58bee584"}},{"ruleId":"D2","level":"warning","message":{"text":"perplexity-web.readPplxSseEvents (cognitive 37): perplexity-web.readPplxSseEvents has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"78784415cc86014c5ff8411afcc7906a7c2320e8e8f65fa33def10b2e021878e"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseUrlSelect.BaseUrlSelect (cognitive 37): BaseUrlSelect.BaseUrlSelect has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 11, ternaries 4 (5 pts), error handling 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 5 of the 37 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 118, 90, 68, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/BaseUrlSelect.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f54cb6b3f761f84ff70ac081ba741f9da173f61ad466f6e328ea26968038744"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultToolCard.DefaultToolCard (cognitive 37): DefaultToolCard.DefaultToolCard has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 20, if/else 10, ternaries 6 (7 pts) (nesting depth added 1). Most of this is not in the body itself: 3 of the 37 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 147, 20, 106, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DefaultToolCard.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec10a78abcb3c8f8b499a81186890f8aace3f913ff590406a477d3042d23e00"}},{"ruleId":"D2","level":"warning","message":{"text":"systemone.handleSystemone (cognitive 37): systemone.handleSystemone has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 7, error handling 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/systemone.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b7dff197fa9a64f079cebc0b5a3ab5bad759db517fcb5f040339ddea1c5b31"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-ollama.normalizeMessages (cognitive 36): openai-to-ollama.normalizeMessages has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 10, loops 3 (5 pts), ternaries 1 (3 pts) (nesting depth added 14). Of this number, 29 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-ollama.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed587819b0de20dcabf6827cd4dbf9578dc347ec5a12aad279c5a723a1495e21"}},{"ruleId":"D2","level":"warning","message":{"text":"nonStreamingHandler.openAICompletionToResponses (cognitive 36): nonStreamingHandler.openAICompletionToResponses has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 19, ternaries 7 (13 pts), if/else 3, loops 1 (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f6039623656f65ec9d9b1a45a05ba1118753fe6f3b374b15153131de21bd38"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom.collectKiroHeadroomMessages (cognitive 36): headroom.collectKiroHeadroomMessages has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3 (9 pts), ternaries 4 (9 pts), boolean chains 5 (nesting depth added 15). Most of this is not in the body itself: 7 of the 36 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 126, 113, 115, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/headroom.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0206f978741cee38b4fa834fbe2320792cc1f09291267b70e42540150dbc9d8f"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddingExampleCard.EmbeddingExampleCard (cognitive 36): EmbeddingExampleCard.EmbeddingExampleCard has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 17, ternaries 11, if/else 7, error handling 1. Of this number, 18 points are the body\u0027s own statements and 18 belong to 8 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/EmbeddingExampleCard.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c78df952ab74c970d0cae4c425d8a400ed3ce3db6f64085728c39415c477c6"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 36): route.POST has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 15, if/else 9 (13 pts), ternaries 2 (4 pts), error handling 2 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/grok-cli/bulk-import/route.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a45f198077be31f014b4fbcf48249033b04704049389e974ca23c4e4b83513a"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 36): route.GET has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 6 (11 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/kiro/auto-import/route.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4a54f1e9bed332635dd62ee75197f8b23e9c1d06f100047ecf450c026c64ae"}},{"ruleId":"D2","level":"warning","message":{"text":"config.normalizeLocale (cognitive 36): config.normalizeLocale has cognitive complexity 36 (threshold 15). Drivers by points: if/else 35, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/i18n/config.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"be94729ef9782742bfd652ec204a8aa647f4461d0b6707315602130dea8898e2"}},{"ruleId":"D2","level":"warning","message":{"text":"restoreToolNames (cognitive 36): restoreToolNames has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 11, ternaries 3 (6 pts), loops 1 (2 pts) (nesting depth added 9). Most of this is not in the body itself: 15 of the 36 points are its own statements and the rest belongs to 6 function items inside it that branch ((anonymous), (anonymous), (anonymous), \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/opencodeFingerprint.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc718def2bffe4e51b3551bb3687d19e66f0657edf384894072fca70b9d03f7"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.killAllAppProcesses (cognitive 35): cli.killAllAppProcesses has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 7 (10 pts), boolean chains 8 (nesting depth added 10). Most of this is not in the body itself: 0 of the 35 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 266, 290, 316, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e85c4f5327bfac0047e47fdb462204536761f1ad23179e408c8599a7ca37d4"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini.convertOpenAIContentToParts (cognitive 35): gemini.convertOpenAIContentToParts has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 7, ternaries 1 (4 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6ac2d2875855ff98b97a56ed3acb1b02b473e8c5e11590e62365bec204a9df"}},{"ruleId":"D2","level":"warning","message":{"text":"index.translateRequest (cognitive 35): index.translateRequest has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/index.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5e74fd9326639fee45abda621574e27d1e4cb462f9abd88899b5f9a2dec1cc"}},{"ruleId":"D2","level":"warning","message":{"text":"devin-cli.resolveWorkspaceCwd (cognitive 35): devin-cli.resolveWorkspaceCwd has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 5 (9 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 13). Most of this is not in the body itself: 6 of the 35 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 213, 199, 209). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f73183bdbb87571a00e260048e7b20f6c1691e8e37234c476c5a71e2aa8694"}},{"ruleId":"D2","level":"warning","message":{"text":"gitLog.gitLog (cognitive 35): gitLog.gitLog has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 4, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/gitLog.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc18cf357b265eaa6b47c674836e85da4013a19a15dbea680c1da10e9712a674"}},{"ruleId":"D2","level":"warning","message":{"text":"route.transformOpenAISSEToGeminiSSE (cognitive 35): route.transformOpenAISSEToGeminiSSE has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 10, error handling 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1beta/models/[...path]/route.js"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4eb7a210bf1fc613fa663cda1a5d3d27c8e1abe7a5888370fd87fd2e68ce25"}},{"ruleId":"D2","level":"warning","message":{"text":"proxyAccountRequest (cognitive 35): proxyAccountRequest has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 8, ternaries 2 (3 pts), loops 2, error handling 1 (nesting depth added 10). Of this number, 31 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa43271484e77929e8aa3ef50eb73631db7f0f96735559c4b21142051a214b3"}},{"ruleId":"D2","level":"warning","message":{"text":"rewriteQoderMessageAttachments (cognitive 35): rewriteQoderMessageAttachments has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 4 (12 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/attachments.js"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7aec920372de048910f295d79b06250289b211de6ae0dd75e42df10f1b722e6"}},{"ruleId":"D2","level":"warning","message":{"text":"claude.fixToolUseOrdering (cognitive 34): claude.fixToolUseOrdering has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 3 (9 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9935194478fa96ae202317a5c208af814c266bb01945fd42942fa5847b2fab58"}},{"ruleId":"D2","level":"warning","message":{"text":"WindsurfExecutor.transformToSSE (cognitive 34): WindsurfExecutor.transformToSSE has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 5, loops 2 (3 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 9). Of this number, 17 points are the body\u0027s own statements and 17 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/windsurf.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e70fffdc446144fe68787463baa14c1b212ee8b5dedb3c18752b8808ed14ede"}},{"ruleId":"D2","level":"warning","message":{"text":"embeddings.handleEmbeddings (cognitive 34): embeddings.handleEmbeddings has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/embeddings.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8163eaf5539b771e6f8167ff0b274da45d1b5abf48e34b68e9bcd81947457cbb"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeGrokCliInputItem (cognitive 34): normalizeGrokCliInputItem has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 5 (10 pts), boolean chains 9, other 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-cli.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad370084aecc393a96a1fdfdfbb9fea1d80f6826a232e5fb33d25b22c2fe41a"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeResponsesTools (cognitive 34): normalizeResponsesTools has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 12, if/else 8 (11 pts), ternaries 8 (10 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 13 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 313). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bc011912fb6220a2ea5e181a170fde6b93cb411a9401fb96fe0b3554aa030d"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeResponsesTools (cognitive 34): normalizeResponsesTools has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 12, if/else 8 (11 pts), ternaries 8 (10 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 13 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 171). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-zen.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfbf4050347ed489f2d0a0e6693480e7d3ed1e3254bb0dadaaa98dc1fdf21db"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeResponsesTools (cognitive 34): normalizeResponsesTools has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 12, if/else 8 (11 pts), ternaries 8 (10 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 13 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 55). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-go.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7782e55d6d4593e639e9a3acd4e4efcc097bc522f646be4a079013c83d4890a7"}},{"ruleId":"D2","level":"warning","message":{"text":"claude.capCacheControlBlocks (cognitive 33): claude.capCacheControlBlocks has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (11 pts), boolean chains 2, ternaries 2 (nesting depth added 16). Of this number, 28 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"77454eebf98073cd67f62e2648ef50fd146d2f77d3de0a426a1674a2486ddc16"}},{"ruleId":"D2","level":"warning","message":{"text":"copilotModels.resolveCopilotModels (cognitive 33): copilotModels.resolveCopilotModels has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 3 (10 pts), boolean chains 7 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/copilotModels.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"863aa1c4abc28c6315e101ffbe46ff5e78faf2e61ed02593492266fa78f0a440"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 33): route.POST has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 11, ternaries 3 (4 pts), error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/route.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b7adffed374bee7ff974606791b6bb7e524af4b9f34b7377be0dbede984db4"}},{"ruleId":"D2","level":"warning","message":{"text":"route.forwardGeminiNativeRequest (cognitive 33): route.forwardGeminiNativeRequest has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 9, ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1beta/models/[...path]/route.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f744ebc98a50a564dd99af7a17df48ddf79881972235bedf19d61601897283"}},{"ruleId":"D2","level":"warning","message":{"text":"stt.handleStt (cognitive 33): stt.handleStt has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 8, error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/stt.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"43acb9fc49489c4d5b8dee467ce83d667bd1ee66c7c3983736a9efebd76eff13"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 33): (anonymous) has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (13 pts), loops 1 (3 pts), ternaries 3, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9680acea31c4e24ace7e601b1ffd50b2ca5c249197cd3bf090ecb2dd1e6a702e"}},{"ruleId":"D2","level":"warning","message":{"text":"transformOpenAISSEToGeminiSSE::transform (cognitive 33): transformOpenAISSEToGeminiSSE::transform has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 9, error handling 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1beta/models/[...path]/route.js"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"530bf9dc86857f4c94a7f235ea38326711d9d0b2affbdb2040522d60ec57f87c"}},{"ruleId":"D2","level":"warning","message":{"text":"reconcileToolPair (cognitive 33): reconcileToolPair has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 4 (8 pts), boolean chains 5, loops 2 (nesting depth added 10). Of this number, 31 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/kiroConversation.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea510e4c8bcfe5b25b0444a6132b9b931a9be0ba87c31ea6f621bddb7574098c"}},{"ruleId":"D2","level":"warning","message":{"text":"proxyAwareFetch (cognitive 33): proxyAwareFetch has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 3 (7 pts), boolean chains 6, ternaries 3 (4 pts), other 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/proxyFetch.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55c78b4c05133c06918ffa46cd64c4606ab9bc4cfef843769650a31331915b4"}},{"ruleId":"D2","level":"warning","message":{"text":"translateResponse (cognitive 33): translateResponse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 4 (13 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/index.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ea2d4813c4c7090d9a1d38ca2802a92e62de53b95b1d5504a17299643ce9d9"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchClaudeUsageRaw (cognitive 33): fetchClaudeUsageRaw has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 6, loops 2 (5 pts), error handling 1, other 1 (nesting depth added 14). Of this number, 31 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/claude.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbd11f78a6e6f09e56ccf5557611dd4212ac3b55ce4c8077e7817e6c99d161d"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.killProxyByPidFile (cognitive 32): cli.killProxyByPidFile has cognitive complexity 32 (threshold 15). Drivers by points: error handling 9 (22 pts), if/else 7 (10 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4730d6b47ca82a492f49f36e89fa4aa46a4ca823630ff08266be0f0cf5c19a6"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-to-kiro.claudeToKiroRequest (cognitive 32): claude-to-kiro.claudeToKiroRequest has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 12, ternaries 3, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-kiro.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2201c909a966bc9a9fd0887e35a31b90c1618db50b57252ad3ef0118059cf4"}},{"ruleId":"D2","level":"warning","message":{"text":"usageTracking.extractUsage (cognitive 32): usageTracking.extractUsage has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 23, if/else 7, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/usageTracking.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"859c9426734058c816fa66827d68497c6f7bad39bc3f768d0827d9a256de3697"}},{"ruleId":"D2","level":"warning","message":{"text":"bypassHandler.handleBypassRequest (cognitive 32): bypassHandler.handleBypassRequest has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 4 (8 pts), boolean chains 5 (nesting depth added 8). Of this number, 30 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/bypassHandler.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8fc1b81189965ac638082190e8bae789e85f389297b215797d34de4b0788d2"}},{"ruleId":"D2","level":"warning","message":{"text":"sseToJsonHandler.chatCompletionToResponses (cognitive 32): sseToJsonHandler.chatCompletionToResponses has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 18, ternaries 5 (10 pts), if/else 3, loops 1 (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b74ab28ebebbda796401c249d85294f05559a84284d8800c896cb39ce9a8c59"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 32): route.GET has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 7, ternaries 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/models/route.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d73fe8181c61c2b16d8c713f810f0e1689ca3e1e0fa328e9fe360b9491fee6"}},{"ruleId":"D2","level":"warning","message":{"text":"manager.stopServer (cognitive 32): manager.stopServer has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (19 pts), error handling 5 (9 pts), boolean chains 3, ternaries 1 (nesting depth added 10). Of this number, 24 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ecee7e25b0de0c7737da0831b309131a9c1b19a78ca22594d112f522188194"}},{"ruleId":"D2","level":"warning","message":{"text":"search.handleSingleProviderSearch (cognitive 32): search.handleSingleProviderSearch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 7, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/search.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"73031eb55c411944c2fad7544fffc02bea6859ec9578f3f3021aee90b7427f2f"}},{"ruleId":"D2","level":"warning","message":{"text":"APIPageClient::handleInstallTailscale (cognitive 32): APIPageClient::handleInstallTailscale has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 2 (6 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"35facd481631de7163acb057adf540fc94aac06971099f6680351d4852529c90"}},{"ruleId":"D2","level":"warning","message":{"text":"OAuthModal::handleManualSubmit (cognitive 32): OAuthModal::handleManualSubmit has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 5 (10 pts), boolean chains 8, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"8112df5a6fa2cc8bd3b6d00349281d7f75a5e208272d2f1405524d754eb0c537"}},{"ruleId":"D2","level":"warning","message":{"text":"parseCommandCodeError (cognitive 32): parseCommandCodeError has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 12, other 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/commandcode.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9289c03d363164b41c122746850241b9170b0f979f73ef66bf9f244acab76e68"}},{"ruleId":"D2","level":"warning","message":{"text":"CompatibleModelsSection (cognitive 32): CompatibleModelsSection has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 9, ternaries 7, error handling 3, loops 1 (nesting depth added 2). Most of this is not in the body itself: 8 of the 32 points are its own statements and the rest belongs to 14 function items inside it that branch (handleImport, handleAdd, handleTestModel, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/CompatibleModelsSection.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"58713e0c1f218cc9fbde800e258116818258cec5b2cd1bb8a441c20ea805a30b"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi.getKimiUsage (cognitive 31): kimi.getKimiUsage has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 11, ternaries 6 (9 pts), if/else 6 (8 pts), error handling 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/kimi.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cf5bc4723a581e0edf9c4f84f1ef5cdfd33c66d0c0f3ee669bf32265023c31"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate-registry.migrateEntry (cognitive 31): migrate-registry.migrateEntry has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 6, loops 5 (6 pts), ternaries 1 (nesting depth added 10). Of this number, 28 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/migrate-registry.mjs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d301680739f2e576e850e3f36298b6fcc0ff9ab4dcf7d08f721e1987864dcdc"}},{"ruleId":"D2","level":"warning","message":{"text":"BulkImportGrokCliModal.BulkImportGrokCliModal (cognitive 31): BulkImportGrokCliModal.BulkImportGrokCliModal has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 13, if/else 11 (12 pts), error handling 3, ternaries 2, loops 1 (nesting depth added 1). Most of this is not in the body itself: 9 of the 31 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 74, 136, 64, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/BulkImportGrokCliModal.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fa4bae1bedde95d4564de7df430cd8abe1d1d4e3b8da62f6cd3d92a473c359"}},{"ruleId":"D2","level":"warning","message":{"text":"route.fetchAll (cognitive 31): route.fetchAll has cognitive complexity 31 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 9, ternaries 4 (9 pts), loops 2 (3 pts) (nesting depth added 12). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/cowork-mcp-registry/route.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4394c762ac43d9ab3f30b13cacb90a6e80e04fd35c8487d974d4b28573be365f"}},{"ruleId":"D2","level":"warning","message":{"text":"tailscale.startDaemonWithPassword (cognitive 31): tailscale.startDaemonWithPassword has cognitive complexity 31 (threshold 15). Drivers by points: error handling 6 (12 pts), if/else 9 (12 pts), boolean chains 3, loops 1 (2 pts), ternaries 2 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a16d97fb35b87193a7b097d2896e420eb7614aeef151e47810d9b313460a11"}},{"ruleId":"D2","level":"warning","message":{"text":"AddCustomEmbeddingModal.AddCustomEmbeddingModal (cognitive 31): AddCustomEmbeddingModal.AddCustomEmbeddingModal has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9, ternaries 7 (9 pts), error handling 2 (nesting depth added 3). Most of this is not in the body itself: 9 of the 31 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 39, 23, 91, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/AddCustomEmbeddingModal.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c4f9bcf51778e10918bfd6381e9e199f35758e7a337296d53ce7d991ee5c65"}},{"ruleId":"D2","level":"warning","message":{"text":"wrapQoderSSE::start (cognitive 31): wrapQoderSSE::start has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 6 (12 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"274ebfb9b4a10aac3ef87379f206de7a6cd387c54c7b41bb621be03b5c4a5d56"}},{"ruleId":"D2","level":"warning","message":{"text":"extractAnswer (cognitive 31): extractAnswer has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 14, if/else 5 (11 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 9). Of this number, 24 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a13d1cb6aaa2f47ebe234507689123baed97e85cfae706625083327d710b8e"}},{"ruleId":"D2","level":"warning","message":{"text":"extractAnswer (cognitive 31): extractAnswer has cognitive complexity 31 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 4 (10 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"937bc561df5420a12adca8b6f2163d3ee62ec14e7a10544366d7b1af19485f53"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBuddyExecutor.parseError (cognitive 30): CodeBuddyExecutor.parseError has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 3 (15 pts), if/else 4 (10 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codebuddy-cn.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd8a6794945632902d8d1049480d5f051bc8e45b5a6758116a4fef0d130ac22"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBuddyIntlExecutor.parseError (cognitive 30): CodeBuddyIntlExecutor.parseError has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 3 (15 pts), if/else 4 (10 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codebuddy-intl.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cc4bb0a492828acdb16c02eae7665b74f250b47851b60ed46c02734f755ead"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini-to-openai.geminiToOpenAIRequest (cognitive 30): gemini-to-openai.geminiToOpenAIRequest has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (8 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/gemini-to-openai.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec22e1a649869144516e2c0e19417c7b722e138c4c6d6e80796b601e250b7f84"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-kiro.openaiToKiroRequest (cognitive 30): openai-to-kiro.openaiToKiroRequest has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 13, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-kiro.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a7b350c2406553df26575545b129087837152522a83e00714a8b01acc27a14"}},{"ruleId":"D2","level":"warning","message":{"text":"route.comboSeatLimits (cognitive 30): route.comboSeatLimits has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), ternaries 4 (5 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/route.js"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffa874bc6ddc5a2c44a8caf9bdcee222c34c975853000dfaa9b899e65c8207e"}},{"ruleId":"D2","level":"warning","message":{"text":"countCacheControlBlocks (cognitive 30): countCacheControlBlocks has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (10 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2271dd57ed0249a0921ade7e4d395309ad03e1494501d58bbe0bbfe29a092d"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar (cognitive 30): Sidebar has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 15, boolean chains 7, error handling 3 (4 pts), if/else 4 (nesting depth added 1). Most of this is not in the body itself: 12 of the 30 points are its own statements and the rest belongs to 27 function items inside it that branch ((anonymous), handleCopyAndShutdown::(anonymous), isActive, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Sidebar.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"afdb9019984e6f6029523e6e3db8607dc3249ea2b2c11a71c48070d4d2679fe9"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeChunksToResponse (cognitive 30): mergeChunksToResponse has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 3 (15 pts), if/else 5 (11 pts), boolean chains 4 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/bypassHandler.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08242f39d98116919fd63f66829e4b04102cb7ee64a0bbe330719c2b1dda84d"}},{"ruleId":"D2","level":"warning","message":{"text":"xaiVideo.run (cognitive 29): xaiVideo.run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 6, error handling 3, ternaries 2 (3 pts) (nesting depth added 4). Of this number, 23 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/xaiVideo.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f38a5f0704190ff12e329fab7384edd8bc2aade76d1d7edbade21c52a7dfd25"}},{"ruleId":"D2","level":"warning","message":{"text":"index.pollForToken (cognitive 29): index.pollForToken has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 6, error handling 1 (4 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/providers/index.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec2798daa7b95a381bd929f9ab27e585067e4b8aadd8a053d014490f998c29d"}},{"ruleId":"D2","level":"warning","message":{"text":"kiroConversation.validateKiroConversation (cognitive 29): kiroConversation.validateKiroConversation has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/kiroConversation.js"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"4482706d0478d5e8faf21b74584557225060aba3d7ee29f0d851bed62de6582d"}},{"ruleId":"D2","level":"warning","message":{"text":"grok-web.extractContent (cognitive 29): grok-web.extractContent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 3, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-web.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fde9d7d7f1c5404fa09a1851e6e993db0b38ee0a68786cd69432a1bb9d46db"}},{"ruleId":"D2","level":"warning","message":{"text":"KiroExecutor.runIntegrityRecovery (cognitive 29): KiroExecutor.runIntegrityRecovery has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 7 (9 pts), boolean chains 8, error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf6bcf138f98d0f6bba641602ecbd2aafcc8b7b5ad488bbfc8361b8fa961c72"}},{"ruleId":"D2","level":"warning","message":{"text":"appUpdater.collectAppPids (cognitive 29): appUpdater.collectAppPids has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 3 (7 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 13). Most of this is not in the body itself: 11 of the 29 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 50, 79, 70). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/appUpdater.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d343c3a9e2a8813a0e5ee9f802607b26bec793907330d4165e99aab848ca32"}},{"ruleId":"D2","level":"warning","message":{"text":"ComboFormModal.ComboFormModal (cognitive 29): ComboFormModal.ComboFormModal has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10, ternaries 8 (10 pts), boolean chains 9 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 14 belong to 9 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ComboFormModal.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a065fd5a0ceaed974e4b125abbd644be064e78c22d2d51993b37b797a1d162d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Header.getPageInfo (cognitive 29): Header.getPageInfo has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20 (21 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Header.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4704fb108c24296f252fa908f44237830e834297da87d6890223f1873b89a143"}},{"ruleId":"D2","level":"warning","message":{"text":"fetch.handleSingleProviderFetch (cognitive 29): fetch.handleSingleProviderFetch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 9, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/fetch.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93fa7784a73d758b97e70f282c851f3d1e835535c91d0c4bdbee7fbe0e79646"}},{"ruleId":"D2","level":"warning","message":{"text":"parseEventFrame (cognitive 29): parseEventFrame has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 5, ternaries 1 (3 pts), error handling 1, loops 1 (nesting depth added 4). Of this number, 28 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b73a119dc674e0858d764cd949dc5582ea96d6a7a7f45285f92725ba4d0f96"}},{"ruleId":"D2","level":"warning","message":{"text":"socksFetch (cognitive 29): socksFetch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 8, loops 2 (3 pts), error handling 1 (2 pts), other 1, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 14 of the 29 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 473, 477, 448, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c95e36712a9297a82856cb362311c7ae5e8eca45ae92bf46974fcb7b01ec18"}},{"ruleId":"D2","level":"warning","message":{"text":"build-cli.buildCliPackage (cognitive 28): build-cli.buildCliPackage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18, error handling 4, ternaries 2 (4 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/scripts/build-cli.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"058bac595db73fcac9edbce8842efed13d0c915020a1bc8b85d82ab844d92d4a"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityExecutor.cloakTools (cognitive 28): AntigravityExecutor.cloakTools has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 7, loops 3 (4 pts) (nesting depth added 9). Of this number, 23 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/antigravity.js"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"e818af0a3d18df301580a912f734b6736c87b2f083b198fe52b43d51bc7dcb3e"}},{"ruleId":"D2","level":"warning","message":{"text":"openai.filterToOpenAIFormat (cognitive 28): openai.filterToOpenAIFormat has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (8 pts), ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/openai.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"173d7acf1d875b6fb54c61092e0d92eb720601d8b298827233f958e73c9046d9"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-to-openai.claudeToOpenAIRequest (cognitive 28): claude-to-openai.claudeToOpenAIRequest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 8). Of this number, 27 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-openai.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ca26e031e510c9e9382a6b23a8bf439e2a1ebe81a47e286dce198846d2dba4"}},{"ruleId":"D2","level":"warning","message":{"text":"toolDeduper.dedupeTools (cognitive 28): toolDeduper.dedupeTools has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 13). Of this number, 27 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/toolDeduper.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8ddf17f9128fee7746fed9436967e15a9325be658106d29fc8c83f213ec448"}},{"ruleId":"D2","level":"warning","message":{"text":"server.passthroughHttp2 (cognitive 28): server.passthroughHttp2 has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (19 pts), error handling 4 (5 pts), boolean chains 2, loops 2 (nesting depth added 4). Most of this is not in the body itself: 4 of the 28 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 212, 230, 200, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/server.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad6f1d2ddde670ac4618d9a0d550f5502bdca8f8b946a94b39e15bc8bed4b95"}},{"ruleId":"D2","level":"warning","message":{"text":"NoAuthProxyCard.NoAuthProxyCard (cognitive 28): NoAuthProxyCard.NoAuthProxyCard has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 10, ternaries 7 (10 pts), if/else 7, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 9 of the 28 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 38, 28, 26, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/NoAuthProxyCard.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad51522d0c4f95ee84eda6674a0864f10ed80263d11d43b88c9ca6a2ec6ad32"}},{"ruleId":"D2","level":"warning","message":{"text":"videoGeneration.handleVideoCreate (cognitive 28): videoGeneration.handleVideoCreate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 11, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/videoGeneration.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea98d7523169ec3eaa31f1390cb7d890da0c8e1e5ec8c209b39ee1f784442148"}},{"ruleId":"D2","level":"warning","message":{"text":"streamEvents (cognitive 28): streamEvents has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 2 (9 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/trae.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ac85693f41a47b7ac6d89a14e0bf67ad7028f703ccd25184490867b3095de8"}},{"ruleId":"D2","level":"warning","message":{"text":"onboardUser (cognitive 28): onboardUser has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (19 pts), error handling 2 (5 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/projectId.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f7fe8e298af083a5e73e4325c14b56b18454f011e15a491ba4405682f359ba"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaProviderKindPage (cognitive 28): MediaProviderKindPage has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 13, if/else 7, error handling 3 (5 pts), ternaries 2, loops 1 (nesting depth added 2). Most of this is not in the body itself: 8 of the 28 points are its own statements and the rest belongs to 28 function items inside it that branch ((anonymous), handleCreateCombo, (anonymous), \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/page.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b3e73e1989b0a9aa4c09ce7dd340338e27073fd197d6fb6ba3626c422633f6"}},{"ruleId":"D2","level":"warning","message":{"text":"codexToolSchema.stripNode (cognitive 27): codexToolSchema.stripNode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (4 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 12). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/codexToolSchema.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"830ddf1986d4aee8f2a8587e709e9e5ab048013cb4b24d9761ba35709475801d"}},{"ruleId":"D2","level":"warning","message":{"text":"opencode.lastUserText (cognitive 27): opencode.lastUserText has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 4 (8 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 10). Of this number, 23 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7853c736f5afe71961df18853f3f4ef26d6357a09d487617f687a3b7fd200e"}},{"ruleId":"D2","level":"warning","message":{"text":"systemInject.injectClaudeSystem (cognitive 27): systemInject.injectClaudeSystem has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 6 (10 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c036b7d45c35d19fd9f03351db95363e1b2d5e3052c3eebd6ffe750f3d1c2c"}},{"ruleId":"D2","level":"warning","message":{"text":"kiro.getKiroUsage (cognitive 27): kiro.getKiroUsage has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 5 (8 pts), boolean chains 7, error handling 1 (2 pts), loops 1 (nesting depth added 6). Of this number, 25 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/kiro.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd7215d007b569af2565be89d8ff72e1b824a035d9d3cb5afbcf296420729a6"}},{"ruleId":"D2","level":"warning","message":{"text":"route.PATCH (cognitive 27): route.PATCH has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/settings/route.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f835b799456780a0966947fa0357e6af1d179d91cf539e4d3c1b8862ef2a033"}},{"ruleId":"D2","level":"warning","message":{"text":"mimoLoginSession.parseSetCookie (cognitive 27): mimoLoginSession.parseSetCookie has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b70a0b2097701c3cb1b994e13021d5ab4f07917295b7425024ef3e9eaf23ce"}},{"ruleId":"D2","level":"warning","message":{"text":"zedCredentials.readLinuxCredentials (cognitive 27): zedCredentials.readLinuxCredentials has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (12 pts), error handling 2 (nesting depth added 5). Of this number, 26 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/zedCredentials.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0c0bf6eaa202b32a95bc28c20dc6fa620872df27c7866f22b23cec763e6295"}},{"ruleId":"D2","level":"warning","message":{"text":"cloudflared.spawnQuickTunnel (cognitive 27): cloudflared.spawnQuickTunnel has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 3, error handling 1, loops 1, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 27 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 374, 338, 308, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/cloudflare/cloudflared.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1757f2c609da20417ec741b002e37e8fe1dc0990542c054f3fad1a9b397289"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.handleChat (cognitive 27): chat.handleChat has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 7, error handling 1, ternaries 1 (nesting depth added 5). Of this number, 22 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/chat.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bf77e97b20af6fa593e0fa813a647890f4985fd6b16e4257592600f16591f1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::loadData (cognitive 27): (anonymous)::loadData has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, ternaries 3 (5 pts), error handling 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f033df94352ed94bec022dbe56dd4e9b072ac284dc2f8ff3597afa4a2d1a367"}},{"ruleId":"D2","level":"warning","message":{"text":"detectRequiredCapabilities::scanMessage (cognitive 27): detectRequiredCapabilities::scanMessage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"21556c465f1b906fd47930b72af555619bc59fc7cd67843dcce019656d6389f0"}},{"ruleId":"D2","level":"warning","message":{"text":"acquireViaDesktopPhases (cognitive 27): acquireViaDesktopPhases has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, ternaries 2 (3 pts), loops 2, error handling 1, other 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/mimoAccount.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"05be6caa7a780cf0e1004d24c2b23471d88a93869c551eed006bebabe868ab42"}},{"ruleId":"D2","level":"warning","message":{"text":"ls.ls (cognitive 26): ls.ls has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, loops 3, ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/ls.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fac6a6edee89b4532a797baab593d3708ccb4457653d7a4d1c99a72ade26fa"}},{"ruleId":"D2","level":"warning","message":{"text":"embeddingsCore.handleEmbeddingsCore (cognitive 26): embeddingsCore.handleEmbeddingsCore has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7, error handling 4 (6 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/embeddingsCore.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"254bb6147c42badf7458982504db0903ec98d9e5183e41c12a426ac83458d9c1"}},{"ruleId":"D2","level":"warning","message":{"text":"combo.handleFusionChat (cognitive 26): combo.handleFusionChat has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, error handling 1 (2 pts), ternaries 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6e893f28905efdd973fb17f187d58175339096caf8fa6d49c1852694acee39"}},{"ruleId":"D2","level":"warning","message":{"text":"page.ComboFormModal (cognitive 26): page.ComboFormModal has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 7, ternaries 4 (5 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 9 of the 26 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 1026, 1037, 1052, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"10325f5e8f3f774e25b2d57e885b7686fc8926282c4a7fae46843f7d204fc5ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsCard.ModelsCard (cognitive 26): ModelsCard.ModelsCard has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, error handling 6, ternaries 4 (nesting depth added 1). Most of this is not in the body itself: 5 of the 26 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 123, 182, 138, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelsCard.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29349862deba33690ff0802f1131abb1502ccc3a4bdccb5f41b837f2ed855ad"}},{"ruleId":"D2","level":"warning","message":{"text":"route.normalizeOverride (cognitive 26): route.normalizeOverride has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4, loops 1 (2 pts), ternaries 1 (nesting depth added 12). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/overrides/route.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d0f92c848937345177935206a48a0a7bbfb88373f22dbe4fc26fb8a7479ce2"}},{"ruleId":"D2","level":"warning","message":{"text":"coworkPlugins.buildManagedMcpServers (cognitive 26): coworkPlugins.buildManagedMcpServers has cognitive complexity 26 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 4 (10 pts), boolean chains 4, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/constants/coworkPlugins.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a722a81e8d9635b3ffdc842428c4c888c2a4f36af3d1083f1823f0a9078ab7b"}},{"ruleId":"D2","level":"warning","message":{"text":"APIPageClient::(anonymous)::probeBoth (cognitive 26): APIPageClient::(anonymous)::probeBoth has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7410d3152afe5106f39fd13d41099db7fc977869312eedc900c0dac1f5b9f6"}},{"ruleId":"D2","level":"warning","message":{"text":"peekFirstQoderFrame (cognitive 26): peekFirstQoderFrame has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 4 (9 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1dc03b5d6afa2e9ccdbb568fae5349da6c082c63ac6c4dc9d3910630c63e49"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 26): (anonymous) has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (8 pts), ternaries 2 (4 pts), error handling 3 (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 5 belong to 13 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c3ed1813da3643df1fe4bf5177f8e529da5536eb9f400e1af7985ac91e2897"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchQoderCatalogRaw (cognitive 26): fetchQoderCatalogRaw has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 9, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/qoderModels.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c188d7468fee48de7c88e6ccde169f3e318308f0e16bec18178373e1c71920ab"}},{"ruleId":"D2","level":"warning","message":{"text":"EditConnectionModal::handleSubmit (cognitive 26): EditConnectionModal::handleSubmit has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 7 (9 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/EditConnectionModal.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc8c13edd07e474d69324a1e1e26423ae6fec8836a52b20c2c9e5437e5ec453"}},{"ruleId":"D2","level":"warning","message":{"text":"xaiVideo.parseArgs (cognitive 25): xaiVideo.parseArgs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 9, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/xaiVideo.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"79989c687fd396ea1577eff0ac175d826062830bbc3f89369c62a2d67b299fb3"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini.normalizeGeminiContents (cognitive 25): gemini.normalizeGeminiContents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 9, loops 1 (nesting depth added 6). Of this number, 18 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf106b5327fa0a0bcf11870bcc50e081bd4ed1fd9c874396a3d2c92ed0605b0"}},{"ruleId":"D2","level":"warning","message":{"text":"thoughtSignatureStore.getGeminiThoughtSignature (cognitive 25): thoughtSignatureStore.getGeminiThoughtSignature has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 11, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/thoughtSignatureStore.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbfc2bce22c69e9dbd7f4a875f12baefb8554a5e8e5e97384dc861bbb577570"}},{"ruleId":"D2","level":"warning","message":{"text":"kiroConversation.normalizeTurns (cognitive 25): kiroConversation.normalizeTurns has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, ternaries 2 (3 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/kiroConversation.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0d2eabcd9b3671b75d4cabda0caa4804bfa1c37bd3b6d3990a54f9fd0fe4fb"}},{"ruleId":"D2","level":"warning","message":{"text":"qoder.buildQoderRequestBody (cognitive 25): qoder.buildQoderRequestBody has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, ternaries 4 (7 pts), error handling 1 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11d8dc590e59cf0337a355e1f1911e47995eae76c890c8db383f4fa0451da09"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiKeySelect.ApiKeySelect (cognitive 25): ApiKeySelect.ApiKeySelect has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, ternaries 6 (8 pts), if/else 5 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 8 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ApiKeySelect.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47a2c1d5d501998f6e2e04c5c53ce224f90ffff9362663ba509aea37bb1be45"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomConfigCard.CustomConfigCard (cognitive 25): CustomConfigCard.CustomConfigCard has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 9, ternaries 4, loops 1 (nesting depth added 4). Most of this is not in the body itself: 6 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 42, 24, 23, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/CustomConfigCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8682cf234b76b4e943e0669c820220cb52b1988ef25391ef1956c67734155625"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 25): route.GET has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (9 pts), loops 2 (3 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/deepgram/voices/route.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63e9bcd663980feb97c2c366d4c84c33b17cd94a974a96f61368710643b749f"}},{"ruleId":"D2","level":"warning","message":{"text":"route.PATCH (cognitive 25): route.PATCH has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), boolean chains 4, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/pricing/route.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a37023c6894be0209ea816cb71c448f1d3b675155d11f75124754ac45f25665"}},{"ruleId":"D2","level":"warning","message":{"text":"route.PUT (cognitive 25): route.PUT has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 3, error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/route.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"000cc9734a8e9233692d52431b68d2bdaa8890ab30dde0b22463069243eb4597"}},{"ruleId":"D2","level":"warning","message":{"text":"usageRepo.getActiveRequests (cognitive 25): usageRepo.getActiveRequests has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 4 (10 pts), boolean chains 7, if/else 3 (5 pts), loops 2 (3 pts) (nesting depth added 9). Of this number, 16 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bce622c603728b4a5dc63f859dad937f90472a1fc61ce1ad674786633a0d2b"}},{"ruleId":"D2","level":"warning","message":{"text":"requestDetailsRepo.flushToDatabase (cognitive 25): requestDetailsRepo.flushToDatabase has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 8, loops 2 (3 pts), error handling 1 (nesting depth added 8). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 99). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/requestDetailsRepo.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76534dfb692579f5cb155f11892c519c012679e4999882229bf6cda93ecbe07"}},{"ruleId":"D2","level":"warning","message":{"text":"stdioSseBridge.collapseRepeated (cognitive 25): stdioSseBridge.collapseRepeated has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 5 (11 pts), boolean chains 2 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mcp/stdioSseBridge.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b04d873488fac4f85e0f489a00acfa96c35763807de2a61345bbb8ef0e578f2"}},{"ruleId":"D2","level":"warning","message":{"text":"tts.handleSingleModelTts (cognitive 25): tts.handleSingleModelTts has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 8, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/tts.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff076ca821be60703256d57b39fa822f2274de8ee37b6b59fc0efa464dd95181"}},{"ruleId":"D2","level":"warning","message":{"text":"renderModelsSection (cognitive 25): renderModelsSection has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, ternaries 8, if/else 4. Of this number, 13 points are the body\u0027s own statements and 12 belong to 28 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafdefe581a841256458bd6c4ea11b9a710f5f8d69ba31bb38ce249f66a6d92d"}},{"ruleId":"D2","level":"warning","message":{"text":"trackPendingRequest (cognitive 25): trackPendingRequest has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 3 (4 pts), boolean chains 2 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b91c219d49bbb96f3c6442cb114f0c2c991137482c1f4b629f95557e671f4a"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveWorkspaceCwd::scanMessages (cognitive 25): resolveWorkspaceCwd::scanMessages has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1ce2d0a9800814cd34db73f587a2fafbf9b8c13606a2f64d4fdaca1f823fa4"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini.cleanJSONSchemaForAntigravity (cognitive 24): gemini.cleanJSONSchemaForAntigravity has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bf755784403526c5aee360450aa928e927cd68f4eff9f631e99231b9782305"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-commandcode.toContentBlocks (cognitive 24): openai-to-commandcode.toContentBlocks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-commandcode.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcea856c2200c7de2e9d96d080ea4fed3c4d275925809edca57c73aeed1498c9"}},{"ruleId":"D2","level":"warning","message":{"text":"PerplexityWebExecutor.execute (cognitive 24): PerplexityWebExecutor.execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 7, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"963a8c128bdf711c44256f524bdcb939fde3f169b2920c937d596f23461e9f75"}},{"ruleId":"D2","level":"warning","message":{"text":"zed.parseZedAuthenticatedUserUsage (cognitive 24): zed.parseZedAuthenticatedUserUsage has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (8 pts), ternaries 2 (3 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/zed.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0bb61d487573d54479eefcaa2d3c5a32e6886f583217584870174baf3be7ce"}},{"ruleId":"D2","level":"warning","message":{"text":"EditCompatibleNodeModal.EditCompatibleNodeModal (cognitive 24): EditCompatibleNodeModal.EditCompatibleNodeModal has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, ternaries 9, if/else 4, error handling 1. Of this number, 12 points are the body\u0027s own statements and 12 belong to 3 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/EditCompatibleNodeModal.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a97da626843ad184fb820509b05e5fefb4639da593ecc676e3e45bcf3375019"}},{"ruleId":"D2","level":"warning","message":{"text":"route.probeMcp (cognitive 24): route.probeMcp has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, error handling 2 (4 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/cowork-mcp-tools/route.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4991594d3b9b0c8da50b73bdfdd5c7ac3cef39bda42aa8c0a2f58e101b005006"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 24): route.POST has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 7, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/codex/import-token/route.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d498618c342cc8933ac2b56f61b15412e484fa5069f6cde6dda81ad597997a"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestLogger.RequestLogger (cognitive 24): RequestLogger.RequestLogger has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 7 (15 pts), if/else 5 (7 pts), boolean chains 1, error handling 1 (nesting depth added 10). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 81, 25, 15). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/RequestLogger.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c194b899c598eedb7f4e3afd2b49c3a6bc3fc0a6c5d8523ca76fa02d69853517"}},{"ruleId":"D2","level":"warning","message":{"text":"imageGeneration.handleSingleModelImage (cognitive 24): imageGeneration.handleSingleModelImage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 7, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/imageGeneration.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"92736c6f23072fc8193c8f7d13071ac551f2b83acf57f1ae665891a434885e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"transformRequest (cognitive 24): transformRequest has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 8 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c6edfa986ca54935fbc2bdcdd564bd01f37fb587bafd4f317fb99a02e0161e"}},{"ruleId":"D2","level":"warning","message":{"text":"extractAnswer (cognitive 24): extractAnswer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 3 (8 pts), boolean chains 7, loops 2 (4 pts), ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"35223f9bbd3dab516a084345407fbd7a3713d4d4fb844943c49cd1306d480354"}},{"ruleId":"D2","level":"warning","message":{"text":"GET (cognitive 24): GET has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, ternaries 7, loops 2 (3 pts), error handling 1, if/else 1 (nesting depth added 1). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 284, 271, 266, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/cowork-settings/route.js"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48f30c3512020a638a3507a84a06b9ae98395847bc8d5cffae41f8ab6f5c832"}},{"ruleId":"D2","level":"warning","message":{"text":"kiroToClaudeNonStreaming (cognitive 24): kiroToClaudeNonStreaming has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 8, ternaries 3 (5 pts), other 4, error handling 1 (3 pts), if/else 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-claude.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"df05e3fdd420a69b3b31a020b01a16ad7d4e071ce0f9958c028bf38e09ceef09"}},{"ruleId":"D2","level":"warning","message":{"text":"getOllamaUsage (cognitive 24): getOllamaUsage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 6 (7 pts), boolean chains 5, error handling 3, loops 1 (nesting depth added 3). Of this number, 22 points are the body\u0027s own statements and 2 belong to 3 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/misc.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc509c172504ca17b19b32ea6b6ab0ce481095a3b38575ee8c02fd838499f407"}},{"ruleId":"D2","level":"warning","message":{"text":"tryDedicatedProvider (cognitive 24): tryDedicatedProvider has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (8 pts), error handling 3 (4 pts), if/else 3, other 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/index.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd6589b8186b866363892e1446ef5247700f99900203fd64036d0be1bfe12f6"}},{"ruleId":"D2","level":"warning","message":{"text":"xaiVideo.pollUntilDone (cognitive 23): xaiVideo.pollUntilDone has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 5, ternaries 1 (4 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/xaiVideo.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4b1b2508a2ae7cfef69edec2f51762cb226511ed5f9cd09406a51a9e004c68"}},{"ruleId":"D2","level":"warning","message":{"text":"kiroConstants.containsThinkingModeTag (cognitive 23): kiroConstants.containsThinkingModeTag has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/kiroConstants.js"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"223311985c2d8d86b6633d0838a7230fd425b24f594f64e4417b246e29733f1e"}},{"ruleId":"D2","level":"warning","message":{"text":"kiro.inspectSSEChunk (cognitive 23): kiro.inspectSSEChunk has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f854ade7080e2c01d0bf134452bc251f2a671273e4936cfb724511086bcbb6"}},{"ruleId":"D2","level":"warning","message":{"text":"xiaomi-mimo.getXiaomiMimoUsage (cognitive 23): xiaomi-mimo.getXiaomiMimoUsage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/xiaomi-mimo.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddbe481a7d441f9c1684e19985fce76841ae22eeae0db47361e6cc18f82d891"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.proxy (cognitive 23): proxy.proxy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, error handling 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/proxy.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7602fa64daa70d5eb60989f464f8a75edccb8b37e18f4ffdb35efb7c646861bc"}},{"ruleId":"D2","level":"warning","message":{"text":"saveRequestUsage (cognitive 23): saveRequestUsage has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, if/else 4 (5 pts), ternaries 2, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 257). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cd59a99afbd95001a02834090b825ee41aa091f60bb209c5d1afe40d108740"}},{"ruleId":"D2","level":"warning","message":{"text":"parseError (cognitive 23): parseError has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09dfcea4c0a9e75479911462dc6d1a1cfa54385ccb7326045ff9840c53560a8"}},{"ruleId":"D2","level":"warning","message":{"text":"getGrokCliUsage (cognitive 23): getGrokCliUsage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (8 pts), error handling 5 (7 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/grok-cli.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ce3e190892e9add11fe9f798e7d5ac089253d4b2f8d9554469b7669ee5f129"}},{"ruleId":"D2","level":"warning","message":{"text":"POST (cognitive 23): POST has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 4, error handling 2, ternaries 1 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 9 belong to 8 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/openclaw-settings/route.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4db439d1c4e31da49592786702d8bb409e0411a60bf35e020e066afde67248"}},{"ruleId":"D2","level":"warning","message":{"text":"input.selectMenu (cognitive 22): input.selectMenu has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, ternaries 3 (5 pts), boolean chains 3 (nesting depth added 2). Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 135, 113, 100, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/input.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae423f0da319ef9de0d1684118303e6df35b180a5b0a274ee4ed29ed51829f1"}},{"ruleId":"D2","level":"warning","message":{"text":"CursorExecutor.openAgentHttp2Stream (cognitive 22): CursorExecutor.openAgentHttp2Stream has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3, error handling 3 (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb2d611d62fc3f46f4309e65a8592d782c90b58fb281621bc9a0d6ea42d2b00"}},{"ruleId":"D2","level":"warning","message":{"text":"index.compressKiroFormat (cognitive 22): index.compressKiroFormat has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), boolean chains 1, error handling 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/index.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2473ebc9cd95f859756e8ccdb78ef3c9b440cc25500fbd7a54ab6a5414892cb"}},{"ruleId":"D2","level":"warning","message":{"text":"page.CapacityAdapterCap (cognitive 22): page.CapacityAdapterCap has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, ternaries 7 (10 pts), if/else 2 (nesting depth added 3). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 826, 739, 745, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e2a50a3b85307ad1602ab740c59871de2acbcbc6fad73cd41f219c1ebc78cc"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 22): route.POST has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, ternaries 3 (4 pts), error handling 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/opencode-settings/route.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2352107f0115f32431046c383cbbb8f74f5347e2159cfb34d4438c876366d84"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 22): route.GET has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, loops 2 (3 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/inworld/voices/route.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f116428b7f1919bace30f16c707054e01aeace6fef2131038cdb591e1995239"}},{"ruleId":"D2","level":"warning","message":{"text":"route.refreshAndUpdateCredentials (cognitive 22): route.refreshAndUpdateCredentials has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 6, ternaries 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/usage/[connectionId]/route.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6378fd014a28a30f674fb2152fe5e16eed0431e3f46496f6e483d05b28097e"}},{"ruleId":"D2","level":"warning","message":{"text":"Header.Header (cognitive 22): Header.Header has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (5 pts), ternaries 3 (5 pts), error handling 2 (nesting depth added 3). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 192, 247, 218). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Header.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad24761b86a9246f0bc946cb7d128489ef5f8d01e085b3248d060364bbe29a40"}},{"ruleId":"D2","level":"warning","message":{"text":"providerCustomModels.getProviderCustomModelRows (cognitive 22): providerCustomModels.getProviderCustomModelRows has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 7, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/utils/providerCustomModels.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"16da545dcaaa229c6ceb007ccd78c07c76a568784160b2b7a5bcfbb8813488ab"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfilePage::testOidcConnection (cognitive 22): ProfilePage::testOidcConnection has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, ternaries 3 (5 pts), if/else 4, error handling 3 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da38cd6c4aab881be48d3a61b18ee850793877ffd305fb9935971d62a78b9d3"}},{"ruleId":"D2","level":"warning","message":{"text":"stripRemainingDataUris (cognitive 22): stripRemainingDataUris has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 4, ternaries 1 (4 pts), loops 1 (nesting depth added 11). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 265, 261, 273). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/attachments.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0539032bb2ac301b30fa9997d668376c226eb01e219e79b6012db6e9b441d55"}},{"ruleId":"D2","level":"warning","message":{"text":"collectKiroHeadroomMessages::visit (cognitive 22): collectKiroHeadroomMessages::visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (7 pts), ternaries 2 (7 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/headroom.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c278461ae173b50decf8b624d25fc18c5a3b6820ce7c82acd942bdc453029270"}},{"ruleId":"D2","level":"warning","message":{"text":"containsPromptInResponsesInput (cognitive 22): containsPromptInResponsesInput has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, loops 2 (4 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3edc2c1d2c6519e7552ba327a72a0560256293db2dec4bf88967692db7116e"}},{"ruleId":"D2","level":"warning","message":{"text":"handleStreamingResponse (cognitive 22): handleStreamingResponse has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, error handling 3 (5 pts), if/else 4 (5 pts), ternaries 2 (3 pts) (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 1 belongs to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/streamingHandler.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2051ad06d2603c9d172f1734e27cde88f5ef46e5da9961b50f68dae6340e58ed"}},{"ruleId":"D2","level":"warning","message":{"text":"concealFingerprintToolNames (cognitive 22): concealFingerprintToolNames has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (6 pts), boolean chains 5, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/opencodeFingerprint.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d1021203665f1d59619696ed5b3a9ff8c70a58164e4e28103d2ea04030f40e"}},{"ruleId":"D2","level":"warning","message":{"text":"combos.editSingleCombo (cognitive 21): combos.editSingleCombo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/menus/combos.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b86a970f4d516cc40fe36cb7d12550dfcc9d9a173eb6ed3c363bbbba60f580"}},{"ruleId":"D2","level":"warning","message":{"text":"build-cli.copyRecursive (cognitive 21): build-cli.copyRecursive has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (8 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/scripts/build-cli.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b116ccbaf25dad96028204c174eeafe0c1f5f6181689bb5fda30912304222205"}},{"ruleId":"D2","level":"warning","message":{"text":"kiroExternalIdp.normalizeKiroExternalIdpAuth (cognitive 21): kiroExternalIdp.normalizeKiroExternalIdpAuth has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 8, error handling 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/kiroExternalIdp.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"db43ecffbaad6c46ebb1f5000af9e34fb8a7b562476426276c6d80282d1580b7"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexExecutor._peekSseTransientError (cognitive 21): CodexExecutor._peekSseTransientError has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 5 (7 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abae3053028cb6af80804a2ddea715b61945ab271372a68eb99dfc2ea39c02d"}},{"ruleId":"D2","level":"warning","message":{"text":"ollama-to-openai.ollamaToOpenAIResponse (cognitive 21): ollama-to-openai.ollamaToOpenAIResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 6, ternaries 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/ollama-to-openai.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62f5533434c49ed31df49a95b4067a2ad9cf7f4227b3fad00997a0e447f42b5"}},{"ruleId":"D2","level":"warning","message":{"text":"kimchiModels.normalizeKimchiModel (cognitive 21): kimchiModels.normalizeKimchiModel has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, ternaries 8, if/else 3. Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/kimchiModels.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddef79bae39836c344c49be83c0dfc4780b469dc9938d9c50c1c5efc76e2bf7e"}},{"ruleId":"D2","level":"warning","message":{"text":"streamHandler.createDisconnectAwareStream (cognitive 21): streamHandler.createDisconnectAwareStream has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, error handling 3 (4 pts) (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/streamHandler.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a765771f87717c121e1776603f9e002a9f9b73da639f2eb2956821633cc41bda"}},{"ruleId":"D2","level":"warning","message":{"text":"ssrfGuard.parseIPv6ToGroups (cognitive 21): ssrfGuard.parseIPv6ToGroups has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/utils/ssrfGuard.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1508462174b6fa9be2f7af5f8c3f0cb2823c4ec8e471d50520694913ea144f"}},{"ruleId":"D2","level":"warning","message":{"text":"chatSearch.handleChatSearch (cognitive 21): chatSearch.handleChatSearch has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (7 pts), ternaries 2 (3 pts), error handling 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/chatSearch.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"027cdf5b8963d3049dec03afae89cbbb42cea0a0a59e793abe13a10b5184c541"}},{"ruleId":"D2","level":"warning","message":{"text":"accountFallback.checkFallbackError (cognitive 21): accountFallback.checkFallbackError has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, ternaries 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/accountFallback.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f804e0acc55af5fa65dedaef194253c2fbfc1c5231045a5b2272270552b6afe"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 21): route.POST has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/auth/login/route.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dfae3deb18482ae7cab7244112cbdfff2b1e1cf7cb602c3b90fd6b9aacad0f"}},{"ruleId":"D2","level":"warning","message":{"text":"route.DELETE (cognitive 21): route.DELETE has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 2, boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/opencode-settings/route.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc95714253cf2d2af515bfe093a4434a686690e9dca1bae36d6fa14f6d4fa7d9"}},{"ruleId":"D2","level":"warning","message":{"text":"saml.pickSamlEmail (cognitive 21): saml.pickSamlEmail has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 5 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/auth/saml.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e586a84d4a152579906d06fa4b0a20cd146a1056e2bec6fafeae348fcac67eb6"}},{"ruleId":"D2","level":"warning","message":{"text":"requestDetailsRepo.getObservabilityConfig (cognitive 21): requestDetailsRepo.getObservabilityConfig has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 17, if/else 2, error handling 1, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/requestDetailsRepo.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1632fa25bdfda455d452b8ad5ee5143f15d4df50cd6656fb4a032d2760bf56a4"}},{"ruleId":"D2","level":"warning","message":{"text":"backgroundTokenRefresh.runBackgroundTokenRefreshTick (cognitive 21): backgroundTokenRefresh.runBackgroundTokenRefreshTick has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 7, ternaries 2 (6 pts), if/else 3 (4 pts), error handling 2 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/backgroundTokenRefresh.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a69d7ee3d127743e7ccd891754970d301cf378fc6e19539eb214afb3d61f85d"}},{"ruleId":"D2","level":"warning","message":{"text":"transformEventStreamToSSE::processBytes (cognitive 21): transformEventStreamToSSE::processBytes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef366c45611b1ef6d6f2946492aea7d2116ddd70bddc91c12b8d5bf1015bd53a"}},{"ruleId":"D2","level":"warning","message":{"text":"killLeftoverMitm (cognitive 21): killLeftoverMitm has cognitive complexity 21 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 6 (8 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"e231404ae9a699365365962f9f1b65110fc488b9bdf4b3540e30ea8f1b32bf3e"}},{"ruleId":"D2","level":"warning","message":{"text":"buildReasoningInputItem (cognitive 21): buildReasoningInputItem has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 7, ternaries 2 (4 pts) (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-responses.js"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9f07b38fa357b317d238929182414b98b86a0c21837d35d2c79f953c9ce7ab"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveKiroThinkingBudget (cognitive 21): resolveKiroThinkingBudget has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, other 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/kiroConstants.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"822942cdb5bf1242fce5cb5b60225dbd06706193f306ecaab423095f5b3e785f"}},{"ruleId":"D2","level":"warning","message":{"text":"menuHelper.showListMenu (cognitive 20): menuHelper.showListMenu has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/menuHelper.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"158caa698325ab97932d24f8992e89e0984cfcce5a22ce2e2011c4be80b50b02"}},{"ruleId":"D2","level":"warning","message":{"text":"capabilities.refine (cognitive 20): capabilities.refine has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/capabilities.js"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc782b50baf0a18003aea25ce2dcdae6d68ba3a115da853b628e45ea955e36ce"}},{"ruleId":"D2","level":"warning","message":{"text":"image.fetchImageAsBase64 (cognitive 20): image.fetchImageAsBase64 has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (5 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/image.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7621433a80843dd55c0f4eb4c8546a361e4b02e3646acc6a3f2aae5431893a1"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini-to-openai.convertGeminiContent (cognitive 20): gemini-to-openai.convertGeminiContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/gemini-to-openai.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dc19982387e064b49e305a0f581509470b76e3786010e66a62be3647c6784f"}},{"ruleId":"D2","level":"warning","message":{"text":"GithubExecutor.executeWithResponsesEndpoint (cognitive 20): GithubExecutor.executeWithResponsesEndpoint has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/github.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8194578f2b8e1adb91f584d18c6cc21419a496f23888947b2454ccdbcb6757"}},{"ruleId":"D2","level":"warning","message":{"text":"QoderExecutor.execute (cognitive 20): QoderExecutor.execute has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (6 pts), error handling 4 (5 pts), ternaries 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"41feec92aec5a4386ad7f8e00ba65abf1c5884cf22c8aaf3043433650f0b4c75"}},{"ruleId":"D2","level":"warning","message":{"text":"perplexity-web.buildStreamingResponse (cognitive 20): perplexity-web.buildStreamingResponse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"467f28ead2469a9f80881df59a0165db0c2a807625f6aa6e38c4c017a1ea9f98"}},{"ruleId":"D2","level":"warning","message":{"text":"searchList.searchList (cognitive 20): searchList.searchList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (5 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/filters/searchList.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80580994a2f6eefe663906a19ab82a6c2fc55eb47f0ca62f2c53fa8d512ec88"}},{"ruleId":"D2","level":"warning","message":{"text":"AddCustomModelModal.AddCustomModelModal (cognitive 20): AddCustomModelModal.AddCustomModelModal has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 5, error handling 1. Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 30, 50, 20, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddCustomModelModal.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97053a0a828f322dea78cfd6f043c2aad25baa5f4d725f6ca520337544eff4b"}},{"ruleId":"D2","level":"warning","message":{"text":"AddCompatibleModal.AddCompatibleModal (cognitive 20): AddCompatibleModal.AddCompatibleModal has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 6, ternaries 5, error handling 2. Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 64, 115, 54, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/AddCompatibleModal.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d37dbf9935025be916d8dc67d5c3dd379f3879ad8e4f70c7be741019076e6a"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderTopology.ProviderTopology (cognitive 20): ProviderTopology.ProviderTopology has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 4, boolean chains 3, loops 3 (nesting depth added 3). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 374, 391, 366, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderTopology.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ad42a0e30afa27ad8c91f70da93ae456909879057dae758c9f1961e09e3d0e"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 20): route.POST has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, ternaries 3 (4 pts), error handling 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/droid-settings/route.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd25b2d07176407161c8de2043a25ce0fbfc2c742c39999de523b5b452cbe155"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 20): route.GET has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts), error handling 1, loops 1, ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/voices/route.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a33490475dfb0595c369d19d5f64c336b407a8c09ae8644993fc88770b3b76"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfilePage::saveOidcSettings (cognitive 20): ProfilePage::saveOidcSettings has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 4, ternaries 2 (4 pts), error handling 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d157a236268b3481009620c0b234b5973dadd17d971b07404b78fdb507852644"}},{"ruleId":"D2","level":"warning","message":{"text":"extractPanelText (cognitive 20): extractPanelText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, ternaries 1 (2 pts), other 1 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc9ca3950503e2a740fd125589f1f96b416d42cd39ba427a49085a441a29ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"transformToSSE::start (cognitive 20): transformToSSE::start has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (5 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/windsurf.js"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3ce0c159550641f775fc72d63dfd9658a183281415ad18f0e99f825950c719"}},{"ruleId":"D2","level":"warning","message":{"text":"buildStreamingResponse::start (cognitive 20): buildStreamingResponse::start has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaaa1d7e1c7819e123b337a08e05ef21d1968477cd99975390cb99c9edc6383"}},{"ruleId":"D2","level":"warning","message":{"text":"updateProviderCredentials (cognitive 20): updateProviderCredentials has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/tokenRefresh.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"41cc1f81a23f778d1c1e3915181fe420e954c50db64b2b8607ba5fd74fef64fd"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchProjectId (cognitive 20): fetchProjectId has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/projectId.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb33dcbc90ca1010e409fbe27f77bec52af718fd2e09be426061af04c0bd6f21"}},{"ruleId":"D2","level":"warning","message":{"text":"containsPromptInMessages (cognitive 20): containsPromptInMessages has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 5, loops 2 (4 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4398d29801c1bd4c3174c07b9cec630126041f7ce4c04195fd251a3d9112a647"}},{"ruleId":"D2","level":"warning","message":{"text":"createDisconnectAwareStream::pull (cognitive 20): createDisconnectAwareStream::pull has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (7 pts), if/else 5 (7 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/streamHandler.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cac105a8e8490911f8bf521b2f692d93835e7ce6e65cb291f12885695bad89"}},{"ruleId":"D2","level":"warning","message":{"text":"connect.parseArgs (cognitive 19): connect.parseArgs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, loops 1 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/connect.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6eab32177e7d3e59a6a1cec18677742dc0d36f7589a8a2d8f55c36e73d53fd"}},{"ruleId":"D2","level":"warning","message":{"text":"menuHelper.showMenuWithBack (cognitive 19): menuHelper.showMenuWithBack has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 9). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/menuHelper.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c842643da2ca31791a2b883edd229a7ad857e950f10140cca505489236e34628"}},{"ruleId":"D2","level":"warning","message":{"text":"combos.handleCreateCombo (cognitive 19): combos.handleCreateCombo has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/menus/combos.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc62c6da1558a9a4c98edb2344c880e64d4abf45666911d1de932551ea83f83"}},{"ruleId":"D2","level":"warning","message":{"text":"capabilities.getCapabilitiesForModel (cognitive 19): capabilities.getCapabilitiesForModel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/capabilities.js"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd4177ede55883ca9cf27841ae7ca61339ee2ee130b66ad0c69d258f074d172"}},{"ruleId":"D2","level":"warning","message":{"text":"index.backfillCodexEmails (cognitive 19): index.backfillCodexEmails has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 7, error handling 1, loops 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/providers/index.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b64f943f65cd4e34f6e2d8116649b728e5a5555089cf2a7db99acaaaae83f9"}},{"ruleId":"D2","level":"warning","message":{"text":"server.startZedProxy (cognitive 19): server.startZedProxy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 2, error handling 1, loops 1 (nesting depth added 2). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 681, 672, 759). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/server.js"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c17acd87ec2175a510d7b63b05b285210ebd1a0363c3e9f99d9e5568c9d19c7"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate.runMigrationOnce (cognitive 19): migrate.runMigrationOnce has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (7 pts), error handling 3 (6 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/migrate.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25fa7bb9690cf7db24d7f6a323a14fe8034ec999d43b23db98fffdb04698e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"cursorProtobuf.extractToolCall (cognitive 19): cursorProtobuf.extractToolCall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/cursorProtobuf.js"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5d9ba96db8a0e64ae9903fd9218fd23d377f7b9e1650804a7811f29db2e97f"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokWebExecutor.execute (cognitive 19): GrokWebExecutor.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-web.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1065f86de6424df015611661ba742d501fd1513ad0f111c227fa1dcf5884f0"}},{"ruleId":"D2","level":"warning","message":{"text":"grok-web.readGrokNdjsonEvents (cognitive 19): grok-web.readGrokNdjsonEvents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (5 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-web.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbff46c615d81da50ef15de68e3dc0341e70bf97baa9c75f20d36e1682a57080"}},{"ruleId":"D2","level":"warning","message":{"text":"pxpipe.compressWithPxpipe (cognitive 19): pxpipe.compressWithPxpipe has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7, ternaries 2, error handling 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/pxpipe.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0154e528313d8847a03f432718c1ba2568e99deeb30693e87046ff04512ff402"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizers.normalizeXquik (cognitive 19): normalizers.normalizeXquik has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 5 (nesting depth added 1). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 218). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/normalizers.js"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47e83c427aca263f912d6db9ddc214a72afd2993e974bc69c35da8cdcbd9092"}},{"ruleId":"D2","level":"warning","message":{"text":"capacityAdapter.stripHistoryForContext (cognitive 19): capacityAdapter.stripHistoryForContext has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 6, ternaries 3 (6 pts), if/else 5, loops 2 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/capacityAdapter.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"76350e0c2fe45cb74cad6ef2e21665ea7312fc2cf0c210d4dc937b89f3e223ba"}},{"ruleId":"D2","level":"warning","message":{"text":"commandcode.getCommandCodeUsage (cognitive 19): commandcode.getCommandCodeUsage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, boolean chains 7, ternaries 3, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/commandcode.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"204ff88486283bdf3c2097047166218d24b6e34871ec5ac3c45127f4f3ecdd7f"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 19): route.GET has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 15, ternaries 2 (3 pts), error handling 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/auth/status/route.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"059da97f4db2db626482eb93040ff023230126d654c4628b7352c30f90de7a3b"}},{"ruleId":"D2","level":"warning","message":{"text":"route.normalizeMiniMaxVoices (cognitive 19): route.normalizeMiniMaxVoices has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 3 (5 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 8). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/minimax/voices/route.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73e6e4bca1b2954b4916e09dd685741fd2e32d93bb69dc3241113fb2de1ebfe"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 19): route.GET has cognitive complexity 19 (threshold 15). Drivers by points: error handling 6 (10 pts), if/else 5 (6 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/cursor/auto-import/route.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e1f6fd8aa00aa94cc6afb400368d7435a636f50851a5ceb704dbae466d5a52"}},{"ruleId":"D2","level":"warning","message":{"text":"pricingRepo.getPricing (cognitive 19): pricingRepo.getPricing has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/pricingRepo.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b43eec4211f1d4b09afd84f837c9f1a0a113322ccc200a1b88052d49b42705c"}},{"ruleId":"D2","level":"warning","message":{"text":"mimoLoginSession.rewriteMimoBases (cognitive 19): mimoLoginSession.rewriteMimoBases has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (13 pts), if/else 3, ternaries 2, boolean chains 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50c7ef2d5c33f1586cac61af6f5c65c7b76154619af91d2f5c839c2d8a28d66"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.buildProviderEntry (cognitive 19): providers.buildProviderEntry has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 12, if/else 3 (4 pts), boolean chains 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/constants/providers.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33fe4cc3ad633acf5e37f295ba372ed679563fef51e54650601ee5fd5b2e57d"}},{"ruleId":"D2","level":"warning","message":{"text":"tailscale.installTailscaleMac (cognitive 19): tailscale.installTailscaleMac has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 4). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 353, 311, 334, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"3413e49df7dc8b0ddd3970465c70be2f0b00a98ff9671d5059b073568641f51d"}},{"ruleId":"D2","level":"warning","message":{"text":"tailscale.startFunnel (cognitive 19): tailscale.startFunnel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 771, 757, 799, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1febb16da33645c0b721e46344a1a395a5abea8199b13fa7882f24b242e119e"}},{"ruleId":"D2","level":"warning","message":{"text":"manager.enableTailscale (cognitive 19): manager.enableTailscale has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, error handling 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/manager.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5097eeb8e1aca7f0821301f1f67e38c6ccd4100d2ae7b4e60996370c17f348e1"}},{"ruleId":"D2","level":"warning","message":{"text":"PricingModal.PricingModal (cognitive 19): PricingModal.PricingModal has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 3, error handling 3, ternaries 2. Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 17, 51, 75, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/PricingModal.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c138b02860ea5e36f45a1b3219e485219862613a9ee8eff21682e5d75d8d92"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageStats.sortData (cognitive 19): UsageStats.sortData has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (7 pts), if/else 4 (nesting depth added 2). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 93, 107). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6408c3276c94700e21889d6b3e4a5717c1415e23e16781aea1b46486b97d0c94"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, error handling 2 (nesting depth added 3). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 495, 507, 494, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ad73f9ea794ae7f4e47f20c324ceef8046d9ead8f833504d4f39ff30c550cb"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfilePage::saveSamlSettings (cognitive 19): ProfilePage::saveSamlSettings has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, ternaries 2 (4 pts), if/else 2, error handling 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1087b4173497014f7197765b0af917e2183b3f35c96e8872742436f375a89b"}},{"ruleId":"D2","level":"warning","message":{"text":"detectRequiredCapabilities::scanBlock (cognitive 19): detectRequiredCapabilities::scanBlock has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"679a9cff3cdcaba18f8189d1757875abac02d63534ecffd5e888297a6c58f9f9"}},{"ruleId":"D2","level":"warning","message":{"text":"AddApiKeyModal (cognitive 19): AddApiKeyModal has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, error handling 2, if/else 2. Of this number, 10 points are the body\u0027s own statements and 9 belong to 7 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"680fa5255ebdfcfd9a0c81ce3c9a63c1953b89724879ba4445246cf0b851e72a"}},{"ruleId":"D2","level":"warning","message":{"text":"handleTest (cognitive 19): handleTest has cognitive complexity 19 (threshold 15). Drivers by points: error handling 4 (7 pts), if/else 6, boolean chains 5, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"decadcf2881993ee3911ad9996a27442a7ff4e4e22fbfd2b51fd24bf07caec5d"}},{"ruleId":"D2","level":"warning","message":{"text":"MitmServerCard::doAction (cognitive 19): MitmServerCard::doAction has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), ternaries 2 (4 pts), error handling 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"de30d5430a40f7728f550b9f978f048c6d94769bb7db5e61c7b56cdec6a799e7"}},{"ruleId":"D2","level":"warning","message":{"text":"handleSttCore (cognitive 19): handleSttCore has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), ternaries 3 (4 pts), error handling 1, match/switch 1, other 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/sttCore.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc7d68667b9dc608021992326f72b9aafb8bb2013c24308f90a6eb9c38d86ea"}},{"ruleId":"D2","level":"warning","message":{"text":"getQoderUsage (cognitive 19): getQoderUsage has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 3, error handling 2, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/misc.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8e92bd8d6d4f5d3308577fd8fbdf681edbcba961ae398ab856d630b3ac5f47"}},{"ruleId":"D2","level":"warning","message":{"text":"CursorAuthModal (cognitive 19): CursorAuthModal has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7, error handling 2, ternaries 1. Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (runAutoDetect, handleImportToken, (anonymous), \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/CursorAuthModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2652095b7cb0f45458a743d5a448fd99337b469cf319009b0a680161e22b823"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate.importLegacyUsage (cognitive 18): migrate.importLegacyUsage has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 14, if/else 2, loops 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/migrate.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f53e6a135e6bba7a0a7fb593a7ba9ecd88656b9b96694105fed999e6cc46929"}},{"ruleId":"D2","level":"warning","message":{"text":"image.isPrivateIp (cognitive 18): image.isPrivateIp has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 7, ternaries 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/image.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fad1c6b10787316adc4dd22ee6b321678fe99940686326aae09dea0dd12d0d9"}},{"ruleId":"D2","level":"warning","message":{"text":"codex.findNestedMessage (cognitive 18): codex.findNestedMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed8492046b4d4735237ce1bc66f2d59de699ad9301ea861741f681b1ca1009f"}},{"ruleId":"D2","level":"warning","message":{"text":"windsurf.decodeDoneChunk (cognitive 18): windsurf.decodeDoneChunk has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/windsurf.js"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6656173a54383ed7c90a7066b79036851195d6d41ac2c433fc1c0ddf514fcc5f"}},{"ruleId":"D2","level":"warning","message":{"text":"nonStreamingHandler.openAICompletionToClaudeMessage (cognitive 18): nonStreamingHandler.openAICompletionToClaudeMessage has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 4, loops 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"343aa41bd90fb9d134df995af9ca11afd3f7c4fcb7d99d7deb3d7277e948751f"}},{"ruleId":"D2","level":"warning","message":{"text":"autodetect.autoDetectFilter (cognitive 18): autodetect.autoDetectFilter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 4, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/autodetect.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"97989206f773d309ae7991e5190fa8a1ed46cb40816691e71bcf9923f05692f8"}},{"ruleId":"D2","level":"warning","message":{"text":"codebuddy-cn.getCodeBuddyUsage (cognitive 18): codebuddy-cn.getCodeBuddyUsage has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 3, error handling 1. Of this number, 14 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/codebuddy-cn.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ba7a07ccd945919bedac9f2f0e0a7b796e102f3b21a7cc07ec33e4e0a14484"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRow.ModelRow (cognitive 18): ModelRow.ModelRow has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 12 (16 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ModelRow.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00f3b7d8688fbbc2ca5009774b427d142521e12383007ca4ee0b819b9f512cb"}},{"ruleId":"D2","level":"warning","message":{"text":"page.getConnectionErrorTag (cognitive 18): page.getConnectionErrorTag has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b1637148924149db1db1b97662e8b5452611a728ae75cfe449ed2ab2d97c96"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.sortVisibleConnections (cognitive 18): utils.sortVisibleConnections has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), ternaries 3 (4 pts) (nesting depth added 2). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 87, 58, 74, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f25c13117e020408d56a36bd4becaa15acf1a0cc83130951d1adf9161f3986"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderLimitCard.ProviderLimitCard (cognitive 18): ProviderLimitCard.ProviderLimitCard has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, if/else 1, ternaries 1. Of this number, 15 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/ProviderLimitCard.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c4f6e984bd2c4d8883f63357e578ee1d9d12065769e9bd696005ac2d6f139a"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 18): route.POST has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 5, ternaries 2 (4 pts), error handling 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/antigravity-mitm/route.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68e172ec81128c3b8587ba28342debbaa586285ccd65dee65cc45e6998565cb"}},{"ruleId":"D2","level":"warning","message":{"text":"route.PATCH (cognitive 18): route.PATCH has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/antigravity-mitm/route.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"985bc23fa69198a4b0c44418c98baa43536ff31da5f06c51acdf4692cb770ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 18): route.GET has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), loops 2 (3 pts), error handling 1 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/elevenlabs/voices/route.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bf3ea2358c56b2b765b7cb53e4ad0a243fe7f71b9320bb8b3fef88e35cab72"}},{"ruleId":"D2","level":"warning","message":{"text":"appUpdater.killMitmByPidFile (cognitive 18): appUpdater.killMitmByPidFile has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6 (12 pts), if/else 4, boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/appUpdater.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ca20270a4e5ca27b3e29e18cc3da5d0da139e26375a2b5762601c5a31779bc"}},{"ruleId":"D2","level":"warning","message":{"text":"usageRepo.aggregateEntryToDay (cognitive 18): usageRepo.aggregateEntryToDay has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 14, if/else 2, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e477a631a8027d6da2bfe5e18025772628262fe132b2ff8d5e7fad7dd56d66ed"}},{"ruleId":"D2","level":"warning","message":{"text":"events.readPxpipeEvents (cognitive 18): events.readPxpipeEvents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/pxpipe/events.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4fed934bc33f376618c3b811eb4f159fb47f3bccfe56bdd6662638016e26ed"}},{"ruleId":"D2","level":"warning","message":{"text":"GitLabAuthModal.GitLabAuthModal (cognitive 18): GitLabAuthModal.GitLabAuthModal has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 5, error handling 1. Of this number, 11 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/GitLabAuthModal.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50bbf9e66e1d94702493572f1ed3269a7ee33bea79101a6b1b7416e21293203"}},{"ruleId":"D2","level":"warning","message":{"text":"fetch.handleFetch (cognitive 18): fetch.handleFetch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, error handling 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/fetch.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3981847a33a726ef3e9813de31008b9ac706b4832af3a903c65fe49e3bc6755"}},{"ruleId":"D2","level":"warning","message":{"text":"handleRunOneByOneTest (cognitive 18): handleRunOneByOneTest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 6). Of this number, 12 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"761637d164b34b5f9d39147c5dc8d66919bfd7c66ca6b98e4d13a30236178fab"}},{"ruleId":"D2","level":"warning","message":{"text":"handleHealthCheck (cognitive 18): handleHealthCheck has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (worker, onConfirm, (anonymous)). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d8ea11b1c576ba36f051ea57ff9ae390e44914d7c16741da82d642fac68237"}},{"ruleId":"D2","level":"warning","message":{"text":"openModal (cognitive 18): openModal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f3177668f3e26ec3af1a5d7f5c6d4931b1834e7d5016c1b15c6394cced6567"}},{"ruleId":"D2","level":"warning","message":{"text":"execute (cognitive 18): execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, ternaries 3, loops 1 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28c557ac04364aaa6d767defd9bbbb87bee5aee38c3c82a174278ddefda5d35"}},{"ruleId":"D2","level":"warning","message":{"text":"emitToolCall (cognitive 18): emitToolCall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (6 pts), boolean chains 4, other 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae08315ecf29386bda057094125271b8515446c21c6c7528b7e91aaf3007121"}},{"ruleId":"D2","level":"warning","message":{"text":"createSSEStream::finalizeStream (cognitive 18): createSSEStream::finalizeStream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a23a7465ea35f21ceabd7de903649b6b192af684c32277098c9bb57e5deecc7"}},{"ruleId":"D2","level":"warning","message":{"text":"handleBulkSubmit (cognitive 18): handleBulkSubmit has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 5 (6 pts), ternaries 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bad009882cf7683fe6b8593be983001b1ca44b570a8f190a12b17d06af50c9"}},{"ruleId":"D2","level":"warning","message":{"text":"renderServerLogin (cognitive 18): renderServerLogin has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, ternaries 7, loops 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/XiaomiMimoAuthModal.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f917121cd4902d38ac2c27553261e58f5e56cbcdbd3763ddb4babbada4b106e5"}},{"ruleId":"D2","level":"warning","message":{"text":"openaiToClaudeRequestForAntigravity (cognitive 18): openaiToClaudeRequestForAntigravity has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7 (nesting depth added 4). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 343, 356, 361, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-claude.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1406bec515ddfda3941cb2f04e6de36baa1966d9631053137b3abbe63d2b009"}},{"ruleId":"D2","level":"warning","message":{"text":"runHeavyStartup (cognitive 18): runHeavyStartup has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6 (11 pts), if/else 5, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/services/initializeApp.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35d8f19f3f08568954854e786bcf9cb2323fe0a41bbeeeeeaee079c73e4812b"}},{"ruleId":"D2","level":"warning","message":{"text":"transformRequest (cognitive 18): transformRequest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-zen.js"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f4b431132e002dfe0fc1cc3ec73c53cf763e7673c630518a1241373c1f0e91"}},{"ruleId":"D2","level":"warning","message":{"text":"renderGuideSteps (cognitive 18): renderGuideSteps has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 4, ternaries 4. Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 7 function items inside it that branch ((anonymous), renderIcon, (anonymous)::(anonymous), \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DefaultToolCard.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03880c714e69a52e84930f42c113e72bdfe424b4603b267d94bf6c0e63c799c"}},{"ruleId":"D2","level":"warning","message":{"text":"format.getRelativeTime (cognitive 17): format.getRelativeTime has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 7 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/format.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2597048b40129c0aaf1603e4ff961b657bc211d597e1031a1c72853a9c6e37f8"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.showSettingsMenu (cognitive 17): settings.showSettingsMenu has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, if/else 2. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 26, 52, 90, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/menus/settings.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"442a44ec5cd63265bc4a6859936bda81f50c38c051709f11648bbc45ef329f7e"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.killCloudflaredByAppPort (cognitive 17): cli.killCloudflaredByAppPort has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, error handling 1 (nesting depth added 6). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 252, 244). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1986fed52ea7e8cf5f0bc0b7d71caa4d376026bfbdb29d36f1d2dfeddd83b2"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.refreshKiroToken (cognitive 17): providers.refreshKiroToken has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 328). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/tokenRefresh/providers.js"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4635b2b2beee566b228e02d301bd0e3801ed2bdde54a552d3cc6d203bdb6a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"AntigravityExecutor.parseRetryHeaders (cognitive 17): AntigravityExecutor.parseRetryHeaders has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/antigravity.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"061852a5a2dff36c8a37c56c4198129aee76063a62e29da05f06b1535e2a9a78"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-vertex.postProcessForVertex (cognitive 17): openai-to-vertex.postProcessForVertex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-vertex.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7ee1a7e83a7eaf7fbcad217c4a55316a1a589b0e4a73a400d5c18a32cd8e40"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-to-commandcode.toNativeImageBlock (cognitive 17): openai-to-commandcode.toNativeImageBlock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-commandcode.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd40a8237512c26f7a5c1779abfcba810d0676c760b0a296eabcc852a28079e"}},{"ruleId":"D2","level":"warning","message":{"text":"cursor.decompressPayload (cognitive 17): cursor.decompressPayload has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (11 pts), if/else 3 (4 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6d97ed132ca96d33d8ed71968067f16caf767cde8805daa827e67271721c71"}},{"ruleId":"D2","level":"warning","message":{"text":"GithubExecutor.executeWithMessagesEndpoint (cognitive 17): GithubExecutor.executeWithMessagesEndpoint has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 2 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/github.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"303c6f2be4e4280ab66940cbb1fbe11dfd95f970766c009963f67a65ed0d56ea"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokCliExecutor.buildHeaders (cognitive 17): GrokCliExecutor.buildHeaders has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-cli.js"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b84386c053059361c70ee5511fe80effe4427838887ddbcaa558595854a32e"}},{"ruleId":"D2","level":"warning","message":{"text":"grok-web.buildStreamingResponse (cognitive 17): grok-web.buildStreamingResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-web.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"701a5f2fb5b2d979d047760c2dde5f29da2cf2eea8786f05c85b93741727ba76"}},{"ruleId":"D2","level":"warning","message":{"text":"VertexExecutor.buildUrl (cognitive 17): VertexExecutor.buildUrl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/vertex.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82a3b77ed64ba217c8aebffa7001e6601b44c5e0db06425f46775fd3774ab15"}},{"ruleId":"D2","level":"warning","message":{"text":"streamToJsonConverter.processSSEMessage (cognitive 17): streamToJsonConverter.processSSEMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/transformer/streamToJsonConverter.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be973ddc4e8ae7357ba5072197d91c1501e2bb053cca0c30c17c3ef7676a139"}},{"ruleId":"D2","level":"warning","message":{"text":"systemInject.appendToChatMessage (cognitive 17): systemInject.appendToChatMessage has cognitive complexity 17 (threshold 15). Drivers by points: error handling 5 (8 pts), if/else 5 (7 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (systemInject.appendToResponsesMessage) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"589a8c4bd5347f59eaaf900908e59a8500929cdee696baaa56a45c6f1be9ed54"}},{"ruleId":"D2","level":"warning","message":{"text":"systemInject.appendToResponsesMessage (cognitive 17): systemInject.appendToResponsesMessage has cognitive complexity 17 (threshold 15). Drivers by points: error handling 5 (8 pts), if/else 5 (7 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (systemInject.appendToChatMessage) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1586b2edaf041fe623ec6e6a6079f86611cf419465425ee62ac1fe7f9ca3f0"}},{"ruleId":"D2","level":"warning","message":{"text":"systemInject.injectGeminiSystem (cognitive 17): systemInject.injectGeminiSystem has cognitive complexity 17 (threshold 15). Drivers by points: error handling 7 (9 pts), if/else 3 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82a889e6e04235829c554baf0a61aa5e427f8a7a019d96c2013170fd1cb22c5"}},{"ruleId":"D2","level":"warning","message":{"text":"grokCliModels.parseGrokCliModels (cognitive 17): grokCliModels.parseGrokCliModels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/grokCliModels.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"691f19313be411a23c65520a17f474dcb374646d1f509441ec1a0b8a2c147dd5"}},{"ruleId":"D2","level":"warning","message":{"text":"opencode-go.getOpenCodeGoUsage (cognitive 17): opencode-go.getOpenCodeGoUsage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/opencode-go.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c6a6079808a56d406dd3a01e9ec5bb338b64f0c652960ffceff9463c1fbeb9"}},{"ruleId":"D2","level":"warning","message":{"text":"opencode-zen.getOpenCodeZenUsage (cognitive 17): opencode-zen.getOpenCodeZenUsage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/opencode-zen.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c51cd88808584e489fbb2ca5bb362be9005e6aeaf8c69c2b4894a04227017b"}},{"ruleId":"D2","level":"warning","message":{"text":"glm.parseGlmQuotaResponse (cognitive 17): glm.parseGlmQuotaResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 4, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/glm.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"876c1414e3f85284056410eadc77ee018384c96dcc891effdeb2cce82814bc56"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate-registry.formatEntry (cognitive 17): migrate-registry.formatEntry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/migrate-registry.mjs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd161557f2c75f1095ceb2fc1e3870d37dba5b6bb67dbe7a64be65824db04f4"}},{"ruleId":"D2","level":"warning","message":{"text":"BulkImportCodexModal.BulkImportCodexModal (cognitive 17): BulkImportCodexModal.BulkImportCodexModal has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 5, error handling 2, ternaries 1. Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 40, 32). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/BulkImportCodexModal.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d496959338933b60ba487aa4b654ae32e0d3765e0e7a52c774dfe800195f4083"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelAvailabilityBadge.ModelAvailabilityBadge (cognitive 17): ModelAvailabilityBadge.ModelAvailabilityBadge has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 7, error handling 2. Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 58, 87, 29, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelAvailabilityBadge.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecc9232406964599a469488b400ecd2b21cc927bd381606de0ef2bb1ff209d0"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 17): route.POST has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 4, error handling 3, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/pi-settings/route.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2603be3d4f2cfe5f8c601131ef5f5e7a7c2e84a4517949e48271d3fcf8cd2a2e"}},{"ruleId":"D2","level":"warning","message":{"text":"route.PUT (cognitive 17): route.PUT has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, error handling 1, ternaries 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/provider-nodes/[id]/route.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b01967cdf66944ce88e9c79069656b67dfa15c332c9d3f81f8762fee9c4759"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 17): route.POST has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/provider-nodes/route.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0b5a06494336e4ac39a62ad3151d11ce90a6db1db53b6adc703b3c4ea71f86"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 17): route.GET has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 3 (4 pts), if/else 2, error handling 1 (nesting depth added 1). Of this number, 14 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/audio/voices/route.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e368bcfa5fd9b222082605ec6f3fd3db9124070ba7c701f19557b67258c62a"}},{"ruleId":"D2","level":"warning","message":{"text":"route.buildInfo (cognitive 17): route.buildInfo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/info/route.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bc2d093427d5857b404fed67daa375963f657e01be8b34a4884ee91308d3e7"}},{"ruleId":"D2","level":"warning","message":{"text":"saml.pickSamlDisplayName (cognitive 17): saml.pickSamlDisplayName has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (5 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/auth/saml.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87ba62a36ebdbb757611f5331e5f9cd2e7286e8198ec02a7934079540cfe454"}},{"ruleId":"D2","level":"warning","message":{"text":"comboPresets.buildClaudePresetItems (cognitive 17): comboPresets.buildClaudePresetItems has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/comboPresets.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"305b9c11691fb1040a4dad504ef34c2c101b577727e12de6b0558a46b3b9b381"}},{"ruleId":"D2","level":"warning","message":{"text":"cloudflared.spawnCloudflared (cognitive 17): cloudflared.spawnCloudflared has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3 (nesting depth added 3). Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 241, 216, 233). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/cloudflare/cloudflared.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a6e6db1b503e4d8f1104f56dae8e28771e96c584376c4334be370601796bfd"}},{"ruleId":"D2","level":"warning","message":{"text":"tailscale.startLogin (cognitive 17): tailscale.startLogin has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 2, ternaries 1. Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 689, 717, 646, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"27614f35fed50c6620c39838cac7862635d6e7e3611e149b98fe471d660c1b68"}},{"ruleId":"D2","level":"warning","message":{"text":"KiroSocialOAuthModal.KiroSocialOAuthModal (cognitive 17): KiroSocialOAuthModal.KiroSocialOAuthModal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, error handling 3, ternaries 1. Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 60, 30, 27, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/KiroSocialOAuthModal.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"425e00347b4a5e1c5f0d3e150c7284edcf87743e22a3e539330a6c1cd2ca2b1d"}},{"ruleId":"D2","level":"warning","message":{"text":"bulkAdd.planBulkAdd (cognitive 17): bulkAdd.planBulkAdd has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 3 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/utils/bulkAdd.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d953336b30d3fee9b21babab176b28ecac24dd6a1e6f9aeee486e075a2d167c4"}},{"ruleId":"D2","level":"warning","message":{"text":"handleImportQoderModels (cognitive 17): handleImportQoderModels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcf71e466b924643fb26afcbf7f05a69f17deda6f5507ee40a13413a718675d"}},{"ruleId":"D2","level":"warning","message":{"text":"handleImportClineModels (cognitive 17): handleImportClineModels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99ce1cf8701f733b6e5360682a04e1ee7db5ad675a172f1785532cd7e591ba2"}},{"ruleId":"D2","level":"warning","message":{"text":"APIPageClient::pingTunnelHealth (cognitive 17): APIPageClient::pingTunnelHealth has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 2 (5 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6ae77ec005baea7bfa4799f4720521651bdafb3af0d10c741671347e9d7acc"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshTraeToken (cognitive 17): refreshTraeToken has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 6, ternaries 1 (2 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 628). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/tokenRefresh/providers.js"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"200fee8f87bb4caaf10ad4f83812bffa90ca2cd2d0ae57f71059feb7dfe44ba1"}},{"ruleId":"D2","level":"warning","message":{"text":"decodeCompletionChunk (cognitive 17): decodeCompletionChunk has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1, other 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/windsurf.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f6aa3af2e8e5b6178594e5005806938403f8cd251bb62120f42d3e818d3a97"}},{"ruleId":"D2","level":"warning","message":{"text":"buildStreamingResponse::start (cognitive 17): buildStreamingResponse::start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-web.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6675d957e392b5d8c63f9f8ae9bbfa6b8b70d3af732e8b2f5495765ef65a5d"}},{"ruleId":"D2","level":"warning","message":{"text":"extractUrlFromUploadResponse (cognitive 17): extractUrlFromUploadResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), boolean chains 5, error handling 1 (2 pts), loops 2, other 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/attachments.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"959aaddac915e4a84cc8c564d318e501e1927467f89cd36b34ae77f5a3ec019a"}},{"ruleId":"D2","level":"warning","message":{"text":"handleSearch (cognitive 17): handleSearch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/search.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53d91e2a2ff39b9520acde790246702d2684f8053a0766c8a31946d5e4a7106"}},{"ruleId":"D2","level":"warning","message":{"text":"buildBody (cognitive 17): buildBody has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 3 (4 pts) (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/codex.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbeba772484c442b797084c296c4462c8786cc6eaf002ba7b802422e44fc56f1"}},{"ruleId":"D2","level":"warning","message":{"text":"GET (cognitive 17): GET has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, error handling 3 (5 pts), if/else 4, other 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/usage/[connectionId]/route.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd88727e13eb474966ab1168f758cfcaeab1a3f1e6df32c1388c8719909988b3"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageSwitcher (cognitive 17): LanguageSwitcher has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 3, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 11 function items inside it that branch (setIsOpen, handleSetLocale, (anonymous), \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/LanguageSwitcher.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7dce5ab4c832fb66d70c5977f447cde842bd2141cf37353a377161ed9d5ffd7"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeSSE (cognitive 17): pipeSSE has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/base.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f820771bd6e174d9704543a22879aebfa880551c3a959bbf714ebb7d6dc9ddc6"}},{"ruleId":"D2","level":"warning","message":{"text":"server.startCodexProxy (cognitive 16): server.startCodexProxy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 201, 274, 195). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This shape REPEATS in the file: one other method here (server.startXaiProxy) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/server.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2a56521ef94ddd29bbee3df2bce2adbdd3181c75d2aef3cf01915ebc2b904f"}},{"ruleId":"D2","level":"warning","message":{"text":"server.startXaiProxy (cognitive 16): server.startXaiProxy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 345, 416, 339). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This shape REPEATS in the file: one other method here (server.startCodexProxy) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/server.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"e928ed72baf2a786b7adad32d7003f327ec12b04752772758f03aca227130485"}},{"ruleId":"D2","level":"warning","message":{"text":"oauthCredentialManager.mergeRefreshedCredentials (cognitive 16): oauthCredentialManager.mergeRefreshedCredentials has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/oauthCredentialManager.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e75963524534ed9cfc1839c2aecc7ff236e341afd4dcea179040c26508250b9"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini.flattenAnyOfOneOf (cognitive 16): gemini.flattenAnyOfOneOf has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, loops 1 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b4a03a2bde5127fb8689626319c7da8945209e2a81394a3801f1e5323231f9"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate.syncSchemaFromTables (cognitive 16): migrate.syncSchemaFromTables has cognitive complexity 16 (threshold 15). Drivers by points: error handling 2 (7 pts), loops 3 (5 pts), if/else 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/migrate.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"352e16699478be78f2b74136b685bae8ce460abe0ea1863566e46241bfa9c90f"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultExecutor.buildUrl (cognitive 16): DefaultExecutor.buildUrl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/default.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b7cfd2da1ae953e5b547f9a1442530d0ee898a6266958c27c8531b569cdeaa"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-to-openai.fixMissingToolResponsesOpenAI (cognitive 16): claude-to-openai.fixMissingToolResponsesOpenAI has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-openai.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f93c99797d8bf1b1db3469c4725d4aabd8b05eeff7476567e5429d80a7446c"}},{"ruleId":"D2","level":"warning","message":{"text":"grok-web.parseOpenAIMessages (cognitive 16): grok-web.parseOpenAIMessages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3, boolean chains 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/grok-web.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"65627db8bad582b3183643e8fdc38c4ab37edcdb9f6d31ad208949d48d391626"}},{"ruleId":"D2","level":"warning","message":{"text":"qoder.stableChatRecordId (cognitive 16): qoder.stableChatRecordId has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcc4b1b579535172be2ba8b573fa8287464740436b3ddc8023281f08182948a"}},{"ruleId":"D2","level":"warning","message":{"text":"perplexity-web.parseOpenAIMessages (cognitive 16): perplexity-web.parseOpenAIMessages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/perplexity-web.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aeb23d8d86400391692a5e84f74a0af3f0cb169412a0607ffdfdd3d641480fc"}},{"ruleId":"D2","level":"warning","message":{"text":"zed.wrapZedCompletionStream (cognitive 16): zed.wrapZedCompletionStream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, loops 1 (nesting depth added 1). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 165, 157). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/zed.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"047bafc4c23741cdfb09c3592d389a3b03564c34962fa8c2547c27e1a06a7856"}},{"ruleId":"D2","level":"warning","message":{"text":"systemoneCore.handleSystemoneCore (cognitive 16): systemoneCore.handleSystemoneCore has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5, error handling 2, ternaries 2. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/systemoneCore.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f952dcf13f06f44f3a5474120284cbbb0f5385e7d7602ed2c1265d9b67a5e76"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate-registry.formatValue (cognitive 16): migrate-registry.formatValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 11 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/migrate-registry.mjs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cb9b3ac214fbe6b5fc9e2a13503d9f01827876928d63469cbd204df19539eb"}},{"ruleId":"D2","level":"warning","message":{"text":"codexConfig.getCurrentCodexProviderSettings (cognitive 16): codexConfig.getCurrentCodexProviderSettings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/codexConfig.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e555a4439b36b6268bcf8e3e94c95d26a18e520584a0baae42b1ab57934f4f4"}},{"ruleId":"D2","level":"warning","message":{"text":"MitmPageClient.MitmPageClient (cognitive 16): MitmPageClient.MitmPageClient has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, error handling 4, if/else 4, ternaries 1. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 24, 34, 44, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/mitm/MitmPageClient.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bd92a3c1e367915132f28d4c04caa8188ee068954f7082d8627d2620f29760"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsCard.ModelRow (cognitive 16): ModelsCard.ModelRow has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelsCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e81a2e34332f038d49a430054c1da9af6b0d84059d874c9326481643cd7b49"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 16): route.POST has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 4, ternaries 3 (4 pts), error handling 1, loops 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/hermes-settings/route.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df62435fc84da20d7c7d2c06511a1cdbac3d31749e1d8451f1e9cdb87f71a12"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 16): route.GET has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5, error handling 2 (3 pts), ternaries 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/minimax/voices/route.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ff07a3ae30d9bec6372ebf097fbf49b1df9c67b5f7e58690d15106172737a5"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 16): route.POST has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/proxy-pools/deno-deploy/route.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"296afa1a1321f0f6aec3685f0a7fb09d62960a2c64f58dc784df18ec5645d3e5"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 16): route.POST has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, error handling 3 (4 pts), if/else 3, ternaries 1 (2 pts) (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/tunnel/tailscale-install/route.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb292a07bac160b63c5e93ff6056ab96b19466facf8e81c92960d291152daf81"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 16): route.GET has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 2, ternaries 2, error handling 1, loops 1 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/usage/request-details/route.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cec2595ea86f003405421a021dc5758205bbcd2024edc9d28a39ec394e8827"}},{"ruleId":"D2","level":"warning","message":{"text":"settingsRepo.mergeWithDefaults (cognitive 16): settingsRepo.mergeWithDefaults has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/settingsRepo.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba65d23e0907e0d4e6b4c376df48119df969d964478279073d4bdbac91d38d09"}},{"ruleId":"D2","level":"warning","message":{"text":"connectionsRepo.cleanupProviderConnections (cognitive 16): connectionsRepo.cleanupProviderConnections has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 314). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/connectionsRepo.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"76402ca5879a98aa8ee314661b1fcd766663dec51414d7888c2de4a91118cd79"}},{"ruleId":"D2","level":"warning","message":{"text":"mimoLoginSession.decodeSessionCookie (cognitive 16): mimoLoginSession.decodeSessionCookie has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 4, ternaries 2, error handling 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8f5df5d7a4dfd735a49bea88ecd94b69790d95c84c49531173d8073b5aac6d"}},{"ruleId":"D2","level":"warning","message":{"text":"outboundProxy.applyOutboundProxyEnv (cognitive 16): outboundProxy.applyOutboundProxyEnv has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/network/outboundProxy.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bee2024c5d1099d07a84734d20f0faf1ecbee350ee5f4168ca398150ac731d6"}},{"ruleId":"D2","level":"warning","message":{"text":"events.getPxpipeStats (cognitive 16): events.getPxpipeStats has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/pxpipe/events.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3072a4e41c38b8f6538e0bd468f9973fff4c9df8ed5549a86156f43751bc7523"}},{"ruleId":"D2","level":"warning","message":{"text":"manager.enableTunnel (cognitive 16): manager.enableTunnel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, error handling 1 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/cloudflare/manager.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"58afefa7bf6caeee4e5e4fba017ef21d8306b16b679a8e2043e4877a18234115"}},{"ruleId":"D2","level":"warning","message":{"text":"tailscale.ensureUserOwnedDir (cognitive 16): tailscale.ensureUserOwnedDir has cognitive complexity 16 (threshold 15). Drivers by points: error handling 4 (6 pts), if/else 4 (6 pts), loops 2 (4 pts) (nesting depth added 6). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 487). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae269ec5e0cddc20c9f70cc1a4311d5715aa7845d5bb40f51104aa647737c3c"}},{"ruleId":"D2","level":"warning","message":{"text":"config.extractModel (cognitive 16): config.extractModel has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (7 pts), boolean chains 5, if/else 3, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/config.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5257176467de4dc30bdfa26a5a902a4f407a6e0b0a2467a0a9a1f61da0b12b51"}},{"ruleId":"D2","level":"warning","message":{"text":"manager.getPort443Owner (cognitive 16): manager.getPort443Owner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 303, 292, 287, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"c712c250f6b4a89fe6924c9b0699a4546ffbbe3e7b951756b82f2b9d0f5d5773"}},{"ruleId":"D2","level":"warning","message":{"text":"antigravityQuota.handleAntigravityQuotaError (cognitive 16): antigravityQuota.handleAntigravityQuotaError has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 4 (5 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/antigravityQuota.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0620c6f79e62357085af34fc405e657a93ec8785980d1c32a2e893847574f7"}},{"ruleId":"D2","level":"warning","message":{"text":"backgroundTokenRefresh.selectConnectionsNeedingRefresh (cognitive 16): backgroundTokenRefresh.selectConnectionsNeedingRefresh has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/backgroundTokenRefresh.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a507b82ddffbeb63f71047254761f8eb10c16d9c9b567c2b0b739b401f228dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfilePage::handleIdpMetadataUpload::onload (cognitive 16): ProfilePage::handleIdpMetadataUpload::onload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 4, ternaries 3, error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"00294316b9d713b6048deeffaf5039d7e5d45a08f06282b38cedf18fa034d9ce"}},{"ruleId":"D2","level":"warning","message":{"text":"wrapQoderSSE::processLine (cognitive 16): wrapQoderSSE::processLine has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 3, error handling 2 (3 pts), ternaries 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fe11eece0982bdbd623b2b70a15cd12dc7daa85fd759633b8b0bf45cc749ae"}},{"ruleId":"D2","level":"warning","message":{"text":"buildOAuthResolver (cognitive 16): buildOAuthResolver has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, error handling 1 (nesting depth added 4). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 90). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/models/route.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f43e3a85cc624021e30162f79905c839f27014261daeadddff5f1e9caa1df4"}},{"ruleId":"D2","level":"warning","message":{"text":"convertUserInputMessage (cognitive 16): convertUserInputMessage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (4 pts), loops 1, ternaries 1 (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/kiro.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb7249b3a582ae4beb9a26b94b7d41a633bc2943baf856684d038bb69d45ecf"}},{"ruleId":"D2","level":"warning","message":{"text":"startSessionLogin (cognitive 16): startSessionLogin has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 5, error handling 2. Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 148). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/XiaomiMimoAuthModal.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3659bd64a0e74c15530a74d2a817c885ae14a0ecd0f9f7634603577111015dcc"}},{"ruleId":"D2","level":"warning","message":{"text":"markAccountUnavailable (cognitive 16): markAccountUnavailable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, boolean chains 5, ternaries 3 (4 pts), other 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/auth.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e70eeea1fc2e161d6d8b5092d806ab926dd24970031c42195b0078cb10ce01"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveZedModels (cognitive 16): resolveZedModels has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 3, error handling 1 (2 pts), other 2, loops 1, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 384, 396, 404). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/zedAuth.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e20415d74fe82a73b313fcfa3869b0f4ce6be057a203af6b20276a7086b937c"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveQoderModels (cognitive 16): resolveQoderModels has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/qoderModels.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9578bee91ae5fdab6af3c698cc883624301475943eb1413505c8e46dc0d41a"}},{"ruleId":"D2","level":"warning","message":{"text":"handleRun (cognitive 16): handleRun has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 7, error handling 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/SttExampleCard.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa11cc4de9030337ceaedcfafe3432f161714afb13dc97073814e3fb936c812b"}},{"ruleId":"D2","level":"warning","message":{"text":"flattenQuery (cognitive 16): flattenQuery has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 1, loops 1, other 1 (nesting depth added 6). Of this number, 8 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/trae.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ec28578e237f46cf2e9325dd2d07bd980434ba06f81a367befbef0ac0d49d3"}},{"ruleId":"D2","level":"warning","message":{"text":"handleFetchCore (cognitive 16): handleFetchCore has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 6, error handling 1, other 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/fetch/index.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf93fd28e2f151a3b37b2756bc902aac4e265c7977b4f18918ca1cff3cf848e"}},{"ruleId":"D2","level":"warning","message":{"text":"killTray (cognitive 16): killTray has cognitive complexity 16 (threshold 15). Drivers by points: error handling 7 (8 pts), if/else 5, boolean chains 2, ternaries 1 (nesting depth added 1). Of this number, 9 points are the body\u0027s own statements and 7 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/tray/tray.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad893861517ea0f60671f1d8e5e514492495bba7bce76e0ee1340424cf4bf998"}},{"ruleId":"D2","level":"warning","message":{"text":"retargetToolChoice (cognitive 16): retargetToolChoice has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (8 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/opencodeFingerprint.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f8657471a02a804e880e4eb86e14ac2a9dc8e67bfcf6919ed114e91c7c84d1"}},{"ruleId":"D2","level":"warning","message":{"text":"transformRequest (cognitive 16): transformRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-go.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a57ef78b623839ddf780d312fd059664c4ab4f87863572b4dc6328767c2298"}},{"ruleId":"D2","level":"warning","message":{"text":"POST (cognitive 16): POST has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 2 (4 pts), boolean chains 2, error handling 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/claude-settings/route.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1350511c526aeb0b4c4031c05476b8a9c99195db3d7cf137dd8ab679053b641"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.ProviderDetailPage: FunctionTooLong \u2014 ProviderDetailPage runs 1524 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1424 over it, 15.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"749995e1f16ba2154096d268373fba001d96e9c383e5fea21c50212553c6773d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.ProfilePage: FunctionTooLong \u2014 ProfilePage runs 1397 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1297 over it, 13.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"20dd22b39ac1cde197219023a48a790db647cd8cc0fe9e4549ef50f8660adc6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.ProviderLimits: FunctionTooLong \u2014 ProviderLimits runs 1216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1116 over it, 12.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"28615fd0d73c8edac28d4bccaa62d799d03287fa160e312d6db482aee1ba6495"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EndpointPageClient.APIPageClient: FunctionTooLong \u2014 APIPageClient runs 1043 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 943 over it, 10.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2297acaae4de1b7270dd682ea80ae16e55d0fb9d1e9b2ed95b620f23c1c6f71"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TokenSaverClient.TokenSaverClient: FunctionTooLong \u2014 TokenSaverClient runs 888 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 788 over it, 8.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"87827b390dc5a105c7d71ac1b677ae7083f5ac72506d653e475cc6ab36222fd0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.ProxyPoolsPage: FunctionTooLong \u2014 ProxyPoolsPage runs 858 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 758 over it, 8.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc64e554fd32ff4c02c1b16191e6d41dbf53adc2f18b4cce0ea530e26573264"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: OAuthModal.OAuthModal: FunctionTooLong \u2014 OAuthModal runs 697 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 597 over it, 6.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b178bcc5248da5ad879c8dec49f3485192ba2c5b797c68786eacd8313623d24f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BasicChatPageClient.BasicChatPageClient: FunctionTooLong \u2014 BasicChatPageClient runs 633 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 533 over it, 6.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3c4b4a9f74346d7038b9f031499cd5947ecc3e4041acf94a83eff15394adcb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CodexToolCard.CodexToolCard: FunctionTooLong \u2014 CodexToolCard runs 526 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 426 over it, 5.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bbde4b22650e05d53ca7e78434a7fd7455942c5fbca97817976e067c7e8c75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GenericCliToolCard.GenericCliToolCard: FunctionTooLong \u2014 GenericCliToolCard runs 503 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 403 over it, 5.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GenericCliToolCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"166a9d0833d02c203c5391ec0e7de2e03964a36e881bedaa3aac487a7f448927"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.ProvidersPage: FunctionTooLong \u2014 ProvidersPage runs 491 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 391 over it, 4.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"06824f0ca2ef827374a6bce7d8a1818982f2c3bf66ca302f487af396eb570767"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TtsExampleCard.TtsExampleCard: FunctionTooLong \u2014 TtsExampleCard runs 490 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 390 over it, 4.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"658de4fa9a26a3ed095710db38df79aec911d2b33513448b8f5f3b49febf895b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CoworkToolCard.CoworkToolCard: FunctionTooLong \u2014 CoworkToolCard runs 485 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 385 over it, 4.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb54e3cb84542ee15d799dbbf29a00013c7be2356bea345b4628299ae2c4301a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GenericExampleCard.GenericExampleCard: FunctionTooLong \u2014 GenericExampleCard runs 475 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 375 over it, 4.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae58858a1ceba66bf62a0b6009f24655994940df0d42a91921297811c70f6f7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: KiroAuthModal.KiroAuthModal: FunctionTooLong \u2014 KiroAuthModal runs 473 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 373 over it, 4.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/KiroAuthModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"071b42e7dee539dcaed5e20493ae01cd2d617f211e0e391e8758229fdc4ee7b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KiroExecutor.transformEventStreamToSSE: MethodTooLong \u2014 transformEventStreamToSSE runs 443 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 343 over it, 4.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"606a9de3355c37dde62b37537b70f4f6efb9492ba28b91c8a6a98884f8431666"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelSelectModal.ModelSelectModal: FunctionTooLong \u2014 ModelSelectModal runs 418 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 318 over it, 4.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ModelSelectModal.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8125cfdb797955268879ac3ddbfded748b09cb270aa952b28c8d815efedda577"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: route.POST: FunctionTooLong \u2014 POST runs 412 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 312 over it, 4.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a664d552f45c8700131909e9867e3bcf73d24dd87540206a95786378d8ed7a23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: OpenCodeToolCard.OpenCodeToolCard: FunctionTooLong \u2014 OpenCodeToolCard runs 403 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 303 over it, 4.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"76352e4c8d6b3a11c2548cb44c4c44e528730d2afee6b12ed5366335bb5c64f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.CombosPage: FunctionTooLong \u2014 CombosPage runs 401 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 301 over it, 4.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"646b1349c08ebd5e55b1420df43af6c3e164faa2a47e0c18f3d03af05be1f18e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AntigravityToolCard.AntigravityToolCard: FunctionTooLong \u2014 AntigravityToolCard runs 378 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 278 over it, 3.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/AntigravityToolCard.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f78c11fe3a4e51e842a52e16420cfb33f1f983b5cbdd692ea5214561334b2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClaudeToolCard.ClaudeToolCard: FunctionTooLong \u2014 ClaudeToolCard runs 364 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 264 over it, 3.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0796df048450292bd6242c16dfe0652e3cbd5be60efa393baa5b6f9d7c1b95a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RequestDetailsTab.RequestDetailsTab: FunctionTooLong \u2014 RequestDetailsTab runs 357 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 257 over it, 3.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc904f16722575333e0c77ef4315847c03a8c53a5d4c7d24bc94ec6eb6ef8f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DroidToolCard.DroidToolCard: FunctionTooLong \u2014 DroidToolCard runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f1fa73b2e2df2d01ba3adbcb665d3809b6a289ac8b51fc1f510bd0205ed6eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AddApiKeyModal.AddApiKeyModal: FunctionTooLong \u2014 AddApiKeyModal runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fda27f2e8b8fd4e94b17d7a04d0effe9799eb2e8eda70d13dc3a04f4adfebf1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DevinCliExecutor.execute: MethodTooLong \u2014 execute runs 322 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 222 over it, 3.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4ca529c4bbe3ee27d5a9f79cd26339daf1f09b4be3a7991eadb0b1235ac6a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: HermesToolCard.HermesToolCard: FunctionTooLong \u2014 HermesToolCard runs 313 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 213 over it, 3.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3b654007acee2bd090db47d8d7463984957b73b5207e544f8d4318bdbdbe20"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ZedAuthModal.ZedAuthModal: FunctionTooLong \u2014 ZedAuthModal runs 312 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 212 over it, 3.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ZedAuthModal.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdb568f841fbcb244339909f346e093b3c545f98211f342685fc2e8a7f4c53c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: [id]/page.js: FileTooLong \u2014 1555 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 98% of them inside a single declaration: ProviderDetailPage (39-1969). The bar is 1500 significant lines; this is 55 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c4cac08077042574caeb7bc5dd6d3d2a55ead10c46d5bd31f36eb5a6ba9949"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.ComboDetailPage: FunctionTooLong \u2014 ComboDetailPage runs 305 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 205 over it, 3.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0477312c099f42b229184f96b296ed2df64c862e5aa09c165c7eb6f26850ef9b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: OpenClawToolCard.OpenClawToolCard: FunctionTooLong \u2014 OpenClawToolCard runs 301 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 201 over it, 3.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0158e47a00940797f5c5342ccdd27f914a1fa4b9105ef52846dbd6f513d66d9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Sidebar.Sidebar: FunctionTooLong \u2014 Sidebar runs 299 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 199 over it, 2.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Sidebar.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"024491148800345f6e4e67dd590807398d43c549d723f6cfbe9da9be755cf3a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: XiaomiMimoAuthModal.XiaomiMimoAuthModal: FunctionTooLong \u2014 XiaomiMimoAuthModal runs 299 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 199 over it, 2.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/XiaomiMimoAuthModal.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f85d9c34cc4fecf810787ce436db7f1841b31250abce32d474978bd68b0557b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: stream.createSSEStream: FunctionTooLong \u2014 createSSEStream runs 298 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba229d51751d3c4c4d66d1cdff710c36684d720e7471108cba99e596e4ce094b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: JcodeToolCard.JcodeToolCard: FunctionTooLong \u2014 JcodeToolCard runs 298 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8c33564c04ee7b63fdf1c45e6f8be9b79d61ca18e6b46fbad60bda1b1c48d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chatCore.handleChatCore: FunctionTooLong \u2014 handleChatCore runs 294 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 194 over it, 2.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"450d45efe9c01102b1c59dfb208ae906fc80d24d3daf965d6a46e8d0a743c97d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: utils.parseQuotaData: FunctionTooLong \u2014 parseQuotaData runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"5564cc2d6ce2c86cd3ca74d51214dab74cc16e0dee5c4297d3375a6dd81aa4dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: profile/page.js: FileTooLong \u2014 1414 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ProfilePage (22-1702). The bar is 500 significant lines; this is 914 over it, 2.83\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71c54ac9a8e40566bd20252eefdf73c24bffa8c7c37639df623eac5f557cb11"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageStats.UsageStats: FunctionTooLong \u2014 UsageStats runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bd0c3f4951cd6b4f087792ae1359a6afe1237b7fbd5ae247f8f9aeb6765e5c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: responsesTransformer.createResponsesApiTransformStream: FunctionTooLong \u2014 createResponsesApiTransformStream runs 267 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 167 over it, 2.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/transformer/responsesTransformer.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b56cad4c0eb8d654ecbe9553e624b0b34757922ad39da3145205b35e2ad101"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DeepSeekTuiToolCard.DeepSeekTuiToolCard: FunctionTooLong \u2014 DeepSeekTuiToolCard runs 267 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 167 over it, 2.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"27662fce78f36c91d5253a797e92b6892bffd9947a60f2724cd4233d446def31"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GrokBuildToolCard.GrokBuildToolCard: FunctionTooLong \u2014 GrokBuildToolCard runs 267 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 167 over it, 2.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00c4f0a88131a3302089eb3adff92bb53e720a51a4456c679c423f23f70772b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ProviderLimits/index.js: FileTooLong \u2014 1330 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 91% of them inside a single declaration: ProviderLimits (154-1653). The bar is 500 significant lines; this is 830 over it, 2.66\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdce99e062724b63726ae89e1b763641760c8598672e845eadcc28607eedf9e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MitmServerCard.MitmServerCard: FunctionTooLong \u2014 MitmServerCard runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"332f6f96b235aeb86754c1b43e21bab01401a6ce8e7673ecee03db34f6fa1061"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MitmToolCard.MitmToolCard: FunctionTooLong \u2014 MitmToolCard runs 255 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 155 over it, 2.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8dd97e2d2803bd0471c50985c247422665ada8d2d44fa914ddf17642a15405"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CopilotToolCard.CopilotToolCard: FunctionTooLong \u2014 CopilotToolCard runs 253 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 153 over it, 2.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dac3fe5f40e893f67c96434e4982a7f716bae4f75f7e73439e34a89b6444526"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usageRepo.getUsageStats: FunctionTooLong \u2014 getUsageStats runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a8afda1e92ad6af584a1d85464b877567cfb6b3b7aae0ebc3522d292713ff4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SttExampleCard.SttExampleCard: FunctionTooLong \u2014 SttExampleCard runs 244 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 144 over it, 2.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/SttExampleCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"179c7453ab1ec2562c5c5882dec7e7ccd5ffeb960c4fb79053f1e9e71857e58c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClineToolCard.ClineToolCard: FunctionTooLong \u2014 ClineToolCard runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"767c08cda78206ad2f254194b97d975d698eb0ef87b425cc53fbabc6df2bdd2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EditConnectionModal.EditConnectionModal: FunctionTooLong \u2014 EditConnectionModal runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/EditConnectionModal.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d537a42fe774e2d20fa26743d382d979154a27d3270e5a196778ae44fded10"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ConnectionRow.ConnectionRow: FunctionTooLong \u2014 ConnectionRow runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"be97fcb5d50e9b39d4ca47aeff99192efe479e82076f51554037600a898ec379"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TokenSaverClient: ClassTooLong \u2014 888 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 488 over it, 2.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0fd3118b0becc796b90d00cefda733859a75265926004703ecbd43ba181701"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: KiloToolCard.KiloToolCard: FunctionTooLong \u2014 KiloToolCard runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ce5709d7d1f1e2bf2c58e8441bb77534ea049d4ec148bf5a21b386d917e738"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DefaultToolCard.DefaultToolCard: FunctionTooLong \u2014 DefaultToolCard runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DefaultToolCard.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"14217bd1fc562d16b63fe1d3b3e5b4791aee7c96eec0c6514ac25fd2f78aaa59"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: endpoint/EndpointPageClient.js: FileTooLong \u2014 1064 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: APIPageClient (21-1297). The bar is 500 significant lines; this is 564 over it, 2.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19739045e06409e370791fc5b676e0d4a90cd03f37f0662d7128904d2972bc5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.LoginPage: FunctionTooLong \u2014 LoginPage runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/login/page.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a119426e68d3d7dc6e7d63b1d7fa562bc24023d2a0456b54a905a8b69821fb75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PxpipeClient.PxpipeClient: FunctionTooLong \u2014 PxpipeClient runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/pxpipe/PxpipeClient.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3d581dda8c52344a43e37c51ca931f886527022686418cbc260e0a98648371"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: route.buildModelsList: FunctionTooLong \u2014 buildModelsList runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/route.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34e367873c3cb2ef7490cdda6c918bf9f550a45d2507c8e47f09156856116f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpMarketplaceModal.McpMarketplaceModal: FunctionTooLong \u2014 McpMarketplaceModal runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/McpMarketplaceModal.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3621a43412ff084e6325357ad2968365edf560f4fd4e1ebb228779375421992d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EmbeddingExampleCard.EmbeddingExampleCard: FunctionTooLong \u2014 EmbeddingExampleCard runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/EmbeddingExampleCard.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"18819913521601e2e08a4ef0890707dc94ed0f52061d1bc333d847651ed02490"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: combos/page.js: FileTooLong \u2014 988 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 488 over it, 1.98\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87105e602438d5502df97d1d4d061326e15e701ba7f9d0ddcb5b5dbb274e902a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.TranslatorPage: FunctionTooLong \u2014 TranslatorPage runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/translator/page.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be82591668a6e0493d7c46278db4c2f71db49bc23a013c9414a9af639c895af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: executors/kiro.js: FileTooLong \u2014 957 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 75% of them inside a single declaration: KiroExecutor (230-1210). The bar is 500 significant lines; this is 457 over it, 1.91\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bc05c3c0fb8fba5e676405f6e1d9eb4a1db50d349025d527c9df7e3ba3ffd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: route.POST: FunctionTooLong \u2014 POST runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ed2e110b88f921a870e5367f0a423f3eccd24ba490f7683875ea9a36261545"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: token-saver/TokenSaverClient.js: FileTooLong \u2014 898 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: TokenSaverClient (13-1036). The bar is 500 significant lines; this is 398 over it, 1.80\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56292236357ea9e4bd132579f097f38e9b8d0f76ee52c24b8f2ca15a779c351"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KiroExecutor: ClassTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 318 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"55acd616d050d15dd9ae2ae8e18a5e582a87b26072bddb6c4d2079895e05f6e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BulkImportGrokCliModal.BulkImportGrokCliModal: FunctionTooLong \u2014 BulkImportGrokCliModal runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/BulkImportGrokCliModal.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"954568127d5d9ac975a787ac9dcc0fef453a38fe33400a837580eae7a1d9d6c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy-pools/page.js: FileTooLong \u2014 878 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ProxyPoolsPage (30-1063). The bar is 500 significant lines; this is 378 over it, 1.76\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1266ee3a1d2f1d0ba27e105a8dc998659bbb39a11478f994fbb1c2f653d6a1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: executors/cursor.js: FileTooLong \u2014 872 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 372 over it, 1.74\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb8cb9efec0c32cc044b8e73f1e3ecc013a78a21ddc7218a840eedc4f36954c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OAuthModal: ClassTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 297 over it, 1.74\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e37c4e1a0a67958805d1347706cf471e7ed814a1cb8d6395a532cacb02c479"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/page.js: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 363 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"806fde8186ec2a02980940f77333a364c5af026bfd914653a525c3a146206ea1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: QuotaTable.QuotaTable: FunctionTooLong \u2014 QuotaTable runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaTable.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5d97793eaeb1dcae6146cc4bd4f5f54019e03e6262fdb29f0f2f8eb0a3cd14"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.NewProviderPage: FunctionTooLong \u2014 NewProviderPage runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/new/page.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd038fa9c9eef8975200f2c658f4c6fc9bc6f2e4fcdab50d8b012eb1e6233924"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PricingModal.PricingModal: FunctionTooLong \u2014 PricingModal runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/PricingModal.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc560888e5f516ec1502cc070f6736512720d0ec15d3fbfc8e7f5b56b729e658"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ConnectionsCard.ConnectionsCard: FunctionTooLong \u2014 ConnectionsCard runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcdfa8742ff664ad0cb512c833ecd09c9465405f0e5cdba2862aa17685a8b7d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BasicChatPageClient: ClassTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 233 over it, 1.58\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2695caefa508ad0f9ba6edfdefebac052655a157dd7c76eae7e5edf156236996"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.CapacityAdapterCap: FunctionTooLong \u2014 CapacityAdapterCap runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3193656bd64a84d43a65438b507a62cf743e05ac057626c1e6df537e972860"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.ComboFormModal: FunctionTooLong \u2014 ComboFormModal runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b74c9724c54b047fd32b09eb1e0d6d208948f9ba464f9b0e67d8a026321c036"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CursorAuthModal.CursorAuthModal: FunctionTooLong \u2014 CursorAuthModal runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/CursorAuthModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f99b25cfe4e11db275d6b41c2d40f0cbaa3efc8d9a9877fdbd5ca002f8f567"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-to-kiro.convertMessages: FunctionTooLong \u2014 convertMessages runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-kiro.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"432736b156f0377a65ebed4226c2387c0ea4d542d19df828fe2cfcee73843864"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: KiroSocialOAuthModal.KiroSocialOAuthModal: FunctionTooLong \u2014 KiroSocialOAuthModal runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/KiroSocialOAuthModal.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a38db9d45bf55a4b8cef0c47faa75645f017d740de1c7e778baf4b956143140"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: basic-chat/BasicChatPageClient.js: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 85% of them inside a single declaration: BasicChatPageClient (169-967). The bar is 500 significant lines; this is 249 over it, 1.50\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"767fa4575c11c829e1c5157fb9b0b85ead031c9580301512c1a7798dc861d460"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AddCompatibleModal.AddCompatibleModal: FunctionTooLong \u2014 AddCompatibleModal runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/AddCompatibleModal.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c6261ed6dc1cb67dfac3eaf4ce33126440ca42162f802e773c38199e99f4e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: modelSelector.selectModelFromList: FunctionTooLong \u2014 selectModelFromList runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/modelSelector.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fe2e9c021f04a6a29ce91ea3aedc29a96bd21a2c393ceb3b990b8bd013b871"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/OAuthModal.js: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: OAuthModal (38-991). The bar is 500 significant lines; this is 228 over it, 1.46\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07afd0f94fbd61b1e3f7cb3e76d7dfc55688cf7b88cdb158eb5bdef32b4a0a29"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ToolDetailClient.ToolDetailClient: FunctionTooLong \u2014 ToolDetailClient runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bd94afa49c2dea24a37984e65d306c16ccf929f18f4b94f7c221685b6312ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-responses.openaiResponsesToOpenAIRequest: FunctionTooLong \u2014 openaiResponsesToOpenAIRequest runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-responses.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d969f5294b87b92e71622b014154753d696ba66bec0b8814ed65a263a4980705"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GitLabAuthModal.GitLabAuthModal: FunctionTooLong \u2014 GitLabAuthModal runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/GitLabAuthModal.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffe304ad4fc68d99a08c67c49b1b119c3b763f422f892d89e921ddf4ba4d334"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProviderLimitCard.ProviderLimitCard: FunctionTooLong \u2014 ProviderLimitCard runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/ProviderLimitCard.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0ccabac1c424ecd41647bbe2735f60765e5291e629d3f14731759bf4efb7fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/cursorProtobuf.js: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 195 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/cursorProtobuf.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecce7ff6fd3c5da1d54314e426b1178a4ba9a255f226ebb66b5013b1b8bbd9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: imageGenerationCore.handleImageGenerationCore: FunctionTooLong \u2014 handleImageGenerationCore runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageGenerationCore.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1bd95aa767f45afc2702bdcade466707bb6d2ed877af5a2282202054bdf3b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.PricingSettingsPage: FunctionTooLong \u2014 PricingSettingsPage runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/dashboard/settings/pricing/page.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1729655068b4063c4d86a3480957b57fb194ed7a6f461ef591f236c533b42e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: auth.getProviderCredentials: FunctionTooLong \u2014 getProviderCredentials runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/auth.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"395f9b22d08c81df6c56472eebf71102af8913ac3d8189fc38e66dc65e4a3255"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: route.GET: FunctionTooLong \u2014 GET runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3602fe11fa9b1ed8ed9c0426004c6c31fbecdfa4fff2b987d6db6e43cd1f7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CustomConfigCard.CustomConfigCard: FunctionTooLong \u2014 CustomConfigCard runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/CustomConfigCard.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d644d52c9ee331cd04cb493a3d9f3b936f4b9686bd4d55909659c4af844bea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AddCustomEmbeddingModal.AddCustomEmbeddingModal: FunctionTooLong \u2014 AddCustomEmbeddingModal runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/AddCustomEmbeddingModal.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0b73c239530d0d212bca3c18bda94009cc034944944ffdbf1fbc14d088d821"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelsCard.ModelsCard: FunctionTooLong \u2014 ModelsCard runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelsCard.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5645182443f9d1fadb4bfd6246f10e55cb0690c35690aec12dc8fefbb7c3e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: build-cli.buildCliPackage: FunctionTooLong \u2014 buildCliPackage runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/scripts/build-cli.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab652e0dc2547c36990dfb6fb45b950d49c7f27368a284dd6e6462c69ccb087"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelAvailabilityBadge.ModelAvailabilityBadge: FunctionTooLong \u2014 ModelAvailabilityBadge runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelAvailabilityBadge.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a99647758c980adcdf39111446670b1183bd78100567f1d623beb072ca82c2c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodexToolCard: ClassTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 126 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94a6857bafb7bdf2c4584767f5b62e3075f393e1b5117e9b6a16ff3849ab1a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AddCustomModelModal.AddCustomModelModal: FunctionTooLong \u2014 AddCustomModelModal runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddCustomModelModal.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e268e079df021b8b47399879f7316f6649609a38f8e89ff6dbdf2a2f293e2d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/server.js: FileTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 146 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/server.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfff6ad1bac96aaa620c28398e1547069ce0aa06a41763de44c92acbcf17dce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Header.getPageInfo: FunctionTooLong \u2014 getPageInfo runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Header.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b310c9251b60514b5a3b8e903b418bf37c306a500cecf82d3650f101b442ae32"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BaseUrlSelect.BaseUrlSelect: FunctionTooLong \u2014 BaseUrlSelect runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/BaseUrlSelect.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bfb46e5d555a68560586c94a3c18ce726d752c6d92e57f5e728a89bf00f30f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GenericCliToolCard: ClassTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 103 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GenericCliToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dbab8dffaf52fc3bcd44ca89cda7917a3ef3ea0bb74479f9696f873a300f3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FlowAnimation.FlowAnimation: FunctionTooLong \u2014 FlowAnimation runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/landing/components/FlowAnimation.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f05a54cb8a2ad28b40ab9d5f923d2dfb528a46f5bdabe274c3902605659160"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Header.Header: FunctionTooLong \u2014 Header runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Header.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fa216e998336354a56399cd5a3107ce9ea09da47bb0d5debcc9eae3d9bcc50"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TraeExecutor.execute: MethodTooLong \u2014 execute runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/trae.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"023091294f7a804f5b7f1a55158e60b7bb306894631ec13358d82a97619a12bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.ComboCard: FunctionTooLong \u2014 ComboCard runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed506d78951e8747a7d4d483c392d5ebb90e3eee70b29b52fd073ce71c06da23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mitm/manager.js: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 114 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"764920a6d15e31358efe491849ac82b41b6a77c068d59152827e4344a98e0fe3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TtsExampleCard: ClassTooLong \u2014 490 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 90 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd7da63b4ac9d86a6de1bf1d921cd0b034441fe8f618c2e84d61e5809516370"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.handleSingleModelChat: FunctionTooLong \u2014 handleSingleModelChat runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/chat.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2b69b9bc88e7013417d0b07b7fc25c7ac6107827055ea2ea2baf9c9f4c3c33"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoworkToolCard: ClassTooLong \u2014 485 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 85 over it, 1.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99101c014a1b39b26293bb7d3dcc500ac11e4d04b5f398be93af1c0a5b62502a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: geminiLiveStt.transcribeGeminiLive: FunctionTooLong \u2014 transcribeGeminiLive runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/geminiLiveStt.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"622f6c6d456eae6fda49274377f57b7ffa061e3b23a38708c8bf9fcb32fd099f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-to-gemini.openaiToGeminiBase: FunctionTooLong \u2014 openaiToGeminiBase runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-gemini.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ae222bc628f7db589e0613f414769d0abbe8b2bfa6f1056756d0538fdf3dfa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: kiro-to-claude.kiroToClaudeResponse: FunctionTooLong \u2014 kiroToClaudeResponse runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-claude.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd36a288b01d446c38a09387f2e3534af0ff0e7300c333542c8c0ff2174e7fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repos/usageRepo.js: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b16c8ece18199d57bb94f1998dcdab5e3b2761d541559b343ed1ec8b8f2bc93"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claude-to-kiro.convertClaudeMessagesToKiro: FunctionTooLong \u2014 convertClaudeMessagesToKiro runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-kiro.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bee697c459248327ca3a450cc0800f614e13f407d52fbd8d8155366d3e8f98"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EditCompatibleNodeModal.EditCompatibleNodeModal: FunctionTooLong \u2014 EditCompatibleNodeModal runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/EditCompatibleNodeModal.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f159aa8c2f5a3bd969e33a41841b9f328261a5f1c26d3ef5c707d6d76311fbf0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GenericExampleCard: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 75 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c54973533cf6e99787b03e1f6c9b98ebb14083aef93bb289bca018ce9480a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KiroAuthModal: ClassTooLong \u2014 473 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 73 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/KiroAuthModal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"153de3352e871b6168c41996382f504341f7d9e1a4869157587404c294bca278"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claude.prepareClaudeRequest: FunctionTooLong \u2014 prepareClaudeRequest runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c0872781be0762c83b7a3308d749db67ea3c5b25f282312dfade1e537cbe18"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ConnectionsCard.ConnectionRow: FunctionTooLong \u2014 ConnectionRow runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3daf0c3a821fb8a4dc6f86433a38f42f01943d49fb448e4f445fa9e334804dd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UsageTable.UsageTable: FunctionTooLong \u2014 UsageTable runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/UsageTable.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11076942bf04b491ef4add3d7eb62b61adde856011b5d4db7f3a7a37b8fb281"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/cli.js: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 75 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8726e807af3aba2462bd7bdc14be6aa96e2acd22daf9064463a9a3152e1c1540"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Pagination.Pagination: FunctionTooLong \u2014 Pagination runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Pagination.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08cb801f8ba3b7e0272575e750acce1f68ec5b97106a5bf3bb77bd1cc9efd41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tailscale/tailscale.js: FileTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 70 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46adb1900b03dcb44c308f95d8aa03ebc9ce0897898efc177c9531257ce332b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: grok-cli.parseGrokCliBilling: FunctionTooLong \u2014 parseGrokCliBilling runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/grok-cli.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9117a6f9cda19d56b30de3352bfb2cc32af7ff06aeeb338681c63bd1f8fa562"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claude-to-openai.claudeToOpenAIResponse: FunctionTooLong \u2014 claudeToOpenAIResponse runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/claude-to-openai.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c1ce65ddcad76a6717635e0d3342f0e136ae1b8fb2c60046eea49135391783"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-to-claude.openaiToClaudeResponse: FunctionTooLong \u2014 openaiToClaudeResponse runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-to-claude.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2334f9498b7390fb54a069522d5b8dc1179feb78a6793c29a8cb1e70dace32"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sseToJsonHandler.handleForcedSSEToJson: FunctionTooLong \u2014 handleForcedSSEToJson runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf86c5d4b60c5b5d7b4954e6e84467e2033ba86a3b895bdab8f9489a46ef56e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CompatibleModelsSection.CompatibleModelsSection: FunctionTooLong \u2014 CompatibleModelsSection runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/CompatibleModelsSection.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"170f735565ef3ab439c84f2746278b90fe88b9450c5be83862fd93844439a0f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.MediaProviderKindPage: FunctionTooLong \u2014 MediaProviderKindPage runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/page.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef32ee55d65ae74c934e2d66a0404c13a065c58f43d5c067e3341fa371a02801"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: menus/providers.js: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 51 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/menus/providers.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01785ddf805070da0ff36c025d2142363347d33a7f12ab0ee8476cf8edde681"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WindsurfExecutor.transformToSSE: MethodTooLong \u2014 transformToSSE runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/windsurf.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ebfd8fc1ce71beeceed4401af2cbbc1b0560e2868fa1055e051d1e316c41e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/CodexToolCard.js: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CodexToolCard (13-651). The bar is 500 significant lines; this is 36 over it, 1.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a9ea6714a06dc1f60a3c573c036164bf3535eb6214af390f3542ea3cc524a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AntigravityExecutor.transformRequest: MethodTooLong \u2014 transformRequest runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/antigravity.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab8840c921110a2bb6a377c5fdfaa99068107858262a8be2cf20d02f191a923"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-responses.openaiResponsesToOpenAIResponse: FunctionTooLong \u2014 openaiResponsesToOpenAIResponse runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a1ec1ebcc2022afac4e03fc2a5bd416474c1de97442b9fcf51e2ca3cab5526"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LanguageSwitcher.LanguageSwitcher: FunctionTooLong \u2014 LanguageSwitcher runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/LanguageSwitcher.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8c010b5b2a9a21450f3c00a59f497968640c436da28b2ca9aaf7bd786c173f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelSelectModal: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 18 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ModelSelectModal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0d2e4b7818fccc2af9b8906821687d520914f6dfefb8e5a82a869fcda823be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: executors/devin-cli.js: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 64% of them inside a single declaration: DevinCliExecutor (305-823). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"149ba4d952febed4ec1b301a31184c5d945b26c55152ea7a54c644a849957f6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/GenericCliToolCard.js: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: GenericCliToolCard (12-636). The bar is 500 significant lines; this is 12 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GenericCliToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfda5d641ac1af1aedae9c84b906ca9631a7ebd146234a008b11c3d0071f0bfc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/TtsExampleCard.js: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: TtsExampleCard (21-612). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f8c0026f385be5aa236c1a3852a174b9cfd5062a40b392b501e8216eee060a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.ApiKeyProviderCard: FunctionTooLong \u2014 ApiKeyProviderCard runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"9959b810c9f1bad362109b2b9c15838c8bfaa37d1d4bf9ed3b9f203bbd3c2b73"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: route.POST: FunctionTooLong \u2014 POST runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/provider-nodes/validate/route.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"66be94b22cbaaf6af383a6450ce4e645515e3661fe797fb98369b41a45e21590"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ComboFormModal.ComboFormModal: FunctionTooLong \u2014 ComboFormModal runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ComboFormModal.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5babfc1efe87666bf012e21c9e534992d3e0ce821cdc56424b9608dfbbda9ff0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenCodeToolCard: ClassTooLong \u2014 403 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 3 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cdf3ef1cd1384101ab94e7a5ac30caaf53923c123e3909cee2cc7bda94e7de"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 tests/ runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: INSERT ${N_ITEMS} provider connections: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/db-benchmark.test.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9d0265fb70e75d1505167a2fa7235c4b9ecb2f269ee2ab0d6d0086b4f62b50"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: READ ${N_QUERIES} filtered queries: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/db-benchmark.test.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab03667031390c1b813a844701369e00457fcaa9c84cd233c2ab3ff8614332b0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: READ ${N_QUERIES} by id (point lookup): This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/db-benchmark.test.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d1ae6412034e662270613f4db79ff655a364c29462ca3a6c858dcaf14bcf44"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: saveRequestUsage ${N_ITEMS} entries: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/db-benchmark.test.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5be37a157bfd0aca5d12f863f3889d20a3cd4c2775c8117b2c92d02f740bb4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: getUsageStats(24h) repeat 50x: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/db-benchmark.test.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fa056fa907af9259615f5cf77a5713cee1f88f23cdd694b4355ce9e0266a30"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b322f58e7ef05a23576449e5399a66d0d6b89d59570847b1b21eb6b5c648abed"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"062088a175fe397ac5783ae1d1b9870c840240d15222becf061343a456cf3915"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64c7fb8ce1cd15e1da9e4609b5c2d6ea249e5c4cfc37fee13011ee22e3f994e7"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0cd3bff70d2378e44a387eeee21a19ec457bac16e2b78a4e2a77e72307631ec0"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98b9a97a8544657ae3f92bcca4e2fa898b0e983457bc18d076ac862b30f036f5"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0447361421dbd42b9a3de20e8b29803c04b2974c71d4b0736eaf317ba2d8abc3"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e8079a943fad5fb5019673f649f4e26b7c62441e3a14b7acf8699a4caaaeb129"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"218f627bb8c4f30146a64337cdfe1c7043e1b21b8d987a27efff3defd5d101eb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d49311cb85c70e9a88313444332e41b8a6f231fbded4ecfda4e18bc3b281f43"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f248f7b7b13ccccc47389334dd147b5d19706025c97219585df0db27cb1d4cf9"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ced7b819b156448d3777fee1f5b21297df7bc39a3c6525e3472603902fbf9d0"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6182f99a13493cc3f2084a714729b0080f83b331d6b6632d01cad792150475c6"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c34b72e77f4391ff889112eae64cf6ec0cc2c3667fa70ac005111a63d737a918"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fde5c75fa239a15e83ca7dd2a6e6dd45f8525f660bdec71cb3e2f088d44e8326"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef1faa10fa1a1c895b835c42cc5a8f4f34b649cb43ab84008532b5200453d198"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b97fa5da5dd086db1dc60fb2f1edde051dd4ed47f6b12db3a66baa22ac828ffb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"57ea2228bac9a7e173866b7def7efc3e96666cf10bd924a0ba7c4104d63a35e9"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/providers/[id]/page.js: src/app/(dashboard)/dashboard/providers/[id]/page.js changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 364 in page.ProviderDetailPage at line 39. 7 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/providers/[id]/page.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fbf4bd9839049755648df3fe7ba0552f7cf2a8c989e66db927473b71aec798"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/chatCore.js: open-sse/handlers/chatCore.js changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 166 in chatCore.handleChatCore at line 63. 13 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/chatCore.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5daf7866e41094f3f915dea10e5d80ddc443eb1883d8d8edd41e9518a767993"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js: src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 158 in utils.parseQuotaData at line 356. 4 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb8501226a7eb4789143a64bf36ff4cfd4979f2088859a0475ec4e23130819d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js: src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 224 in index.ProviderLimits at line 154. 4 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac697fb6dae69c01c59975eededae974afa4ddb24b0d4dfb2b364392982e0f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/providers/[id]/test/testUtils.js: src/app/api/providers/[id]/test/testUtils.js changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 142 in testApiKeyConnection at line 496. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/providers/[id]/test/testUtils.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/test/testUtils.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a352e9ed1a701abc49118921745fac0b0ce7fd00a0e6b6c6233cf9e308fcc6a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/components/OAuthModal.js: src/shared/components/OAuthModal.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 205 in OAuthModal.OAuthModal at line 38. 3 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/shared/components/OAuthModal.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/OAuthModal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49af675deababf1e1bb79afb53bd3ba60c1fad419614f3ebcc4a757309b60c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/utils/stream.js: open-sse/utils/stream.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 148 in stream.createSSEStream at line 44. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/utils/stream.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0c6849d961a4d2029a12e886c24d1eaa39d3d94ac1f0498a787fd36c7aad90"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/v1/models/route.js: src/app/api/v1/models/route.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 100 in route.buildModelsList at line 319. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/v1/models/route.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/route.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeddfb00f901ac35787a1f9bb87f3cc40ca396abda7bc0bfa4b15080af1f7a23"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/concerns/thinkingUnified.js: open-sse/translator/concerns/thinkingUnified.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in thinkingUnified.applyFormat at line 254. 12 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/concerns/thinkingUnified.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/thinkingUnified.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"6406b640630630e0ae9356879234c3c4897bda48430e408dbc843233ef842121"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/kiro.js: open-sse/executors/kiro.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 172 in KiroExecutor.transformEventStreamToSSE at line 629. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/kiro.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a21d36663227848cd8939af4742b44827c9a85daa9b8b88562ed4abd0c3b24"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/lib/db/repos/usageRepo.js: src/lib/db/repos/usageRepo.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 162 in usageRepo.getUsageStats at line 347. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/lib/db/repos/usageRepo.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c0006a1f98681239f94a888d6c55b4de5115ba1de415cbd69535f843ebfed7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/formats/claude.js: open-sse/translator/formats/claude.js changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in claude.prepareClaudeRequest at line 485. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/formats/claude.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb2b862c1b8b5ed259962a53b0b979f4dc90b2d5500d19f4e5838647cb79246"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/request/openai-to-kiro.js: open-sse/translator/request/openai-to-kiro.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in openai-to-kiro.convertMessages at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/request/openai-to-kiro.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-kiro.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6109d848064e69513a07b0c812a44317a8e1cb755bd411987d9812cf9ea45c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js: src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 120 in TokenSaverClient.TokenSaverClient at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7807d54874cb0b87a1ad88e99aea9d853749ab599bf2dcbba5a2b261a307ccb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js: src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 141 in GenericExampleCard.GenericExampleCard at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9201c375c0b5ed3c8ed40bb9b6fdfdab946860f7e1a7c05409486f4a0e81bbe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/request/claude-to-kiro.js: open-sse/translator/request/claude-to-kiro.js changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in claude-to-kiro.convertClaudeMessagesToKiro at line 45. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/request/claude-to-kiro.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-kiro.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"09325864890a37ea2415b5ec3940d1f5639b2cc587ce286484f2f6dec360cc36"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/providers/validate/route.js: src/app/api/providers/validate/route.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 138 in route.POST at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/providers/validate/route.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0892678b7806e4768bfe37d6c483400e986ca3dc1f65e39e82981e768494e3e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/oauth/[provider]/[action]/route.js: src/app/api/oauth/[provider]/[action]/route.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in route.POST at line 296. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/oauth/[provider]/[action]/route.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8739b91f6bb31805ded281d84b00a50cc1bf7bb85c9cb20080bd08e96547e9d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/providers/capabilities.js: open-sse/providers/capabilities.js changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in capabilities.getCapabilitiesForModel at line 623. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/providers/capabilities.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/capabilities.js"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcda4a35abaa1cd703992ea04b492fbe549457f88a54e4c393f2bb5409a72d04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/providers/page.js: src/app/(dashboard)/dashboard/providers/page.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 107 in page.ProvidersPage at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/providers/page.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"df52cc076afce18de7da5a5377521fdfa80bef62e521a2fd4b59fdda348c589c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/combos/page.js: src/app/(dashboard)/dashboard/combos/page.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in page.CombosPage at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/combos/page.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff796de7f347082455f392f008fd0dc29c17194c0e348adda4acdfc9bc1aa99"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/request/openai-responses.js: open-sse/translator/request/openai-responses.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in openai-responses.openaiResponsesToOpenAIRequest at line 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/request/openai-responses.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-responses.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f46faf74918df99f789538b924825e9f88dcc24c77064c14e039b1eafc1010"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/chatCore/sseToJsonHandler.js: open-sse/handlers/chatCore/sseToJsonHandler.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in sseToJsonHandler.handleForcedSSEToJson at line 183. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/chatCore/sseToJsonHandler.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f585c6b7ef3fa0d8aa58350c4f62b7f7030ca0e6e9a0038051f4c54b63f87ade"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/sse/handlers/chat.js: src/sse/handlers/chat.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in chat.handleSingleModelChat at line 167. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/sse/handlers/chat.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/chat.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c1d36f3d588f4c62280dfc4a60b218e83208b822329a2ad6780a0dad547b8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/sse/services/auth.js: src/sse/services/auth.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 86 in auth.getProviderCredentials at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/sse/services/auth.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/auth.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb07226be5221dc9885981af90f43bf5d6db030171aaf737233496c090109a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/profile/page.js: src/app/(dashboard)/dashboard/profile/page.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 245 in page.ProfilePage at line 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/profile/page.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc53a8d4e7fb59046bf180052a5121b6aaf2317a6c936aa8ad2462cb7eff201"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in CodexToolCard.CodexToolCard at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a881b3e8f4e7b80e3362bb5548e8795a7b1bdb40e7f40a435b577b747e13db9b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/antigravity.js: open-sse/executors/antigravity.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in AntigravityExecutor.transformRequest at line 137. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/antigravity.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/antigravity.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd3843ec46d0e07c264d18781e663b8810d53f727c59c18b71a1b4b452cba6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js: src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 223 in EndpointPageClient.APIPageClient at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c8482e87d98a7468d980f9c7ac83861d4fbc500165634bf1b2853db5a31ef3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/components/ModelSelectModal.js: src/shared/components/ModelSelectModal.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 108 in ModelSelectModal.ModelSelectModal at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/shared/components/ModelSelectModal.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/ModelSelectModal.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"563a0d495a2457c11df5f16d4a82647f49f118aaec2965fea612e8ddeaf189b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js: src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 102 in AddApiKeyModal.AddApiKeyModal at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"97af04ae2bc27f345dc7d85329ed21692550be79099aec43da23752ee0debe9d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/request/openai-to-gemini.js: open-sse/translator/request/openai-to-gemini.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in openai-to-gemini.openaiToGeminiBase at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/request/openai-to-gemini.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-gemini.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1588476768870f75281484d5b5fe78fb6dee7678c1b9feb1075f93bf66d320e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/components/Sidebar.js: src/shared/components/Sidebar.js changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Sidebar.Sidebar at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/shared/components/Sidebar.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/Sidebar.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"385599589e2c4345d69604a107db0ea2b66413de7ac30c33158cdae386978350"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in ClaudeToolCard.ClaudeToolCard at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3771c53f9428e528c42cef27b0bbe083760ee6c5d33c0ceb4e187e38d7778385"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/shared/components/UsageStats.js: src/shared/components/UsageStats.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in UsageStats.UsageStats at line 206. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/shared/components/UsageStats.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b338f904679b1ac6ff76e98fbefdffa376ba54ba65b012899e0cfcdc5209caf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/qoder.js: open-sse/executors/qoder.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in qoder.wrapQoderSSE at line 426. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/qoder.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad3f9cfdf15d9f98f78e75a091748ee80a0140f327180e9c9f49c33b17ca337"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/codex.js: open-sse/executors/codex.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in CodexExecutor.transformRequest at line 412. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/codex.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb556ea1a8b1f6e1935551fee58e3e8865d5f7915911528ee0c8d7408b6a8b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/chatCore/nonStreamingHandler.js: open-sse/handlers/chatCore/nonStreamingHandler.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in nonStreamingHandler.handleNonStreamingResponse at line 287. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/chatCore/nonStreamingHandler.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0292331e9b55df38c5982b3e0ff48a33512c609a33bc8275c2650eff3b859bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/models/test/ping.js: src/app/api/models/test/ping.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in pingModelByKind at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/models/test/ping.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/models/test/ping.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d800aa3eeaaab0f98a6ad72be3dd8b988696747c9732131a6b7a2715b7f0ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/default.js: open-sse/executors/default.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in DefaultExecutor.buildHeaders at line 153. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/default.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/default.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"e046d7266d773f39a16f097f871287179d21003192aa3bd449754fcc19a4e038"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in HermesToolCard.HermesToolCard at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f103e0fde1dfdc4c4ae774ebbfbef623e4fa3d6bcf31d37691ff8deb192737ad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/services/usage/grok-cli.js: open-sse/services/usage/grok-cli.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in grok-cli.parseGrokCliBilling at line 141. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/services/usage/grok-cli.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/grok-cli.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24a506038366f33455c4ca3dabffd54a2175a521cc6d5e54d7b7bce6c22c3d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js: src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 123 in TtsExampleCard.TtsExampleCard at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba3ae8c347b1fc1047686c88a256b6fb4cfbbfe70866c42a3fa49b19852d1cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/services/usage/google.js: open-sse/services/usage/google.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in google.getAntigravityUsage at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/services/usage/google.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/google.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5a4e6cc5ad32f7cf9738b349fe7948ccea12ed630bf5ae2457330964e0a4eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/response/openai-responses.js: open-sse/translator/response/openai-responses.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in openai-responses.openaiToOpenAIResponsesResponse at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/response/openai-responses.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d487de4032d2d308a6c9d6c37a31391289b9af3bfd8ca94b090177b6a8cb56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/opencode.js: open-sse/executors/opencode.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in OpenCodeExecutor.transformRequest at line 412. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/opencode.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b996ba466e420c4d8573df2fa0a60bab0743e47dd82bebe3c8d463775861b54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js: src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in ToolDetailClient.ToolDetailClient at line 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f5c1811f6cc74caee5f01fcf77df9522c6b3e1911b9d2a1f1e890e10f49f89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in GrokBuildToolCard.GrokBuildToolCard at line 63. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c379d69ec650078d679612ad774b7bf3c63e00c068f19c2563f1b57b2982d109"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/lib/db/repos/connectionsRepo.js: src/lib/db/repos/connectionsRepo.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in connectionsRepo.createProviderConnection at line 135. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/lib/db/repos/connectionsRepo.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/connectionsRepo.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"7473c15930571a3a84acd8c5f44680329f4a786afbdc4fece6719b46336941e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/concerns/paramSupport.js: open-sse/translator/concerns/paramSupport.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in paramSupport.stripUnsupportedParams at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/concerns/paramSupport.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/paramSupport.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27cf47df3b1021cfe8b4ccb6c86aca812c08d24796c0b98f44e4c5c8074ec85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/cursor.js: open-sse/executors/cursor.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in CursorExecutor.executeAgent at line 551. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/cursor.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"b751a39e745b5f776ef522d1ea9e4180784f2cf656ae13d7cd8ca3ac0d905f20"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in CoworkToolCard.CoworkToolCard at line 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ed9ca0ce85666b8dcbb6eb1646aec3540e846185cf50cacd7f1b98d453afb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/opencode-go.js: open-sse/executors/opencode-go.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in opencode-go.normalizeResponsesTools at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/opencode-go.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-go.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1949dc365bf1776fc94e46c267db55e84a74d8346e31139d135a37a12ffe8587"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 89 in OpenCodeToolCard.OpenCodeToolCard at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50b44419fe4a787d7c578c8734a8244a27d91ea3bf9a67b34005f241c56df93"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/index.js: open-sse/translator/index.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in index.translateRequest at line 68. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/index.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1138c07724050d7a43710ae61d914253b0a7c2570a235a5cc1e70190c41a2d0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/response/claude-to-openai.js: open-sse/translator/response/claude-to-openai.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in claude-to-openai.claudeToOpenAIResponse at line 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/response/claude-to-openai.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/claude-to-openai.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6d08fb5d51ab5c04709afe9f80fb080eaade66517142a06e02c45f97ca97c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/services/combo.js: open-sse/services/combo.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in combo.detectRequiredCapabilities at line 105. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/services/combo.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/combo.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cef31236d3f2c73c5af9edc32c5290aacbd4a34cbae556b0c10e1e3345381e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaTable.js: src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaTable.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in QuotaTable.QuotaTable at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaTable.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaTable.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd1331af63f82210ed20846b2a3d6e905cd1de365224d1f7eef4d1641f7c848"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/transformer/responsesTransformer.js: open-sse/transformer/responsesTransformer.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in responsesTransformer.createResponsesApiTransformStream at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/transformer/responsesTransformer.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/transformer/responsesTransformer.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"90917857aa0643f972af603531d0612654fb2d4fb48eac5aeb57262d3bb91234"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cli/cli.js: cli/cli.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in cli.startServer at line 610. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- cli/cli.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/cli.js"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"225b81d3e28411ee83a5325c73752462ea9a91d815e2a5ad172ef32054f1c887"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in DroidToolCard.DroidToolCard at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc37cf8c5511ca542f0eb88a6a081be6ac303f3911aad41b3ca11dfcf1b0917e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in OpenClawToolCard.OpenClawToolCard at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfe37dd962f1f4f0104d3ad79d9124defa7e349f600977f65330d834074bd4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in JcodeToolCard.JcodeToolCard at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19d247034017713f60a300257f4f0776147943924b52b4fc259e7c4eae40143"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cli/src/cli/utils/modelSelector.js: cli/src/cli/utils/modelSelector.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in modelSelector.selectModelFromList at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- cli/src/cli/utils/modelSelector.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/utils/modelSelector.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a51c1e8a5691b5c87a25f3eb4a16a61907d501827d789a3c06cefe5ab906add"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/sse/services/tokenRefresh.js: src/sse/services/tokenRefresh.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in tokenRefresh.checkAndRefreshToken at line 224. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/sse/services/tokenRefresh.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/tokenRefresh.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bab694d0a61b732a0aa14073cb89fd1b46b2cae29646cb4e6e4a7c13b3eb3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/chatCore/streamingHandler.js: open-sse/handlers/chatCore/streamingHandler.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in streamingHandler.handleStreamingResponse at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/chatCore/streamingHandler.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/streamingHandler.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa6231299434a5a3162ec3c120e6a169c239f0999c83ff3691730d37e6a9aad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/rtk/headroom.js: open-sse/rtk/headroom.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in headroom.compressWithHeadroom at line 248. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/rtk/headroom.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/headroom.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb009bb5eedbcb674daa6efd934a4c05c74a4ff9d08658d62c7e4227dea3ed6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/formats/gemini.js: open-sse/translator/formats/gemini.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in gemini.cleanJSONSchemaForAntigravity at line 352. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/formats/gemini.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/gemini.js"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa30ba6f2e96779adf97e3ddac11364e2fcc5aec9cebb37f1e449f7e7bb876e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in DeepSeekTuiToolCard.DeepSeekTuiToolCard at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a10700d8efcdc316f14d19ab2a242e92d1be18487d520e51efefbf743d1463f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/lib/modelCatalog/sync.js: src/lib/modelCatalog/sync.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in sync.build at line 80. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/lib/modelCatalog/sync.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/modelCatalog/sync.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d722692c41e099659353463e436bd3ce03d93ca1fb08c74cbb960bf1b0bd946f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/base.js: open-sse/executors/base.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in BaseExecutor.execute at line 100. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/base.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/base.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb60c77aca5054213a55ee2ea040d26744539bcab389ad5e8a6822d3d3217120"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in ClineToolCard.ClineToolCard at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"57455d53c65b4cb5ccb410933798f21954748603c7de5aa9a1563711bc4353df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/response/kiro-to-claude.js: open-sse/translator/response/kiro-to-claude.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in kiro-to-claude.kiroToClaudeResponse at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/response/kiro-to-claude.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-claude.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4f70c2c34efa6bfeab5017e8c569d94c35f7315f10fea513f8fecfdde40bfa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in CopilotToolCard.CopilotToolCard at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"949ec283d4d135fd95423074fd81935e9c1462b445e39d45f31e1f5fa94d06f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/providers/route.js: src/app/api/providers/route.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in route.POST at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/providers/route.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/route.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7073fafc42c027a48a76dae50d20a9127d1971d811b1da1e06237b0b325bca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/services/usage/misc.js: open-sse/services/usage/misc.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in misc.getOllamaUsage at line 66. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/services/usage/misc.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/misc.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b955241beb98a27b62205f3036f72f0ee3da2ea126194f12034cf1c0ab3aca86"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js: src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in KiloToolCard.KiloToolCard at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2120d6a9d4d36c81665c5c0fdd35f23d2d5ede22f6326466d87430e81bd8ee87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/login/page.js: src/app/login/page.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in page.LoginPage at line 6. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/login/page.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/login/page.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00472aa2e988dfbfe0a469d1c1dfe88891a2d5cc16463d64c81185b68bcc615"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/request/claude-to-openai.js: open-sse/translator/request/claude-to-openai.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in claude-to-openai.convertClaudeMessage at line 144. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/request/claude-to-openai.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-openai.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bda4922031bb4c5fe64695d83e6156a3840c2ad8ca1fed554899f875f529e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/executors/commandcode.js: open-sse/executors/commandcode.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in commandcode.inspectAndWrapCommandCodeResponse at line 140. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/executors/commandcode.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/commandcode.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"858b7ed40e147cf66d03cbffcbd0ed9d91891618c0b1f79a86d187ab1dc12650"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/services/qoderModels.js: open-sse/services/qoderModels.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in qoderModels.fetchQoderCatalogRaw at line 204. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/services/qoderModels.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/qoderModels.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b78d7e6607947895baa2e2be3e6f178009196f516caedfa6f3213e7b3455ac6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js: src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in RequestDetailsTab.RequestDetailsTab at line 102. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd0235379656ca9eda9c7bb28971fe905ac84e528ca83f5a2d396eb60a5c950"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/providers/components/ModelsCard.js: src/app/(dashboard)/dashboard/providers/components/ModelsCard.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ModelsCard.ModelsCard at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/providers/components/ModelsCard.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ModelsCard.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"219d6ee8a30c79c1a42039bcaa8f8ddd9c5b7ea8e7510b160c0d5676f88c37b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/services/usage/claude.js: open-sse/services/usage/claude.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in claude.fetchClaudeUsageRaw at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/services/usage/claude.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/claude.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe23903f990ae21e0d1b3266773a9b31550d87e37375fb1f2a752ba3105b6013"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cli/scripts/build-cli.js: cli/scripts/build-cli.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in build-cli.buildCliPackage at line 151. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- cli/scripts/build-cli.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/scripts/build-cli.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a283dc3ff054d323361b3d33db7f6ed23e6ac6acd3de3287bf029f33bd1f7007"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/request/openai-to-claude.js: open-sse/translator/request/openai-to-claude.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in openai-to-claude.openaiToClaudeRequest at line 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/request/openai-to-claude.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-claude.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c114576f0304982a12939d424f473bae83f0c8aff078d87fe37d952297a9ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/chatCore/requestDetail.js: open-sse/handlers/chatCore/requestDetail.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in requestDetail.extractUsageFromResponse at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/chatCore/requestDetail.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/requestDetail.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bb9b1002f3fd6ecbbb9a4da2a112d467da94f2d837c17541291c10b676604a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/response/gemini-to-openai.js: open-sse/translator/response/gemini-to-openai.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in gemini-to-openai.geminiToOpenAIResponse at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/response/gemini-to-openai.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/gemini-to-openai.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb524a317b8587f4028b546b10837f9640994549f75bab4f8bb20a59410d2a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/i18n/config.js: src/i18n/config.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in config.normalizeLocale at line 79. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/i18n/config.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/i18n/config.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ec2b664bfed4e8ce23ed6d724850ba1930b47619b8a2a97559d714b2262215"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/search/index.js: open-sse/handlers/search/index.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in index.tryDedicatedProvider at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/search/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/search/index.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb8dd60b1fcfc3f74a6453f946abf0fa7738e6d34cb0aa84a889bf0e1d3398b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/cli-tools/components/BaseUrlSelect.js: src/app/(dashboard)/dashboard/cli-tools/components/BaseUrlSelect.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in BaseUrlSelect.BaseUrlSelect at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/cli-tools/components/BaseUrlSelect.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/BaseUrlSelect.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"73785427344d6b3c5543ab6d37041b365238d00b983a16e3ac59fdea49304ae4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/utils/proxyFetch.js: open-sse/utils/proxyFetch.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in proxyFetch.proxyAwareFetch at line 332. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/utils/proxyFetch.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/proxyFetch.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b7ea628aeb097e3bf3c1591eb76c14fb2551410e2034ad1f4a841d456a6779"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: custom-server.js: custom-server.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in custom-server.http.createServer at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- custom-server.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"custom-server.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"371a9ebf2cab9686faf33738247a610190f4e0d7a3150203a8cef5ae6b4c766c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/lib/oauth/utils/server.js: src/lib/oauth/utils/server.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in server.startZedProxy at line 671. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/lib/oauth/utils/server.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/server.js"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e0f1df3a0b0f658ba030416fdabc3dc93c796471b5e2c19894a3821109c908"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/mitm/config.js: src/mitm/config.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in config.extractModel at line 129. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/mitm/config.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/config.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae838cb48d51fec80f193b5b842ad6e1e83340c05fee8ef272243d408c44c37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/fetch/index.js: open-sse/handlers/fetch/index.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in index.handleFetchCore at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/fetch/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/fetch/index.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"314c45168ecd82ad07072705c515072579a325c45c48328f96413f83564ec58a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/auth/status/route.js: src/app/api/auth/status/route.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in route.GET at line 8. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/auth/status/route.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/auth/status/route.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"713eeecb2020fdf35659d250ceac41b8fea8c96bd7e054c7fc1e68b049d81464"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/sse/handlers/search.js: src/sse/handlers/search.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in search.handleSingleProviderSearch at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/sse/handlers/search.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/search.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"63208bc7509d8364840afd81ef9899693b4fb6f650d4c9919d0f6c1399b6fddf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/translator/request/openai-to-commandcode.js: open-sse/translator/request/openai-to-commandcode.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in openai-to-commandcode.toNativeImageBlock at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/translator/request/openai-to-commandcode.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-commandcode.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6953097b3914acf39f50b549725a3545389150c857221765a107ee5f9be877"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/sttCore.js: open-sse/handlers/sttCore.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in sttCore.handleSttCore at line 186. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/sttCore.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/sttCore.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a59c4f8dcac9c92f801f0cc5c4cf2a925fdd9d21accb87888b0676836bf9632"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/handlers/embeddingsCore.js: open-sse/handlers/embeddingsCore.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in embeddingsCore.handleEmbeddingsCore at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/handlers/embeddingsCore.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/embeddingsCore.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5db7c73bf9328b607cab03e519a586047c4c1ccd526936d5db794a3066b857"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/(dashboard)/dashboard/providers/[id]/AddCustomModelModal.js: src/app/(dashboard)/dashboard/providers/[id]/AddCustomModelModal.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in AddCustomModelModal.AddCustomModelModal at line 10. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/(dashboard)/dashboard/providers/[id]/AddCustomModelModal.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddCustomModelModal.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a2202f2fbc6dd714bc50fae2300eeb945fefb2d9ee31404cf899ce6ca968a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/auth/login/route.js: src/app/api/auth/login/route.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in route.POST at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/auth/login/route.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/auth/login/route.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7891600046f651c72934c0c3e92beab3f666c75f4bbcd1b5e2824cbc7a2999"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/services/accountFallback.js: open-sse/services/accountFallback.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in accountFallback.checkFallbackError at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/services/accountFallback.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/accountFallback.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"328681c83ad9ef35d323ebce12a74cb2953e9db8bb16baa3bd00eaaf5c9d8579"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/sse/services/backgroundTokenRefresh.js: src/sse/services/backgroundTokenRefresh.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in backgroundTokenRefresh.runBackgroundTokenRefreshTick at line 90. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/sse/services/backgroundTokenRefresh.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/services/backgroundTokenRefresh.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c3410aae961396e6848895326952eb12c1c570388828d7181f6427401f1bfd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: open-sse/rtk/systemInject.js: open-sse/rtk/systemInject.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in systemInject.injectSystemPrompt at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/rtk/systemInject.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/systemInject.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16c10540ea499afbd178f5ea9d88b27ba231ba3f077966d2ce23361a2f0ddf0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/usage/request-details/route.js: src/app/api/usage/request-details/route.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in route.GET at line 8. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/usage/request-details/route.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/usage/request-details/route.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"143946b893fa079dee5ed224d0a3891b7e7b79b615c4ea397697a1d9b09b458b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/api/models/route.js: src/app/api/models/route.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in route.GET at line 9. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- src/app/api/models/route.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/models/route.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2129e8adff552dd91f0d52a117e8cbe98ee0378853db901856fda21a8f29899e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: open-sse/config/appConstants.js: open-sse/config/appConstants.js changed 10 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is appConstants.buildKimiHeaders at line 219), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(antigravity): rewrite all Hermes identity variants, not just the legacy sentence\u201D; \u201Cfix(antigravity): strip Claude Code billing header from system prompts\u201D; \u201Cfix(antigravity): sanitize Hermes system identity\u201D; \u201Cfix(codex): restore Version header and single-source the CLI version\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/config/appConstants.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/appConstants.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ead6bcd08818fa2d181151304b981e62fe37cb6b6356458403466d3a6468f59"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: open-sse/providers/shared.js: open-sse/providers/shared.js changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is shared.mapStainlessOs at line 4), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(translator): keep tool-result images, restore Kiro tool names, preserve thinking display\u201D; \u201Cfix(claude): support Fable 5.1\u201D; \u201Cfix(claude): bump CC fingerprint to 2.1.258 for new-model access\u201D; \u201Cfix(claude): remove global header cache, gate anthropic-beta by model\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/providers/shared.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/shared.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1255c19462904e8be0bbbf2d6351adc73ab800debe4438cb02da850c74eb122"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: open-sse/utils/claudeCloaking.js: open-sse/utils/claudeCloaking.js changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is claudeCloaking.cloakClaudeTools at line 56), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(claude): decloak tool names when toolNameMap misses (#4342)\u201D; \u201Cfix(claude): support Fable 5.1\u201D; \u201Cfix(claude): bump CC fingerprint to 2.1.258 for new-model access\u201D; \u201Cfix(claude): decloak tool names in same-format streaming passthrough\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/utils/claudeCloaking.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/claudeCloaking.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef3dfec65073b6f7268d641150117adc6a82babcfc5e3bf38f3679b17b813ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: open-sse/services/model.js: open-sse/services/model.js changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is model.resolveModelAliasFromMap at line 61), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(codex): remove ghost models, add gpt-daybreak/reserve, route gpt-5.x/6.x bare slugs to codex (#4418)\u201D; \u201Cfix(codex): route bare codex-auto-review to the Codex provider (#4135)\u201D; \u201Cfix(grok-cli): align Grok Build with current subscription protocol (#2590)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-03..2026-10-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-03 10:45:29 \u002B07:00\u0027 --until=\u00272026-10-01 10:45:29 \u002B07:00\u0027 --full-history --no-merges -- open-sse/services/model.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/model.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c66d2e2ef7dc21d0e4ac681dff5d68902405c3d44277df41939304e7b9f90f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 63 significant file(s) lose their only recent owner: open-sse/executors/devin-cli.js, open-sse/executors/windsurf.js, src/shared/components/Sidebar.js, open-sse/executors/perplexity-web.js, src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js, cli/src/cli/api/client.js, src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js, open-sse/executors/grok-web.js (\u002B55 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"464eb1dcb7fbad4361ec271a975a7373e4d64fcde2fe4dde3aa9aac631e375b3"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 12 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (78 single-owned of 550 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 550 of the 976 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (2 file(s)), anonymized user #4 (2 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)) (\u002B6 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.3/10. The most over is \u0060(repository root)\u0060 (129897 LoC, 755 public types across 268 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d457e753316076b580a96ea3b5670f20e90edb6992088fdaf296ee1e354cc99"},"properties":{"commitSha":"e35421beb16d437bda443296b7bb83c97f4dc2eb"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"630e4d465724736b073023053371d327d84a06ae2516c2811f44b4aaf2d2c9f4"},"properties":{"commitSha":"e35421beb16d437bda443296b7bb83c97f4dc2eb"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64f24245995423aeb38fd06aa1acb2a4deb67ff04b28363102499a9e105b2085"},"properties":{"commitSha":"e35421beb16d437bda443296b7bb83c97f4dc2eb"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c492fc701540120ca81c54297bee2e3a12f88a3e7831a7cf1e019f4989859db2"},"properties":{"commitSha":"b0c6b6139851b7327667ef81f9b77d973df7b9c4"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e5f03f35cc4654cf3f758e2f58998e5854d30a0c5b64e5b8f8c55948f8d07e33"},"properties":{"commitSha":"b0c6b6139851b7327667ef81f9b77d973df7b9c4"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d49bb760294b6ab3f3b6af6db7f3240fdbcc1016fce890ae7e3b7b53e852113a"},"properties":{"commitSha":"b0c6b6139851b7327667ef81f9b77d973df7b9c4"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d6953a8574b273198ba7e834fd5d8c24c18d01b7e7c4602ddca720fa61c82275"},"properties":{"commitSha":"5a042840fdb46e7116479dffa6a110a6a4b5b261"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5166710e9b9e27ae1570374a9a1657f4ce403f6a423eeb2a120591cf79c7ae67"},"properties":{"commitSha":"5a042840fdb46e7116479dffa6a110a6a4b5b261"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dc42493e7d85a6fbe0b5fa9213162d03d9e11f8aecc0c2069556e4e6cf910e2f"},"properties":{"commitSha":"5a042840fdb46e7116479dffa6a110a6a4b5b261"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"084ba1062815818454fd4e2974bee5266c134457f25e6fa377e46776188917b4"},"properties":{"commitSha":"5a042840fdb46e7116479dffa6a110a6a4b5b261"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bbc900a561ac856f71e4d50f2ff3affa34c19507e147c52aad3dd81678e2d85c"},"properties":{"commitSha":"039c4dbc7274a96a14d850d81f1911eccdfc8777"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e33048e40d6dc4cb98b42bfedc146ec860dfd651774fdf473bef730846600f8e"},"properties":{"commitSha":"72ce515709d6e03448752f873691a85214526c53"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7c7e3c5e1bee7403b6fae4f14ae11be0f3b909df11825e7b3012884eae71522"},"properties":{"commitSha":"72ce515709d6e03448752f873691a85214526c53"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa7905a375ed13ee7b962624ded8987da80020f61c4ca58a4bee5fbe8f1423ea"},"properties":{"commitSha":"e35421beb16d437bda443296b7bb83c97f4dc2eb"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4192ce27f143452ba3813a36e3bb8a2747d9e1f6c60b27fa8b849bbba9f78f72"},"properties":{"commitSha":"3857598de4ef88bda862314f6cbc89e37280de3e"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67f21e165032953c3b7c942e7749db264f42a2ada9eb125c3bc76a21e3337e9c"},"properties":{"commitSha":"3857598de4ef88bda862314f6cbc89e37280de3e"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f33dbcaddd2df52aef4d3ebbcd55d4d14a10b38ec98c65e5088ee74c609f1664"},"properties":{"commitSha":"3857598de4ef88bda862314f6cbc89e37280de3e"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e48bbf5222cd886cb007690c8c7b5e47e0799e686060ddf60f70158fb400f25"},"properties":{"commitSha":"8e04fe1734eaee6458de1ecbb9a76d3bbab9986d"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01a67365f41b2b096fc3f23b81a3933bf7db2d6f936fafb3860d6faf486e0b43"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"608536fae0c192550e2c948df251ee59aed148bfe157488f199be9e4a148528c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f22f808127c3f989a2d075a488095bda661988ed67797b9d1c1330364c4adb02"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4cb08cb7bfc5530ce83d4be65f71b84b60d80c8b3dc5b7542879f9b4c028f7d0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bca05a9bdc18c46ef193272a232909d5dd93b9b992e0a3e71617612a23940b70"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e70fd24fd1c58563db8717d61efae27f59b050a141da5d6b8443f2a7f57f87f"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"607edacc2948e636528b66d42999c6ec0282c8bace8a6cdfc30b45fab8045360"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67a6b6cc25b22e50de9972b6894f2e5543c6cb827c8c51afecdb5b4110f97388"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c346eceb72b224f35fe135fd39bcff91c4f2b92a727d09570733e4d714fadd11"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22595790a1f32311252195b43c42bebfff62c714749acda5bb009f56704b973d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c0c89f5a72e26b6dff41b98ee1462ecb8c0c6d488e715d1b4115f0f93b0719a9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35ab5f6e9c6075887bf43bd026ab84f30c27aca433d9f306d120c41a7ac4790e"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22e2408f9427994acca17b47809993cb7c85dcbc91266e5fb0d4d5cd3a2b7b72"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ed9b9257c57a46c4843b801ef32f2e036182e45db28756dbe23dc24194b5d89c"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e90054a4b0c3784e3bf086184e6da9d3cb01e4509a754b31b26dc0ccb8c6141"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"222d7c5232f1702ffd75bc67f2f3cb74019903a74fae81984bc2936c7fcfabe2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"970e37a8c08a1ee4a92c533cb4fba12ea163255cee6d3195a701dcc70f34716e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7207fd8fb2762c2e4fe1f8be66079c3776bab951c68ad9b3ece0e961001d7b3a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21b31640fe68a18ff4972d338905a743c1653efd28368bc471947cf9de75bd2b"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b672319c5156464b6f0590dc5f2911e13486c02848b4b85681d0bed04c56c62"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cfdec9009b183e0762dbda0989f6d0eaa1ab53a9888b953231a5e74ab79247b6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5fc2389c6ae2556ef632689eb6cdfbfb235280bffd4f773480184eed0054369"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19af24cd3843aea8385904444dbec26d2eda07de9426eb1dafd7e2f185d3db92"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c8eb8e8e527ca5d058803044d82e39cc22b7cb4e633b8e446352d485d2d4d6c"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cd22a1a2dd77858498a82bd67fde46ffed0d6e176b557bc5fc911000f1facb5"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d99397b597c2dafa8e5bd3bfadc1c22d43f8eceef7c3a0c7c89d9dbb5eb2ec01"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab47a7fd141c787c0c4c44b2a05d2b218fa8538d8519371ee1c2b069f91c843a"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5f2941bd0cb87db7617f83c557c41d5dc755dcbffd2fc8fb8b80c4e51fe93a6"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c93f5b23b9b7fc5e5e51c7c8168ea1d3af7f8c2b506dd0871b22e426ad4eb6ed"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e9945947fff9bd3717bb768ae782eddc02dbca61bb9196f1f7ee133b7691dce"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"79324e5b75a60fa75f55d84356c8b0e4b11408175c24f3fce733db97a24da773"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ddd7bbaa20c8255691ffc04ba94708ec6fecfdce39ef111e1515bf5dc5b3f6a4"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f8be8912ae7b46dc774c2ebd2c18bc8ba8a81415a38feb6372a416877bc06fb"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b5082d2f42f4e9eaa2bba0606ab2e8c745c5a4db7a8c5654f182e52ec87367f"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8208836c415dfe2d243064f5ef54dbc9f1e26d3ced65263514037987415116be"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ffeba1afbe8291eecf20aabd731ac750c1bceeb94eb771a5c7db4ed06372752"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf5a09602b8732285296eff8083d824dec1cf6f16a2db259aca49dc737725e10"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16be1a0eec5cb3871d5b79aa6dc741d66ba3015e814c268bcc2b17384317c8f7"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f0fa95bb0b681fd748157fa860a07e74ad9d169ccb7d93a49c1e345e7a0d9364"},"taxa":[{"id":"CWE-1188","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e15246d211a59b0a8bf44cc6071d692ee01aafe33a1af330be4c26c44032803"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"635104d4d299c697ecc5096958ec12f09c9fb2d52672dffba1cb34cf317e358b"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78017e28867e7decb8ab2d3dcae2c5ca064553c332122ffe157bf89141ce9ffe"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"70249b675813e22432ccdaf9423aa44e9bdf6b26b0ee20daad1064be83a62e56"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2bd73b19fd0981d26cf235dbfffcd5f2b8f5b1c80fc1a68e40739085458d9ff3"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e74a495a80e7735c22dc8a87c9919ae8bd2a7d9705915119d1cc7d47aacf5a8b"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78ca2e72a70781dd28d1de8669b531043c1206fc28e1a9784f65eb6010554eba"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e2fb933efa2ef85a1a5f1e642a309ff25fcff45f660dc3a5dfe6ce554cf0d89a"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b665e23a52c25cbe43d0dfc712a01bc7462c8b088772e20adc75ac591a7ba6f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"06643b57c1cb0b72b196bf131eaeb646e5e791fb2c503d48f9f30c2bdb44ee16"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd00c0f1cd24861b7da1b4f2529d968a63794215f925c4694140e88db8fff9d8"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cee28c65bf4f1af84148dfaa673ebb7c92fb99e96741cb1d0e556d3a02b188f9"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e3047759d656dd4809ab153b5548c6e14ec13e86b453e6cd68cb9972a4368f5f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f0a9f8e63a85b91db2d81fd4add2e6faa3c98e5aa56c9f08cf9e3b6b3bb65d46"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd7fefb4fa2e0a43f684856204e3f7366a1a8573796cd653b1eae4219283f799"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c4f376b3afd103d0f972fc87e8f73c02d322dbfde3ac544b409b43a7f1a8a51"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3669ceff47096c039417973985a28b91839160cf18d443a0542109d674094d73"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"730f1df9e70455af5b9c1b6417bf7d0d3d17cdb68eeccc7520315a8c82acc35e"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b8682f75ff389dbb00226ba0278a3a1c58a4f627f8d03924e5cc232b1424075"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"503b69659c33fc3d2169b6ae0f8fedc631ed3d84fc51fc28ef751228be98a9fa"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"34fb6593ee9aa2f3c892fffd68cf90319349795ef0642b607bb48e75bf22c983"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1a40cd2e026c53e5189273f5e2a6364188ad8a7a7723a0e7736f0ecffc0f99f"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77d1e4a7b8abc93614f898254c5d170f1ebc6e35c41085d9113c2ec05fc1f910"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a901d6cceea470b81134419ccf26e41ef8da7bcbee2afec2b54628034d55b5a"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d9da652789fceb0b6e9b72af81df649ba28e6ae84a34cd1f5cd5bd0ccc9d9b8e"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8458b5379003a67fe121ff8ad5f0cb7f71cdfa9d7b9f17e878f703734844c3a1"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f046cebc3069c9029f2f65d8bcdb44b67081a3cf570b745a4ef5e09255f5a49"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fead2d3c028f0442f1c23c6482d292a804ebbd9800a659ac2060f81e91522645"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"471c2384fb310adffe4f21c0702488e28ed5870513eedd97bd3b387efd58dc58"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b449f5fb1da404160edb7c65aa9845c2f1baaad391c5ed78c0a757414ffb20c0"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"678c797c7a2f7f943eb0ecc20d75204f97b4bd69debe562f04ba8e5af6bbca55"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"71e289af3a5bc48332861561a5051782da459c288244cb83a6d3ba2b65f4dcce"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b4d8d2b21b59025d306d44f0ad295cd5d9cc066bbc6ac3f831f707bcea8ebd52"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e06a25fd3d2c202b66af71125c8ee3225ee8f542990af79b5eb52a8061e0f9a"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"23653d818bd415753009d2aaf3ada29b829a12faada692264dfd2e4c4668358b"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2b97aab04227ad4fa71e0e1a14f753cd5dc75a10b86422a2393d9cca8da3693"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"62c4e28b99e89bc0971c1e6204f190c1490e2edbf7b1f6b55758dafac0573770"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3168dcc583e6180d5cb7111038fa15c72d235123f3d4c3da5b41bd3d5a2c1fa0"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16267fdce8db990f57cc15eaaf407eb7a612711e7e2604fbdd96de6be10bb4da"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb0b76b511dea0165e7838b6acd631864117304d7e866302608a317ea540ad75"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"340d2ca3a683f4ab0fdf801c6450bd2d9e31cf1b69261dfd542b93b6e0bb91ca"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"314c585a33681b4f9333ae82bf9a6855606b9afd8f57273e8d2e9b28bc2c9105"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ec5c4953eb4957f28a0d3fad14a14cb1e3380f0052d027aba9b26a5a1c651de"},"taxa":[{"id":"CWE-310","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0efc7e5681a2461394edc5f72a09543b4c4a06e0bf2b474d69f16a023f99173"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b1cb06a04b396f4f64d0e119609e093dc5dffc5341aa435872b201c943c2a3a"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"88d8b5682c9873d2ba8af7dc222b5221a91b4771f1f40bd48cfbeac8a78f19fa"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd7ae640661370f0cb3b77d46151533f9f0b27de5d03f178aa9ebc26f871b3cc"},"taxa":[{"id":"CWE-310","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5407ddcb0949195c515c30fee44a2ae6c1ac31e4f3bf09156cd508779bbb3832"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b67b212e4b39d32611891d078439d17a320b96e08539614c050669cd75c4bc6a"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e4411b31ffe35de8a0a55b84f75a64667584fdb29eda37b2e1bfdde03206f6d"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"83624e2a75b102d656da943ab10c203006d969612030d1669428c03d4067940e"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20fe6a7c6667401d302df03eaada6af3f1b58f04804d3a5ab30b7c7491905ca5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c220c43ca252ef12c3b227717f581076e79a5ca2e5a8c94fc90d9ccb00089c9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d15df5171d54d9a3cfe919193b940b95eb1db599610449c8b68164e072da6651"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 9 of 550 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 550 of the 976 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/lib/oauth/services/xai.js, src/lib/auth/oidc.js, src/lib/oauth/services/cursor.js, open-sse/services/oauthCredentialManager.js, src/lib/oauth/constants/xai.js, src/app/api/media-providers/tts/minimax/voices/route.js, src/app/api/models/availability/route.js, src/app/api/auth/oidc/callback/route.js (and 1 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: config.js \u2194 cliTools.js: \u0060src/mitm/config.js\u0060 (context mitm) and \u0060src/shared/constants/cliTools.js\u0060 (context shared) sit in DIFFERENT parts of the tree yet change together 92% of the time (12 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u006070f15aa5\u0060 feat(antigravity,gemini): add Gemini 3.8 Flash support and bump IDE f\u2026; \u006086694ed8\u0060 feat(antigravity): add Gemini 3.7 Flash models (#3286, #3281); \u00605b417f9b\u0060 fix(kiro): intercept chat via x-amz-target and prepend initial-respon\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/config.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1cd00c0367d726d27fd6feb61c22459e29a78606c4bf118630f27e4cc5ed76"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: MitmServerCard.js \u2194 manager.js: \u0060src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js\u0060 (context (dashboard)) and \u0060src/mitm/manager.js\u0060 (context mitm) sit in DIFFERENT parts of the tree yet change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060b39eb61c\u0060 chore: release v0.4.27; \u00604ba546af\u0060 Enhance token refresh logic and improve MITM server handling; \u0060e40f7ffb\u0060 fix(mitm): gate sudo prompts on server platform (#822) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e942af3b342e90dd346c250ae96c0bd2d38205b931c413890310ad4dbd602550"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: model.js \u2194 providers.js: \u0060open-sse/services/model.js\u0060 (context open-sse) and \u0060src/shared/constants/providers.js\u0060 (context shared) sit in DIFFERENT parts of the tree yet change together 65% of the time (15 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u0060a6fd8469\u0060 feat(qoder): port Kiro-style provider integration with COSY signing; \u006093265894\u0060 Add Vercel AI Gateway provider support (#1183); \u0060d26db17f\u0060 Add xiaomi token plan provider \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/model.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4571fe135c415655f3364e35999bf26c59995aa6ac7e0317e0fd6a0c8ab048f1"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: MitmToolCard.js \u2194 manager.js: \u0060src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js\u0060 (context (dashboard)) and \u0060src/mitm/manager.js\u0060 (context mitm) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00604ba546af\u0060 Enhance token refresh logic and improve MITM server handling; \u0060e40f7ffb\u0060 fix(mitm): gate sudo prompts on server platform (#822); \u0060c8d24974\u0060 refactor: update MitmServerCard and MitmToolCard to use modalError in\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ae282499a80bb6c7ff7bba9bc17476729c4df37be8d690f04f64a178ba6f91"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: providerModels.js \u2194 page.js: \u0060open-sse/config/providerModels.js\u0060 (context open-sse) and \u0060src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js\u0060 (context (dashboard)) sit in DIFFERENT parts of the tree yet change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060787d2480\u0060 Add Cloudflare Workers AI image generation (#973); \u0060512e3de3\u0060 Update version to 0.4.9, enhance README with Trendshift badge, and ad\u2026; \u00601bb62131\u0060 Add Cloudflare AI provider support and enhance connection management \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/providerModels.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36d028fb045e86986187ca7c61a42f19f80555d5cfb0c2221bd7cb29f03aacd"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: providers.js \u2194 providers.js: \u0060open-sse/config/providers.js\u0060 (context open-sse) and \u0060src/shared/constants/providers.js\u0060 (context shared) sit in DIFFERENT parts of the tree yet change together 52% of the time (21 of the 40 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 21 shared commits counted here, the most recent 3 are \u0060b33cbb02\u0060 feat(vercel-ai-gateway): support embeddings, images and credit usage; \u0060b40e96d0\u0060 feat(provider): add MiMo Free no-auth provider; \u0060a6fd8469\u0060 feat(qoder): port Kiro-style provider integration with COSY signing \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/providers.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57188e735118161083e59145138c0ab3fc43ee9a02dbd225201ec6f9ec4dd93d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: providerModels.js \u2194 config.js: \u0060open-sse/config/providerModels.js\u0060 (context open-sse) and \u0060src/shared/constants/config.js\u0060 (context shared) sit in DIFFERENT parts of the tree yet change together 50% of the time (11 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u006014ff69bf\u0060 - Added BytePlus Provider; \u0060f2e7a98c\u0060 feat: add built-in Volcengine Ark provider support (#741); \u0060abb04c53\u0060 feat: add support for Grok Web and Perplexity Web providers \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/providerModels.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13d330535b008ac5508936b47746b60711bcdb5c9baadd66444d31d70f585e5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: route.js \u2194 OAuthModal.js: \u0060src/app/api/oauth/[provider]/[action]/route.js\u0060 and \u0060src/shared/components/OAuthModal.js\u0060 change together 80% of the time (16 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are \u0060068ce87d\u0060 feat(glm): add Z.ai OAuth login to GLM Coding (dual-auth); \u006028809807\u0060 feat(muse): add Meta Muse provider with OAuth login and model catalog; \u0060402745dc\u0060 feat(providers): add qoder-cn support for Qoder CN (qoder.com.cn) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b364b7f485625bde6a3b5c29236ba96a1d987bdd4fc017f8f7ea8a956a937d0f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: route.js \u2192 MitmServerCard.js, MitmToolCard.js, server.js: \u0060src/app/api/cli-tools/antigravity-mitm/route.js\u0060 changes together with 3 other files \u2014 \u0060src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js\u0060, \u0060src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js\u0060, \u0060src/mitm/server.js\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/antigravity-mitm/route.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"993cd91ebdc0b24afb773783f5aacb69b769329cbc6027f8a41bc9a7d2f1a477"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: providerModels.js \u2194 model.js: \u0060open-sse/config/providerModels.js\u0060 and \u0060open-sse/services/model.js\u0060 change together 61% of the time (14 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u00607134dd71\u0060 refactor(open-sse): P2 alias single-source \u2014 derive OAuth alias\u2192id fr\u2026; \u0060a6fd8469\u0060 feat(qoder): port Kiro-style provider integration with COSY signing; \u0060d26db17f\u0060 Add xiaomi token plan provider \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/providerModels.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3808ddbfe1b5d4e318aab08ba897aeb9dfcf7b6215a28d9e18ef5bd4b8390d0e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ClaudeToolCard.js \u2194 CodexToolCard.js: \u0060src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js\u0060 and \u0060src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js\u0060 change together 60% of the time (9 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060f08fa5f7\u0060 Fix input fields in tool cards; \u00606ab9927a\u0060 fix: update backoff configuration and improve CLI detection messages \u2026; \u00609003675b\u0060 - Updated CLI tool components to accept initial status as a prop, imp\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb060cb5cde8f3e7bc472a726a7f9d3f73ee225044e52e8bda63da2adc5a78b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: requestDetailsDb.js \u2192 page.js, localDb.js, usageDb.js: \u0060src/lib/requestDetailsDb.js\u0060 changes together with 3 other files \u2014 \u0060src/app/(dashboard)/dashboard/profile/page.js\u0060, \u0060src/lib/localDb.js\u0060, \u0060src/lib/usageDb.js\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/requestDetailsDb.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bdf3a49feb3873939d9ae3a884def6088f5c98b074929ad6c762d652b422c6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chatCore.js \u2194 usageTracking.js: \u0060open-sse/handlers/chatCore.js\u0060 and \u0060open-sse/utils/usageTracking.js\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060a625ea9f\u0060 refactor(log): unify request lifecycle logging with session-colored tags; \u00601ae4e311\u0060 feat: add GLM Coding (China) provider and Usage by API Keys statistics; \u006085b7a0b1\u0060 Feature/ai observability dashboard (#79) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb776b7a279aa6db15226651ea808d2a5478d02f4e66bf7275b80ca894035944"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: providers.js \u2194 model.js: \u0060open-sse/config/providers.js\u0060 and \u0060open-sse/services/model.js\u0060 change together 52% of the time (12 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060a6fd8469\u0060 feat(qoder): port Kiro-style provider integration with COSY signing; \u006093265894\u0060 Add Vercel AI Gateway provider support (#1183); \u006075904b8c\u0060 feat(open-sse): add blackbox provider with bb alias (#1143) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/providers.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8351f9a5b1ed3e35926767275fd007481734ea32b10ac106e614ade6b61bd9f5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: route.js \u2194 config.js: \u0060src/app/api/providers/validate/route.js\u0060 and \u0060src/shared/constants/config.js\u0060 change together 50% of the time (11 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u006093265894\u0060 Add Vercel AI Gateway provider support (#1183); \u006014ff69bf\u0060 - Added BytePlus Provider; \u0060f2e7a98c\u0060 feat: add built-in Volcengine Ark provider support (#741) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f2debfb49c1fa165ac49c7e2b55e4ff87d418082ad5ab98275b90682f3b877"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: route.js \u2194 page.js: \u0060src/app/api/auth/login/route.js\u0060 and \u0060src/app/login/page.js\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006065197ad1\u0060 feat(auth): add native SAML 2.0 SSO integration; \u00606e9c7bf4\u0060 fix(auth): avoid stale redirects after auth changes; \u00607648c341\u0060 fix(auth): real client IP rate-limiting \u002B remote default-password guard \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/auth/login/route.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a779008115485b8da492ce78de366118947f712014af0d1822d97872e923b877"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MitmServerCard.js \u2194 MitmToolCard.js: \u0060src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js\u0060 and \u0060src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u00604ba546af\u0060 Enhance token refresh logic and improve MITM server handling; \u0060e40f7ffb\u0060 fix(mitm): gate sudo prompts on server platform (#822); \u0060c8d24974\u0060 refactor: update MitmServerCard and MitmToolCard to use modalError in\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2768a4a045a18ae7fd8408a734325fcef9b858e328bc65ba0d891cb5e5d0e8b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: opencode-go.js \u2194 opencode-go.js: \u0060open-sse/executors/opencode-go.js\u0060 and \u0060open-sse/providers/registry/opencode-go.js\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u00602aa99d9f\u0060 feat(opencode-go): complete Go catalog (40 models) with auto-fetch \u002B \u2026; \u006011222eff\u0060 feat(opencode-go): muse-spark-1.2 and Responses tool fixes (#3820); \u0060e74db4d0\u0060 feat(opencode-go): add muse-spark-1.3-contributor and fix parallel to\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-go.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca5a2c31503d5f0d4d94c1e8bda565af6887fa53caadaacb1e8f414bcf76442"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d068c977b62d9a977df1bb6f53e8b00b586c3abee955f91d715f92b8e019d624"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1ae293ce5d00c64f9fe36fad06531a59d9923eca1c6f5991b41ebe62d4e553d0"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"D43","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ca77df8ac0ed56a2e42b0923be81cca477f3174e98a1dc599981adac6a376eef"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P12","level":"warning","message":{"text":"Test suite runs only after the merge: \u0060docker-publish.yml\u0060 run(s) the test suite, but no workflow that runs tests is triggered by a pull request (or a merge queue) \u2014 so the suite reports on code that is already on the default branch. A red build there blocks nothing and the only remedy is a revert. Add the pull-request trigger to the workflow that runs your suite so the gate applies before the merge, not after it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"731ad560de6aa35d3e92103d5ad0fbec4c54f771b709281e852941847e03ef03"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060cli\u0060, \u0060gitbook\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s javascript-typescript pack, \u0060semgrep --config=p/javascript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 25749 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout. 82 of the 108 files that make outbound calls are unbounded; the first 10 are listed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/gemini-cli.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7b7bc126f258deab05606309c919d3150407f54240b62041f40cf3aa302f3b"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/vertex.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a190365bc079ff1cc6391ebcb8ee53b98cac4d0c76ec09ea64047dce4047f889"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/embeddingsCore.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf433ea22d86a4477530a43569a906c0a1adc741f87911d09f69084c2802292"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageGenerationCore.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7884664dc38cb03974fad4f3f5a741cf1536d8b914f407ce9e77c01e8d061d5f"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/_base.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e4b19b31b2ba220e639dc928c26fb0a39628d5cf312d394c03cbbaa368b8ac"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/blackForestLabs.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eee9deb1d43c51f2b51c85c842a8c9bef0b89edb1b9ba02f2e605c04c936eb0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/falAi.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b8b32d3cc0fa3e3fe91d3a425998b5603c4bcfcd18bfbaa25524c102e0f8ed"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/nanobanana.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a732977953ffe6da33bdbeccb6216a6d99af9ad977602d86a7ac993310f5b668"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/imageProviders/runwayml.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbe249f64364cf7fda78081e7b520fcc17bd0a3f9f52587d471f655438a04a1"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/sttCore.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e8cc375f2c1914152b16d29f5f5c2787736ad4033deee15688b1078e61f6b8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060downloadToFile\u0060 is async and calls unlinkSync, renameSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/xaiVideo.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7b024080da1aef35b7480050f42bfacb0cd8609bd846845248f9bbce74848c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060run\u0060 is async and calls unlinkSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/commands/xaiVideo.js"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b38cdb4cb5efb2cd21c17dbbef161719c04222d1ccf93e7314db1e82650aedc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060run\u0060 is async and calls readdirSync, rmSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/scripts/buildMitm.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7532299b3b812358cd8116fcd8b19ed60233d89fa470b2457328f4dc8ca4391e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060createSqlJsAdapter\u0060 is async and calls existsSync, readFileSync, writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/adapters/sqljsAdapter.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6227f2a53b36eab26f9b038e56d9f4168c9375f5bf11c1844e8d20ff2b250bf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060runMigrationOnce\u0060 is async and calls existsSync, writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/migrate.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31d2b965d4c66db9dd81b6bee2a60d2d4cd92311639d0b76a251160c2adea5e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execute\u0060 is async and calls mkdtempSync, mkdirSync, writeFileSync, rmSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"672038b3f14ede0d66ccff7abbe53a86b92a78b612076e11d1ecec8884313121"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readDesktopAccountCookies\u0060 is async and calls existsSync, copyFileSync, unlinkSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/mimoAccount.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6d6ad770caa9f70eb2c59ee81339bca0dde34c4c57e84c9b1209b00e5ec8e4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060createLogSession\u0060 is async and calls existsSync, mkdirSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/requestLogger.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aad24c226f0df74a50e59cb027e37f82423e0ff3d938d2b2c0728cc51f34359"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060createRequestLogger\u0060 is async and calls appendFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/requestLogger.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a88d01fed6aef5d96a6d6004d262c6e6c7cdbb903f07a05c7d938e0399faf7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060translateToLanguage\u0060 is async and calls existsSync, mkdirSync, writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/translate-readme.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a86358c99172b42ded51eae06949407ac01678e66e83f59ae1389a51324e3c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060main\u0060 is async and calls readFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/translate-readme.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e053639192f32834c30ec5bfbf27892410f136cc012d3a1c2c5ce5e74d17e6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060GET\u0060 is async and calls readFileSync, statSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/models/catalog-sync/route.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8675072778a516f043cfc862fba01a896d7f88d229bdae51ab7275161310c417"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060GET\u0060 is async and calls existsSync, readFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/translator/load/route.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6f68e4960809768b3e77c3f3d405becf0c7caf7aada6fed8e589b092caf9d6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060POST\u0060 is async and calls existsSync, mkdirSync, writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/translator/save/route.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9371b6f3673be76cd4e7668ff84baadb58c07ff70d913df0acad421f411f31c5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060killAppProcesses\u0060 is async and calls execSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/appUpdater.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e916a7ae5843356ae0d400c34195fc6f190ad493a80a95b1d91b12399274da"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060startHeadroomProxy\u0060 is async and calls openSync, closeSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/headroom/process.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"970f397186f9597ee1cf9e939c675065470f4cf07a861296ab0987237e7fea3f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060installHeadroomExtras\u0060 is async and calls openSync, closeSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/headroom/process.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2280909bce6503843c88152df442b544bbabd1d65c3e21449e00858f940bec22"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060uninstallHeadroomExtras\u0060 is async and calls openSync, closeSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/headroom/process.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7925c7169b740b5b80da21a793d8430d8394840900735c80309351e7568f3cf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060runInstall\u0060 is async and calls existsSync, writeFileSync, openSync, writeSync, closeSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/pxpipe/install.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8db4a67300eabfe0bb812239f2aaa0e71aef9ef9d0b74fb85c8ecb7f3af6b5c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_ensureCloudflared\u0060 is async and calls existsSync, mkdirSync, unlinkSync, chmodSync, execSync, renameSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/cloudflare/cloudflared.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25324278aaf73b19c17f451082856fba9e780c4cafba92d8926fac2bb30e399"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060spawnQuickTunnel\u0060 is async and calls mkdtempSync, writeFileSync, rmSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/cloudflare/cloudflared.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2829614634502410a69527c8ce73aadf55916a977179a4ca4ca1412fd7943a7f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060installTailscaleMac\u0060 is async and calls execSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"4327e91f097cc02d1bf17ed249dbe26a3c8ac3aa78ba5efb0321aa4b803d1d4e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060installTailscaleLinux\u0060 is async and calls writeFileSync, unlinkSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d14bb655177e48e1d439347d191cab1f84b973c0d9cb5fd7d9affaf5f8503b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060installTailscaleWindows\u0060 is async and calls unlinkSync, existsSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a76b2749bd34e4290283d7dc61ede5cb3a872a933c1747d65b802fb23929bc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060ensureUserOwnedDir\u0060 is async and calls existsSync, mkdirSync, statSync, readdirSync, execSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a0506029afa602dc6be0fed03810ebba7f60f4ff1c4d17a630e26957fa1deb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060startDaemonWithPassword\u0060 is async and calls execSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"be708716f99cd5c8eb22f2891e2b3f88f879a1906307bb3d3b88bc81dfc3081e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060startFunnel\u0060 is async and calls execSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"60101abf2178d3dcadaf7f79792d4199516a0ee65538c61b05ce33ac4f7863a5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060provisionCert\u0060 is async and calls mkdirSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaba5d9a1d0595790baba1947341f639c8417ababf5eacf962a14218f71e0fb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060stopDaemon\u0060 is async and calls execSync, existsSync, unlinkSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cb087e58928f0c88c4005dcb5400f330ba2065d0d762234bba97b7ffda5add"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060addDNSEntry\u0060 is async and calls readFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/dns/dnsConfig.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"04be349f2626a7e448c90a546badad11e4adad82160e8473903f40b48a5cf1d2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060removeDNSEntry\u0060 is async and calls readFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/dns/dnsConfig.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca2ad3be5e0b7d1f6019b0a8d312dbad06dd12d56e50b98fd39b139714dfa12"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060installCert\u0060 is async and calls existsSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/cert/install.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d6a11ca1dfd8d90e83d93ce739cfc0b1c64ebaa5db0c1dda51b43bb3a24a1b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060killLeftoverMitm\u0060 is async and calls existsSync, readFileSync, unlinkSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b587a34ec41e11f8c8b27af05689a1554c98d3d1b54540eac5fe2073f9aaa64"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060getMitmStatus\u0060 is async and calls existsSync, readFileSync, unlinkSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d322d2475fbd34946958366165e2afc128f637b7e57cd95e5ae1549787fb9c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060killPort443Owner\u0060 is async and calls execSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6940769918460959a03f34a7718590bf63f3e71203923603aa8e1de45d3c48fa"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060startServer\u0060 is async and calls existsSync, readFileSync, unlinkSync, writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"231c5c46b1b3a7727035e3dbe35b53e07284dc2011825c1752ab0f67f2f9ef9b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060stopServer\u0060 is async and calls readFileSync, writeFileSync, execSync, unlinkSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf950e0500f9f77ea145d0b5f715c5c9362f4ddc6ec8d6f1b871699061686172"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060trustCert\u0060 is async and calls existsSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e6e474e6bc41e60ae7f6c68f9584e598994b70c5f7630d23cc77d741ff5dc4"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 1323 plain JS \u2014 the untyped files are cli/cli.js, cli/hooks/postinstall.js, cli/hooks/sqliteRuntime.js, cli/hooks/trayRuntime.js, cli/scripts/build-cli.js, cli/scripts/buildMitm.js (\u002B1317 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (52 clone groups): 52 duplicated blocks under src/ have copies in at least two of the sibling directories app, i18n, lib, mitm, shared, sse \u2014 37 of them are reported below, and 15 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 52 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 52 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 52 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7619708069058bd97ec178cca024a1926a5077347c87844688f9a62749ba868"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 12 sibling directories (36 clone groups): 36 duplicated blocks under src/app/(dashboard)/dashboard/ have copies in at least two of the sibling directories basic-chat, cli-tools, combos, endpoint, media-providers, mitm (\u002B6 more sibling(s) not listed) \u2014 20 of them are reported below, and 16 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 36 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 36 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 36 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47820f4af64afb59be5a7d9be9e1406a51fa6b36d7b9ccdf9e004f222f1204b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 20 sibling directories (31 clone groups): 31 duplicated blocks under src/app/api/cli-tools/ have copies in at least two of the sibling directories antigravity-mitm, claude-settings, cline-settings, codewhale-settings, codex-settings, copilot-settings (\u002B14 more sibling(s) not listed) \u2014 21 of them are reported below, and 10 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 31 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 31 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 31 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/crush-settings/route.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"802f2f93303f0273a5fb7d6e40fc85f16537fe4d8605019ecb787ebd6416fb16"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 19 sibling directories (30 clone groups): 30 duplicated blocks under src/app/api/ have copies in at least two of the sibling directories auth, cli-tools, combos, headroom, keys, mcp (\u002B13 more sibling(s) not listed) \u2014 19 of them are reported below, and 11 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 30 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 30 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 30 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/models/route.js"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"c599577ab5c0e1f8c77e77c034ccc3efe45746d4b4648865bfdf7253a72f6615"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (28 clone groups): 28 duplicated blocks under the repository root have copies in at least two of the sibling directories cli, gitbook, open-sse, src \u2014 26 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 28 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 28 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 28 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/api/client.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ee8ca3a19a9a696be86e04ddc9a3c2f7c49d4811bbde5c7940d07974dd0678"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (19 clone groups): 19 duplicated blocks under src/app/(dashboard)/dashboard/providers/ have copies in at least two of the sibling directories [id], components \u2014 16 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 19 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 19 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 19 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd53116f5ce52cdad7859e6a9f5ab05629f7307ef3cfc5f1eeb55e7c4e16913"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (16 clone groups): 16 duplicated blocks under open-sse/ have copies in at least two of the sibling directories executors, services, shared, transformer, translator, utils \u2014 13 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 16 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 16 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 16 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/cursor.js"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4628fd248933d3256fe611b38c7d8379edd4fd56355056bdc2f36fb7c70849"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (11 clone groups): 11 duplicated blocks under src/lib/oauth/ have copies in at least two of the sibling directories providers, services \u2014 10 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/providers/xai.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e892ffbde25765ed83f0cc6d3be8a4db8e1a1ac04c6c8e45b14d26532bc9fd0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 9 sibling directories (10 clone groups): 10 duplicated blocks under src/app/api/oauth/ have copies in at least two of the sibling directories [provider], codex, cursor, gitlab, grok-cli, iflow (\u002B3 more sibling(s) not listed) \u2014 7 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 10 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 10 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 10 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/codex/bulk-import/route.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff76c389b277108e5191c1575e0f240437c382901acd1ef1aeeaeba3e6da375"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (8 clone groups): 8 duplicated blocks under src/app/ have copies in at least two of the sibling directories (dashboard), api, callback, dashboard, login \u2014 2 of them are reported below, and 6 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 8 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 8 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 8 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/AntigravityToolCard.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f86eaf1a0f8d931fc472827790f9f2212e3be446a7cdec890d1afd40244f43"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (6 clone groups): 6 duplicated blocks under open-sse/translator/ have copies in at least two of the sibling directories concerns, formats, request \u2014 5 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/responsesApi.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3049b912e653eae0b7389299784d9773452d2b3e09cdee2dff578a74cbb89131"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 12 sibling directories (6 clone groups): 6 duplicated blocks under src/app/api/v1/ have copies in at least two of the sibling directories api, audio, chat, embeddings, images, messages (\u002B6 more sibling(s) not listed) \u2014 4 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/chat/completions/route.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"38485f0f8f06ea4f4a9653bc4b6c74d91e0aa28f36062c1878d97a84dfbc11db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (5 clone groups): 5 duplicated blocks under src/app/api/media-providers/tts/ have copies in at least two of the sibling directories deepgram, elevenlabs, inworld, minimax, voices \u2014 4 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/media-providers/tts/deepgram/voices/route.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e20e88c11435cb7aef410cee007b7c5b99f9c148dc727c0d6c2f05b7d7b6674"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (221 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js:26 \u00B7 src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js:27 \u2014 the two spans are one implementation copied and then locally edited \u2014 1564 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bbb7e874430757a3f47be342391d2f9fe5c8670b23df8eb36989aeeac66a1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (217 matched lines \u00D7 2 locations): open-sse/translator/request/claude-to-kiro.js:46 \u00B7 open-sse/translator/request/openai-to-kiro.js:44 \u2014 the two spans are one implementation copied and then locally edited \u2014 1476 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/claude-to-kiro.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"360734f9e086f1d5fc2fcb4a15d97ecc3797129a8d2f09aacc2780054c3487ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (195 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js:45 \u00B7 src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js:49 \u2014 the two spans are one implementation copied and then locally edited \u2014 1331 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4b81db73e4a551492c80d3ed7f716f07b0b42f2f5556f3c590a267911e873b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (193 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js:22 \u00B7 src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js:27 \u2014 the two spans are one implementation copied and then locally edited \u2014 1303 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8df1cdd39f20ad0acb7780b74c2de874700151d8569f45e017395a00c481ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (166 identical lines \u00D7 2 files): src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js:3 \u00B7 src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js:3 \u2014 these 2 files are line-for-line copies of one another \u2014 166 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa2549d380abaac5a02211fc913afb2028a1ec1a0cef8b995dbad92390b72ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (139 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js:181 \u00B7 src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js:107 \u2014 the two spans are one implementation copied and then locally edited \u2014 925 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4693ad02ef01368a0c1406b83861b9becf7fd3b75ef131471ae58fa25a714cd5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (134 matched lines \u00D7 2 locations): src/lib/oauth/services/antigravity.js:12 \u00B7 src/lib/oauth/services/gemini.js:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 806 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/antigravity.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3be3a6af0814d0a3e5506ace1c0e5778aaa07cae4add04b4ab7430dc27ba7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (129 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js:11 \u00B7 src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js:36 \u2014 the two spans are one implementation copied and then locally edited \u2014 1191 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f40a3da309c213dd74063a21722255999ab9dfe837e4293b7aec74bdb84e653"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (128 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js:131 \u00B7 src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js:162 \u2014 the two spans are one implementation copied and then locally edited \u2014 902 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c0cb9938bd4daba5e0d7e6da29ed0d9178b5246fb3e249a84e1ca4334600f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (128 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/providers/[id]/CompatibleModelsSection.js:7 \u00B7 src/app/(dashboard)/dashboard/providers/[id]/PassthroughModelsSection.js:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 664 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/CompatibleModelsSection.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d50946edd4ba713913c34174220a3ced081941c7bba2465e929e6dbaf9888cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (124 matched lines \u00D7 2 locations): open-sse/translator/response/kiro-to-claude.js:19 \u00B7 open-sse/translator/response/openai-to-claude.js:50 \u2014 the two spans are one implementation copied and then locally edited \u2014 798 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-claude.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e694f855d51860e5894140d53dec0c5d8dafc0bb881336e45154e01e0e266d6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (116 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js:240 \u00B7 src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/SttExampleCard.js:106 \u2014 the two spans are one implementation copied and then locally edited \u2014 606 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"be69d06fe27f712c25d40e13ed9cd6f162daeb00188fe21888d39e1af7489423"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (111 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/combos/page.js:977 \u00B7 src/shared/components/ComboFormModal.js:34 \u2014 the two spans are one implementation copied and then locally edited \u2014 1011 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5d9cf200798c58b3405ed843cbe00d4a9e94aad1f1130d001d141e5c9d7cc2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (109 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js:31 \u00B7 src/shared/components/EditConnectionModal.js:15 \u2014 the two spans are one implementation copied and then locally edited \u2014 614 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"835c1a31bdcfc2c58ea62045cfa7e705530f46a7564fb6856d318102406ec881"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (108 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/media-providers/[kind]/page.js:15 \u00B7 src/app/(dashboard)/dashboard/media-providers/web/page.js:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 964 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/page.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"932de4aefc614fac11a8c4492d5c53f79576f20ce0d0061af52eb075c7e10435"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (106 matched lines \u00D7 2 locations): src/app/api/cli-tools/crush-settings/route.js:15 \u00B7 src/app/api/cli-tools/pi-settings/route.js:15 \u2014 the two spans are one implementation copied and then locally edited \u2014 743 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/crush-settings/route.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0178b3951072194cf64ed3aa5933df10e03b66323f0cfb4c72d8468f6f32d851"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (101 matched lines \u00D7 2 locations): src/sse/handlers/fetch.js:37 \u00B7 src/sse/handlers/search.js:34 \u2014 the two spans are one implementation copied and then locally edited \u2014 725 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/fetch.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8597ba4b493788cd1a94a4ec643d12099228d494b446fe3d0bd486a34c6e344f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (100 matched lines \u00D7 2 locations): open-sse/executors/opencode-go.js:67 \u00B7 open-sse/executors/opencode-zen.js:183 \u2014 the two spans are one implementation copied and then locally edited \u2014 864 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-go.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f718aae0d081528eb75d3070c9f688f0fbb24d9db80bd0a032e7621f8752f32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (100 matched lines \u00D7 2 locations): src/sse/handlers/embeddings.js:32 \u00B7 src/sse/handlers/systemone.js:23 \u2014 the two spans are one implementation copied and then locally edited \u2014 707 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sse/handlers/embeddings.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"784dc62bcf89c39513d52c32a5c1f5a9466b533e04aa2b46fea5b7a52d8d6506"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (99 matched lines \u00D7 2 locations): src/app/api/cli-tools/droid-settings/route.js:10 \u00B7 src/app/api/cli-tools/openclaw-settings/route.js:19 \u2014 the two spans are one implementation copied and then locally edited \u2014 585 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/droid-settings/route.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"906d61f551930de47ee688d05f98d1f312b02b4d76748352311f83d658909aac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (97 matched lines \u00D7 2 locations): open-sse/translator/request/antigravity-to-openai.js:39 \u00B7 open-sse/translator/request/gemini-to-openai.js:27 \u2014 the two spans are one implementation copied and then locally edited \u2014 596 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/antigravity-to-openai.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a002344c039ac7a620099cb7b80458d39ba22ce45919421fc33951aa421337d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (95 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/providers/[id]/BulkImportCodexModal.js:23 \u00B7 src/app/(dashboard)/dashboard/providers/[id]/BulkImportGrokCliModal.js:52 \u2014 the two spans are one implementation copied and then locally edited \u2014 549 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/BulkImportCodexModal.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"097890a08428f51a6c8ef873e18e728a838a22c19d423a71c7f8365adcfe1202"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (93 matched lines \u00D7 2 locations): src/app/(dashboard)/dashboard/providers/components/AddCompatibleModal.js:87 \u00B7 src/shared/components/AddCustomEmbeddingModal.js:63 \u2014 the two spans are one implementation copied and then locally edited \u2014 507 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/AddCompatibleModal.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"158862f728259be5963dc469b9b18a4f68f2b9ec47c54cb2a6d1146cfe1f8f94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (83 lines \u00D7 2 locations): open-sse/services/usage/opencode-go.js:25 \u00B7 open-sse/services/usage/opencode-zen.js:25 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/opencode-go.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8398322a159e468bdddfaf34d0e8e012b8909b6148ceb036a75cf0e35ca94f0a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (80 matched lines \u00D7 2 locations): src/lib/db/repos/nodesRepo.js:5 \u00B7 src/lib/db/repos/proxyPoolsRepo.js:5 \u2014 the two spans are one implementation copied and then locally edited \u2014 539 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/nodesRepo.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9038625ab7b0f131289a3c55e9a802754aaa5190673195f5e8c43d5ee6be264e"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (74 identical lines \u00D7 2 files): src/app/api/cli-tools/codewhale-settings/route.js:3 \u00B7 src/app/api/cli-tools/forge-settings/route.js:3 \u2014 these 2 files are line-for-line copies of one another \u2014 74 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/codewhale-settings/route.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"83983efea0515ac6473a543ffea520a76c172906e15935d514b997123ba06584"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (68 matched lines \u00D7 2 locations): open-sse/translator/formats/responsesApi.js:84 \u00B7 open-sse/translator/request/openai-responses.js:22 \u2014 the two spans are one implementation copied and then locally edited \u2014 499 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/responsesApi.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a15ff6ef5b3a8430032c703c721f4793b9a5ca319f09eb7d4737326abb5bf35"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: custom-server.js:135 imports next/dist/bin/next, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"custom-server.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca3d7c58a5847ca818f309b7e85692886b6d28570f3309976073b5710fe35e6"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/UsageStats.js:15 imports src/app/(dashboard)/dashboard/usage/components/OverviewCards.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b996d9004f37b4a8e2a42847434a04c5441049bb86b8e80cd786331e7757483"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/UsageStats.js:16 imports src/app/(dashboard)/dashboard/usage/components/UsageTable.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9aa53aa881eacf7e158e3aadd524ecd1dc6498f2a8005dacc026f8660b6720"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/UsageStats.js:19 imports src/app/(dashboard)/dashboard/usage/components/ProviderTopology.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba51a7949929e2d9fd5c1d1fa18611f5a16de82c44e06d3c16db62cb69648871"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/UsageStats.js:20 imports src/app/(dashboard)/dashboard/usage/components/UsageChart.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"186fbf04c151ea50ce23d01ed3bb0d2c7157df886d4ba723ef01050fc5c06d85"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/UsageStats.js:21 imports src/app/(dashboard)/dashboard/usage/components/ProviderBarChart.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7106417f1ad51ee84f94a1cd1872e39f2682bee74800d05cac237d4e62934e62"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/UsageStats.js:22 imports src/app/(dashboard)/dashboard/usage/components/TopModelsChart.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/UsageStats.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e782733e18a25d8e468281588974bd91c4856eb8ae00c3ff01801fe64881aa"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/layouts/DashboardLayout.js:44 imports src/app/(dashboard)/dashboard/usage/components/UsageChart.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/layouts/DashboardLayout.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"825e1cdc0d8b867802d67e006693a0f37621576fbeea4d213c35a5b6d9310bfa"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/layouts/DashboardLayout.js:45 imports src/app/(dashboard)/dashboard/usage/components/ProviderBarChart.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/layouts/DashboardLayout.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fa3c6da659050ab4d6ad0e26cdf1a5b22a8bd799d5e2b6d9fa4e4ddb297b61"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/components/layouts/DashboardLayout.js:46 imports src/app/(dashboard)/dashboard/usage/components/TopModelsChart.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/layouts/DashboardLayout.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aea521e03536a6600f86db1c4186d2df7075e03a79ca259be55a25ef2903b3c"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [fsd:shared-only]: src/shared/services/quotaAutoPing.js:11 imports src/app/api/usage/[connectionId]/route.js against the feature-sliced rules."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/services/quotaAutoPing.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6ad92f38cb000ceb9631c10446a0c632803bb97fe39e506eee10dec81003c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleChatCore (cyclomatic 165, cognitive 203): handleChatCore has cyclomatic complexity 165 and cognitive complexity 203; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf9c5421973107b477a225dd5da5003843bec44309c71740c83d3672508d515"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getUsageStats (cyclomatic 148, cognitive 257): getUsageStats has cyclomatic complexity 148 and cognitive complexity 257; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/db/repos/usageRepo.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"388a9ce3546faba8571717b092a57a41a0cc3267f13bcb63576c130886a1c551"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testApiKeyConnection (cyclomatic 142, cognitive 147): testApiKeyConnection has cyclomatic complexity 142 and cognitive complexity 147; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/[id]/test/testUtils.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cff79d4d441148d32fb246673e5e68e4f08e25b314f86dd8d0743408ff1c66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 134, cognitive 120): POST has cyclomatic complexity 134 and cognitive complexity 120; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0fd3baa17338a5ba7dd651e5d8edb1b0338e7fc8c71e413e6cc02b5b99209a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transform (cyclomatic 94, cognitive 201): transform has cyclomatic complexity 94 and cognitive complexity 201; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/stream.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59c2cf8e52489a6f4f18ab935ad1f3646d5352db7db9dead2822a4c53005ce8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfilePage (cyclomatic 80, cognitive 77): ProfilePage has cyclomatic complexity 80 and cognitive complexity 77; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eb452e1fabca2d129831ffab47fa8ef40ca057656e7fef012c57131c98c510"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyFormat (cyclomatic 79, cognitive 103): applyFormat has cyclomatic complexity 79 and cognitive complexity 103; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/concerns/thinkingUnified.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7aae6dca64e3e1a66746c4c1363ad79dfc5cc0f641b27e4605ae1c9f5d59a28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pingModelByKind (cyclomatic 78, cognitive 87): pingModelByKind has cyclomatic complexity 78 and cognitive complexity 87; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/models/test/ping.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed45155f22b875ff2f035fa717e64b8a00ea5e165eee491a47c04ba9ee28e32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildModelsList (cyclomatic 76, cognitive 160): buildModelsList has cyclomatic complexity 76 and cognitive complexity 160; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/route.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"b580478d5f330bc47c6e542117fd4b9e7afee432d0fa7fd477d0ce8f076a64c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 74, cognitive 112): (anonymous) has cyclomatic complexity 74 and cognitive complexity 112; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdd448466b004772f53449ef89075d75967556cd4a74338e5f42edcc760fd68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openaiResponsesToOpenAIResponse (cyclomatic 74, cognitive 88): openaiResponsesToOpenAIResponse has cyclomatic complexity 74 and cognitive complexity 88; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/openai-responses.js"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"8809cb873d773f413ac6f50febab28089c004f1ce4d56cf05582b1e8fc4bdb09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function translateNonStreamingResponse (cyclomatic 70, cognitive 96): translateNonStreamingResponse has cyclomatic complexity 70 and cognitive complexity 96; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb7c9ee27714ba4364f2f302def5ad2e94586ab878cabe91df3bdc972afb7f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGrokCliBilling (cyclomatic 70, cognitive 56): parseGrokCliBilling has cyclomatic complexity 70 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/grok-cli.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"46712c7799f8df8ce6af325560fa8cad13549c8855b6889b9a718a82c34eefd2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startServer (cyclomatic 69, cognitive 119): startServer has cyclomatic complexity 69 and cognitive complexity 119; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf2d867193670caaae293a397cbe72321187ffae5f8151c7c85b19567044fe9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processEvent (cyclomatic 69, cognitive 101): processEvent has cyclomatic complexity 69 and cognitive complexity 101; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a4b2619acf9b70785c0691f8c1b0461cb0d82007ab5620bd318ec5eab150af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleForcedSSEToJson (cyclomatic 69, cognitive 83): handleForcedSSEToJson has cyclomatic complexity 69 and cognitive complexity 83; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/sseToJsonHandler.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"62474f6eeb2b58bf6e6828fa4eb5b987c4e47fac2beb8c650372b282c0b22ffd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ConnectionRow (cyclomatic 68, cognitive 64): ConnectionRow has cyclomatic complexity 68 and cognitive complexity 64; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3403d0d1af880c162011db3372d92403dc9bd84ff18ddeb3c8607cf8c0a2844e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openaiToGeminiBase (cyclomatic 67, cognitive 175): openaiToGeminiBase has cyclomatic complexity 67 and cognitive complexity 175; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-gemini.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ca9ef6a5ba054cd38930aca286cb283852c86301d59d84e22fb0f2b3babc81"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 67, cognitive 113): POST has cyclomatic complexity 67 and cognitive complexity 113; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/[provider]/[action]/route.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d64beb612c18e1a7e5e17c4c57d7add605cb1567060bea487f74472c2286bd7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function APIPageClient (cyclomatic 62, cognitive 52): APIPageClient has cyclomatic complexity 62 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47cb48365c447a78c29d45f9f6bdc40f30ca53e355fc64ed1ae3334ada6cc0c"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: tests/unit/embeddings.cloud.test.js:65 imports \u0027../../cloud/src/services/storage.js\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/embeddings.cloud.test.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"081a8f873d2eb3eb419a29f460ccdc0a684943846020208dbb6d9259d38e2ab9"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e93211e3d3dd7b59710c69fcb3693621f096be0d007075cf213eee385836cd"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cd273276f94cd76edd9a89e3ae4df6a35975b559976cc54b8f3c7ed7664808"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3227a626c28dfc199d5d8a6795ff4e19ad8a591b1b1fd0b7a7b05f228c7086d2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b845067e8e8b89b7c2bb7d13fe1df7fea6347b24cb989bc7cc6acd223a9dfdb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/combos/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecbaaed64eb5c20125b10d871ece15a178ecd6f75a64860348c8b4b869e7730"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"444c4669f5e691c6b329fde0f8d8454613a7a8da254479b7110e973bd3d280e1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee07ac782fea137d48a7c05924a7581de70f83d1c7ba8ce4fed6ea2e4616f43f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/token-saver/TokenSaverClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fe1fecfa27909bcb61e3036e553b901218107c8e0ceddae180b0bba335a91e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa74637e7097551e081ac4c545ba2d21e6db283ca85c2f576b36f26b8ef0741"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/tunnel/tailscale/tailscale.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"847542b3b99db18a9c0e88aa5ce79cb0f21ac7c35af0729a5dbb1b768330f57e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/providers/validate/route.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2616e2f0777f42c1986a126f99f606d7c1a502fbb10cb52838908521b304d521"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GenericCliToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2326133d2a030f2974d193e1128459ee5d8fc6ef60a0a516f291b397f80a166f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/TtsExampleCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de008e2d88ed0e028aaae5c14c7dcccc258f4fc3389500b3b7933a1ee577e154"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6050e38cc9edad5f21e96370e490ab833199462aaa2f381c57e08f100202b24a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece70e42c8892775d7174186d261c439cc894403327580914e7b96de8997bb48"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6027fa75ba38ac65fb2f629b2569c8e271fc3ff568e688f9cce4f2419639de6"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9db315729321da7d687b92a4d58cd9d8b5e2d73b66231dad7581202be0c40b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb584dc47b083a504e75ec457e51d2baac03d67554aaea7b67e8464f9ecc4b1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68d56da42e21b28a7620c73b7b1bd2e2b915c7da7e05668957ec030952f30a1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/AntigravityToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda609f40b442c7d5501044c7d0a9d48864d95306dc8d421dbf81e05b2f0feea"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3261045852d99d7a159b960e4914695b8cbb4dec9581dab97462aa8f11c2dac"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03dd4f54810fe869f97f9c20ef4646fcf611f6da93b2e9a230799eb8737a329"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"391843219c1f1fb1086ce9b124510973dcd2ad6fcaa9d22036a975b34e351173"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/server.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d675762b423e49ab822ea43d23fa7195395a03e3c6d1a8e8c37421f1ea0d522"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"861fd5e942893f3dd0e0e75aa559c600bd04a4da8ce3892f35c2775b9b59c35a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a021d41908222f7d81e2c9577d7d0c04f7f341e22edbf1c64f4f25649da2f6"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1e18511467f3de47f51f1c24ac4c8bc3b4a0311de7e71a8e4a9bfdee67a3dd"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df326e082a216bbb5a18291960a8445fba95cf70495800dcca4434d6b67728b4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/cowork-settings/route.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a52e29299a8c591cccaa12fb9ecad97970865e25046d9d79a0c4f3a4b2b267d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed39ad64f21f3cb116cbfdc45d1753ed8605f00cb65a1655bb141d9c836a213"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/zedCredentials.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a5157d20223caeb08b3c67f01c089394c6fbe0cd2a0d794a75b2302f8478f1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/services/initializeApp.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1ade33dcbb19b80c5dfff6c56f130ab330c76ca8ebea8d687b46982f5ced3b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f862713b70783961dd18e4c6f320d55ff88fc565871d9e8d4315354f37149e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e9143993b7ba5acc9553813d659d8a1711a53a7a3c79cf757b4581a515063c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a2a7903dd918dd6b8bd96e3498cf36789096664d6f65685a0713451f63042b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f7ae6df87f5d5ce1bf168191784e6e4f468f5dea9648d3fed59305eb0c4def"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/antigravity.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"548374fd1e4bda1eceaf55badd0faed4369bbe6f9b249282a97ad902418380b4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5202235f96786c25251b277ac352235965c6664b9ccc70cc41ef9fb51e36fa87"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/translator/page.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"237b3039107a17c8f3e8efc5848872d5bb81e1abc810c1cfba92f8816a7ee076"}},{"ruleId":"R6","level":"warning","message":{"text":"The declared test suite includes a file that cannot be loaded: This repository declares test tooling, and the \u2713 above records that declaration \u2014 but tests/unit/embeddings.cloud.test.js cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) \u2014 each one is reported with its failing import under Test Coverage \u2014 then the declared script exercises what it claims to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/embeddings.cloud.test.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efc1c1d2ad1ec1f352c1c95592c63bf7aa6604ad019ab6b595281660cf633e2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~318 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/lib/oauth/services/index.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/antigravity.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2aa545a1076509bad061122cb59842fd715b1947f3d9b6507ec14f3b1b88b5"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~271 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/migrate-registry.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a29b1ac606e30a93a91c9b93ff936e779e24374818ae43ffe52a5fd0a7bfcfb"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~239 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/lib/oauth/services/index.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/gemini.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c86edd78f9aaddc2415e963ca9337cee613bc12298f360dc837859ad10b448"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~225 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/lib/oauth/services/index.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/github.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a1d3a313db674c14dae7c77b46f6a05322b6fdde84b683ec9fda026c6ba3ef"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~201 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/lib/oauth/services/index.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/iflow.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6578c64329e962da230d22f75db0bbed510127880777600cf86c350119d678ca"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~187 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/ProviderLimitCard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c416ebbc994dc34691cb8f6b9fe98e29e0f1e8f787f4019bf2143c10703827e2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~144 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/lib/oauth/services/index.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/codex.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9263962e9f31466365cd147ffd484e5fe97153b0fc6526b7fcdf9447953e301"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~143 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/windsurf.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b2a5cba8771f07803e8f866e8e868b4b76c916967d8df9392005eb52f82982"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~135 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/opencode-zen.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcda6baedc3f0fe1ca177a33e3cefda847f471f46c58d469c7b25a2bdf7a364b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~135 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/lib/oauth/services/index.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/claude.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87af38c3b427c55c8e69fa5141a004ff0ef33bd9d9568726d3caf369ffc2fa9f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~133 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/kimchi.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"176fbdae408e9a77a694120a0dd08974b69c374defbac0753febcc1283c712b0"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~132 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/app/(dashboard)/dashboard/usage/components/ProviderLimits/ProviderLimitCard.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaProgressBar.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbccadabf166f31e77564f37c6b7ecd0f733158a16fd8fcf05b4bf5d2b0d612"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~122 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/lib/oauth/services/index.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/openai.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8455bac9d95ffe5abbf356c38ad23cb3bb096010394f8d300f0a908546a88708"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~98 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/responsesHandler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33f13b7a570f0d90fd53e98c7c195a35913b8bd316a26acde81641b527a18b2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~98 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/REGISTRY_TEMPLATE.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ff76fa5b584fa0360228a9747b257756c479235f2f1dd2b61b49dbc6182112"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~96 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/grok-cli.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2219f47e57fbc73777d03599865e8b81160803946d0aee94fc7ce7d455639924"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~94 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/xiaomi-mimo.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4167f2a43ae5ed12364a11640acda7b2695d55bdb4be50e76e89e74300d4f218"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~93 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/glm.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a2cf23b00ac111aeb7e0f543bff8b9114fea070d73fb060b320cbed7bbbb01"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~92 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/kimi.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fbdfe42811332e164c1559142a55334051d0143dd3cf1b63eaf58ea0ff23e6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~92 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/opencode-go.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4061365ae4180cd8ce135beda617301fda3647b2b5c1bef412cba57b645f32b1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~91 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/github.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13105ef3847aebaf1905265dfa96904fc9d04eed5cf0248da8db63c47b8b6584"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~88 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/claude.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f32f6d0cc90494bc9dd486ce71d6a64634ed2f91a5bf3dd035f9c2ff115f462"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~86 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/codebuddy-cn.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"217c3329aa6e0b1aed2c9684e804cfc605c02a25e4a9c29f46b9f7833b09e464"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~85 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/openai.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b811d81e35455fdcd0538e2c4a113668d0cc71121495c29508fa4523c154acf9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~84 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/minimax.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc31ef5e7d6c2eac29ced0aaa6b98926ff4279652097852c97f2437a77570015"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~79 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/codebuddy-intl.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8532e8fb3096eee83c865218af7a1f6e197ba7bb0f60edf0a46bf333638688e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~77 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/minimax-cn.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d54c5ec76c3e6e630a53cbeec2011aed8c0c58dc831927e802d7e2c5a59f783"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~77 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/openrouter.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2af920181e92e34b237bd7a0b4dd20c9871c6f8eb25367cbcf3142710f5bef"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~77 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/shared/constants/index.js) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/constants/colors.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fb7355ea50c4667a7e83072ab6f027e6cf777c8e37c2b493e64ccb01f0b843"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~76 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/trae.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14753563687e1fd8f8bbfaf60ddf8ce4b314a3f3f278383d36a5b5bc3f9413d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~73 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/selfhosted-embedding.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dbc20f5b1b7b685e07a8cc509635efbedde38b739ded7a15960419f6693fcf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~72 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/deepseek.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d319741dca2932cd121af5a83cd9ab2d072b9867048616742d52be5ec05e0c8f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~70 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/zed.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c5c2dd80ccc62da0c90c0a34ecda81d88a59b0e4891d54c624af115efcf8c4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~70 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/compact.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dd95994f363efd00221d1fa8e5ab2d39ff8d894b62bec7984258d756ae9bba"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~67 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/muse.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a208071baad496553c31cc37dcb282750af1daef84a3f06171f4176e3d7728"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~64 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/tokenrouter.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9655fe86b497686e313a305ab448bc903793b595114b7029e44fba13af08d677"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~63 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/devin-cli.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c8a657a1329c3ca5ca955ed7ecf76d2871153f784c50b90ab3c4cabde97a62"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~63 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/xiaomi-tokenplan.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e3e954c1989d8940d734a8e0355d648f2142c56c9a11025fb94f3f9e173e25"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~62 LoC): no import path from any entry point (247 application, 11 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/providers/registry/clinepass.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"902e460a57bae25242b90c9dba5aa25ddacc6310b45a5a0627c66b4e7592b5d0"}},{"ruleId":"R8","level":"warning","message":{"text":"Unlisted import \u0027got-scraping\u0027: Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it \u2014 but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/proxyFetch.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05ccb1771b968306576ad48ea2357460ce9eb347aecfe3fbccdb4f5e0b80ddf"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027systray\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/tray/tray.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"feba58ea0d4744f9d30b4576b1391e073173239222b818d11b79f47e6730de4d"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027systray2\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/tray/tray.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d67691ed06cc79dd438a27614c370725dc4492cdb5d6e39580efe69420139b"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027got-scraping\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/claude-header-forwarding.test.js"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"04287e2d9932ac09bbbbe93770286042f7a8e07282988a4e1247b5a3fa628595"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027express\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a91fd3c1707d0307009054ae3a3ad0dcaca97bc6b8d0e90051b737ab44cefdd2"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027http-proxy-middleware\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5fd0cd0156bc32c4d8b02480a44523594d37a49f2b46b0189f124314eb6012e8"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027monaco-editor\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6f749fddc305e4a5de8c70ff47a17dfbb78893bed9f2b8f5c83abc522625fa97"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): open-sse/config/kiroConstants.js \u2192 open-sse/translator/concerns/thinkingUnified.js \u2192 open-sse/providers/thinkingLevels.js \u2192 open-sse/config/kiroConstants.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/config/kiroConstants.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"346696dff775ff090c88d5cd957bde1dddb637bf69a3db0bedd4a3af1798d61c"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): open-sse/translator/index.js \u2192 open-sse/translator/request/antigravity-to-openai.js \u2192 open-sse/translator/index.js (one verified cycle inside a mutually-dependent group of 23 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8224093c09d6fbc29ad66c3b582b265c5a4463d8d22f0ceca6a61936b5ad133"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): src/shared/components/AddCustomEmbeddingModal.js \u2192 src/shared/components/index.js \u2192 src/shared/components/AddCustomEmbeddingModal.js (one verified cycle inside a mutually-dependent group of 11 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/components/AddCustomEmbeddingModal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b670e0165d48dd49c3e7b497584ea1f8e1911dfd6fcf312b78f6aebd02e0b93"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: No package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock \u2014 JS installs aren\u0027t reproducible (SSDF PW.4.4). Commit your package manager\u0027s lockfile and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"40a08798dc9f9c819eaa9f7c084938e1cf2517a9281aed2c31563d6f7d5ba90d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!apiKey || typeof apiKey !== \u0022string\u0022 || !apiKey.trim()\u0060 appears character-identically in 7 files \u2014 open-sse/services/usage/commandcode.js, open-sse/services/usage/deepseek.js, open-sse/services/usage/groq.js, open-sse/services/usage/opencode-go.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/commandcode.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"639f7639100ecd783d8413e1b57ff3232b8d61ff8a2a7d7df17f4cbc0eb164a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!body.questions || typeof body.questions !== \u0022object\u0022 || Array.isArray(body.questions)\u0060 appears character-identically in 2 files \u2014 open-sse/handlers/systemoneCore.js, src/sse/handlers/systemone.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/systemoneCore.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf279d39435e58418db2ece8d9f4987647c6d4184cff5130a7c9bfbc7df833c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!item || typeof item !== \u0022object\u0022 || Array.isArray(item)\u0060 appears character-identically in 7 files \u2014 open-sse/executors/codex.js, open-sse/executors/grok-cli.js, open-sse/executors/opencode-go.js, open-sse/executors/opencode-zen.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06b684aacba8f2e394583d11af4761e1a9a7076ab4c6fcb77621a4196eb3de0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!item.name || typeof item.name !== \u0022string\u0022 || item.name.trim() === \u0022\u0022\u0060 appears character-identically in 5 files \u2014 open-sse/executors/opencode-go.js, open-sse/executors/opencode-zen.js, open-sse/executors/opencode.js, open-sse/translator/formats/responsesApi.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode-go.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"481553ce0ae33371006d4a8644d76c33147caf279aa04965d8b7a3054d1d5c37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!payload || typeof payload !== \u0022object\u0022 || Array.isArray(payload)\u0060 appears character-identically in 2 files \u2014 open-sse/utils/streamHelpers.js, src/lib/db/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/streamHelpers.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eaa135d4e427cd0950204227fd69772c89698da74569faac4f912cceffd6242"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!provider || ![\u0022google\u0022, \u0022github\u0022].includes(provider)\u0060 appears character-identically in 2 files \u2014 src/app/api/oauth/kiro/social-authorize/route.js, src/app/api/oauth/kiro/social-exchange/route.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/kiro/social-authorize/route.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e1f07f6042af35c85356e1d50c0ec71620912ec9654aa2b07391b2f00f07b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!raw || typeof raw !== \u0022object\u0022 || Array.isArray(raw)\u0060 appears character-identically in 2 files \u2014 src/app/api/oauth/codex/bulk-import/route.js, src/app/api/oauth/grok-cli/bulk-import/route.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/codex/bulk-import/route.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc76fb916678480244ace289bafde3d38e019d600ed0b989b82b30b5c46f9848"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!tool || typeof tool !== \u0022object\u0022 || Array.isArray(tool)\u0060 appears character-identically in 6 files \u2014 open-sse/executors/codex.js, open-sse/executors/grok-cli.js, open-sse/executors/opencode-go.js, open-sse/executors/opencode-zen.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c9f0381c7a03b1dcc0ef43c11698de37f8f3f34fd0e18deb8c0b46593b5866"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!usage || typeof usage !== \u0022object\u0022 || Array.isArray(usage)\u0060 appears character-identically in 2 files \u2014 open-sse/shared/qoder/sse.js, open-sse/utils/usageTracking.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/sse.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"459aa97c0b15d09b776c1a20432fb7466cc8bc9be9073181867bd55219552ee1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number(searchParams.get(\u0022limit\u0022)) || 100\u0060 appears character-identically in 2 files \u2014 src/app/api/pxpipe/logs/route.js, src/app/api/pxpipe/stats/route.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/pxpipe/logs/route.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba57b78bbad89c8776d9f6f915743520482fd9eebfca29d4a8b41bf27a19a1b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060body \u0026\u0026 typeof body === \u0022object\u0022 \u0026\u0026 Array.isArray(body.accounts)\u0060 appears character-identically in 2 files \u2014 src/app/api/oauth/codex/bulk-import/route.js, src/app/api/oauth/grok-cli/bulk-import/route.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/oauth/codex/bulk-import/route.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bbf22717100b097f9246c7ded30e051ff9336d9238db6ab1a945ebdc966075"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060body.tool_choice \u0026\u0026 typeof body.tool_choice === \u0022object\u0022 \u0026\u0026 !Array.isArray(body.tool_choice)\u0060 appears character-identically in 5 files \u2014 open-sse/executors/codex.js, open-sse/executors/grok-cli.js, open-sse/executors/opencode-go.js, open-sse/executors/opencode-zen.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfaccc62c8960f90369aaa1441dfa1093b4456ddc3404de9de67c507ca25eef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content.includes(\u0022managed by 9Router\u0022) || content.includes(\u0022localhost:20128\u0022)\u0060 appears character-identically in 2 files \u2014 src/app/api/cli-tools/codewhale-settings/route.js, src/app/api/cli-tools/forge-settings/route.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/codewhale-settings/route.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"997c9279a95cd15112059a9478bfa3d90e8227f17e3a82483240d84240aabb4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060contentType \u0026\u0026 !contentType.includes(\u0022application/json\u0022)\u0060 appears character-identically in 2 files \u2014 open-sse/handlers/videoProviders/openrouter.js, open-sse/handlers/videoProviders/vertex.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/videoProviders/openrouter.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"135e101bb82553dae3817f2dcbc973e376861ea7ff98d0354169ac87f2141cc0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err.message || translate(\u0022Request failed\u0022)\u0060 appears character-identically in 2 files \u2014 src/app/(dashboard)/dashboard/providers/[id]/BulkImportCodexModal.js, src/app/(dashboard)/dashboard/providers/[id]/BulkImportGrokCliModal.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/BulkImportCodexModal.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7522a18b65bf91198ac34915fb1878d4df361190a646da3463ffda10e22705"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fn?.parameters \u0026\u0026 typeof fn.parameters === \u0022object\u0022 \u0026\u0026 !Array.isArray(fn.parameters)\u0060 appears character-identically in 5 files \u2014 open-sse/executors/codex.js, open-sse/executors/grok-cli.js, open-sse/executors/opencode-go.js, open-sse/executors/opencode-zen.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f039aed883368862198e6f701a603e3a4f13d0fc8fe4cff2f11fcefc7fbbc82"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060forwardedProto || new URL(request.url).protocol || \u0022http:\u0022\u0060 appears character-identically in 2 files \u2014 src/lib/auth/oidc.js, src/lib/auth/saml.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/auth/oidc.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e6bc63123ca25b17817efc6de35b10c3931a43a02a4cb7e741120885910485"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host !== \u0022x.ai\u0022 \u0026\u0026 !host.endsWith(\u0022.x.ai\u0022)\u0060 appears character-identically in 2 files \u2014 src/lib/oauth/providerHelpers.js, src/lib/oauth/services/xai.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/providerHelpers.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"814da47ffde3d59e37536c5d4803fb5f15a06aee7710ef10c054facb871147fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input \u0026\u0026 typeof input === \u0022object\u0022 \u0026\u0026 !Array.isArray(input)\u0060 appears character-identically in 2 files \u2014 open-sse/executors/kiro.js, open-sse/translator/concerns/kiroConversation.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/kiro.js"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"e263fab0b7d5c378560eb3662154e1c87f9b330badcaa5da16de4f5f1061f465"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item \u0026\u0026 typeof item === \u0022object\u0022 \u0026\u0026 !Array.isArray(item)\u0060 appears character-identically in 2 files \u2014 open-sse/executors/codex.js, open-sse/executors/grok-cli.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codex.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"766fba5708c0aeedff05a5b83944f7da729fdbc02375ca46ff7e8edfcfc4887d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k.startsWith(\u0022gemini-\u0022) \u0026\u0026 !k.includes(\u0022image\u0022)\u0060 appears character-identically in 3 files \u2014 open-sse/services/usage/google.js, src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js, src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/google.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"885087ab165fd32b23d121ed91c1fce0865869bb04eaf112bd279d5dd40fde87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k.startsWith(\u0022modelLock_\u0022) \u0026\u0026 v \u0026\u0026 new Date(v).getTime() \u003E Date.now()\u0060 appears character-identically in 3 files \u2014 src/app/(dashboard)/dashboard/media-providers/[kind]/page.js, src/app/(dashboard)/dashboard/media-providers/web/page.js, src/app/(dashboard)/dashboard/providers/page.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/media-providers/[kind]/page.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1548a2ce042d03cfe498f0f5a7df31f94561382486a4803734fb12080d8eed92"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060magic.startsWith(\u0022cffaedfe\u0022) || magic.startsWith(\u0022cefaedfe\u0022)\u0060 appears character-identically in 2 files \u2014 cli/hooks/sqliteRuntime.js, src/lib/tunnel/cloudflare/cloudflared.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/hooks/sqliteRuntime.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ea0f64ff0aa762342af686e899aa74fa8c7e1fa652032ed97da7c670f47b68"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060map \u0026\u0026 typeof map.get === \u0022function\u0022 \u0026\u0026 map.has(raw)\u0060 appears character-identically in 2 files \u2014 open-sse/translator/response/kiro-to-claude.js, open-sse/translator/response/kiro-to-openai.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/response/kiro-to-claude.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b912f8b33a139009cedfdea12ac93d5adbf30ab5d70cbdd8da904fc41dc921d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg.content \u0026\u0026 typeof msg.content === \u0022object\u0022 \u0026\u0026 !Array.isArray(msg.content)\u0060 appears character-identically in 2 files \u2014 open-sse/translator/formats/claude.js, open-sse/translator/request/claude-to-openai.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/claude.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"71386e55d424f76618f7c8e763f1c1a2de43d071be21b2fa7715363b2a7ebae6"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/qoder.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"722d693a4c3b96e2743c1a4e995d788b7b7e13064c434baff29975ff22b892f4"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/devin-cli.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"401d6842233271b668112d2cac408de1d953372e06bed532761ae9ad16339561"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/codebuddy-cn.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6f5945f56db0898ddc0bb40579b4dfd7e16c50a8608bfa5519296feee25c33"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/streamingHandler.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2edc010c35a284776f16b7ce7ddd494a3417042d01b4f935cb5f6f7d459b956"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/ttsProviders/googleTts.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2156d7aeeca2a3e9c8587bb9979abc227554f79da1a4f91f63ac8eef9a1275"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/ttsProviders/googleTts.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"16dfd5e11d365a0aef4f4f7aa02ca943ca1bec177b8d846239bd0a12973e1714"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/mimoAccount.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccb1947746b8c0dfe631ce654581f3162d8019557b91f0a8f57ca027ca702da"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"c433910d046f9134823afca57a220bd22588baa5f66f4d7345fb641fd8a7fbcb"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/GrokBuildToolCard.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0da66df52083f8a75335749b2e7369665941762ce8c60aa6d1372aa7651d8a"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1ab1c7b4ccdff3308fc8ea6a58ad52c6057ca5bb6ab9db8498828fe82ebf73"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b9cb50ceb4b48d4d8a2ce3bfad400ca391070148eef454b27cdb06a5946f96"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7923ef5d4b2f3798e9d2087b673d311458f1fc82ea26e28d7849d675faba862b"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"64edb6b4428ad475e3d0dee0c2028d0aa41f2f118d652ee375fd5176b2af0a7f"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/profile/page.js"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4202d721628f804c8aa62f4dfedff8983ed301cbe6e3fdfd34c7964e6bd528"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc43d4874cc481c5e58331edfb271d4893ba331ac03d454a0ba893a7767ee651"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"69425516e403198f705471fa0125c041e013beb1d4b456cb56add8501d628c45"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b9ac4d6bab144cd9991f5dac14b4bf73a30eb98d2ea9b675802953577fb1b6"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0941e3369d8c958db86935eeb2bf2bc6d5eb7d8a0dd154908bd3c3355f2b1a9"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c163acc9a71fdeab60379dae447614a431d59d7d90ecf9c51bbf5a230c2107"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"1279a635bdb0dc24bde2936c939f6772fb364eafdbba16c46eb3346795c39727"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b76c75c707d28e3dd2add1d0bf496f5cab4dcfc73f7f54dabe726584e01c96"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d6edfb0f6fe3225042ebe02896cfe79d3d048850f900fc56d1c830dfb425ce"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/proxy-pools/page.js"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1a24eca8e0a408c88605b966ce79651ec52eb08d7a004a687d11d85c9b4154"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/dashboard/settings/pricing/page.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0bd7cdb39120b5c8d6786b9f2c4863014abca6ea81d2dc7c5ae3e370fb2921"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/login/page.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdecc5ae21e30d3fb34ea2ee01b6f9ed1f333aa2fc601db9537e1614f989180"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/mimoLoginSession.js"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da4afeacd35eb65ea8701b6fd5ab104d5b0e5bf0fa601ae6a68873574a7440e"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/zedCredentials.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af2cdbc4bdd835404ae4235b21f5e73e7709db826f62bf339a1cd75ba1e8d5c"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/utils/zedCredentials.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c78bcf00595fddf3dbfe0b3e0433614176deb77aa1f65c0c5f2f5f36ecd61da"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/kiro.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"114dc1f54f1f31c0ee5563062a1bfe9c35236a900d15246d3b36c8b2150930dc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadRawMachineId\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/api/client.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b67448c51bbbd391ac6f402b9f0c08837161260f67e421a0d4e78f48000bc37"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getAutostartEnabled\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/src/cli/tray/tray.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc772f3c42b872157c058ebc1315d2bda6ef97055b0d8dc874ca03b5cf628ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060DocsSidebar\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gitbook/components/DocsSidebar.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dadaee38f98d23857ba11b75bc4ecfe4aa1d67782cdf98b4975e56767335bdd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060coerceResponsesArguments\u0060 swallows every exception into \u0060return \u0022{}\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/formats/responsesApi.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3074dba5a4a9c6e489783a3d76efe6138cf6efbb5ba79c512c0c7e15eeccd90e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeParseJson\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/translator/request/openai-to-commandcode.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8286d2683f5af0d63458225d0b0c70c8e71c9f7b7650d49efcda2680b67b2e8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060computeSigPath\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/cosy.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdabae1f81a3dd28e22484b6ac74c734a421c9e85ea29623df6d3b820076c1fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060payloadBytes\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/attachments.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c222e4b354fa8c531bf9a9d12790bbd0ac5e20f2abe4ccb36228db8f8682d5de"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060estimateQoderPromptTokens\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/shared/qoder/contextTier.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c987d0b12923d40c9618be6f2cd101bb1bf2fa951ebf929e42cc9d9832a2df36"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060lastUserText\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/executors/opencode.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"7679141adcac41eff4b37da914c6fe018a54402c8db2615b01038d93a38de70f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseToolArguments\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/chatCore/nonStreamingHandler.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"808c79c5ce01485beece341ca333afca7596025ee5333553a5bb777def265e97"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060jsonBytes\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/headroom.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"65102503330222b61772b60c03ccc97499d1947a43efc8a92589f9974ca1b644"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060bodyChars\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/rtk/pxpipe.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bab1eb9826dee95cc0e463f65e4060a61eabf2545eda99615f389159e03f78"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchLocalDeviceVoices\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/handlers/ttsProviders/localDevice.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9b7ac66c2b2e73ee3a82cdd72114fde90c5306de987851275155da1799af57"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchAntigravityWeeklyQuota\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/antigravity-weekly.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"377f21fd323ffb342dca2e0fc61480b8088d1467b4decdc289791ca4f24daab5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060planFromAccessToken\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/services/usage/grok-cli.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"83afe77266d3771d229797bd63845f3b828f240c8a8a4638e8ab10d963668aab"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060transform\u0060 (in \u0060transformToOllama\u0060) swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"open-sse/utils/ollamaTransform.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83a63a27e5934a718d9440018f8b42db39c43518d252386be1afed13de9279d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060read\u0060 (in \u0060createStore\u0060) swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/cliEndpointPresets.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf4f3701e28a358c06a0eb9fb27c2fb4e3009f45b07c447c4ffb4917950648f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readPresets\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/cli-tools/components/EndpointPresetControl.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"369feee8c9be8fa576bc1e71cbbdf30960f449247918f2dc9580c0ad6fb2919a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060formatResetTime\u0060 swallows every exception into \u0060return \u0022-\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfbf37a9338ef39f1a5ab4803007c7d65800cb9edb3fba6b73931900f850d17"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060resolveCliApiKey\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/resolveApiKey.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a7e0fb263bdcee65d75c4763ae67d2b70c55f75e930ca215a343e9342e62d8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060read1pConfig\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/cowork-settings/route.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb5a8b799fa6b6d67e2124dd719bc847b46071585a921f185f6180b61b2230b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readProviderEnv\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/jcode-settings/route.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"590a95e5598a68005dd1a59a83a3420b7858b953661bc8a49e736e7a2f247985"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readModelsYml\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/cli-tools/omp-settings/route.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f859457c5b5e73efed9c59f3639c91d9c9bd401f0c8c34498d885ec6617051"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchCompatibleModelIds\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/api/v1/models/route.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec7225d4ccd554d343f8e3804817d1115e65642356a1538a4ce5e96da6df99e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getHeadroomLogTail\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/headroom/process.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fd8e544dc6c21011ec44dc74e540e89af7f9f4bdc5354df14326042785aa29"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getInstallLogTail\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/headroom/process.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e9ff35174d3f9a058ab8ae1cc125277b29aad54a1ebe045271cdda5947d730"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchProfile\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/oauth/services/kimchi.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1377009591ea80c3199708f6338c59d35098d1af155147fab9cceaab9f6473"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getInstallLogTail\u0060 swallows every exception into \u0060return \u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/pxpipe/install.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dbb5d88f0c51c008c56d800ee664df2ff6b70230d45f614e0546c5232d628b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060checkDNSEntry\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/dns/dnsConfig.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf17becc5735fea7f5c700233f9e0ed3274f9459100685615efbed57a5c7e9c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeArgsString\u0060 swallows every exception into \u0060return \u0022{}\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/handlers/kiro.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"452d0582c2a1520e4ed33828acb30ab49682d59f1b8a6a7749ccfb8fce446753"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadDnsToolState\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mitm/manager.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b5739a9853fe359ca93d028ecdb3711d6c29ac182787f8752ffe859cb3c6c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchSuggestedModels\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/utils/providerModelsFetcher.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b493f2d9e2d3375df73d2cfc58b3c1e4cf69f4406f1564f24d2d215a7aed7e"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1188","guid":"90b5d93c-2e8f-7d58-b831-915e7ee4a150","name":"CWE-1188","shortDescription":{"text":"CWE-1188"},"helpUri":"https://cwe.mitre.org/data/definitions/1188.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"CWE-22","shortDescription":{"text":"CWE-22"},"helpUri":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-310","guid":"97174724-2e33-8455-b7cd-5c3258d1cb8f","name":"CWE-310","shortDescription":{"text":"CWE-310"},"helpUri":"https://cwe.mitre.org/data/definitions/310.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"CWE-532","shortDescription":{"text":"CWE-532"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":139,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}